#[non_exhaustive]pub struct ReplaceAccessLevelsRequest {
pub parent: String,
pub access_levels: Vec<AccessLevel>,
pub etag: String,
/* private fields */
}Expand description
A request to replace all existing Access Levels in an Access Policy with the Access Levels provided. This is done atomically.
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.parent: StringRequired. Resource name for the access policy which owns these [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel].
Format: accessPolicies/{policy_id}
access_levels: Vec<AccessLevel>Required. The desired [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] that should replace all existing [Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel] in the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy].
etag: StringOptional. The etag for the version of the [Access Policy] [google.identity.accesscontextmanager.v1.AccessPolicy] that this replace operation is to be performed on. If, at the time of replace, the etag for the Access Policy stored in Access Context Manager is different from the specified etag, then the replace operation will not be performed and the call will fail. This field is not required. If etag is not provided, the operation will be performed as if a valid etag is provided.
Implementations§
Source§impl ReplaceAccessLevelsRequest
impl ReplaceAccessLevelsRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_access_levels<T, V>(self, v: T) -> Self
pub fn set_access_levels<T, V>(self, v: T) -> Self
Sets the value of access_levels.
Trait Implementations§
Source§impl Clone for ReplaceAccessLevelsRequest
impl Clone for ReplaceAccessLevelsRequest
Source§fn clone(&self) -> ReplaceAccessLevelsRequest
fn clone(&self) -> ReplaceAccessLevelsRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more