tencentcloud-sdk-tke 3.0.942 → 3.0.944

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: 9a42754bc9bb7fe951e244aa42cdbe1fe22c6a2a
4
- data.tar.gz: eca326a4f946e7b3a14b1a441b8296131ab11dfc
3
+ metadata.gz: 14ef098594acf7cf7ec8c2b0694e0793af56324f
4
+ data.tar.gz: f8c507bbe82ad9494a3ebd1e0013fd87ac799340
5
5
  SHA512:
6
- metadata.gz: e16e2196bbbcb4482a56a295700ee351142bbfbd0d1ebc8e41243fcae746ff7d3fca476e27fdf04e99e85b71225e9aa8093c4bf21eef821b0c19b4bfa12880cf
7
- data.tar.gz: fc2886baa3484bf3d28f61b9ad193509426dbeac70f5b322aa9df782be0283281f606bb5291ee34550a3f148fb65238496846e5e468e9fe43f64fdd393782c9f
6
+ metadata.gz: 5809dc8a03d54eba1c4d4f153114015a6f985c145e40ae29af94bf32af1dcd8d8a5b5d6a8e420917b20442d744804011b8828f2a312da5ac0a0092de6728b541
7
+ data.tar.gz: afbaedecca87bb528171a1a132431e5f8e9c2964b8fbd85210326a41f05f76ee9a037c8f4c41a77e038874d8e4da60acb5a826a18ca9f81625ff55df249680a0
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.942
1
+ 3.0.944
@@ -1960,7 +1960,7 @@ module TencentCloud
1960
1960
  # @type IsExtranet: Boolean
1961
1961
  # @param Domain: 设置域名
1962
1962
  # @type Domain: String
1963
- # @param SecurityGroup: 使用的安全组,只有外网访问需要传递(开启外网访问时必传)
1963
+ # @param SecurityGroup: 使用的安全组,只有外网访问需要传递(开启外网访问且不使用已有clb时必传)
1964
1964
  # @type SecurityGroup: String
1965
1965
  # @param ExtensiveParameters: 创建lb参数,只有外网访问需要设置,是一个json格式化后的字符串:{"InternetAccessible":{"InternetChargeType":"TRAFFIC_POSTPAID_BY_HOUR","InternetMaxBandwidthOut":200},"VipIsp":"","BandwidthPackageId":""}。
1966
1966
  # 各个参数意义:
@@ -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
@@ -2016,6 +2016,49 @@ module TencentCloud
2016
2016
  end
2017
2017
  end
2018
2018
 
2019
+ # RebootMachines请求参数结构体
2020
+ class RebootMachinesRequest < TencentCloud::Common::AbstractModel
2021
+ # @param ClusterId: 集群 ID
2022
+ # @type ClusterId: String
2023
+ # @param MachineNames: 节点名字列表,一次请求,传入节点数量上限为100个
2024
+ # @type MachineNames: Array
2025
+ # @param StopType: 实例的关闭模式。取值范围:
2026
+ # soft_first:表示在正常关闭失败后进行强制关闭
2027
+ # hard:直接强制关闭
2028
+ # soft:仅软关机默认取值:soft。
2029
+ # @type StopType: String
2030
+
2031
+ attr_accessor :ClusterId, :MachineNames, :StopType
2032
+
2033
+ def initialize(clusterid=nil, machinenames=nil, stoptype=nil)
2034
+ @ClusterId = clusterid
2035
+ @MachineNames = machinenames
2036
+ @StopType = stoptype
2037
+ end
2038
+
2039
+ def deserialize(params)
2040
+ @ClusterId = params['ClusterId']
2041
+ @MachineNames = params['MachineNames']
2042
+ @StopType = params['StopType']
2043
+ end
2044
+ end
2045
+
2046
+ # RebootMachines返回参数结构体
2047
+ class RebootMachinesResponse < TencentCloud::Common::AbstractModel
2048
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2049
+ # @type RequestId: String
2050
+
2051
+ attr_accessor :RequestId
2052
+
2053
+ def initialize(requestid=nil)
2054
+ @RequestId = requestid
2055
+ end
2056
+
2057
+ def deserialize(params)
2058
+ @RequestId = params['RequestId']
2059
+ end
2060
+ end
2061
+
2019
2062
  # 普通节点信息
