Class: Google::Apis::GkeonpremV1::BareMetalAdminApiServerArgument

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/gkeonprem_v1/classes.rb,
lib/google/apis/gkeonprem_v1/representations.rb,
lib/google/apis/gkeonprem_v1/representations.rb

Overview

BareMetalAdminApiServerArgument represents an arg name->value pair. Only a subset of customized flags are supported. Please refer to the API server documentation below to know the exact format: https://kubernetes.io/docs/ reference/command-line-tools-reference/kube-apiserver/

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalAdminApiServerArgument

Returns a new instance of BareMetalAdminApiServerArgument.



67
68
69
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 67

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

Instance Attribute Details

#argumentString

Required. The argument name as it appears on the API Server command line please make sure to remove the leading dashes. Corresponds to the JSON property argument

Returns:

  • (String)


59
60
61
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 59

def argument
  @argument
end

#valueString

Required. The value of the arg as it will be passed to the API Server command line. Corresponds to the JSON property value

Returns:

  • (String)


65
66
67
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 65

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



72
73
74
75
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 72

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