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.



1389
1390
1391
1392
# File 'lib/v20180525/models.rb', line 1389

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

Instance Attribute Details

#CACertObject

Parameters:

  • CACert:

    CA 根证书

  • Token:

    认证用的Token



1387
1388
1389
# File 'lib/v20180525/models.rb', line 1387

def CACert
  @CACert
end

#TokenObject

Parameters:

  • CACert:

    CA 根证书

  • Token:

    认证用的Token



1387
1388
1389
# File 'lib/v20180525/models.rb', line 1387

def Token
  @Token
end

Instance Method Details

#deserialize(params) ⇒ Object



1394
1395
1396
1397
# File 'lib/v20180525/models.rb', line 1394

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