2020
2063
  class RegularNodeInfo < TencentCloud::Common::AbstractModel
2021
2064
  # @param InstanceAdvancedSettings: 节点配置
@@ -2148,6 +2191,85 @@ module TencentCloud
2148
2191
  end
2149
2192
  end
2150
2193
 
2194
+ # StartMachines请求参数结构体
2195
+ class StartMachinesRequest < TencentCloud::Common::AbstractModel
2196
+ # @param ClusterId: 集群 ID
2197
+ # @type ClusterId: String
2198
+ # @param MachineNames: 节点名字列表,一次请求,传入节点数量上限为100个
2199
+ # @type MachineNames: Array
2200
+
2201
+ attr_accessor :ClusterId, :MachineNames
2202
+
2203
+ def initialize(clusterid=nil, machinenames=nil)
2204
+ @ClusterId = clusterid
2205
+ @MachineNames = machinenames
2206
+ end
2207
+
2208
+ def deserialize(params)
2209
+ @ClusterId = params['ClusterId']
2210
+ @MachineNames = params['MachineNames']
2211
+ end
2212
+ end
2213
+
2214
+ # StartMachines返回参数结构体
2215
+ class StartMachinesResponse < TencentCloud::Common::AbstractModel
2216
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2217
+ # @type RequestId: String
2218
+
2219
+ attr_accessor :RequestId
2220
+
2221
+ def initialize(requestid=nil)
2222
+ @RequestId = requestid
2223
+ end
2224
+
2225
+ def deserialize(params)
2226
+ @RequestId = params['RequestId']
2227
+ end
2228
+ end
2229
+
2230
+ # StopMachines请求参数结构体
2231
+ class StopMachinesRequest < TencentCloud::Common::AbstractModel
2232
+ # @param ClusterId: 集群 ID
2233
+ # @type ClusterId: String
2234
+ # @param MachineNames: 节点名字列表,一次请求,传入节点数量上限为100个
2235
+ # @type MachineNames: Array
2236
+ # @param StopType: 实例的关闭模式。取值范围:
2237
+ # soft_first:表示在正常关闭失败后进行强制关闭
2238
+ # hard:直接强制关闭
2239
+ # soft:仅软关机
2240
+ # @type StopType: String
2241
+
2242
+ attr_accessor :ClusterId, :MachineNames, :StopType
2243
+
2244
+ def initialize(clusterid=nil, machinenames=nil, stoptype=nil)
2245
+ @ClusterId = clusterid
2246
+ @MachineNames = machinenames
2247
+ @StopType = stoptype
2248
+ end
2249
+
2250
+ def deserialize(params)
2251
+ @ClusterId = params['ClusterId']
2252
+ @MachineNames = params['MachineNames']
2253
+ @StopType = params['StopType']
2254
+ end
2255
+ end
2256
+
2257
+ # StopMachines返回参数结构体
2258
+ class StopMachinesResponse < TencentCloud::Common::AbstractModel
2259
+ # @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2260
+ # @type RequestId: String
2261
+
2262
+ attr_accessor :RequestId
2263
+
2264
+ def initialize(requestid=nil)
2265
+ @RequestId = requestid
2266
+ end
2267
+
2268
+ def deserialize(params)
2269
+ @RequestId = params['RequestId']
2270
+ end
2271
+ end
2272
+
2151
2273
  # 超级节点信息
2152
2274
  class SuperNodeInfo < TencentCloud::Common::AbstractModel
2153
2275
  # @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.942
4
+ version: 3.0.944
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-15 00:00:00.000000000 Z
11
+ date: 2024-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common