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_values
andPolicy.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.
284 285 286 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 284 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
273 274 275 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 273 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
281 282 283 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 281 def supports_under @supports_under end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
289 290 291 292 |
# File 'lib/google/apis/orgpolicy_v2/classes.rb', line 289 def update!(**args) @supports_in = args[:supports_in] if args.key?(:supports_in) @supports_under = args[:supports_under] if args.key?(:supports_under) end |