Class: Google::Apis::ContainerV1::SetMasterAuthRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/container_v1/classes.rb,
generated/google/apis/container_v1/representations.rb,
generated/google/apis/container_v1/representations.rb

Overview

SetMasterAuthRequest updates the admin password of a cluster.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SetMasterAuthRequest

Returns a new instance of SetMasterAuthRequest



1718
1719
1720
# File 'generated/google/apis/container_v1/classes.rb', line 1718

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

Instance Attribute Details

#actionString

The exact form of action to be taken on the master auth. Corresponds to the JSON property action

Returns:

  • (String)


1709
1710
1711
# File 'generated/google/apis/container_v1/classes.rb', line 1709

def action
  @action
end

#updateGoogle::Apis::ContainerV1::MasterAuth

The authentication information for accessing the master endpoint. Authentication can be done using HTTP basic auth or using client certificates. Corresponds to the JSON property update



1716
1717
1718
# File 'generated/google/apis/container_v1/classes.rb', line 1716

def update
  @update
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1723
1724
1725
1726
# File 'generated/google/apis/container_v1/classes.rb', line 1723

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