class Google::Apis::CloudresourcemanagerV1::ListConstraint

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

Attributes

suggested_value[RW]

Optional. The Google Cloud Console will try to default to a configuration that matches the value specified in this `Constraint`. Corresponds to the JSON property `suggestedValue` @return [String]

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/cloudresourcemanager_v1/classes.rb, line 982
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

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