class Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintListConstraint

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

Attributes

supports_in[RW]

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. Corresponds to the JSON property `supportsIn` @return [Boolean]

supports_in?[RW]

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. Corresponds to the JSON property `supportsIn` @return [Boolean]

supports_under[RW]

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. Corresponds to the JSON property `supportsUnder` @return [Boolean]

supports_under?[RW]

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. Corresponds to the JSON property `supportsUnder` @return [Boolean]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/orgpolicy_v2/classes.rb, line 129
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/orgpolicy_v2/classes.rb, line 134
def update!(**args)
  @supports_in = args[:supports_in] if args.key?(:supports_in)
  @supports_under = args[:supports_under] if args.key?(:supports_under)
end