tencentcloud-sdk-tat 1.0.217 → 1.0.221

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: 9c1b623c7364f8ede48cd20cd35c96c4db4b04ad
4
- data.tar.gz: 02e13ddc8541447e022c4cb5bfdcf972086ba08e
3
+ metadata.gz: 2969faf9eb10a16ae52a83c426f065d945497cf3
4
+ data.tar.gz: 18afc2483e1250ce8ce8adcc019b627cdfb2640c
5
5
  SHA512:
6
- metadata.gz: 91685439ffe8f7346045fa10c1b520347c844a7c774b6bedcf82b067cf66bb0fb6bc999803141a26495007f1b419f482bf4eba58efe9799dadafd1564a57a1af
7
- data.tar.gz: f3a9a432d4159bd8a65de1b1d48a573a796f18ca809bf71915d3965d84914d206a6d84651862058846fad1582c60518177f7bcb3caa325c9f8a99608b411a8e3
6
+ metadata.gz: 8750d676065994a9a6217e8d4f0ccfb1a9f0b0b3506faf2b8c33adb654aa7ad68d2dc12ae3ea6cb263cb8a08546fbc13f9b97df083f04d9934dd6260b1902c02
7
+ data.tar.gz: 63aad18c7bbe1b8a47d2fe2a0fd3613affbd15ecc89952c7317b6fdf8b5f927bc71248896ccbbc6d8e896edb9d053a7f6ee1a9a8ed58a78d5686550273431d3e
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.217
1
+ 1.0.221
@@ -29,6 +29,33 @@ module TencentCloud
29
29
  end
30
30
 
31
31
 
32
+ # 取消一台或多台CVM实例执行的命令
33
+
34
+ # * 如果命令还未下发到agent,任务状态处于处于PENDING、DELIVERING、DELIVER_DELAYED,取消后任务状态是CANCELLED
35
+ # * 如果命令已下发到agent,任务状态处于RUNNING, 取消后任务状态是TERMINATED
36
+
37
+ # @param request: Request instance for CancelInvocation.
38
+ # @type request: :class:`Tencentcloud::tat::V20201028::CancelInvocationRequest`
39
+ # @rtype: :class:`Tencentcloud::tat::V20201028::CancelInvocationResponse`
40
+ def CancelInvocation(request)
41
+ body = send_request('CancelInvocation', request.serialize)
42
+ response = JSON.parse(body)
43
+ if response['Response'].key?('Error') == false
44
+ model = CancelInvocationResponse.new
45
+ model.deserialize(response['Response'])
46
+ model
47
+ else
48
+ code = response['Response']['Error']['Code']
49
+ message = response['Response']['Error']['Message']
50
+ reqid = response['Response']['RequestId']
51
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
52
+ end
53
+ rescue TencentCloud::Common::TencentCloudSDKException => e
54
+ raise e
55
+ rescue StandardError => e
56
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
57
+ end
58
+
32
59
  # 此接口用于创建命令。
33
60
 
34
61
  # @param request: Request instance for CreateCommand.
@@ -53,6 +53,44 @@ module TencentCloud
53
53
  end
54
54
  end
55
55
 
56
+ # CancelInvocation请求参数结构体
57
+ class CancelInvocationRequest < TencentCloud::Common::AbstractModel
58
+ # @param InvocationId: 执行活动ID
59
+ # @type InvocationId: String
60
+ # @param InstanceIds: 实例ID列表,上限100。支持实例类型:
61
+ # <li> CVM
62
+ # <li> LIGHTHOUSE
63
+ # @type InstanceIds: Array
64
+
65
+ attr_accessor :InvocationId, :InstanceIds
66
+
67
+ def initialize(invocationid=nil, instanceids=nil)
68
+ @InvocationId = invocationid
69
+ @InstanceIds = instanceids
70
+ end
71
+
72
+ def deserialize(params)
73
+ @InvocationId = params['InvocationId']
74
+ @InstanceIds = params['InstanceIds']
75
+ end
76
+ end
77
+
78
+ # CancelInvocation返回参数结构体
79
+ class CancelInvocationResponse < TencentCloud::Common::AbstractModel
80
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
81
+ # @type RequestId: String
82
+
83
+ attr_accessor :RequestId
84
+
85
+ def initialize(requestid=nil)
86
+ @RequestId = requestid
87
+ end
88
+
89
+ def deserialize(params)
90
+ @RequestId = params['RequestId']
91
+ end
92
+ end
93
+
56
94
  # 命令详情。
57
95
  class Command < TencentCloud::Common::AbstractModel
58
96
  # @param CommandId: 命令ID。
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-tat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.217
4
+ version: 1.0.221
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-12-06 00:00:00.000000000 Z
11
+ date: 2021-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common