Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::OrgPolicy::V1::Policy.
Defines a Cloud Organization Policy which is used to specify Constraints
for configurations of Cloud Platform resources.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#boolean_policy
def boolean_policy() -> ::Google::Cloud::OrgPolicy::V1::Policy::BooleanPolicy-
(::Google::Cloud::OrgPolicy::V1::Policy::BooleanPolicy) — For boolean
Constraints, whether to enforce theConstraintor not.Note: The following fields are mutually exclusive:
boolean_policy,list_policy,restore_default. If a field in that set is populated, all other fields in the set will automatically be cleared.
#boolean_policy=
def boolean_policy=(value) -> ::Google::Cloud::OrgPolicy::V1::Policy::BooleanPolicy-
value (::Google::Cloud::OrgPolicy::V1::Policy::BooleanPolicy) — For boolean
Constraints, whether to enforce theConstraintor not.Note: The following fields are mutually exclusive:
boolean_policy,list_policy,restore_default. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::OrgPolicy::V1::Policy::BooleanPolicy) — For boolean
Constraints, whether to enforce theConstraintor not.Note: The following fields are mutually exclusive:
boolean_policy,list_policy,restore_default. If a field in that set is populated, all other fields in the set will automatically be cleared.
#constraint
def constraint() -> ::String-
(::String) — The name of the
ConstraintthePolicyis configuring, for example,constraints/serviceuser.services.Immutable after creation.
#constraint=
def constraint=(value) -> ::String-
value (::String) — The name of the
ConstraintthePolicyis configuring, for example,constraints/serviceuser.services.Immutable after creation.
-
(::String) — The name of the
ConstraintthePolicyis configuring, for example,constraints/serviceuser.services.Immutable after creation.
#etag
def etag() -> ::String-
(::String) — An opaque tag indicating the current version of the
Policy, used for concurrency control.When the
Policyis returned from either aGetPolicyor aListOrgPolicyrequest, thisetagindicates the version of the currentPolicyto use when executing a read-modify-write loop.When the
Policyis returned from aGetEffectivePolicyrequest, theetagwill be unset.When the
Policyis used in aSetOrgPolicymethod, use theetagvalue that was returned from aGetOrgPolicyrequest as part of a read-modify-write loop for concurrency control. Not setting theetagin aSetOrgPolicyrequest will result in an unconditional write of thePolicy.
#etag=
def etag=(value) -> ::String-
value (::String) — An opaque tag indicating the current version of the
Policy, used for concurrency control.When the
Policyis returned from either aGetPolicyor aListOrgPolicyrequest, thisetagindicates the version of the currentPolicyto use when executing a read-modify-write loop.When the
Policyis returned from aGetEffectivePolicyrequest, theetagwill be unset.When the
Policyis used in aSetOrgPolicymethod, use theetagvalue that was returned from aGetOrgPolicyrequest as part of a read-modify-write loop for concurrency control. Not setting theetagin aSetOrgPolicyrequest will result in an unconditional write of thePolicy.
-
(::String) — An opaque tag indicating the current version of the
Policy, used for concurrency control.When the
Policyis returned from either aGetPolicyor aListOrgPolicyrequest, thisetagindicates the version of the currentPolicyto use when executing a read-modify-write loop.When the
Policyis returned from aGetEffectivePolicyrequest, theetagwill be unset.When the
Policyis used in aSetOrgPolicymethod, use theetagvalue that was returned from aGetOrgPolicyrequest as part of a read-modify-write loop for concurrency control. Not setting theetagin aSetOrgPolicyrequest will result in an unconditional write of thePolicy.
#list_policy
def list_policy() -> ::Google::Cloud::OrgPolicy::V1::Policy::ListPolicy-
(::Google::Cloud::OrgPolicy::V1::Policy::ListPolicy) — List of values either allowed or disallowed.
Note: The following fields are mutually exclusive:
list_policy,boolean_policy,restore_default. If a field in that set is populated, all other fields in the set will automatically be cleared.
#list_policy=
def list_policy=(value) -> ::Google::Cloud::OrgPolicy::V1::Policy::ListPolicy-
value (::Google::Cloud::OrgPolicy::V1::Policy::ListPolicy) — List of values either allowed or disallowed.
Note: The following fields are mutually exclusive:
list_policy,boolean_policy,restore_default. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::OrgPolicy::V1::Policy::ListPolicy) — List of values either allowed or disallowed.
Note: The following fields are mutually exclusive:
list_policy,boolean_policy,restore_default. If a field in that set is populated, all other fields in the set will automatically be cleared.
#restore_default
def restore_default() -> ::Google::Cloud::OrgPolicy::V1::Policy::RestoreDefault-
(::Google::Cloud::OrgPolicy::V1::Policy::RestoreDefault) — Restores the default behavior of the constraint; independent of
Constrainttype.Note: The following fields are mutually exclusive:
restore_default,list_policy,boolean_policy. If a field in that set is populated, all other fields in the set will automatically be cleared.
#restore_default=
def restore_default=(value) -> ::Google::Cloud::OrgPolicy::V1::Policy::RestoreDefault-
value (::Google::Cloud::OrgPolicy::V1::Policy::RestoreDefault) — Restores the default behavior of the constraint; independent of
Constrainttype.Note: The following fields are mutually exclusive:
restore_default,list_policy,boolean_policy. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::OrgPolicy::V1::Policy::RestoreDefault) — Restores the default behavior of the constraint; independent of
Constrainttype.Note: The following fields are mutually exclusive:
restore_default,list_policy,boolean_policy. If a field in that set is populated, all other fields in the set will automatically be cleared.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp-
(::Google::Protobuf::Timestamp) — The time stamp the
Policywas previously updated. This is set by the server, not specified by the caller, and represents the last time a call toSetOrgPolicywas made for thatPolicy. Any value set by the client will be ignored.
#update_time=
def update_time=(value) -> ::Google::Protobuf::Timestamp-
value (::Google::Protobuf::Timestamp) — The time stamp the
Policywas previously updated. This is set by the server, not specified by the caller, and represents the last time a call toSetOrgPolicywas made for thatPolicy. Any value set by the client will be ignored.
-
(::Google::Protobuf::Timestamp) — The time stamp the
Policywas previously updated. This is set by the server, not specified by the caller, and represents the last time a call toSetOrgPolicywas made for thatPolicy. Any value set by the client will be ignored.
#version
def version() -> ::Integer-
(::Integer) — Version of the
Policy. Default version is 0;
#version=
def version=(value) -> ::Integer-
value (::Integer) — Version of the
Policy. Default version is 0;
-
(::Integer) — Version of the
Policy. Default version is 0;