#[non_exhaustive]pub struct CreateAuthorizationPolicyRequest {
pub parent: String,
pub authorization_policy_id: String,
pub authorization_policy: Option<AuthorizationPolicy>,
/* private fields */
}Expand description
Request used by the CreateAuthorizationPolicy 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.parent: StringRequired. The parent resource of the AuthorizationPolicy. Must be in the
format projects/{project}/locations/{location}.
Required. Short name of the AuthorizationPolicy resource to be created. This value should be 1-63 characters long, containing only letters, numbers, hyphens, and underscores, and should not start with a number. E.g. “authz_policy”.
Required. AuthorizationPolicy resource to be created.
Implementations§
Source§impl CreateAuthorizationPolicyRequest
impl CreateAuthorizationPolicyRequest
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.
Sets the value of authorization_policy_id.
Sets the value of authorization_policy.
Sets or clears the value of authorization_policy.
Trait Implementations§
Source§impl Clone for CreateAuthorizationPolicyRequest
impl Clone for CreateAuthorizationPolicyRequest
Source§fn clone(&self) -> CreateAuthorizationPolicyRequest
fn clone(&self) -> CreateAuthorizationPolicyRequest
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 Default for CreateAuthorizationPolicyRequest
impl Default for CreateAuthorizationPolicyRequest
Source§fn default() -> CreateAuthorizationPolicyRequest
fn default() -> CreateAuthorizationPolicyRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateAuthorizationPolicyRequest
impl PartialEq for CreateAuthorizationPolicyRequest
Source§fn eq(&self, other: &CreateAuthorizationPolicyRequest) -> bool
fn eq(&self, other: &CreateAuthorizationPolicyRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateAuthorizationPolicyRequest
Auto Trait Implementations§
impl Freeze for CreateAuthorizationPolicyRequest
impl RefUnwindSafe for CreateAuthorizationPolicyRequest
impl Send for CreateAuthorizationPolicyRequest
impl Sync for CreateAuthorizationPolicyRequest
impl Unpin for CreateAuthorizationPolicyRequest
impl UnwindSafe for CreateAuthorizationPolicyRequest
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