Class: Google::Apis::IamV2::GoogleIamV2PolicyRule
- Inherits:
-
Object
- Object
- Google::Apis::IamV2::GoogleIamV2PolicyRule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/iam_v2/classes.rb,
lib/google/apis/iam_v2/representations.rb,
lib/google/apis/iam_v2/representations.rb
Overview
A single rule in a Policy.
Instance Attribute Summary collapse
-
#deny_rule ⇒ Google::Apis::IamV2::GoogleIamV2DenyRule
A deny rule in an IAM deny policy.
-
#description ⇒ String
A user-specified description of the rule.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleIamV2PolicyRule
constructor
A new instance of GoogleIamV2PolicyRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleIamV2PolicyRule
Returns a new instance of GoogleIamV2PolicyRule.
481 482 483 |
# File 'lib/google/apis/iam_v2/classes.rb', line 481 def initialize(**args) update!(**args) end |
Instance Attribute Details
#deny_rule ⇒ Google::Apis::IamV2::GoogleIamV2DenyRule
A deny rule in an IAM deny policy.
Corresponds to the JSON property denyRule
473 474 475 |
# File 'lib/google/apis/iam_v2/classes.rb', line 473 def deny_rule @deny_rule end |
#description ⇒ String
A user-specified description of the rule. This value can be up to 256
characters.
Corresponds to the JSON property description
479 480 481 |
# File 'lib/google/apis/iam_v2/classes.rb', line 479 def description @description end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
486 487 488 489 |
# File 'lib/google/apis/iam_v2/classes.rb', line 486 def update!(**args) @deny_rule = args[:deny_rule] if args.key?(:deny_rule) @description = args[:description] if args.key?(:description) end |