Class: Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintListConstraint
- Inherits:
-
Object
- Object
- Google::Apis::OrgpolicyV2::GoogleCloudOrgpolicyV2ConstraintListConstraint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/orgpolicy_v2/classes.rb,
lib/google/apis/orgpolicy_v2/representations.rb,
lib/google/apis/orgpolicy_v2/representations.rb
Overview
A constraint that allows or disallows a list of string values, which are configured by an Organization Policy administrator with a policy.
Instance Attribute Summary collapse
-
#supports_in ⇒ Boolean
(also: #supports_in?)
Indicates whether values grouped into categories can be used in `Policy.
-
#supports_under ⇒ Boolean
(also: #supports_under?)
Indicates whether subtrees of the Resource Manager resource hierarchy can be used in
Policy.allowed_valuesandPolicy.denied_values.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudOrgpolicyV2ConstraintListConstraint
constructor
A new instance of GoogleCloudOrgpolicyV2ConstraintListConstraint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudOrgpolicyV2ConstraintListConstraint
Returns a new instance of GoogleCloudOrgpolicyV2ConstraintListConstraint.
164 165 166 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 164 def initialize(**args) update!(**args) end |
Instance Attribute Details
#supports_in ⇒ Boolean Also known as: supports_in?
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
153 154 155 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 153 def supports_in @supports_in end |
#supports_under ⇒ Boolean Also known as: supports_under?
Indicates whether subtrees of the 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
161 162 163 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 161 def supports_under @supports_under end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
169 170 171 172 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 169 def update!(**args) @supports_in = args[:supports_in] if args.key?(:supports_in) @supports_under = args[:supports_under] if args.key?(:supports_under) end |