tencentcloud-sdk-tke 3.0.595 → 3.0.596

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3602b9a1c5864867fb346686e0c74bf7c93d186b
4
- data.tar.gz: 2add34b0daf64ce51903366c7c9730c309230a74
3
+ metadata.gz: 56337fe2ed51233c7739b495e30cab9e044f407a
4
+ data.tar.gz: fcf3e5c5486cc976e17a0aa3a92b2ea2a60ab3e1
5
5
  SHA512:
6
- metadata.gz: e2fa019cd66763ffcd3b56a53c10f9dcd8a9aaed072078caf68b73bed5d3f3f25e3276de510dbfa1daf01cccc12d4e5700ee2dd4a0ae4ed66b124bc627ae661a
7
- data.tar.gz: ce489df4df31b818064e55e288fae1786d2285ad8a8d9e59407065ed860306933aef4160dbbd70e9ecbc73ac0dd65a4159871b0f8119655606ff977fa37b38a8
6
+ metadata.gz: 14d9e68feb4b175c5cd4ca2c3308f486a805165376f8aaa984d68e3b36cb68952aa6646f3169a22a35fea454305403707c49ce4c2275e6d785ea5b0ebbf1d552
7
+ data.tar.gz: b2e3f4c63458cb06b09656f58097d8f28d672cff68c8bc9d7c1b49050340056e4648cefa379a35ca90d0e1004db590790a7df0227640edac38c7f304c55ebcc5
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.595
1
+ 3.0.596
@@ -869,6 +869,30 @@ module TencentCloud
869
869
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
870
870
  end
871
871
 
