class Google::Apis::ContainerV1beta1::MasterAuth

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

Attributes

bearer_token[RW]

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` @return [String]

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 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` @return [String]

user[RW]

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

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/container_v1beta1/classes.rb, line 320
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_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