Class: Google::Apis::GkehubV1beta::Role
- Inherits:
-
Object
- Object
- Google::Apis::GkehubV1beta::Role
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/gkehub_v1beta/classes.rb,
lib/google/apis/gkehub_v1beta/representations.rb,
lib/google/apis/gkehub_v1beta/representations.rb
Overview
Role is the type for Kubernetes roles
Instance Attribute Summary collapse
-
#custom_role ⇒ String
Optional.
-
#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.
5642 5643 5644 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5642 def initialize(**args) update!(**args) end |
Instance Attribute Details
#custom_role ⇒ String
Optional. custom_role is the name of a custom KubernetesClusterRole to use.
Corresponds to the JSON property customRole
5635 5636 5637 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5635 def custom_role @custom_role end |
#predefined_role ⇒ String
predefined_role is the Kubernetes default role to use
Corresponds to the JSON property predefinedRole
5640 5641 5642 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5640 def predefined_role @predefined_role end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5647 5648 5649 5650 |
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 5647 def update!(**args) @custom_role = args[:custom_role] if args.key?(:custom_role) @predefined_role = args[:predefined_role] if args.key?(:predefined_role) end |