Struct GetIamPolicy (0.5.0)

The request builder for [KeyManagementService::get_iam_policy][crate::client::KeyManagementService::get_iam_policy] calls.

Example

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

Implementations

with_request

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

Sets the full request, replacing any prior values.

with_options

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

Sets all the options, replacing any prior values.

send

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

Sends the request.

set_resource

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

Sets the value of [resource][iam_v1::model::GetIamPolicyRequest::resource].

This is a required field for requests.

set_options

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

Sets the value of [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>,

Sets or clears the value of [options][iam_v1::model::GetIamPolicyRequest::options].