872
+ # 删除一个addon
873
+
874
+ # @param request: Request instance for DeleteAddon.
875
+ # @type request: :class:`Tencentcloud::tke::V20180525::DeleteAddonRequest`
876
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DeleteAddonResponse`
877
+ def DeleteAddon(request)
878
+ body = send_request('DeleteAddon', request.serialize)
879
+ response = JSON.parse(body)
880
+ if response['Response'].key?('Error') == false
881
+ model = DeleteAddonResponse.new
882
+ model.deserialize(response['Response'])
883
+ model
884
+ else
885
+ code = response['Response']['Error']['Code']
886
+ message = response['Response']['Error']['Message']
887
+ reqid = response['Response']['RequestId']
888
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
889
+ end
890
+ rescue TencentCloud::Common::TencentCloudSDKException => e
891
+ raise e
892
+ rescue StandardError => e
893
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
894
+ end
895
+
872
896
  # 删除备份仓库
873
897
 
874
898
  # @param request: Request instance for DeleteBackupStorageLocation.
@@ -1517,6 +1541,54 @@ module TencentCloud
1517
1541
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1518
1542
  end
1519
1543
 
1544
+ # 获取addon列表
1545
+
1546
+ # @param request: Request instance for DescribeAddon.
1547
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribeAddonRequest`
1548
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribeAddonResponse`
1549
+ def DescribeAddon(request)
1550
+ body = send_request('DescribeAddon', request.serialize)
1551
+ response = JSON.parse(body)
1552
+ if response['Response'].key?('Error') == false
1553
+ model = DescribeAddonResponse.new
1554
+ model.deserialize(response['Response'])
1555
+ model
1556
+ else
1557
+ code = response['Response']['Error']['Code']
1558
+ message = response['Response']['Error']['Message']
1559
+ reqid = response['Response']['RequestId']
1560
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1561
+ end
1562
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1563
+ raise e
1564
+ rescue StandardError => e
1565
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1566
+ end
1567
+
1568
+ # 获取一个addon的参数
1569
+
1570
+ # @param request: Request instance for DescribeAddonValues.
1571
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribeAddonValuesRequest`
1572
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribeAddonValuesResponse`
1573
+ def DescribeAddonValues(request)
1574
+ body = send_request('DescribeAddonValues', request.serialize)
1575
+ response = JSON.parse(body)
1576
+ if response['Response'].key?('Error') == false
1577
+ model = DescribeAddonValuesResponse.new
1578
+ model.deserialize(response['Response'])
1579
+ model
1580
+ else
1581
+ code = response['Response']['Error']['Code']
1582
+ message = response['Response']['Error']['Message']
1583
+ reqid = response['Response']['RequestId']
1584
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1585
+ end
1586
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1587
+ raise e
1588
+ rescue StandardError => e
1589
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1590
+ end
1591
+
1520
1592
  # 获取集群可以升级的所有版本
1521
1593
 
1522
1594
  # @param request: Request instance for DescribeAvailableClusterVersion.
@@ -3773,6 +3845,30 @@ module TencentCloud
3773
3845
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3774
3846
  end
3775
3847
 
3848
+ # 为目标集群安装一个addon
3849
+
3850
+ # @param request: Request instance for InstallAddon.
3851
+ # @type request: :class:`Tencentcloud::tke::V20180525::InstallAddonRequest`
3852
+ # @rtype: :class:`Tencentcloud::tke::V20180525::InstallAddonResponse`
3853
+ def InstallAddon(request)
3854
+ body = send_request('InstallAddon', request.serialize)
3855
+ response = JSON.parse(body)
3856
+ if response['Response'].key?('Error') == false
3857
+ model = InstallAddonResponse.new
3858
+ model.deserialize(response['Response'])
3859
+ model
3860
+ else
3861
+ code = response['Response']['Error']['Code']
3862
+ message = response['Response']['Error']['Message']
3863
+ reqid = response['Response']['RequestId']
3864
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3865
+ end
3866
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3867
+ raise e
3868
+ rescue StandardError => e
3869
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3870
+ end
3871
+
3776
3872
  # 在tke@edge集群的边缘节点上安装日志采集组件
3777
3873
 
3778
3874
  # @param request: Request instance for InstallEdgeLogAgent.
@@ -4565,6 +4661,30 @@ module TencentCloud
4565
4661
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4566
4662
  end
4567
4663
 
4664
+ # 更新一个addon的参数和版本
4665
+
4666
+ # @param request: Request instance for UpdateAddon.
4667
+ # @type request: :class:`Tencentcloud::tke::V20180525::UpdateAddonRequest`
4668
+ # @rtype: :class:`Tencentcloud::tke::V20180525::UpdateAddonResponse`
4669
+ def UpdateAddon(request)
4670
+ body = send_request('UpdateAddon', request.serialize)
4671
+ response = JSON.parse(body)
4672
+ if response['Response'].key?('Error') == false
4673
+ model = UpdateAddonResponse.new
4674
+ model.deserialize(response['Response'])
4675
+ model
4676
+ else
4677
+ code = response['Response']['Error']['Code']
4678
+ message = response['Response']['Error']['Message']
4679
+ reqid = response['Response']['RequestId']
4680
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4681
+ end
4682
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4683
+ raise e
4684
+ rescue StandardError => e
4685
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4686
+ end
4687
+
4568
4688
  # 对集群的Kubeconfig信息进行更新
4569
4689
 
4570
4690
  # @param request: Request instance for UpdateClusterKubeconfig.
@@ -286,6 +286,41 @@ module TencentCloud
286
286
  end
287
287
  end
288
288
 
289
+ # addon的具体描述
290
+ class Addon < TencentCloud::Common::AbstractModel
291
+ # @param AddonName: addon名称
292
+ # @type AddonName: String
293
+ # @param AddonVersion: addon的版本
294
+ # @type AddonVersion: String
295
+ # @param RawValues: addon的参数,是一个json格式的base64转码后的字符串
296
+ # 注意:此字段可能返回 null,表示取不到有效值。
297
+ # @type RawValues: String
298
+ # @param Phase: addon的状态
299
+ # 注意:此字段可能返回 null,表示取不到有效值。
300
+ # @type Phase: String
301
+ # @param Reason: addon失败的原因
302
+ # 注意:此字段可能返回 null,表示取不到有效值。
303
+ # @type Reason: String
304
+
305
+ attr_accessor :AddonName, :AddonVersion, :RawValues, :Phase, :Reason
306
+
307
+ def initialize(addonname=nil, addonversion=nil, rawvalues=nil, phase=nil, reason=nil)
308
+ @AddonName = addonname
309
+ @AddonVersion = addonversion
310
+ @RawValues = rawvalues
311
+ @Phase = phase
312
+ @Reason = reason
313
+ end
314
+
315
+ def deserialize(params)
316
+ @AddonName = params['AddonName']
317
+ @AddonVersion = params['AddonVersion']
318
+ @RawValues = params['RawValues']
319
+ @Phase = params['Phase']
320
+ @Reason = params['Reason']
321
+ end
322
+ end
323
+
289
324
  # app所支持的chart
290
325
  class AppChart < TencentCloud::Common::AbstractModel
291
326
  # @param Name: chart名称
@@ -3662,6 +3697,42 @@ module TencentCloud
3662
3697
  end
3663
3698
  end
3664
3699
 
3700
+ # DeleteAddon请求参数结构体
3701
+ class DeleteAddonRequest < TencentCloud::Common::AbstractModel
3702
+ # @param ClusterId: 集群ID
3703
+ # @type ClusterId: String
3704
+ # @param AddonName: addon名称
3705
+ # @type AddonName: String
3706
+
3707
+ attr_accessor :ClusterId, :AddonName
3708
+
3709
+ def initialize(clusterid=nil, addonname=nil)
3710
+ @ClusterId = clusterid
3711
+ @AddonName = addonname
3712
+ end
3713
+
3714
+ def deserialize(params)
3715
+ @ClusterId = params['ClusterId']
3716
+ @AddonName = params['AddonName']
3717
+ end
3718
+ end
3719
+
3720
+ # DeleteAddon返回参数结构体
3721
+ class DeleteAddonResponse < TencentCloud::Common::AbstractModel
3722
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3723
+ # @type RequestId: String
3724
+
3725
+ attr_accessor :RequestId
3726
+
3727
+ def initialize(requestid=nil)
3728
+ @RequestId = requestid
3729
+ end
3730
+
3731
+ def deserialize(params)
3732
+ @RequestId = params['RequestId']
3733
+ end
3734
+ end
3735
+
3665
3736
  # DeleteBackupStorageLocation请求参数结构体
3666
3737
  class DeleteBackupStorageLocationRequest < TencentCloud::Common::AbstractModel
3667
3738
  # @param Name: 备份仓库名称
@@ -4697,6 +4768,97 @@ module TencentCloud
4697
4768
  end
4698
4769
  end
4699
4770
 
4771
+ # DescribeAddon请求参数结构体
4772
+ class DescribeAddonRequest < TencentCloud::Common::AbstractModel
4773
+ # @param ClusterId: 集群ID
4774
+ # @type ClusterId: String
4775
+ # @param AddonName: addon名称(不传时会返回集群下全部的addon)
4776
+ # @type AddonName: String
4777
+
4778
+ attr_accessor :ClusterId, :AddonName
4779
+
4780
+ def initialize(clusterid=nil, addonname=nil)
4781
+ @ClusterId = clusterid
4782
+ @AddonName = addonname
4783
+ end
4784
+
4785
+ def deserialize(params)
4786
+ @ClusterId = params['ClusterId']
4787
+ @AddonName = params['AddonName']
4788
+ end
4789
+ end
4790
+
4791
+ # DescribeAddon返回参数结构体
4792
+ class DescribeAddonResponse < TencentCloud::Common::AbstractModel
4793
+ # @param Addons: addon列表
4794
+ # @type Addons: Array
4795
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4796
+ # @type RequestId: String
4797
+
4798
+ attr_accessor :Addons, :RequestId
4799
+
4800
+ def initialize(addons=nil, requestid=nil)
4801
+ @Addons = addons
4802
+ @RequestId = requestid
4803
+ end
4804
+
4805
+ def deserialize(params)
4806
+ unless params['Addons'].nil?
4807
+ @Addons = []
4808
+ params['Addons'].each do |i|
4809
+ addon_tmp = Addon.new
4810
+ addon_tmp.deserialize(i)
4811
+ @Addons << addon_tmp
4812
+ end
4813
+ end
4814
+ @RequestId = params['RequestId']
4815
+ end
4816
+ end
4817
+
4818
+ # DescribeAddonValues请求参数结构体
4819
+ class DescribeAddonValuesRequest < TencentCloud::Common::AbstractModel
4820
+ # @param ClusterId: 集群ID
4821
+ # @type ClusterId: String
4822
+ # @param AddonName: addon名称
4823
+ # @type AddonName: String
4824
+
4825
+ attr_accessor :ClusterId, :AddonName
4826
+
4827
+ def initialize(clusterid=nil, addonname=nil)
4828
+ @ClusterId = clusterid
4829
+ @AddonName = addonname
4830
+ end
4831
+
4832
+ def deserialize(params)
4833
+ @ClusterId = params['ClusterId']
4834
+ @AddonName = params['AddonName']
4835
+ end
4836
+ end
4837
+
4838
+ # DescribeAddonValues返回参数结构体
4839
+ class DescribeAddonValuesResponse < TencentCloud::Common::AbstractModel
4840
+ # @param Values: 参数列表,如果addon已安装,会使用已设置的的参数做渲染,是一个json格式的字符串
4841
+ # @type Values: String
4842
+ # @param DefaultValues: addon支持的参数列表,使用默认值,是一个json格式的字符串
4843
+ # @type DefaultValues: String
4844
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4845
+ # @type RequestId: String
4846
+
4847
+ attr_accessor :Values, :DefaultValues, :RequestId
4848
+
4849
+ def initialize(values=nil, defaultvalues=nil, requestid=nil)
4850
+ @Values = values
4851
+ @DefaultValues = defaultvalues
4852
+ @RequestId = requestid
4853
+ end
4854
+
4855
+ def deserialize(params)
4856
+ @Values = params['Values']
4857
+ @DefaultValues = params['DefaultValues']
4858
+ @RequestId = params['RequestId']
4859
+ end
4860
+ end
4861
+
4700
4862
  # DescribeAvailableClusterVersion请求参数结构体
4701
4863
  class DescribeAvailableClusterVersionRequest < TencentCloud::Common::AbstractModel
4702
4864
  # @param ClusterId: 集群 Id
@@ -11149,6 +11311,50 @@ module TencentCloud
11149
11311
  end
11150
11312
  end
11151
11313
 
11314
+ # InstallAddon请求参数结构体
11315
+ class InstallAddonRequest < TencentCloud::Common::AbstractModel
11316
+ # @param ClusterId: 集群ID
11317
+ # @type ClusterId: String
11318
+ # @param AddonName: addon名称
11319
+ # @type AddonName: String
11320
+ # @param AddonVersion: addon版本(不传默认安装最新版本)
11321
+ # @type AddonVersion: String
11322
+ # @param RawValues: addon的参数,是一个json格式的base64转码后的字符串(addon参数由DescribeAddonValues获取)
11323
+ # @type RawValues: String
11324
+
11325
+ attr_accessor :ClusterId, :AddonName, :AddonVersion, :RawValues
11326
+
11327
+ def initialize(clusterid=nil, addonname=nil, addonversion=nil, rawvalues=nil)
11328
+ @ClusterId = clusterid
11329
+ @AddonName = addonname
11330
+ @AddonVersion = addonversion
11331
+ @RawValues = rawvalues
11332
+ end
11333
+
11334
+ def deserialize(params)
11335
+ @ClusterId = params['ClusterId']
11336
+ @AddonName = params['AddonName']
11337
+ @AddonVersion = params['AddonVersion']
11338
+ @RawValues = params['RawValues']
11339
+ end
11340
+ end
11341
+
11342
+ # InstallAddon返回参数结构体
11343
+ class InstallAddonResponse < TencentCloud::Common::AbstractModel
11344
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
11345
+ # @type RequestId: String
11346
+
11347
+ attr_accessor :RequestId
11348
+
11349
+ def initialize(requestid=nil)
11350
+ @RequestId = requestid
11351
+ end
11352
+
11353
+ def deserialize(params)
11354
+ @RequestId = params['RequestId']
11355
+ end
11356
+ end
11357
+
11152
11358
  # InstallEdgeLogAgent请求参数结构体
11153
11359
  class InstallEdgeLogAgentRequest < TencentCloud::Common::AbstractModel
11154
11360
  # @param ClusterId: 集群ID
@@ -16068,6 +16274,50 @@ module TencentCloud
16068
16274
  end
16069
16275
  end
16070
16276
 
16277
+ # UpdateAddon请求参数结构体
16278
+ class UpdateAddonRequest < TencentCloud::Common::AbstractModel
16279
+ # @param ClusterId: 集群ID
16280
+ # @type ClusterId: String
16281
+ # @param AddonName: addon名称
16282
+ # @type AddonName: String
16283
+ # @param AddonVersion: addon版本(不传默认不更新)
16284
+ # @type AddonVersion: String
16285
+ # @param RawValues: addon的参数,是一个json格式的base64转码后的字符串(addon参数由DescribeAddonValues获取)
16286
+ # @type RawValues: String
16287
+
16288
+ attr_accessor :ClusterId, :AddonName, :AddonVersion, :RawValues
16289
+
16290
+ def initialize(clusterid=nil, addonname=nil, addonversion=nil, rawvalues=nil)
16291
+ @ClusterId = clusterid
16292
+ @AddonName = addonname
16293
+ @AddonVersion = addonversion
16294
+ @RawValues = rawvalues
16295
+ end
16296
+
16297
+ def deserialize(params)
16298
+ @ClusterId = params['ClusterId']
16299
+ @AddonName = params['AddonName']
16300
+ @AddonVersion = params['AddonVersion']
16301
+ @RawValues = params['RawValues']
16302
+ end
16303
+ end
16304
+
16305
+ # UpdateAddon返回参数结构体
16306
+ class UpdateAddonResponse < TencentCloud::Common::AbstractModel
16307
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
16308
+ # @type RequestId: String
16309
+
16310
+ attr_accessor :RequestId
16311
+
16312
+ def initialize(requestid=nil)
16313
+ @RequestId = requestid
16314
+ end
16315
+
16316
+ def deserialize(params)
16317
+ @RequestId = params['RequestId']
16318
+ end
16319
+ end
16320
+
16071
16321
  # UpdateClusterKubeconfig请求参数结构体
16072
16322
  class UpdateClusterKubeconfigRequest < TencentCloud::Common::AbstractModel
16073
16323
  # @param ClusterId: 集群ID
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tke
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.595
4
+ version: 3.0.596
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-19 00:00:00.000000000 Z
11
+ date: 2023-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common