#[non_exhaustive]pub struct GetIamPolicyRequest {
pub options_requested_policy_version: Option<i32>,
pub project: String,
pub resource: String,
pub zone: String,
/* private fields */
}Available on crate feature
node-groups only.Expand description
Synthetic request message for the getIamPolicy() method.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.options_requested_policy_version: Option<i32>Requested IAM Policy version.
project: StringProject ID for this request.
resource: StringName or id of the resource for this request.
zone: StringThe name of the zone for this request.
Implementations§
Source§impl GetIamPolicyRequest
impl GetIamPolicyRequest
pub fn new() -> Self
Sourcepub fn set_options_requested_policy_version<T>(self, v: T) -> Self
pub fn set_options_requested_policy_version<T>(self, v: T) -> Self
Sets the value of options_requested_policy_version.
§Example
ⓘ
let x = GetIamPolicyRequest::new().set_options_requested_policy_version(42);Sourcepub fn set_or_clear_options_requested_policy_version<T>(
self,
v: Option<T>,
) -> Self
pub fn set_or_clear_options_requested_policy_version<T>( self, v: Option<T>, ) -> Self
Sets or clears the value of options_requested_policy_version.
§Example
ⓘ
let x = GetIamPolicyRequest::new().set_or_clear_options_requested_policy_version(Some(42));
let x = GetIamPolicyRequest::new().set_or_clear_options_requested_policy_version(None::<i32>);Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_resource<T: Into<String>>(self, v: T) -> Self
pub fn set_resource<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for GetIamPolicyRequest
impl Clone for GetIamPolicyRequest
Source§fn clone(&self) -> GetIamPolicyRequest
fn clone(&self) -> GetIamPolicyRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetIamPolicyRequest
impl Debug for GetIamPolicyRequest
Source§impl Default for GetIamPolicyRequest
impl Default for GetIamPolicyRequest
Source§fn default() -> GetIamPolicyRequest
fn default() -> GetIamPolicyRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for GetIamPolicyRequest
impl PartialEq for GetIamPolicyRequest
impl StructuralPartialEq for GetIamPolicyRequest
Auto Trait Implementations§
impl Freeze for GetIamPolicyRequest
impl RefUnwindSafe for GetIamPolicyRequest
impl Send for GetIamPolicyRequest
impl Sync for GetIamPolicyRequest
impl Unpin for GetIamPolicyRequest
impl UnwindSafe for GetIamPolicyRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more