Cloud Asset V1 API - Class Google::Cloud::OrgPolicy::V1::Policy (v0.28.0)

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
Returns

#boolean_policy=

def boolean_policy=(value) -> ::Google::Cloud::OrgPolicy::V1::Policy::BooleanPolicy
Parameter
Returns

#constraint

def constraint() -> ::String
Returns
  • (::String) — The name of the Constraint the Policy is configuring, for example, constraints/serviceuser.services.

    Immutable after creation.

#constraint=

def constraint=(value) -> ::String
Parameter
  • value (::String) — The name of the Constraint the Policy is configuring, for example, constraints/serviceuser.services.

    Immutable after creation.

Returns
  • (::String) — The name of the Constraint the Policy is configuring, for example, constraints/serviceuser.services.

    Immutable after creation.

#etag

def etag() -> ::String
Returns
  • (::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 etagin a SetOrgPolicy request will result in an unconditional write of the Policy.

#etag=

def etag=(value) -> ::String
Parameter
  • value (::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 etagin a SetOrgPolicy request will result in an unconditional write of the Policy.

Returns
  • (::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 etagin a SetOrgPolicy request will result in an unconditional write of the Policy.

#list_policy

def list_policy() -> ::Google::Cloud::OrgPolicy::V1::Policy::ListPolicy
Returns

#list_policy=

def list_policy=(value) -> ::Google::Cloud::OrgPolicy::V1::Policy::ListPolicy
Parameter
Returns

#restore_default

def restore_default() -> ::Google::Cloud::OrgPolicy::V1::Policy::RestoreDefault
Returns

#restore_default=

def restore_default=(value) -> ::Google::Cloud::OrgPolicy::V1::Policy::RestoreDefault
Parameter
Returns

#update_time

def update_time() -> ::Google::Protobuf::Timestamp
Returns
  • (::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 to SetOrgPolicy was made for that Policy. Any value set by the client will be ignored.

#update_time=

def update_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
  • 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 to SetOrgPolicy was made for that Policy. Any value set by the client will be ignored.
Returns
  • (::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 to SetOrgPolicy was made for that Policy. Any value set by the client will be ignored.

#version

def version() -> ::Integer
Returns
  • (::Integer) — Version of the Policy. Default version is 0;

#version=

def version=(value) -> ::Integer
Parameter
  • value (::Integer) — Version of the Policy. Default version is 0;
Returns
  • (::Integer) — Version of the Policy. Default version is 0;