tencentcloud-sdk-tke 3.0.943 → 3.0.945

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: 5ac5988d786e0cfad1c2177ec8abbbd9ab0e202b
4
- data.tar.gz: e4449408858b78e872749bf0829ccaf7ecfe06cc
3
+ metadata.gz: 1b8f6380515149d347fa4f66667427d52020bf4b
4
+ data.tar.gz: 28dfdf14d6e038d96d37ad8e954b61120825acf2
5
5
  SHA512:
6
- metadata.gz: a556f7404eaaf7cf23a129424c4c6ee46d7ea08a58191617d1f9031955944559bff5f4d1f3d69d7e217bba225ffd23eda6e5630a502611ffb05508d96370f03d
7
- data.tar.gz: f514d60a897a4137aa40e940367c3637f794b9dd305fdf664234de02abc69bdc7e06bae9adffdc2396e78d040db5d56c503dd2cabe26601e6b892500826c8a2c
6
+ metadata.gz: fc3915bff6562fc69c9bfcb11153dd8435eb3d1087cfeae09387434cfc3326d0775131c4c383d3b34c2cea19cce0c93299ad3ba8d09fd24197b3363a88fc588e
7
+ data.tar.gz: a1e298b1901434baf6e7c0b86ad9336cd1368b758a56ff8020ad1c77ee6a8b125ec2840c3cea5cbbb2dac341c09cf98daf2ee0fbbc847d4babf443be9dd948da
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.943
1
+ 3.0.945
@@ -293,6 +293,89 @@ module TencentCloud
293
293
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
294
294
  end
295
295
 
296
+ # 重启原生节点实例
297
+
298
+ # @param request: Request instance for RebootMachines.
299
+ # @type request: :class:`Tencentcloud::tke::V20220501::RebootMachinesRequest`
300
+ # @rtype: :class:`Tencentcloud::tke::V20220501::RebootMachinesResponse`
301
+ def RebootMachines(request)
302
+ body = send_request('RebootMachines', request.serialize)
303
+ response = JSON.parse(body)
304
+ if response['Response'].key?('Error') == false
305
+ model = RebootMachinesResponse.new
306
+ model.deserialize(response['Response'])
307
+ model
308
+ else
309
+ code = response['Response']['Error']['Code']
310
+ message = response['Response']['Error']['Message']
311
+ reqid = response['Response']['RequestId']
312
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
313
+ end
314
+ rescue TencentCloud::Common::TencentCloudSDKException => e
315
+ raise e
316
+ rescue StandardError => e
317
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
318
+ end
319
+
320
+ # 本接口 (StartMachines) 用于启动一个或多个原生节点实例。
321
+
322
+ # 只有状态为 Stopped 的实例才可以进行此操作。
323
+ # 接口调用成功后,等待一分钟左右,实例会进入 Running 状态。
324
+ # 支持批量操作。每次请求批量实例的上限为100。
325
+ # 本接口为同步接口,启动实例请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeClusterInstances 接口查询,如果实例的最新状态为 Running,则代表启动实例操作成功。
326
+
327
+ # @param request: Request instance for StartMachines.
328
+ # @type request: :class:`Tencentcloud::tke::V20220501::StartMachinesRequest`
329
+ # @rtype: :class:`Tencentcloud::tke::V20220501::StartMachinesResponse`
330
+ def StartMachines(request)
331
+ body = send_request('StartMachines', request.serialize)
332
+ response = JSON.parse(body)
333
+ if response['Response'].key?('Error') == false
334
+ model = StartMachinesResponse.new
335
+ model.deserialize(response['Response'])
336
+ model
337
+ else
338
+ code = response['Response']['Error']['Code']
339
+ message = response['Response']['Error']['Message']
340
+ reqid = response['Response']['RequestId']
341
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
342
+ end
343
+ rescue TencentCloud::Common::TencentCloudSDKException => e
344
+ raise e
345
+ rescue StandardError => e
346
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
347
+ end
348
+
349
+ # 本接口 (StopMachines) 用于关闭一个或多个原生节点实例。
350
+
351
+ # 只有状态为 Running 的实例才可以进行此操作。
352
+ # 接口调用成功时,实例会进入 Stopping 状态;关闭实例成功时,实例会进入 Stopped 状态。
353
+ # 支持强制关闭。强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
354
+ # 支持批量操作。每次请求批量实例的上限为 100。
355
+ # 本接口为同步接口,关闭实例请求发送成功后会返回一个RequestId,此时操作并未立即完成。实例操作结果可以通过调用 DescribeClusterInstances 接口查询,如果实例的最新状stopped_with_charging,则代表关闭实例操作成功。
356
+
357
+ # @param request: Request instance for StopMachines.
358
+ # @type request: :class:`Tencentcloud::tke::V20220501::StopMachinesRequest`
359
+ # @rtype: :class:`Tencentcloud::tke::V20220501::StopMachinesResponse`
360
+ def StopMachines(request)
361
+ body = send_request('StopMachines', request.serialize)
362
+ response = JSON.parse(body)
363
+ if response['Response'].key?('Error') == false
364
+ model = StopMachinesResponse.new
365
+ model.deserialize(response['Response'])
366
+ model
367
+ else
368
+ code = response['Response']['Error']['Code']
369
+ message = response['Response']['Error']['Message']
370
+ reqid = response['Response']['RequestId']
371
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
372
+ end
373
+ rescue TencentCloud::Common::TencentCloudSDKException => e
374
+ raise e
375
+ rescue StandardError => e
376
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
377
+ end
378
+
296
379
 
