Class: Google::Apis::PolicytroubleshooterV3::GoogleIamV2PolicyRule

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/policytroubleshooter_v3/classes.rb,
lib/google/apis/policytroubleshooter_v3/representations.rb,
lib/google/apis/policytroubleshooter_v3/representations.rb

Overview

A single rule in a Policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleIamV2PolicyRule

Returns a new instance of GoogleIamV2PolicyRule.



1480
1481
1482
# File 'lib/google/apis/policytroubleshooter_v3/classes.rb', line 1480

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#deny_ruleGoogle::Apis::PolicytroubleshooterV3::GoogleIamV2DenyRule

A deny rule in an IAM deny policy. Corresponds to the JSON property denyRule



1472
1473
1474
# File 'lib/google/apis/policytroubleshooter_v3/classes.rb', line 1472

def deny_rule
  @deny_rule
end

#descriptionString

A user-specified description of the rule. This value can be up to 256 characters. Corresponds to the JSON property description

Returns:

  • (String)


1478
1479
1480
# File 'lib/google/apis/policytroubleshooter_v3/classes.rb', line 1478

def description
  @description
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1485
1486
1487
1488
# File 'lib/google/apis/policytroubleshooter_v3/classes.rb', line 1485

def update!(**args)
  @deny_rule = args[:deny_rule] if args.key?(:deny_rule)
  @description = args[:description] if args.key?(:description)
end