[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] の値を設定またはクリアします。