Class: Google::Apis::ContainerV1beta1::MasterAuth
- Inherits:
-
Object
- Object
- Google::Apis::ContainerV1beta1::MasterAuth
- 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
-
#bearer_token ⇒ String
The token used to authenticate API requests to the master.
-
#client_certificate ⇒ String
[Output only] Base64 encoded public certificate used by clients to authenticate to the cluster endpoint.
-
#client_key ⇒ String
[Output only] Base64 encoded private key used by clients to authenticate to the cluster endpoint.
-
#cluster_ca_certificate ⇒ String
[Output only] Base64 encoded public certificate that is the root of trust for the cluster.
-
#password ⇒ String
The password to use for HTTP basic authentication when accessing the Kubernetes master endpoint.
-
#user ⇒ String
The username to use for HTTP basic authentication when accessing the Kubernetes master endpoint.
Instance Method Summary collapse
-
#initialize(**args) ⇒ MasterAuth
constructor
A new instance of MasterAuth.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Google::Apis::Core::Hashable
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_token ⇒ String
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
287 288 289 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 287 def bearer_token @bearer_token end |
#client_certificate ⇒ String
[Output only] Base64 encoded public certificate used by clients to
authenticate to the cluster endpoint.
Corresponds to the JSON property clientCertificate
293 294 295 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 293 def client_certificate @client_certificate end |
#client_key ⇒ String
[Output only] Base64 encoded private key used by clients to authenticate to
the cluster endpoint.
Corresponds to the JSON property clientKey
299 300 301 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 299 def client_key @client_key end |
#cluster_ca_certificate ⇒ String
[Output only] Base64 encoded public certificate that is the root of trust for
the cluster.
Corresponds to the JSON property clusterCaCertificate
305 306 307 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 305 def cluster_ca_certificate @cluster_ca_certificate end |
#password ⇒ String
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
312 313 314 |
# File 'generated/google/apis/container_v1beta1/classes.rb', line 312 def password @password end |
#user ⇒ String
The username to use for HTTP basic authentication when accessing the
Kubernetes master endpoint.
Corresponds to the JSON property user
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 |