Class: Google::Apis::WorkloadmanagerV1::IamPermission
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::IamPermission
- 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
-
#granted ⇒ Boolean
(also: #granted?)
Output only.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ IamPermission
constructor
A new instance of IamPermission.
-
#update!(**args) ⇒ Object
Update properties of this object.
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
#granted ⇒ Boolean Also known as: granted?
Output only. Whether the permission is granted.
Corresponds to the JSON property granted
1450 1451 1452 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 1450 def granted @granted end |
#name ⇒ String
Output only. The name of the permission.
Corresponds to the JSON property name
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 |