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 theConstraint
or not.
#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 theConstraint
or not.
-
(::Google::Cloud::OrgPolicy::V1::Policy::BooleanPolicy) — For boolean
Constraints
, whether to enforce theConstraint
or not.
#constraint
def constraint() -> ::String
-
(::String) — The name of the
Constraint
thePolicy
is configuring, for example,constraints/serviceuser.services
.Immutable after creation.
#constraint=
def constraint=(value) -> ::String
-
value (::String) — The name of the
Constraint
thePolicy
is configuring, for example,constraints/serviceuser.services
.Immutable after creation.
-
(::String) — The name of the
Constraint
thePolicy
is 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
Policy
is returned from either aGetPolicy
or aListOrgPolicy
request, thisetag
indicates the version of the currentPolicy
to use when executing a read-modify-write loop.When the
Policy
is returned from aGetEffectivePolicy
request, theetag
will be unset.When the
Policy
is used in aSetOrgPolicy
method, use theetag
value that was returned from aGetOrgPolicy
request as part of a read-modify-write loop for concurrency control. Not setting theetag
in aSetOrgPolicy
request 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
Policy
is returned from either aGetPolicy
or aListOrgPolicy
request, thisetag
indicates the version of the currentPolicy
to use when executing a read-modify-write loop.When the
Policy
is returned from aGetEffectivePolicy
request, theetag
will be unset.When the
Policy
is used in aSetOrgPolicy
method, use theetag
value that was returned from aGetOrgPolicy
request as part of a read-modify-write loop for concurrency control. Not setting theetag
in aSetOrgPolicy
request 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
Policy
is returned from either aGetPolicy
or aListOrgPolicy
request, thisetag
indicates the version of the currentPolicy
to use when executing a read-modify-write loop.When the
Policy
is returned from aGetEffectivePolicy
request, theetag
will be unset.When the
Policy
is used in aSetOrgPolicy
method, use theetag
value that was returned from aGetOrgPolicy
request as part of a read-modify-write loop for concurrency control. Not setting theetag
in aSetOrgPolicy
request 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.
#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.
- (::Google::Cloud::OrgPolicy::V1::Policy::ListPolicy) — List of values either allowed or disallowed.
#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
Constraint
type.
#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
Constraint
type.
-
(::Google::Cloud::OrgPolicy::V1::Policy::RestoreDefault) — Restores the default behavior of the constraint; independent of
Constraint
type.
#update_time
def update_time() -> ::Google::Protobuf::Timestamp
-
(::Google::Protobuf::Timestamp) — 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 toSetOrgPolicy
was 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
Policy
was previously updated. This is set by the server, not specified by the caller, and represents the last time a call toSetOrgPolicy
was made for thatPolicy
. Any value set by the client will be ignored.
-
(::Google::Protobuf::Timestamp) — 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 toSetOrgPolicy
was 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;