Class: Google::Apis::GkehubV1beta::Role

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Role

Returns a new instance of Role.



4901
4902
4903
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 4901

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#predefined_roleString

predefined_role is the Kubernetes default role to use Corresponds to the JSON property predefinedRole

Returns:

  • (String)


4899
4900
4901
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 4899

def predefined_role
  @predefined_role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4906
4907
4908
# File 'lib/google/apis/gkehub_v1beta/classes.rb', line 4906

def update!(**args)
  @predefined_role = args[:predefined_role] if args.key?(:predefined_role)
end