Struct GetIamPolicy (0.5.0)

[KeyManagementService::get_iam_policy][crate::client::KeyManagementService::get_iam_policy] 呼叫的要求建構工具。

範例

# 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 ...
}

實作

with_request

 fn with_request<V: Into<iam_v1::model::GetIamPolicyRequest>>(self, v: V) -> Self

設定完整要求,取代任何先前的值。

with_options

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

設定所有選項,取代任何先前的值。

傳送

async fn send(self) -> Result<iam_v1::model::Policy>

傳送要求。

set_resource

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

設定 [resource][iam_v1::model::GetIamPolicyRequest::resource] 的值。

這是要求的必填欄位。

set_options

 fn set_options<T>(self, v: T) -> Self
where
    T: std::convert::Into<iam_v1::model::GetPolicyOptions>,

設定 [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>,

設定或清除 [options][iam_v1::model::GetIamPolicyRequest::options] 的值。