Class: Google::Apis::ComputeAlpha::RbacPolicy
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::RbacPolicy
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/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.
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ RbacPolicy
Returns a new instance of RbacPolicy.
25152 25153 25154 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 25152 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
Name of the RbacPolicy.
Corresponds to the JSON property name
25140 25141 25142 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 25140 def name @name end |
#permissions ⇒ Array<Google::Apis::ComputeAlpha::Permission>
The list of permissions.
Corresponds to the JSON property permissions
25145 25146 25147 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 25145 def @permissions end |
#principals ⇒ Array<Google::Apis::ComputeAlpha::Principal>
The list of principals.
Corresponds to the JSON property principals
25150 25151 25152 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 25150 def principals @principals end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
25157 25158 25159 25160 25161 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 25157 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 |