Class: Google::Apis::ContainerV1beta1::MasterAuth

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

Overview

The authentication information for accessing the master. Authentication is either done using HTTP basic authentication or using a bearer token.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ MasterAuth

Returns a new instance of MasterAuth.



320
321
322
# File 'generated/google/apis/container_v1beta1/classes.rb', line 320

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

Instance Attribute Details

#bearer_tokenString

The token used to authenticate API requests to the master. The token is to be included in an HTTP Authorization Header in all requests to the master endpoint. The format of the header is: "Authorization: Bearer ". Corresponds to the JSON property bearerToken

Returns:

  • (String)


287
288
289
# File 'generated/google/apis/container_v1beta1/classes.rb', line 287

def bearer_token
  @bearer_token
end

#client_certificateString

[Output only] Base64 encoded public certificate used by clients to authenticate to the cluster endpoint. Corresponds to the JSON property clientCertificate

Returns:

  • (String)


293
294
295
# File 'generated/google/apis/container_v1beta1/classes.rb', line 293

def client_certificate
  @client_certificate
end

#client_keyString

[Output only] Base64 encoded private key used by clients to authenticate to the cluster endpoint. Corresponds to the JSON property clientKey

Returns:

  • (String)


299
300
301
# File 'generated/google/apis/container_v1beta1/classes.rb', line 299

def client_key
  @client_key
end

#cluster_ca_certificateString

[Output only] Base64 encoded public certificate that is the root of trust for the cluster. Corresponds to the JSON property clusterCaCertificate

Returns:

  • (String)


305
306
307
# File 'generated/google/apis/container_v1beta1/classes.rb', line 305

def cluster_ca_certificate
  @cluster_ca_certificate
end

#passwordString

The password to use for HTTP basic authentication when accessing the Kubernetes master endpoint. Because the master endpoint is open to the internet, you should create a strong password. Corresponds to the JSON property password

Returns:

  • (String)


312
313
314
# File 'generated/google/apis/container_v1beta1/classes.rb', line 312

def password
  @password
end

#userString

The username to use for HTTP basic authentication when accessing the Kubernetes master endpoint. Corresponds to the JSON property user

Returns:

  • (String)


318
319
320
# File 'generated/google/apis/container_v1beta1/classes.rb', line 318

def user
  @user
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



325
326
327
328
329
330
331
332
# File 'generated/google/apis/container_v1beta1/classes.rb', line 325

def update!(**args)
  @bearer_token = args[:bearer_token] unless args[:bearer_token].nil?
  @client_certificate = args[:client_certificate] unless args[:client_certificate].nil?
  @client_key = args[:client_key] unless args[:client_key].nil?
  @cluster_ca_certificate = args[:cluster_ca_certificate] unless args[:cluster_ca_certificate].nil?
  @password = args[:password] unless args[:password].nil?
  @user = args[:user] unless args[:user].nil?
end