Il generatore di richieste per le chiamate [KeyManagementService::get_iam_policy][crate::client::KeyManagementService::get_iam_policy].
Esempio
# 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 ...
}
Implementazioni
with_request
fn with_request<V: Into<iam_v1::model::GetIamPolicyRequest>>(self, v: V) -> Self
Imposta la richiesta completa, sostituendo i valori precedenti.
with_options
fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self
Imposta tutte le opzioni, sostituendo i valori precedenti.
invia
async fn send(self) -> Result<iam_v1::model::Policy>
Invia la richiesta.
set_resource
fn set_resource<T: Into<std::string::String>>(self, v: T) -> Self
Imposta il valore di [resource][iam_v1::model::GetIamPolicyRequest::resource].
Questo campo è obbligatorio per le richieste.
set_options
fn set_options<T>(self, v: T) -> Self
where
T: std::convert::Into<iam_v1::model::GetPolicyOptions>,
Imposta il valore di [options][iam_v1::model::GetIamPolicyRequest::options].
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>,
Imposta o cancella il valore di [options][iam_v1::model::GetIamPolicyRequest::options].