Class: Google::Apis::SecuritycenterV1::GoogleCloudSecuritycenterV2IamBinding

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudSecuritycenterV2IamBinding

Returns a new instance of GoogleCloudSecuritycenterV2IamBinding.



7523
7524
7525
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7523

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

Instance Attribute Details

#actionString

Corresponds to the JSON property action

Returns:

  • (String)


7511
7512
7513
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7511

def action
  @action
end

#memberString

Corresponds to the JSON property member

Returns:

  • (String)


7516
7517
7518
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7516

def member
  @member
end

#roleString

Corresponds to the JSON property role

Returns:

  • (String)


7521
7522
7523
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7521

def role
  @role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7528
7529
7530
7531
7532
# File 'lib/google/apis/securitycenter_v1/classes.rb', line 7528

def update!(**args)
  @action = args[:action] if args.key?(:action)
  @member = args[:member] if args.key?(:member)
  @role = args[:role] if args.key?(:role)
end