Der Request Builder für [KeyManagementService::get_iam_policy][crate::client::KeyManagementService::get_iam_policy]-Aufrufe.
Beispiel
# use google_cloud_kms_v1::builder;
use builder::key_management_service::GetIamPolicy;
# tokio_test::block_on(async {
let builder = prepare_request_builder();
let response = builder.send().await?;
# gax::Result::<()>::Ok(()) });
fn prepare_request_builder() -> GetIamPolicy {
# panic!();
// ... details omitted ...
}
Implementierungen
with_request
fn with_request<V: Into<iam_v1::model::GetIamPolicyRequest>>(self, v: V) -> Self
Legt die vollständige Anfrage fest und ersetzt alle vorherigen Werte.
with_options
fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self
Legt alle Optionen fest und ersetzt alle vorherigen Werte.
senden
async fn send(self) -> Result<iam_v1::model::Policy>
Sendet die Anfrage.
set_resource
fn set_resource<T: Into<std::string::String>>(self, v: T) -> Self
Legt den Wert von [resource][iam_v1::model::GetIamPolicyRequest::resource] fest.
Dies ist ein Pflichtfeld für Anfragen.
set_options
fn set_options<T>(self, v: T) -> Self
where
T: std::convert::Into<iam_v1::model::GetPolicyOptions>,
Legt den Wert von [options][iam_v1::model::GetIamPolicyRequest::options] fest.
set_or_clear_options
fn set_or_clear_options<T>(self, v: std::option::Option<T>) -> Self
where
T: std::convert::Into<iam_v1::model::GetPolicyOptions>,
Legt den Wert von [options][iam_v1::model::GetIamPolicyRequest::options] fest oder löscht ihn.