tencentcloud-sdk-tke 3.0.1079 → 3.0.1081

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: 9950fa5b72b33a3feceaa338549b9324a261831b
4
- data.tar.gz: 570d2fb51abf67bdc07b0b4945e3009aaa5751fe
3
+ metadata.gz: 260ff37d2668180e9397dec756f6ca371787371b
4
+ data.tar.gz: 217b2b77fc24418a150aafffc64bbcf3a0475786
5
5
  SHA512:
6
- metadata.gz: 81c612097a60ba6d8a97fd2992bad21bf917ef72a9e0b19110e25102862c3c9c66624b6f08500dce8f994cf39051e61bb9b3c40bb61f86dff91472dc8e0042f1
7
- data.tar.gz: 552e46cbe627f62af296b02dd003cb79f27ac0a94ae335f358adf2d754fe672fb438488b894df730c4429da337136c05653d75fa7ccbca2151e796f204d7ba00
6
+ metadata.gz: 1e51e42d45979286fd15d8176d46c8a0966c3ad211da2f966dc22889db2fe1662a78ce3430acc2da660cced012ae01a00b9b792b4a3f87e1d389b3549c772e51
7
+ data.tar.gz: ef0f22d62e6ff9083ba836923dc1f8bfa0d87636f9ef803d05d15695a92f53b4c7a22f471eabe8e6f83875bf3e2d5b226edcb9ce42a549d47c82b9061c2ad114
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.1079
1
+ 3.0.1081
@@ -2981,6 +2981,30 @@ module TencentCloud
2981
2981
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
2982
2982
  end
2983
2983
 
2984
+ # 进行master组件停机故障演练时,获取master组件运行状态,支持kube-apiserver、kube-scheduler、kube-controller-manager
2985
+
2986
+ # @param request: Request instance for DescribeMasterComponent.
2987
+ # @type request: :class:`Tencentcloud::tke::V20180525::DescribeMasterComponentRequest`
2988
+ # @rtype: :class:`Tencentcloud::tke::V20180525::DescribeMasterComponentResponse`
2989
+ def DescribeMasterComponent(request)
2990
+ body = send_request('DescribeMasterComponent', request.serialize)
2991
+ response = JSON.parse(body)
2992
+ if response['Response'].key?('Error') == false
2993
+ model = DescribeMasterComponentResponse.new
2994
+ model.deserialize(response['Response'])
2995
+ model
2996
+ else
2997
+ code = response['Response']['Error']['Code']
2998
+ message = response['Response']['Error']['Message']
2999
+ reqid = response['Response']['RequestId']
3000
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
3001
+ end
3002
+ rescue TencentCloud::Common::TencentCloudSDKException => e
3003
+ raise e
3004
+ rescue StandardError => e
3005
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
3006
+ end
3007
+
2984
3008
  # 获取OS聚合信息
2985
3009
 
2986
3010
  # @param request: Request instance for DescribeOSImages.
@@ -4661,6 +4685,30 @@ module TencentCloud
4661
4685
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4662
4686
  end
4663
4687
 
4688
+ # 修改master组件,支持kube-apiserver、kube-scheduler、kube-controller-manager副本数调整为0和恢复
4689
+
4690
+ # @param request: Request instance for ModifyMasterComponent.
4691
+ # @type request: :class:`Tencentcloud::tke::V20180525::ModifyMasterComponentRequest`
4692
+ # @rtype: :class:`Tencentcloud::tke::V20180525::ModifyMasterComponentResponse`
4693
+ def ModifyMasterComponent(request)
4694
+ body = send_request('ModifyMasterComponent', request.serialize)
4695
+ response = JSON.parse(body)
4696
+ if response['Response'].key?('Error') == false
4697
+ model = ModifyMasterComponentResponse.new
4698
+ model.deserialize(response['Response'])
4699
+ model
4700
+ else
4701
+ code = response['Response']['Error']['Code']
4702
+ message = response['Response']['Error']['Message']
4703
+ reqid = response['Response']['RequestId']
4704
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
4705
+ end
4706
+ rescue TencentCloud::Common::TencentCloudSDKException => e
4707
+ raise e
4708
+ rescue StandardError => e
4709
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
4710
+ end
4711
+
4664
4712
  # 修改节点池关联伸缩组的期望实例数
4665
4713
 
