Class: Google::Apis::WorkloadmanagerV1::IamPermission

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

Overview

The IAM permission status.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ IamPermission

Returns a new instance of IamPermission.



1459
1460
1461
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1459

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

Instance Attribute Details

#grantedBoolean Also known as: granted?

Output only. Whether the permission is granted. Corresponds to the JSON property granted

Returns:

  • (Boolean)


1451
1452
1453
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1451

def granted
  @granted
end

#nameString

Output only. The name of the permission. Corresponds to the JSON property name

Returns:

  • (String)


1457
1458
1459
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1457

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1464
1465
1466
1467
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1464

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