pub struct GoogleCloudOrgpolicyV2Policy {
pub alternate: Option<GoogleCloudOrgpolicyV2AlternatePolicySpec>,
pub dry_run_spec: Option<GoogleCloudOrgpolicyV2PolicySpec>,
pub etag: Option<String>,
pub name: Option<String>,
pub spec: Option<GoogleCloudOrgpolicyV2PolicySpec>,
}Expand description
Defines an organization policy which is used to specify constraints for configurations of Google Cloud resources.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- policies create folders (request|response)
- policies get folders (response)
- policies get effective policy folders (response)
- policies patch folders (request|response)
- policies create organizations (request|response)
- policies get organizations (response)
- policies get effective policy organizations (response)
- policies patch organizations (request|response)
- policies create projects (request|response)
- policies get projects (response)
- policies get effective policy projects (response)
- policies patch projects (request|response)
Fields§
§alternate: Option<GoogleCloudOrgpolicyV2AlternatePolicySpec>Deprecated.
dry_run_spec: Option<GoogleCloudOrgpolicyV2PolicySpec>Dry-run policy. Audit-only policy, can be used to monitor how the policy would have impacted the existing and future resources if it’s enforced.
etag: Option<String>Optional. An opaque tag indicating the current state of the policy, used for concurrency control. This ‘etag’ is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding.
name: Option<String>Immutable. The resource name of the policy. Must be one of the following forms, where constraint_name is the name of the constraint which this policy configures: * projects/{project_number}/policies/{constraint_name} * folders/{folder_id}/policies/{constraint_name} * organizations/{organization_id}/policies/{constraint_name} For example, projects/123/policies/compute.disableSerialPortAccess. Note: projects/{project_id}/policies/{constraint_name} is also an acceptable name for API requests, but responses will return the name using the equivalent project number.
spec: Option<GoogleCloudOrgpolicyV2PolicySpec>Basic information about the Organization Policy.
Trait Implementations§
Source§impl Clone for GoogleCloudOrgpolicyV2Policy
impl Clone for GoogleCloudOrgpolicyV2Policy
Source§fn clone(&self) -> GoogleCloudOrgpolicyV2Policy
fn clone(&self) -> GoogleCloudOrgpolicyV2Policy
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GoogleCloudOrgpolicyV2Policy
impl Debug for GoogleCloudOrgpolicyV2Policy
Source§impl Default for GoogleCloudOrgpolicyV2Policy
impl Default for GoogleCloudOrgpolicyV2Policy
Source§fn default() -> GoogleCloudOrgpolicyV2Policy
fn default() -> GoogleCloudOrgpolicyV2Policy
Source§impl<'de> Deserialize<'de> for GoogleCloudOrgpolicyV2Policy
impl<'de> Deserialize<'de> for GoogleCloudOrgpolicyV2Policy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for GoogleCloudOrgpolicyV2Policy
impl ResponseResult for GoogleCloudOrgpolicyV2Policy
Auto Trait Implementations§
impl Freeze for GoogleCloudOrgpolicyV2Policy
impl RefUnwindSafe for GoogleCloudOrgpolicyV2Policy
impl Send for GoogleCloudOrgpolicyV2Policy
impl Sync for GoogleCloudOrgpolicyV2Policy
impl Unpin for GoogleCloudOrgpolicyV2Policy
impl UnwindSafe for GoogleCloudOrgpolicyV2Policy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more