Class: Google::Apis::CloudresourcemanagerV1::ListConstraint
- Inherits:
-
Object
- Object
- Google::Apis::CloudresourcemanagerV1::ListConstraint
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/cloudresourcemanager_v1/classes.rb,
generated/google/apis/cloudresourcemanager_v1/representations.rb,
generated/google/apis/cloudresourcemanager_v1/representations.rb
Overview
A Constraint
that allows or disallows a list of string values, which are
configured by an Organization's policy administrator with a Policy
.
Instance Attribute Summary collapse
-
#suggested_value ⇒ String
Optional.
-
#supports_under ⇒ Boolean
(also: #supports_under?)
Indicates whether subtrees of Cloud Resource Manager resource hierarchy can be used in
Policy.allowed_values
andPolicy.denied_values
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ListConstraint
constructor
A new instance of ListConstraint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ListConstraint
Returns a new instance of ListConstraint.
956 957 958 |
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 956 def initialize(**args) update!(**args) end |
Instance Attribute Details
#suggested_value ⇒ String
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
946 947 948 |
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 946 def suggested_value @suggested_value end |
#supports_under ⇒ Boolean Also known as: supports_under?
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
953 954 955 |
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 953 def supports_under @supports_under end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
961 962 963 964 |
# File 'generated/google/apis/cloudresourcemanager_v1/classes.rb', line 961 def update!(**args) @suggested_value = args[:suggested_value] if args.key?(:suggested_value) @supports_under = args[:supports_under] if args.key?(:supports_under) end |