#[non_exhaustive]pub struct ReplaceServicePerimetersRequest {
pub parent: String,
pub service_perimeters: Vec<ServicePerimeter>,
pub etag: String,
/* private fields */
}Expand description
A request to replace all existing Service Perimeters in an Access Policy with the Service Perimeters 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 [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter].
Format: accessPolicies/{policy_id}
service_perimeters: Vec<ServicePerimeter>Required. The desired [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] that should replace all existing [Service Perimeters] [google.identity.accesscontextmanager.v1.ServicePerimeter] 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 ReplaceServicePerimetersRequest
impl ReplaceServicePerimetersRequest
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_service_perimeters<T, V>(self, v: T) -> Self
pub fn set_service_perimeters<T, V>(self, v: T) -> Self
Sets the value of service_perimeters.
Trait Implementations§
Source§impl Clone for ReplaceServicePerimetersRequest
impl Clone for ReplaceServicePerimetersRequest
Source§fn clone(&self) -> ReplaceServicePerimetersRequest
fn clone(&self) -> ReplaceServicePerimetersRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for ReplaceServicePerimetersRequest
impl Default for ReplaceServicePerimetersRequest
Source§fn default() -> ReplaceServicePerimetersRequest
fn default() -> ReplaceServicePerimetersRequest
Source§impl PartialEq for ReplaceServicePerimetersRequest
impl PartialEq for ReplaceServicePerimetersRequest
Source§fn eq(&self, other: &ReplaceServicePerimetersRequest) -> bool
fn eq(&self, other: &ReplaceServicePerimetersRequest) -> bool
self and other values to be equal, and is used by ==.