Class: Google::Apis::ComputeAlpha::RbacPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::RbacPolicy
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb
Instance Attribute Summary collapse
-
#name ⇒ String
Name of the RbacPolicy.
-
#permissions ⇒ Array<Google::Apis::ComputeAlpha::Permission>
The list of permissions.
-
#principals ⇒ Array<Google::Apis::ComputeAlpha::Principal>
The list of principals.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RbacPolicy
constructor
A new instance of RbacPolicy.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RbacPolicy
Returns a new instance of RbacPolicy.
30700 30701 30702 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30700 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the RbacPolicy.
Corresponds to the JSON property name
30688 30689 30690 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30688 def name @name end |
#permissions ⇒ Array<Google::Apis::ComputeAlpha::Permission>
The list of permissions.
Corresponds to the JSON property permissions
30693 30694 30695 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30693 def @permissions end |
#principals ⇒ Array<Google::Apis::ComputeAlpha::Principal>
The list of principals.
Corresponds to the JSON property principals
30698 30699 30700 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30698 def principals @principals end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
30705 30706 30707 30708 30709 |
# File 'lib/google/apis/compute_alpha/classes.rb', line 30705 def update!(**args) @name = args[:name] if args.key?(:name) @permissions = args[:permissions] if args.key?(:permissions) @principals = args[:principals] if args.key?(:principals) end |