class Google::Apis::ContainerV1::MasterAuth

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

Attributes

client_certificate[RW]
Output only

Base64-encoded public certificate used by clients to

authenticate to the cluster endpoint. Corresponds to the JSON property `clientCertificate` @return [String]

client_key[RW]
Output only

Base64-encoded private key used by clients to authenticate to

the cluster endpoint. Corresponds to the JSON property `clientKey` @return [String]

cluster_ca_certificate[RW]
Output only

Base64-encoded public certificate that is the root of trust for

the cluster. Corresponds to the JSON property `clusterCaCertificate` @return [String]

password[RW]

The password to use for HTTP basic authentication to the master endpoint. Because the master endpoint is open to the Internet, you should create a strong password. Corresponds to the JSON property `password` @return [String]

username[RW]

The username to use for HTTP basic authentication to the master endpoint. Corresponds to the JSON property `username` @return [String]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/container_v1/classes.rb, line 334
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/container_v1/classes.rb, line 339
def update!(**args)
  @username = args[:username] if args.key?(:username)
  @password = args[:password] if args.key?(:password)
  @cluster_ca_certificate = args[:cluster_ca_certificate] if args.key?(:cluster_ca_certificate)
  @client_certificate = args[:client_certificate] if args.key?(:client_certificate)
  @client_key = args[:client_key] if args.key?(:client_key)
end