Class: Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1OrgPolicyPolicyRule
- Inherits:
-
Object
- Object
- Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1OrgPolicyPolicyRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/assuredworkloads_v1beta1/classes.rb,
lib/google/apis/assuredworkloads_v1beta1/representations.rb,
lib/google/apis/assuredworkloads_v1beta1/representations.rb
Overview
A rule used to express this policy.
Instance Attribute Summary collapse
-
#allow_all ⇒ Boolean
(also: #allow_all?)
ListPolicy only when all values are allowed.
-
#deny_all ⇒ Boolean
(also: #deny_all?)
ListPolicy only when all values are denied.
-
#enforce ⇒ Boolean
(also: #enforce?)
BooleanPolicy only.
-
#values ⇒ Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1OrgPolicyPolicyRuleStringValues
The values allowed for a ListPolicy.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1OrgPolicyPolicyRule
constructor
A new instance of GoogleCloudAssuredworkloadsV1beta1OrgPolicyPolicyRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAssuredworkloadsV1beta1OrgPolicyPolicyRule
Returns a new instance of GoogleCloudAssuredworkloadsV1beta1OrgPolicyPolicyRule.
627 628 629 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 627 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allow_all ⇒ Boolean Also known as: allow_all?
ListPolicy only when all values are allowed.
Corresponds to the JSON property allowAll
607 608 609 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 607 def allow_all @allow_all end |
#deny_all ⇒ Boolean Also known as: deny_all?
ListPolicy only when all values are denied.
Corresponds to the JSON property denyAll
613 614 615 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 613 def deny_all @deny_all end |
#enforce ⇒ Boolean Also known as: enforce?
BooleanPolicy only.
Corresponds to the JSON property enforce
619 620 621 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 619 def enforce @enforce end |
#values ⇒ Google::Apis::AssuredworkloadsV1beta1::GoogleCloudAssuredworkloadsV1beta1OrgPolicyPolicyRuleStringValues
The values allowed for a ListPolicy.
Corresponds to the JSON property values
625 626 627 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 625 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
632 633 634 635 636 637 |
# File 'lib/google/apis/assuredworkloads_v1beta1/classes.rb', line 632 def update!(**args) @allow_all = args[:allow_all] if args.key?(:allow_all) @deny_all = args[:deny_all] if args.key?(:deny_all) @enforce = args[:enforce] if args.key?(:enforce) @values = args[:values] if args.key?(:values) end |