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.



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

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)


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

def granted
  @granted
end

#nameString

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

Returns:

  • (String)


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

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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