tencentcloud-sdk-tke 1.0.210 → 1.0.214

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 841078a36ddacbdfdf0e09cebe6660c80f828ba9
4
- data.tar.gz: 1414ab3e4dffc7696cdcc4d8af0dfb5dd353d688
3
+ metadata.gz: 593bb93fa98229a680d4712ba47105e459add0f1
4
+ data.tar.gz: d092add5d0baccdba0799cd1a646b455cb3daf2b
5
5
  SHA512:
6
- metadata.gz: 1de465e8e453b3aa53431f94b6b9d70243fd2b3e17529310396a1ca3d1a2c1a49a38a50a1fe794fa2df132c707dd09d071e8c1c7931d3c3c54ca3e51a006f9a5
7
- data.tar.gz: 17d632f5b31b8aa2bf5386eba6b4cecf666f9ea75cb84efd304c89a191f293b5db5f8278bfea68029355504d8c7184da16785fce3fc323ce742e3b4903e026e2
6
+ metadata.gz: 3d2fe3c77d62171ca31c6c95d605759b0a70333223dbf752f37dde0ce3e28bd9cf8fe02440f47464b89321f24624ff0f263c2026f2f556329a5b753f8bca7aed
7
+ data.tar.gz: 1349be1c05b20529d64cf04c86285451afb03ecf06a03ca0f44a847d50798309700308bd7e42625bec3aae63b9bde48efb3edf0c42dcb6033185e88f9c1b52a7
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.210
1
+ 1.0.214
@@ -1757,6 +1757,30 @@ module TencentCloud
1757
1757
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1758
1758
  end
1759
1759
 
