tencentcloud-sdk-tat 1.0.219 → 1.0.220
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20201028/client.rb +27 -0
- data/lib/v20201028/models.rb +38 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c29d1887c71d97239b770a06340478268564b51
|
4
|
+
data.tar.gz: ac544365ef6dff6a30c0c705db0e18f3ce54f2d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9f0eb2c8d0600f5eb939c6cae97b25dcd0d3b5d785502c0566377a1f943a0f019a7a6ce662e672b3079e5066eddb5767dc1da84d575ae8b0ff47303f661f498
|
7
|
+
data.tar.gz: bc3fa15c8a8c050ac89358c34ebdd211435fec6eeaf08e932f50b05383c37adcb6af360ad7f6c24382d39f794abdacb78d18d46088ba1045d2d89c658160925d
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.220
|
data/lib/v20201028/client.rb
CHANGED
@@ -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.
|
data/lib/v20201028/models.rb
CHANGED
@@ -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.
|
4
|
+
version: 1.0.220
|
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-
|
11
|
+
date: 2021-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|