Organization Policy V2 API - Class Google::Cloud::OrgPolicy::V2::Constraint::ListConstraint (v0.7.0)

Reference documentation and code samples for the Organization Policy V2 API class Google::Cloud::OrgPolicy::V2::Constraint::ListConstraint.

A Constraint that allows or disallows a list of string values, which are configured by an Organization's policy administrator with a Policy.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#supports_in

def supports_in() -> ::Boolean
Returns
  • (::Boolean) — Indicates whether values grouped into categories can be used in Policy.allowed_values and Policy.denied_values. For example, "in:Python" would match any value in the 'Python' group.

#supports_in=

def supports_in=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Indicates whether values grouped into categories can be used in Policy.allowed_values and Policy.denied_values. For example, "in:Python" would match any value in the 'Python' group.
Returns
  • (::Boolean) — Indicates whether values grouped into categories can be used in Policy.allowed_values and Policy.denied_values. For example, "in:Python" would match any value in the 'Python' group.

#supports_under

def supports_under() -> ::Boolean
Returns
  • (::Boolean) — Indicates whether subtrees of Cloud Resource Manager resource hierarchy can be used in Policy.allowed_values and Policy.denied_values. For example, "under:folders/123" would match any resource under the 'folders/123' folder.

#supports_under=

def supports_under=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Indicates whether subtrees of Cloud Resource Manager resource hierarchy can be used in Policy.allowed_values and Policy.denied_values. For example, "under:folders/123" would match any resource under the 'folders/123' folder.
Returns
  • (::Boolean) — Indicates whether subtrees of Cloud Resource Manager resource hierarchy can be used in Policy.allowed_values and Policy.denied_values. For example, "under:folders/123" would match any resource under the 'folders/123' folder.