tencentcloud-sdk-hai 3.0.701 → 3.0.703
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/v20230812/client.rb +24 -0
- data/lib/v20230812/models.rb +36 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f7c80c0146e99575814620466e8e5c7dc37f345
|
4
|
+
data.tar.gz: 50a39966d870b27330e2fc803be31f4c00a638b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e00a8c7b4578f6390304ca98749f682fd42e1e16ab5b7b3d5df10d7a6c767f64728171c09ca3a019f08f7448158cc266ea3661c6d157fbe257fbbaf38ee11893
|
7
|
+
data.tar.gz: 647318d95f1c21bb89759ce313377dd724bd8864c5993d2cab32ca0fa147dba8c11389508fe98d70ab47c8dd0e4102dc1eed5d98ebe3529233dc02936f71552f
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.703
|
data/lib/v20230812/client.rb
CHANGED
@@ -53,6 +53,30 @@ module TencentCloud
|
|
53
53
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
54
54
|
end
|
55
55
|
|
56
|
+
# 本接口 (TerminateInstances) 用于主动退还实例。
|
57
|
+
|
58
|
+
# @param request: Request instance for TerminateInstances.
|
59
|
+
# @type request: :class:`Tencentcloud::hai::V20230812::TerminateInstancesRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::hai::V20230812::TerminateInstancesResponse`
|
61
|
+
def TerminateInstances(request)
|
62
|
+
body = send_request('TerminateInstances', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = TerminateInstancesResponse.new
|
66
|
+
model.deserialize(response['Response'])
|
67
|
+
model
|
68
|
+
else
|
69
|
+
code = response['Response']['Error']['Code']
|
70
|
+
message = response['Response']['Error']['Message']
|
71
|
+
reqid = response['Response']['RequestId']
|
72
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
73
|
+
end
|
74
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
75
|
+
raise e
|
76
|
+
rescue StandardError => e
|
77
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
|
+
end
|
79
|
+
|
56
80
|
|
57
81
|
end
|
58
82
|
end
|
data/lib/v20230812/models.rb
CHANGED
@@ -102,6 +102,42 @@ module TencentCloud
|
|
102
102
|
end
|
103
103
|
end
|
104
104
|
|
105
|
+
# TerminateInstances请求参数结构体
|
106
|
+
class TerminateInstancesRequest < TencentCloud::Common::AbstractModel
|
107
|
+
# @param InstanceIds: 实例ID列表
|
108
|
+
# @type InstanceIds: Array
|
109
|
+
# @param DryRun: 默认为False,True代表只验证接口连通性
|
110
|
+
# @type DryRun: Boolean
|
111
|
+
|
112
|
+
attr_accessor :InstanceIds, :DryRun
|
113
|
+
|
114
|
+
def initialize(instanceids=nil, dryrun=nil)
|
115
|
+
@InstanceIds = instanceids
|
116
|
+
@DryRun = dryrun
|
117
|
+
end
|
118
|
+
|
119
|
+
def deserialize(params)
|
120
|
+
@InstanceIds = params['InstanceIds']
|
121
|
+
@DryRun = params['DryRun']
|
122
|
+
end
|
123
|
+
end
|
124
|
+
|
125
|
+
# TerminateInstances返回参数结构体
|
126
|
+
class TerminateInstancesResponse < TencentCloud::Common::AbstractModel
|
127
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
128
|
+
# @type RequestId: String
|
129
|
+
|
130
|
+
attr_accessor :RequestId
|
131
|
+
|
132
|
+
def initialize(requestid=nil)
|
133
|
+
@RequestId = requestid
|
134
|
+
end
|
135
|
+
|
136
|
+
def deserialize(params)
|
137
|
+
@RequestId = params['RequestId']
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
105
141
|
end
|
106
142
|
end
|
107
143
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-hai
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.703
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-11-
|
11
|
+
date: 2023-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|
@@ -33,9 +33,9 @@ executables: []
|
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
35
35
|
files:
|
36
|
-
- lib/tencentcloud-sdk-hai.rb
|
37
|
-
- lib/v20230812/client.rb
|
38
36
|
- lib/v20230812/models.rb
|
37
|
+
- lib/v20230812/client.rb
|
38
|
+
- lib/tencentcloud-sdk-hai.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|