Class: Google::Apis::ContainerV1::MasterAuth

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

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

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) ⇒ MasterAuth

Returns a new instance of MasterAuth



537
538
539
# File 'generated/google/apis/container_v1/classes.rb', line 537

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

Instance Attribute Details

#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)


516
517
518
# File 'generated/google/apis/container_v1/classes.rb', line 516

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)


529
530
531
# File 'generated/google/apis/container_v1/classes.rb', line 529

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)


535
536
537
# File 'generated/google/apis/container_v1/classes.rb', line 535

def cluster_ca_certificate
  @cluster_ca_certificate
end

#passwordString

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. If a password is provided for cluster creation, username must be non-empty. Corresponds to the JSON property password

Returns:

  • (String)


510
511
512
# File 'generated/google/apis/container_v1/classes.rb', line 510

def password
  @password
end

#usernameString

The username to use for HTTP basic authentication to the master endpoint. For clusters v1.6.0 and later, you can disable basic authentication by providing an empty username. Corresponds to the JSON property username

Returns:

  • (String)


523
524
525
# File 'generated/google/apis/container_v1/classes.rb', line 523

def username
  @username
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



542
543
544
545
546
547
548
# File 'generated/google/apis/container_v1/classes.rb', line 542

def update!(**args)
  @password = args[:password] if args.key?(:password)
  @client_certificate = args[:client_certificate] if args.key?(:client_certificate)
  @username = args[:username] if args.key?(:username)
  @client_key = args[:client_key] if args.key?(:client_key)
  @cluster_ca_certificate = args[:cluster_ca_certificate] if args.key?(:cluster_ca_certificate)
end