Class: Google::Apis::IamV2beta::GoogleIamV2betaPolicyRule

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

Overview

A single rule in a Policy.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleIamV2betaPolicyRule

Returns a new instance of GoogleIamV2betaPolicyRule.



422
423
424
# File 'lib/google/apis/iam_v2beta/classes.rb', line 422

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

Instance Attribute Details

#deny_ruleGoogle::Apis::IamV2beta::GoogleIamV2betaDenyRule

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



414
415
416
# File 'lib/google/apis/iam_v2beta/classes.rb', line 414

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)


420
421
422
# File 'lib/google/apis/iam_v2beta/classes.rb', line 420

def description
  @description
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



427
428
429
430
# File 'lib/google/apis/iam_v2beta/classes.rb', line 427

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