297
380
  end
298
381
  end
@@ -1660,10 +1660,16 @@ module TencentCloud
1660
1660
  # @param OsImage: OS的名称
1661
1661
  # 注意:此字段可能返回 null,表示取不到有效值。
1662
1662
  # @type OsImage: String
1663
+ # @param InstanceId: **原生节点对应的实例 ID**
1663
1664
 
1664
- attr_accessor :MachineName, :MachineState, :Zone, :InstanceChargeType, :CreatedAt, :LoginStatus, :IsProtectedFromScaleIn, :DisplayName, :CPU, :GPU, :RenewFlag, :PayMode, :Memory, :InternetAccessible, :InstanceFamily, :LanIp, :InstanceType, :ExpiredTime, :SecurityGroupIDs, :VpcId, :SubnetId, :OsImage
1665
+ # - ins-q47ofw6 表示这个实例是一个 CVM 的实例
1666
+ # - eks-f8mvyaep 表示这个实例是一个 CXM 的实例
1667
+ # 注意:此字段可能返回 null,表示取不到有效值。
1668
+ # @type InstanceId: String
1669
+
1670
+ attr_accessor :MachineName, :MachineState, :Zone, :InstanceChargeType, :CreatedAt, :LoginStatus, :IsProtectedFromScaleIn, :DisplayName, :CPU, :GPU, :RenewFlag, :PayMode, :Memory, :InternetAccessible, :InstanceFamily, :LanIp, :InstanceType, :ExpiredTime, :SecurityGroupIDs, :VpcId, :SubnetId, :OsImage, :InstanceId
1665
1671
 
1666
- def initialize(machinename=nil, machinestate=nil, zone=nil, instancechargetype=nil, createdat=nil, loginstatus=nil, isprotectedfromscalein=nil, displayname=nil, cpu=nil, gpu=nil, renewflag=nil, paymode=nil, memory=nil, internetaccessible=nil, instancefamily=nil, lanip=nil, instancetype=nil, expiredtime=nil, securitygroupids=nil, vpcid=nil, subnetid=nil, osimage=nil)
1672
+ def initialize(machinename=nil, machinestate=nil, zone=nil, instancechargetype=nil, createdat=nil, loginstatus=nil, isprotectedfromscalein=nil, displayname=nil, cpu=nil, gpu=nil, renewflag=nil, paymode=nil, memory=nil, internetaccessible=nil, instancefamily=nil, lanip=nil, instancetype=nil, expiredtime=nil, securitygroupids=nil, vpcid=nil, subnetid=nil, osimage=nil, instanceid=nil)
1667
1673
  @MachineName = machinename
1668
1674
  @MachineState = machinestate
1669
1675
  @Zone = zone
@@ -1686,6 +1692,7 @@ module TencentCloud
1686
1692
  @VpcId = vpcid
1687
1693
  @SubnetId = subnetid
1688
1694
  @OsImage = osimage
1695
+ @InstanceId = instanceid
1689
1696
  end
1690
1697
 
1691
1698
  def deserialize(params)
@@ -1714,6 +1721,7 @@ module TencentCloud
1714
1721
  @VpcId = params['VpcId']
1715
1722
  @SubnetId = params['SubnetId']
1716
1723
  @OsImage = params['OsImage']
1724
+ @InstanceId = params['InstanceId']
1717
1725
  end
1718
1726
  end
1719
1727
 
@@ -2016,6 +2024,49 @@ module TencentCloud
2016
2024
  end
2017
2025
  end
2018
2026
 
