Class: Google::Apis::GkehubV1::Role
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1::Role
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1/classes.rb,
lib/google/apis/gkehub_v1/representations.rb,
lib/google/apis/gkehub_v1/representations.rb
Overview
Role is the type for Kubernetes roles
Instance Attribute Summary collapse
-
#predefined_role ⇒ String
predefined_role is the Kubernetes default role to use Corresponds to the JSON property
predefinedRole
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Role
constructor
A new instance of Role.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Role
Returns a new instance of Role.
5205 5206 5207 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 5205 def initialize(**args) update!(**args) end |
Instance Attribute Details
#predefined_role ⇒ String
predefined_role is the Kubernetes default role to use
Corresponds to the JSON property predefinedRole
5203 5204 5205 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 5203 def predefined_role @predefined_role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5210 5211 5212 |
# File 'lib/google/apis/gkehub_v1/classes.rb', line 5210 def update!(**args) @predefined_role = args[:predefined_role] if args.key?(:predefined_role) end |