Class: TencentCloud::Tke::V20180525::ClusterCredential

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20180525/models.rb

Overview

接入k8s 的认证信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cacert = nil, token = nil) ⇒ ClusterCredential

Returns a new instance of ClusterCredential.



1293
1294
1295
1296
# File 'lib/v20180525/models.rb', line 1293

def initialize(cacert=nil, token=nil)
  @CACert = cacert
  @Token = token
end

Instance Attribute Details

#CACertObject

Parameters:

  • CACert:

    CA 根证书

  • Token:

    认证用的Token



1291
1292
1293
# File 'lib/v20180525/models.rb', line 1291

def CACert
  @CACert
end

#TokenObject

Parameters:

  • CACert:

    CA 根证书

  • Token:

    认证用的Token



1291
1292
1293
# File 'lib/v20180525/models.rb', line 1291

def Token
  @Token
end

Instance Method Details

#deserialize(params) ⇒ Object



1298
1299
1300
1301
# File 'lib/v20180525/models.rb', line 1298

def deserialize(params)
  @CACert = params['CACert']
  @Token = params['Token']
end