Struct google_cloudresourcemanager1::OrgPolicy [−][src]
pub struct OrgPolicy { pub update_time: Option<String>, pub version: Option<i32>, pub etag: Option<String>, pub constraint: Option<String>, pub restore_default: Option<RestoreDefault>, pub list_policy: Option<ListPolicy>, pub boolean_policy: Option<BooleanPolicy>, }
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).
- set org policy folders (response)
- get org policy organizations (response)
- get effective org policy organizations (response)
- set org policy organizations (response)
- get effective org policy folders (response)
- get org policy folders (response)
- get org policy projects (response)
- get effective org policy projects (response)
- set org policy projects (response)
Fields
update_time: Option<String>
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;
etag: Option<String>
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 etag
in a
SetOrgPolicy
request will result in an unconditional write of the
Policy
.
constraint: Option<String>
The name of the Constraint
the Policy
is configuring, for example,
constraints/serviceuser.services
.
Immutable after creation.
restore_default: Option<RestoreDefault>
Restores the default behavior of the constraint; independent of
Constraint
type.
list_policy: Option<ListPolicy>
List of values either allowed or disallowed.
boolean_policy: Option<BooleanPolicy>
For boolean Constraints
, whether to enforce the Constraint
or not.
Trait Implementations
impl Default for OrgPolicy
[src]
impl Default for OrgPolicy
impl Clone for OrgPolicy
[src]
impl Clone for OrgPolicy
fn clone(&self) -> OrgPolicy
[src]
fn clone(&self) -> OrgPolicy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for OrgPolicy
[src]
impl Debug for OrgPolicy
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ResponseResult for OrgPolicy
[src]
impl ResponseResult for OrgPolicy