1760
+ # 关闭集群删除保护
1761
+
1762
+ # @param request: Request instance for DisableClusterDeletionProtection.
1763
+ # @type request: :class:`Tencentcloud::tke::V20180525::DisableClusterDeletionProtectionRequest`
1764
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DisableClusterDeletionProtectionResponse`
1765
+ def DisableClusterDeletionProtection(request)
1766
+ body = send_request('DisableClusterDeletionProtection', request.serialize)
1767
+ response = JSON.parse(body)
1768
+ if response['Response'].key?('Error') == false
1769
+ model = DisableClusterDeletionProtectionResponse.new
1770
+ model.deserialize(response['Response'])
1771
+ model
1772
+ else
1773
+ code = response['Response']['Error']['Code']
1774
+ message = response['Response']['Error']['Message']
1775
+ reqid = response['Response']['RequestId']
1776
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1777
+ end
1778
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1779
+ raise e
1780
+ rescue StandardError => e
1781
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1782
+ end
1783
+
1760
1784
  # 提供给附加了VPC-CNI能力的Global-Route集群关闭VPC-CNI
1761
1785
 
1762
1786
  # @param request: Request instance for DisableVpcCniNetworkType.
@@ -1781,6 +1805,30 @@ module TencentCloud
1781
1805
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1782
1806
  end
1783
1807
 
1808
+ # 启用集群删除保护
1809
+
1810
+ # @param request: Request instance for EnableClusterDeletionProtection.
1811
+ # @type request: :class:`Tencentcloud::tke::V20180525::EnableClusterDeletionProtectionRequest`
1812
+ # @rtype: :class:`Tencentcloud::tke::V20180525::EnableClusterDeletionProtectionResponse`
1813
+ def EnableClusterDeletionProtection(request)
1814
+ body = send_request('EnableClusterDeletionProtection', request.serialize)
1815
+ response = JSON.parse(body)
1816
+ if response['Response'].key?('Error') == false
1817
+ model = EnableClusterDeletionProtectionResponse.new
1818
+ model.deserialize(response['Response'])
1819
+ model
1820
+ else
1821
+ code = response['Response']['Error']['Code']
1822
+ message = response['Response']['Error']['Message']
1823
+ reqid = response['Response']['RequestId']
1824
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1825
+ end
1826
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1827
+ raise e
1828
+ rescue StandardError => e
1829
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1830
+ end
1831
+
1784
1832
  # GR集群可以通过本接口附加vpc-cni容器网络插件,开启vpc-cni容器网络能力
1785
1833
 
1786
1834
  # @param request: Request instance for EnableVpcCniNetworkType.
@@ -1805,6 +1853,54 @@ module TencentCloud
1805
1853
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1806
1854
  end
1807
1855
 
1856
+ # 操作TKE集群的addon
1857
+
1858
+ # @param request: Request instance for ForwardApplicationRequestV3.
1859
+ # @type request: :class:`Tencentcloud::tke::V20180525::ForwardApplicationRequestV3Request`
1860
+ # @rtype: :class:`Tencentcloud::tke::V20180525::ForwardApplicationRequestV3Response`
1861
+ def ForwardApplicationRequestV3(request)
1862
+ body = send_request('ForwardApplicationRequestV3', request.serialize)
1863
+ response = JSON.parse(body)
1864
+ if response['Response'].key?('Error') == false
1865
+ model = ForwardApplicationRequestV3Response.new
1866
+ model.deserialize(response['Response'])
1867
+ model
1868
+ else
1869
+ code = response['Response']['Error']['Code']
1870
+ message = response['Response']['Error']['Message']
1871
+ reqid = response['Response']['RequestId']
1872
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1873
+ end
1874
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1875
+ raise e
1876
+ rescue StandardError => e
1877
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1878
+ end
1879
+
1880
+ # 获取TKE支持的App列表
1881
+
1882
+ # @param request: Request instance for GetTkeAppChartList.
1883
+ # @type request: :class:`Tencentcloud::tke::V20180525::GetTkeAppChartListRequest`
1884
+ # @rtype: :class:`Tencentcloud::tke::V20180525::GetTkeAppChartListResponse`
1885
+ def GetTkeAppChartList(request)
1886
+ body = send_request('GetTkeAppChartList', request.serialize)
1887
+ response = JSON.parse(body)
1888
+ if response['Response'].key?('Error') == false
1889
+ model = GetTkeAppChartListResponse.new
1890
+ model.deserialize(response['Response'])
1891
+ model
1892
+ else
1893
+ code = response['Response']['Error']['Code']
1894
+ message = response['Response']['Error']['Message']
1895
+ reqid = response['Response']['RequestId']
1896
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
1897
+ end
1898
+ rescue TencentCloud::Common::TencentCloudSDKException => e
1899
+ raise e
1900
+ rescue StandardError => e
1901
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
1902
+ end
1903
+
1808
1904
  # 获得节点升级当前的进度
1809
1905
 
1810
1906
  # @param request: Request instance for GetUpgradeInstanceProgress.
@@ -278,6 +278,31 @@ module TencentCloud
278
278
  end
279
279
  end
280
280
 
281
+ # app所支持的chart
282
+ class AppChart < TencentCloud::Common::AbstractModel
283
+ # @param Name: chart名称
284
+ # @type Name: String
285
+ # @param Label: chart的标签
286
+ # 注意:此字段可能返回 null,表示取不到有效值。
287
+ # @type Label: String
288
+ # @param LatestVersion: chart的版本
289
+ # @type LatestVersion: String
290
+
291
+ attr_accessor :Name, :Label, :LatestVersion
292
+
293
+ def initialize(name=nil, label=nil, latestversion=nil)
294
+ @Name = name
295
+ @Label = label
296
+ @LatestVersion = latestversion
297
+ end
298
+
299
+ def deserialize(params)
300
+ @Name = params['Name']
301
+ @Label = params['Label']
302
+ @LatestVersion = params['LatestVersion']
303
+ end
304
+ end
305
+
281
306
  # 集群关联的伸缩组最大实例数最小值实例数
282
307
  class AutoScalingGroupRange < TencentCloud::Common::AbstractModel
283
308
  # @param MinSize: 伸缩组最小实例数
@@ -4908,6 +4933,38 @@ module TencentCloud
4908
4933
  end
4909
4934
  end
4910
4935
 
4936
+ # DisableClusterDeletionProtection请求参数结构体
4937
+ class DisableClusterDeletionProtectionRequest < TencentCloud::Common::AbstractModel
4938
+ # @param ClusterId: 集群ID
4939
+ # @type ClusterId: String
4940
+
4941
+ attr_accessor :ClusterId
4942
+
4943
+ def initialize(clusterid=nil)
4944
+ @ClusterId = clusterid
4945
+ end
4946
+
4947
+ def deserialize(params)
4948
+ @ClusterId = params['ClusterId']
4949
+ end
4950
+ end
4951
+
4952
+ # DisableClusterDeletionProtection返回参数结构体
4953
+ class DisableClusterDeletionProtectionResponse < TencentCloud::Common::AbstractModel
4954
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
4955
+ # @type RequestId: String
4956
+
4957
+ attr_accessor :RequestId
4958
+
4959
+ def initialize(requestid=nil)
4960
+ @RequestId = requestid
4961
+ end
4962
+
4963
+ def deserialize(params)
4964
+ @RequestId = params['RequestId']
4965
+ end
4966
+ end
4967
+
4911
4968
  # DisableVpcCniNetworkType请求参数结构体
4912
4969
  class DisableVpcCniNetworkTypeRequest < TencentCloud::Common::AbstractModel
4913
4970
  # @param ClusterId: 集群ID
@@ -5272,6 +5329,38 @@ module TencentCloud
5272
5329
  end
5273
5330
  end
5274
5331
 
5332
+ # EnableClusterDeletionProtection请求参数结构体
5333
+ class EnableClusterDeletionProtectionRequest < TencentCloud::Common::AbstractModel
5334
+ # @param ClusterId: 集群ID
5335
+ # @type ClusterId: String
5336
+
5337
+ attr_accessor :ClusterId
5338
+
5339
+ def initialize(clusterid=nil)
5340
+ @ClusterId = clusterid
5341
+ end
5342
+
5343
+ def deserialize(params)
5344
+ @ClusterId = params['ClusterId']
5345
+ end
5346
+ end
5347
+
5348
+ # EnableClusterDeletionProtection返回参数结构体
5349
+ class EnableClusterDeletionProtectionResponse < TencentCloud::Common::AbstractModel
5350
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5351
+ # @type RequestId: String
5352
+
5353
+ attr_accessor :RequestId
5354
+
5355
+ def initialize(requestid=nil)
5356
+ @RequestId = requestid
5357
+ end
5358
+
5359
+ def deserialize(params)
5360
+ @RequestId = params['RequestId']
5361
+ end
5362
+ end
5363
+
5275
5364
  # EnableVpcCniNetworkType请求参数结构体
5276
5365
  class EnableVpcCniNetworkTypeRequest < TencentCloud::Common::AbstractModel
5277
5366
  # @param ClusterId: 集群ID
@@ -5642,6 +5731,118 @@ module TencentCloud
5642
5731
  end
5643
5732
  end
5644
5733
 
5734
+ # ForwardApplicationRequestV3请求参数结构体
5735
+ class ForwardApplicationRequestV3Request < TencentCloud::Common::AbstractModel
5736
+ # @param Method: 请求集群addon的访问
5737
+ # @type Method: String
5738
+ # @param Path: 请求集群addon的路径
5739
+ # @type Path: String
5740
+ # @param Accept: 请求集群addon后允许接收的数据格式
5741
+ # @type Accept: String
5742
+ # @param ContentType: 请求集群addon的数据格式
5743
+ # @type ContentType: String
5744
+ # @param RequestBody: 请求集群addon的数据
5745
+ # @type RequestBody: String
5746
+ # @param ClusterName: 集群名称
5747
+ # @type ClusterName: String
5748
+ # @param EncodedBody: 是否编码请求内容
5749
+ # @type EncodedBody: String
5750
+
5751
+ attr_accessor :Method, :Path, :Accept, :ContentType, :RequestBody, :ClusterName, :EncodedBody
5752
+
5753
+ def initialize(method=nil, path=nil, accept=nil, contenttype=nil, requestbody=nil, clustername=nil, encodedbody=nil)
5754
+ @Method = method
5755
+ @Path = path
5756
+ @Accept = accept
5757
+ @ContentType = contenttype
5758
+ @RequestBody = requestbody
5759
+ @ClusterName = clustername
5760
+ @EncodedBody = encodedbody
5761
+ end
5762
+
5763
+ def deserialize(params)
5764
+ @Method = params['Method']
5765
+ @Path = params['Path']
5766
+ @Accept = params['Accept']
5767
+ @ContentType = params['ContentType']
5768
+ @RequestBody = params['RequestBody']
5769
+ @ClusterName = params['ClusterName']
5770
+ @EncodedBody = params['EncodedBody']
5771
+ end
5772
+ end
5773
+
5774
+ # ForwardApplicationRequestV3返回参数结构体
5775
+ class ForwardApplicationRequestV3Response < TencentCloud::Common::AbstractModel
5776
+ # @param ResponseBody: 请求集群addon后返回的数据
5777
+ # @type ResponseBody: String
5778
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5779
+ # @type RequestId: String
5780
+
5781
+ attr_accessor :ResponseBody, :RequestId
5782
+
5783
+ def initialize(responsebody=nil, requestid=nil)
5784
+ @ResponseBody = responsebody
5785
+ @RequestId = requestid
5786
+ end
5787
+
5788
+ def deserialize(params)
5789
+ @ResponseBody = params['ResponseBody']
5790
+ @RequestId = params['RequestId']
5791
+ end
5792
+ end
5793
+
5794
+ # GetTkeAppChartList请求参数结构体
5795
+ class GetTkeAppChartListRequest < TencentCloud::Common::AbstractModel
5796
+ # @param Kind: app类型,取值log,scheduler,network,storage,monitor,dns,image,other,invisible
5797
+ # @type Kind: String
5798
+ # @param Arch: app支持的操作系统,取值arm32、arm64、amd64
5799
+ # @type Arch: String
5800
+ # @param ClusterType: 集群类型,取值tke、eks
5801
+ # @type ClusterType: String
5802
+
5803
+ attr_accessor :Kind, :Arch, :ClusterType
5804
+
5805
+ def initialize(kind=nil, arch=nil, clustertype=nil)
5806
+ @Kind = kind
5807
+ @Arch = arch
5808
+ @ClusterType = clustertype
5809
+ end
5810
+
5811
+ def deserialize(params)
5812
+ @Kind = params['Kind']
5813
+ @Arch = params['Arch']
5814
+ @ClusterType = params['ClusterType']
5815
+ end
5816
+ end
5817
+
5818
+ # GetTkeAppChartList返回参数结构体
5819
+ class GetTkeAppChartListResponse < TencentCloud::Common::AbstractModel
5820
+ # @param AppCharts: 所支持的chart列表
5821
+ # 注意:此字段可能返回 null,表示取不到有效值。
5822
+ # @type AppCharts: Array
5823
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5824
+ # @type RequestId: String
5825
+
5826
+ attr_accessor :AppCharts, :RequestId
5827
+
5828
+ def initialize(appcharts=nil, requestid=nil)
5829
+ @AppCharts = appcharts
5830
+ @RequestId = requestid
5831
+ end
5832
+
5833
+ def deserialize(params)
5834
+ unless params['AppCharts'].nil?
5835
+ @AppCharts = []
5836
+ params['AppCharts'].each do |i|
5837
+ appchart_tmp = AppChart.new
5838
+ appchart_tmp.deserialize(i)
5839
+ @AppCharts << appchart_tmp
5840
+ end
5841
+ end
5842
+ @RequestId = params['RequestId']
5843
+ end
5844
+ end
5845
+
5645
5846
  # GetUpgradeInstanceProgress请求参数结构体
5646
5847
  class GetUpgradeInstanceProgressRequest < TencentCloud::Common::AbstractModel
5647
5848
  # @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: 1.0.210
4
+ version: 1.0.214
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-25 00:00:00.000000000 Z
11
+ date: 2021-12-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common