Class: Google::Apis::GkeonpremV1::BareMetalApiServerArgument

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
more...

Overview

Represents an arg name->value pair. Only a subset of customized flags are supported. For the exact format, refer to the API server documentation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ BareMetalApiServerArgument

Returns a new instance of BareMetalApiServerArgument.

[View source]

773
774
775
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 773

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

Instance Attribute Details

#argumentString

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

Returns:

  • (String)

765
766
767
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 765

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)

771
772
773
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 771

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

778
779
780
781
# File 'lib/google/apis/gkeonprem_v1/classes.rb', line 778

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