4666
4714
  # @param request: Request instance for ModifyNodePoolDesiredCapacityAboutAsg.
@@ -8084,6 +8084,50 @@ module TencentCloud
8084
8084
  end
8085
8085
  end
8086
8086
 
8087
+ # DescribeMasterComponent请求参数结构体
8088
+ class DescribeMasterComponentRequest < TencentCloud::Common::AbstractModel
8089
+ # @param ClusterId: 集群ID
8090
+ # @type ClusterId: String
8091
+ # @param Component: master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager
8092
+ # @type Component: String
8093
+
8094
+ attr_accessor :ClusterId, :Component
8095
+
8096
+ def initialize(clusterid=nil, component=nil)
8097
+ @ClusterId = clusterid
8098
+ @Component = component
8099
+ end
8100
+
8101
+ def deserialize(params)
8102
+ @ClusterId = params['ClusterId']
8103
+ @Component = params['Component']
8104
+ end
8105
+ end
8106
+
8107
+ # DescribeMasterComponent返回参数结构体
8108
+ class DescribeMasterComponentResponse < TencentCloud::Common::AbstractModel
8109
+ # @param Component: master组件名称
8110
+ # @type Component: String
8111
+ # @param Status: master组件状态,三种状态:running、updating、shutdown
8112
+ # @type Status: String
8113
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
8114
+ # @type RequestId: String
8115
+
8116
+ attr_accessor :Component, :Status, :RequestId
8117
+
8118
+ def initialize(component=nil, status=nil, requestid=nil)
8119
+ @Component = component
8120
+ @Status = status
8121
+ @RequestId = requestid
8122
+ end
8123
+
8124
+ def deserialize(params)
8125
+ @Component = params['Component']
8126
+ @Status = params['Status']
8127
+ @RequestId = params['RequestId']
8128
+ end
8129
+ end
8130
+
8087
8131
  # DescribeOSImages请求参数结构体
8088
8132
  class DescribeOSImagesRequest < TencentCloud::Common::AbstractModel
8089
8133
 
@@ -14107,6 +14151,50 @@ module TencentCloud
14107
14151
  end
14108
14152
  end
14109
14153
 
14154
+ # ModifyMasterComponent请求参数结构体
14155
+ class ModifyMasterComponentRequest < TencentCloud::Common::AbstractModel
14156
+ # @param ClusterId: 集群ID
14157
+ # @type ClusterId: String
14158
+ # @param Component: master组件名称,支持kube-apiserver、kube-scheduler、kube-controller-manager
14159
+ # @type Component: String
14160
+ # @param Operation: 停机或恢复,值只能为:shutdown或restore
14161
+ # @type Operation: String
14162
+ # @param DryRun: 为true时,不真正执行停机或恢复操作
14163
+ # @type DryRun: Boolean
14164
+
14165
+ attr_accessor :ClusterId, :Component, :Operation, :DryRun
14166
+
14167
+ def initialize(clusterid=nil, component=nil, operation=nil, dryrun=nil)
14168
+ @ClusterId = clusterid
14169
+ @Component = component
14170
+ @Operation = operation
14171
+ @DryRun = dryrun
14172
+ end
14173
+
14174
+ def deserialize(params)
14175
+ @ClusterId = params['ClusterId']
14176
+ @Component = params['Component']
14177
+ @Operation = params['Operation']
14178
+ @DryRun = params['DryRun']
14179
+ end
14180
+ end
14181
+
14182
+ # ModifyMasterComponent返回参数结构体
14183
+ class ModifyMasterComponentResponse < TencentCloud::Common::AbstractModel
14184
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
14185
+ # @type RequestId: String
14186
+
14187
+ attr_accessor :RequestId
14188
+
14189
+ def initialize(requestid=nil)
14190
+ @RequestId = requestid
14191
+ end
14192
+
14193
+ def deserialize(params)
14194
+ @RequestId = params['RequestId']
14195
+ end
14196
+ end
14197
+
14110
14198
  # ModifyNodePoolDesiredCapacityAboutAsg请求参数结构体
14111
14199
  class ModifyNodePoolDesiredCapacityAboutAsgRequest < TencentCloud::Common::AbstractModel
14112
14200
  # @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.1079
4
+ version: 3.0.1081
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-06-11 00:00:00.000000000 Z
11
+ date: 2025-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common