tencentcloud-sdk-cdwpg 3.0.674 → 3.0.675
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/v20201230/client.rb +48 -0
- data/lib/v20201230/models.rb +107 -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: 93301647092dbb4358c61ba7d4d63ca3babc299e
|
4
|
+
data.tar.gz: 2762dbc238f04efc44a0117027a208e6a8833bdd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e3f9f891676b199ec5504625d530f405109596d6f638ef7877f0ece6e2466361a314b7fed66a8de7a3d4c9d8445f39327d0ccbb166a5f0f844e2ebc5bcd8bca
|
7
|
+
data.tar.gz: bcd9c3435cac26a440df240e5e08a141af5393126e6c30f6c0ab3ff339ee4284dbcdbd46aa80f3461ed126a867f35bf6c31f77c5e665270d860212b02355ae93
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.675
|
data/lib/v20201230/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
|
+
# 集群详情页中显示集群状态、流程进度等
|
57
|
+
|
58
|
+
# @param request: Request instance for DescribeInstanceState.
|
59
|
+
# @type request: :class:`Tencentcloud::cdwpg::V20201230::DescribeInstanceStateRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::cdwpg::V20201230::DescribeInstanceStateResponse`
|
61
|
+
def DescribeInstanceState(request)
|
62
|
+
body = send_request('DescribeInstanceState', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DescribeInstanceStateResponse.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
|
|
58
82
|
# @param request: Request instance for DescribeSimpleInstances.
|
@@ -101,6 +125,30 @@ module TencentCloud
|
|
101
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
126
|
end
|
103
127
|
|
128
|
+
# 修改实例信息,目前为实例名称
|
129
|
+
|
130
|
+
# @param request: Request instance for ModifyInstance.
|
131
|
+
# @type request: :class:`Tencentcloud::cdwpg::V20201230::ModifyInstanceRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::cdwpg::V20201230::ModifyInstanceResponse`
|
133
|
+
def ModifyInstance(request)
|
134
|
+
body = send_request('ModifyInstance', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = ModifyInstanceResponse.new
|
138
|
+
model.deserialize(response['Response'])
|
139
|
+
model
|
140
|
+
else
|
141
|
+
code = response['Response']['Error']['Code']
|
142
|
+
message = response['Response']['Error']['Message']
|
143
|
+
reqid = response['Response']['RequestId']
|
144
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
145
|
+
end
|
146
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
147
|
+
raise e
|
148
|
+
rescue StandardError => e
|
149
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
150
|
+
end
|
151
|
+
|
104
152
|
|
105
153
|
end
|
106
154
|
end
|
data/lib/v20201230/models.rb
CHANGED
@@ -161,6 +161,77 @@ module TencentCloud
|
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
164
|
+
# DescribeInstanceState请求参数结构体
|
165
|
+
class DescribeInstanceStateRequest < TencentCloud::Common::AbstractModel
|
166
|
+
# @param InstanceId: 集群实例名称
|
167
|
+
# @type InstanceId: String
|
168
|
+
|
169
|
+
attr_accessor :InstanceId
|
170
|
+
|
171
|
+
def initialize(instanceid=nil)
|
172
|
+
@InstanceId = instanceid
|
173
|
+
end
|
174
|
+
|
175
|
+
def deserialize(params)
|
176
|
+
@InstanceId = params['InstanceId']
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
# DescribeInstanceState返回参数结构体
|
181
|
+
class DescribeInstanceStateResponse < TencentCloud::Common::AbstractModel
|
182
|
+
# @param InstanceState: 集群状态,例如:Serving
|
183
|
+
# @type InstanceState: String
|
184
|
+
# @param FlowCreateTime: 集群操作创建时间
|
185
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
186
|
+
# @type FlowCreateTime: String
|
187
|
+
# @param FlowName: 集群操作名称
|
188
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
189
|
+
# @type FlowName: String
|
190
|
+
# @param FlowProgress: 集群操作进度
|
191
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
192
|
+
# @type FlowProgress: Float
|
193
|
+
# @param InstanceStateDesc: 集群状态描述,例如:运行中
|
194
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
195
|
+
# @type InstanceStateDesc: String
|
196
|
+
# @param FlowMsg: 集群流程错误信息,例如:“创建失败,资源不足”
|
197
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
198
|
+
# @type FlowMsg: String
|
199
|
+
# @param ProcessName: 当前步骤的名称,例如:”购买资源中“
|
200
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
201
|
+
# @type ProcessName: String
|
202
|
+
# @param BackupStatus: 集群备份任务开启状态
|
203
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
204
|
+
# @type BackupStatus: Integer
|
205
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
206
|
+
# @type RequestId: String
|
207
|
+
|
208
|
+
attr_accessor :InstanceState, :FlowCreateTime, :FlowName, :FlowProgress, :InstanceStateDesc, :FlowMsg, :ProcessName, :BackupStatus, :RequestId
|
209
|
+
|
210
|
+
def initialize(instancestate=nil, flowcreatetime=nil, flowname=nil, flowprogress=nil, instancestatedesc=nil, flowmsg=nil, processname=nil, backupstatus=nil, requestid=nil)
|
211
|
+
@InstanceState = instancestate
|
212
|
+
@FlowCreateTime = flowcreatetime
|
213
|
+
@FlowName = flowname
|
214
|
+
@FlowProgress = flowprogress
|
215
|
+
@InstanceStateDesc = instancestatedesc
|
216
|
+
@FlowMsg = flowmsg
|
217
|
+
@ProcessName = processname
|
218
|
+
@BackupStatus = backupstatus
|
219
|
+
@RequestId = requestid
|
220
|
+
end
|
221
|
+
|
222
|
+
def deserialize(params)
|
223
|
+
@InstanceState = params['InstanceState']
|
224
|
+
@FlowCreateTime = params['FlowCreateTime']
|
225
|
+
@FlowName = params['FlowName']
|
226
|
+
@FlowProgress = params['FlowProgress']
|
227
|
+
@InstanceStateDesc = params['InstanceStateDesc']
|
228
|
+
@FlowMsg = params['FlowMsg']
|
229
|
+
@ProcessName = params['ProcessName']
|
230
|
+
@BackupStatus = params['BackupStatus']
|
231
|
+
@RequestId = params['RequestId']
|
232
|
+
end
|
233
|
+
end
|
234
|
+
|
164
235
|
# DescribeSimpleInstances请求参数结构体
|
165
236
|
class DescribeSimpleInstancesRequest < TencentCloud::Common::AbstractModel
|
166
237
|
# @param SearchInstanceId: 11
|
@@ -368,6 +439,42 @@ module TencentCloud
|
|
368
439
|
end
|
369
440
|
end
|
370
441
|
|
442
|
+
# ModifyInstance请求参数结构体
|
443
|
+
class ModifyInstanceRequest < TencentCloud::Common::AbstractModel
|
444
|
+
# @param InstanceId: 实例Id
|
445
|
+
# @type InstanceId: String
|
446
|
+
# @param InstanceName: 新修改的实例名称
|
447
|
+
# @type InstanceName: String
|
448
|
+
|
449
|
+
attr_accessor :InstanceId, :InstanceName
|
450
|
+
|
451
|
+
def initialize(instanceid=nil, instancename=nil)
|
452
|
+
@InstanceId = instanceid
|
453
|
+
@InstanceName = instancename
|
454
|
+
end
|
455
|
+
|
456
|
+
def deserialize(params)
|
457
|
+
@InstanceId = params['InstanceId']
|
458
|
+
@InstanceName = params['InstanceName']
|
459
|
+
end
|
460
|
+
end
|
461
|
+
|
462
|
+
# ModifyInstance返回参数结构体
|
463
|
+
class ModifyInstanceResponse < TencentCloud::Common::AbstractModel
|
464
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
465
|
+
# @type RequestId: String
|
466
|
+
|
467
|
+
attr_accessor :RequestId
|
468
|
+
|
469
|
+
def initialize(requestid=nil)
|
470
|
+
@RequestId = requestid
|
471
|
+
end
|
472
|
+
|
473
|
+
def deserialize(params)
|
474
|
+
@RequestId = params['RequestId']
|
475
|
+
end
|
476
|
+
end
|
477
|
+
|
371
478
|
# 资源规格
|
372
479
|
class ResourceSpecNew < TencentCloud::Common::AbstractModel
|
373
480
|
# @param SpecName: 资源名称
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cdwpg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.675
|
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-10-
|
11
|
+
date: 2023-10-12 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/v20201230/models.rb
|
37
|
-
- lib/v20201230/client.rb
|
38
36
|
- lib/tencentcloud-sdk-cdwpg.rb
|
37
|
+
- lib/v20201230/client.rb
|
38
|
+
- lib/v20201230/models.rb
|
39
39
|
- lib/VERSION
|
40
40
|
homepage: https://github.com/TencentCloud/tencentcloud-sdk-ruby
|
41
41
|
licenses:
|