Class: Google::Apis::GkehubV1alpha::Role

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkehub_v1alpha/classes.rb,
lib/google/apis/gkehub_v1alpha/representations.rb,
lib/google/apis/gkehub_v1alpha/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.



6228
6229
6230
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6228

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

Instance Attribute Details

#custom_roleString

Optional. custom_role is the name of a custom KubernetesClusterRole to use. Corresponds to the JSON property customRole

Returns:

  • (String)


6221
6222
6223
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6221

def custom_role
  @custom_role
end

#predefined_roleString

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

Returns:

  • (String)


6226
6227
6228
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6226

def predefined_role
  @predefined_role
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6233
6234
6235
6236
# File 'lib/google/apis/gkehub_v1alpha/classes.rb', line 6233

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