#[non_exhaustive]pub struct CreatePrincipalAccessBoundaryPolicyRequest {
pub parent: String,
pub principal_access_boundary_policy_id: String,
pub principal_access_boundary_policy: Option<PrincipalAccessBoundaryPolicy>,
pub validate_only: bool,
/* private fields */
}Expand description
Request message for CreatePrincipalAccessBoundaryPolicyRequest method.
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. The parent resource where this principal access boundary policy will be created. Only organizations are supported.
Format:
organizations/{organization_id}/locations/{location}
principal_access_boundary_policy_id: StringRequired. The ID to use for the principal access boundary policy, which will become the final component of the principal access boundary policy’s resource name.
This value must start with a lowercase letter followed by up to 62 lowercase letters, numbers, hyphens, or dots. Pattern, /[a-z][a-z0-9-.]{2,62}/.
principal_access_boundary_policy: Option<PrincipalAccessBoundaryPolicy>Required. The principal access boundary policy to create.
validate_only: boolOptional. If set, validate the request and preview the creation, but do not actually post it.
Implementations§
Source§impl CreatePrincipalAccessBoundaryPolicyRequest
impl CreatePrincipalAccessBoundaryPolicyRequest
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
Sourcepub fn set_principal_access_boundary_policy_id<T: Into<String>>(
self,
v: T,
) -> Self
pub fn set_principal_access_boundary_policy_id<T: Into<String>>( self, v: T, ) -> Self
Sets the value of principal_access_boundary_policy_id.
§Example
let x = CreatePrincipalAccessBoundaryPolicyRequest::new().set_principal_access_boundary_policy_id("example");Sourcepub fn set_principal_access_boundary_policy<T>(self, v: T) -> Selfwhere
T: Into<PrincipalAccessBoundaryPolicy>,
pub fn set_principal_access_boundary_policy<T>(self, v: T) -> Selfwhere
T: Into<PrincipalAccessBoundaryPolicy>,
Sets the value of principal_access_boundary_policy.
§Example
use google_cloud_iam_v3::model::PrincipalAccessBoundaryPolicy;
let x = CreatePrincipalAccessBoundaryPolicyRequest::new().set_principal_access_boundary_policy(PrincipalAccessBoundaryPolicy::default()/* use setters */);Sourcepub fn set_or_clear_principal_access_boundary_policy<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<PrincipalAccessBoundaryPolicy>,
pub fn set_or_clear_principal_access_boundary_policy<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<PrincipalAccessBoundaryPolicy>,
Sets or clears the value of principal_access_boundary_policy.
§Example
use google_cloud_iam_v3::model::PrincipalAccessBoundaryPolicy;
let x = CreatePrincipalAccessBoundaryPolicyRequest::new().set_or_clear_principal_access_boundary_policy(Some(PrincipalAccessBoundaryPolicy::default()/* use setters */));
let x = CreatePrincipalAccessBoundaryPolicyRequest::new().set_or_clear_principal_access_boundary_policy(None::<PrincipalAccessBoundaryPolicy>);Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
§Example
let x = CreatePrincipalAccessBoundaryPolicyRequest::new().set_validate_only(true);Trait Implementations§
Source§impl Clone for CreatePrincipalAccessBoundaryPolicyRequest
impl Clone for CreatePrincipalAccessBoundaryPolicyRequest
Source§fn clone(&self) -> CreatePrincipalAccessBoundaryPolicyRequest
fn clone(&self) -> CreatePrincipalAccessBoundaryPolicyRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for CreatePrincipalAccessBoundaryPolicyRequest
impl Default for CreatePrincipalAccessBoundaryPolicyRequest
Source§fn default() -> CreatePrincipalAccessBoundaryPolicyRequest
fn default() -> CreatePrincipalAccessBoundaryPolicyRequest
Source§impl PartialEq for CreatePrincipalAccessBoundaryPolicyRequest
impl PartialEq for CreatePrincipalAccessBoundaryPolicyRequest
Source§fn eq(&self, other: &CreatePrincipalAccessBoundaryPolicyRequest) -> bool
fn eq(&self, other: &CreatePrincipalAccessBoundaryPolicyRequest) -> bool
self and other values to be equal, and is used by ==.