2027
+ # RebootMachines请求参数结构体
2028
+ class RebootMachinesRequest < TencentCloud::Common::AbstractModel
2029
+ # @param ClusterId: 集群 ID
2030
+ # @type ClusterId: String
2031
+ # @param MachineNames: 节点名字列表,一次请求,传入节点数量上限为100个
2032
+ # @type MachineNames: Array
2033
+ # @param StopType: 实例的关闭模式。取值范围:
2034
+ # soft_first:表示在正常关闭失败后进行强制关闭
2035
+ # hard:直接强制关闭
2036
+ # soft:仅软关机默认取值:soft。
2037
+ # @type StopType: String
2038
+
2039
+ attr_accessor :ClusterId, :MachineNames, :StopType
2040
+
2041
+ def initialize(clusterid=nil, machinenames=nil, stoptype=nil)
2042
+ @ClusterId = clusterid
2043
+ @MachineNames = machinenames
2044
+ @StopType = stoptype
2045
+ end
2046
+
2047
+ def deserialize(params)
2048
+ @ClusterId = params['ClusterId']
2049
+ @MachineNames = params['MachineNames']
2050
+ @StopType = params['StopType']
2051
+ end
2052
+ end
2053
+
2054
+ # RebootMachines返回参数结构体
2055
+ class RebootMachinesResponse < TencentCloud::Common::AbstractModel
2056
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2057
+ # @type RequestId: String
2058
+
2059
+ attr_accessor :RequestId
2060
+
2061
+ def initialize(requestid=nil)
2062
+ @RequestId = requestid
2063
+ end
2064
+
2065
+ def deserialize(params)
2066
+ @RequestId = params['RequestId']
2067
+ end
2068
+ end
2069
+
2019
2070
  # 普通节点信息
2020
2071
  class RegularNodeInfo < TencentCloud::Common::AbstractModel
2021
2072
  # @param InstanceAdvancedSettings: 节点配置
@@ -2148,6 +2199,85 @@ module TencentCloud
2148
2199
  end
2149
2200
  end
2150
2201
 
2202
+ # StartMachines请求参数结构体
2203
+ class StartMachinesRequest < TencentCloud::Common::AbstractModel
2204
+ # @param ClusterId: 集群 ID
2205
+ # @type ClusterId: String
2206
+ # @param MachineNames: 节点名字列表,一次请求,传入节点数量上限为100个
2207
+ # @type MachineNames: Array
2208
+
2209
+ attr_accessor :ClusterId, :MachineNames
2210
+
2211
+ def initialize(clusterid=nil, machinenames=nil)
2212
+ @ClusterId = clusterid
2213
+ @MachineNames = machinenames
2214
+ end
2215
+
2216
+ def deserialize(params)
2217
+ @ClusterId = params['ClusterId']
2218
+ @MachineNames = params['MachineNames']
2219
+ end
2220
+ end
2221
+
2222
+ # StartMachines返回参数结构体
2223
+ class StartMachinesResponse < TencentCloud::Common::AbstractModel
2224
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2225
+ # @type RequestId: String
2226
+
2227
+ attr_accessor :RequestId
2228
+
2229
+ def initialize(requestid=nil)
2230
+ @RequestId = requestid
2231
+ end
2232
+
2233
+ def deserialize(params)
2234
+ @RequestId = params['RequestId']
2235
+ end
2236
+ end
2237
+
2238
+ # StopMachines请求参数结构体
2239
+ class StopMachinesRequest < TencentCloud::Common::AbstractModel
2240
+ # @param ClusterId: 集群 ID
2241
+ # @type ClusterId: String
2242
+ # @param MachineNames: 节点名字列表,一次请求,传入节点数量上限为100个
2243
+ # @type MachineNames: Array
2244
+ # @param StopType: 实例的关闭模式。取值范围:
2245
+ # soft_first:表示在正常关闭失败后进行强制关闭
2246
+ # hard:直接强制关闭
2247
+ # soft:仅软关机
2248
+ # @type StopType: String
2249
+
2250
+ attr_accessor :ClusterId, :MachineNames, :StopType
2251
+
2252
+ def initialize(clusterid=nil, machinenames=nil, stoptype=nil)
2253
+ @ClusterId = clusterid
2254
+ @MachineNames = machinenames
2255
+ @StopType = stoptype
2256
+ end
2257
+
2258
+ def deserialize(params)
2259
+ @ClusterId = params['ClusterId']
2260
+ @MachineNames = params['MachineNames']
2261
+ @StopType = params['StopType']
2262
+ end
2263
+ end
2264
+
2265
+ # StopMachines返回参数结构体
2266
+ class StopMachinesResponse < TencentCloud::Common::AbstractModel
2267
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2268
+ # @type RequestId: String
2269
+
2270
+ attr_accessor :RequestId
2271
+
2272
+ def initialize(requestid=nil)
2273
+ @RequestId = requestid
2274
+ end
2275
+
2276
+ def deserialize(params)
2277
+ @RequestId = params['RequestId']
2278
+ end
2279
+ end
2280
+
2151
2281
  # 超级节点信息
2152
2282
  class SuperNodeInfo < TencentCloud::Common::AbstractModel
2153
2283
  # @param Name: 实例名称
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.943
4
+ version: 3.0.945
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tencent Cloud
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-19 00:00:00.000000000 Z
11
+ date: 2024-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common