#[non_exhaustive]pub struct UpdateRoleRequest {
pub name: String,
pub role: Option<Role>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
The request to update a role.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringThe name parameter’s value depends on the target resource for the
request, namely
projects
or
organizations.
Each resource type’s name value format is described below:
-
projects.roles.patch():projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}. This method updates only custom roles that have been created at the project level. Example request URL:<https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}> -
organizations.roles.patch():organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}. This method updates only custom roles that have been created at the organization level. Example request URL:<https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}>
Note: Wildcard (*) values are invalid; you must specify a complete project ID or organization ID.
role: Option<Role>The updated role.
update_mask: Option<FieldMask>A mask describing which fields in the Role have changed.
Implementations§
Source§impl UpdateRoleRequest
impl UpdateRoleRequest
pub fn new() -> Self
Sourcepub fn set_or_clear_role<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_role<T>(self, v: Option<T>) -> Self
Sets or clears the value of role.
Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
Trait Implementations§
Source§impl Clone for UpdateRoleRequest
impl Clone for UpdateRoleRequest
Source§fn clone(&self) -> UpdateRoleRequest
fn clone(&self) -> UpdateRoleRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more