pub struct OrgPolicy {
pub boolean_policy: Option<BooleanPolicy>,
pub constraint: Option<String>,
pub etag: Option<Vec<u8>>,
pub list_policy: Option<ListPolicy>,
pub restore_default: Option<RestoreDefault>,
pub update_time: Option<DateTime<Utc>>,
pub version: Option<i32>,
}Expand description
Defines a Cloud Organization Policy which is used to specify Constraints for configurations of Cloud Platform 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).
- get effective org policy folders (response)
- get org policy folders (response)
- set org policy folders (response)
- get effective org policy organizations (response)
- get org policy organizations (response)
- set org policy organizations (response)
- get effective org policy projects (response)
- get org policy projects (response)
- set org policy projects (response)
Fields§
§boolean_policy: Option<BooleanPolicy>For boolean Constraints, whether to enforce the Constraint or not.
constraint: Option<String>The name of the Constraint the Policy is configuring, for example, constraints/serviceuser.services. A list of available constraints is available. Immutable after creation.
etag: Option<Vec<u8>>An opaque tag indicating the current version of the Policy, used for concurrency control. When the Policy is returned from either a GetPolicy or a ListOrgPolicy request, this etag indicates the version of the current Policy to use when executing a read-modify-write loop. When the Policy is returned from a GetEffectivePolicy request, the etag will be unset. When the Policy is used in a SetOrgPolicy method, use the etag value that was returned from a GetOrgPolicy request as part of a read-modify-write loop for concurrency control. Not setting the etagin a SetOrgPolicy request will result in an unconditional write of the Policy.
list_policy: Option<ListPolicy>List of values either allowed or disallowed.
restore_default: Option<RestoreDefault>Restores the default behavior of the constraint; independent of Constraint type.
update_time: Option<DateTime<Utc>>The time stamp the Policy was previously updated. This is set by the server, not specified by the caller, and represents the last time a call to SetOrgPolicy was made for that Policy. Any value set by the client will be ignored.
version: Option<i32>Version of the Policy. Default version is 0;
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OrgPolicy
impl<'de> Deserialize<'de> for OrgPolicy
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 ResponseResult for OrgPolicy
Auto Trait Implementations§
impl Freeze for OrgPolicy
impl RefUnwindSafe for OrgPolicy
impl Send for OrgPolicy
impl Sync for OrgPolicy
impl Unpin for OrgPolicy
impl UnwindSafe for OrgPolicy
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