Struct GetFile (0.5.0)

הבקשה ל-builder לקריאות [ArtifactRegistry::get_file][crate::client::ArtifactRegistry::get_file].

דוגמה

# use google_cloud_artifactregistry_v1::builder;
use builder::artifact_registry::GetFile;
# tokio_test::block_on(async {

let builder = prepare_request_builder();
let response = builder.send().await?;
# gax::Result::<()>::Ok(()) });

fn prepare_request_builder() -> GetFile {
  # panic!();
  // ... details omitted ...
}

הטמעות

with_request

 fn with_request<V: Into<crate::model::GetFileRequest>>(self, v: V) -> Self

מגדיר את הבקשה המלאה ומחליף את כל הערכים הקודמים.

with_options

 fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self

מגדירה את כל האפשרויות ומחליפה את כל הערכים הקודמים.

send

async fn send(self) -> Result<crate::model::File>

שליחת הבקשה.

set_name

 fn set_name<T: Into<std::string::String>>(self, v: T) -> Self

מגדיר את הערך של [name][crate::model::GetFileRequest::name].

זהו שדה חובה בבקשות.