tencentcloud-sdk-cdwpg 3.0.675 → 3.0.676
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 +24 -0
- data/lib/v20201230/models.rb +274 -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: 7ba1fa2482e8a96d919558d5c68d573f341d1f82
|
4
|
+
data.tar.gz: 21a29cdaf1a99e692678421a8af2ff08f5200785
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3dc378f5a40709edd7d35ce9ebd936f8b0454bf46f0de3ba83fba39ecbfd8065898e767a6985f08f9084578e70edb4b715e662cd18afe0b0c4f7b5d05e060ca7
|
7
|
+
data.tar.gz: ee125c65884aa49ec9f1526a8bb415f28899a2a09449d2622adec9c1e8956ba9edf7f13179e5569d24dd0be575cc5880a94c0063d2e1200554e5b163078287fc
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.676
|
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
|
+
# 根据实例ID查询某个实例的具体信息
|
57
|
+
|
58
|
+
# @param request: Request instance for DescribeInstance.
|
59
|
+
# @type request: :class:`Tencentcloud::cdwpg::V20201230::DescribeInstanceRequest`
|
60
|
+
# @rtype: :class:`Tencentcloud::cdwpg::V20201230::DescribeInstanceResponse`
|
61
|
+
def DescribeInstance(request)
|
62
|
+
body = send_request('DescribeInstance', request.serialize)
|
63
|
+
response = JSON.parse(body)
|
64
|
+
if response['Response'].key?('Error') == false
|
65
|
+
model = DescribeInstanceResponse.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 DescribeInstanceState.
|
data/lib/v20201230/models.rb
CHANGED
@@ -161,6 +161,45 @@ module TencentCloud
|
|
161
161
|
end
|
162
162
|
end
|
163
163
|
|
164
|
+
# DescribeInstance请求参数结构体
|
165
|
+
class DescribeInstanceRequest < TencentCloud::Common::AbstractModel
|
166
|
+
# @param InstanceId: 集群实例ID
|
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
|
+
# DescribeInstance返回参数结构体
|
181
|
+
class DescribeInstanceResponse < TencentCloud::Common::AbstractModel
|
182
|
+
# @param InstanceInfo: 实例描述信息
|
183
|
+
# @type InstanceInfo: :class:`Tencentcloud::Cdwpg.v20201230.models.InstanceInfo`
|
184
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
185
|
+
# @type RequestId: String
|
186
|
+
|
187
|
+
attr_accessor :InstanceInfo, :RequestId
|
188
|
+
|
189
|
+
def initialize(instanceinfo=nil, requestid=nil)
|
190
|
+
@InstanceInfo = instanceinfo
|
191
|
+
@RequestId = requestid
|
192
|
+
end
|
193
|
+
|
194
|
+
def deserialize(params)
|
195
|
+
unless params['InstanceInfo'].nil?
|
196
|
+
@InstanceInfo = InstanceInfo.new
|
197
|
+
@InstanceInfo.deserialize(params['InstanceInfo'])
|
198
|
+
end
|
199
|
+
@RequestId = params['RequestId']
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
164
203
|
# DescribeInstanceState请求参数结构体
|
165
204
|
class DescribeInstanceStateRequest < TencentCloud::Common::AbstractModel
|
166
205
|
# @param InstanceId: 集群实例名称
|
@@ -342,6 +381,179 @@ module TencentCloud
|
|
342
381
|
end
|
343
382
|
end
|
344
383
|
|
384
|
+
# 云原生实例详情
|
385
|
+
class InstanceInfo < TencentCloud::Common::AbstractModel
|
386
|
+
# @param ID: ID值
|
387
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
388
|
+
# @type ID: Integer
|
389
|
+
# @param InstanceType: cdwpg-cn或者其他
|
390
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
391
|
+
# @type InstanceType: String
|
392
|
+
# @param InstanceName: cdwpg-cn或者其他
|
393
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
394
|
+
# @type InstanceName: String
|
395
|
+
# @param Status: Running
|
396
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
397
|
+
# @type Status: String
|
398
|
+
# @param StatusDesc: 运行中
|
399
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
400
|
+
# @type StatusDesc: String
|
401
|
+
# @param InstanceStateInfo: 无
|
402
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
403
|
+
# @type InstanceStateInfo: :class:`Tencentcloud::Cdwpg.v20201230.models.InstanceStateInfo`
|
404
|
+
# @param InstanceID: -
|
405
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
406
|
+
# @type InstanceID: String
|
407
|
+
# @param CreateTime: 2022-09-05 20:00:01
|
408
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
409
|
+
# @type CreateTime: String
|
410
|
+
# @param Region: ap-chongqing
|
411
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
412
|
+
# @type Region: String
|
413
|
+
# @param Zone: ap
|
414
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
415
|
+
# @type Zone: String
|
416
|
+
# @param RegionDesc: region
|
417
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
418
|
+
# @type RegionDesc: String
|
419
|
+
# @param ZoneDesc: zone
|
420
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
421
|
+
# @type ZoneDesc: String
|
422
|
+
# @param Tags: 标签
|
423
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
424
|
+
# @type Tags: Array
|
425
|
+
# @param Version: v3
|
426
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
427
|
+
# @type Version: String
|
428
|
+
# @param Charset: 字符集
|
429
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
430
|
+
# @type Charset: String
|
431
|
+
# @param EngineVersion: 引擎版本
|
432
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
433
|
+
# @type EngineVersion: String
|
434
|
+
# @param GTMNodes: GTM节点列表
|
435
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
436
|
+
# @type GTMNodes: Array
|
437
|
+
# @param CNNodes: CN节点列表
|
438
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
439
|
+
# @type CNNodes: Array
|
440
|
+
# @param DNNodes: DN节点列表
|
441
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
442
|
+
# @type DNNodes: Array
|
443
|
+
# @param BackupStorage: 备份存储
|
444
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
445
|
+
# @type BackupStorage: Array
|
446
|
+
# @param FNNodes: FN节点列表
|
447
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
448
|
+
# @type FNNodes: Array
|
449
|
+
|
450
|
+
attr_accessor :ID, :InstanceType, :InstanceName, :Status, :StatusDesc, :InstanceStateInfo, :InstanceID, :CreateTime, :Region, :Zone, :RegionDesc, :ZoneDesc, :Tags, :Version, :Charset, :EngineVersion, :GTMNodes, :CNNodes, :DNNodes, :BackupStorage, :FNNodes
|
451
|
+
|
452
|
+
def initialize(id=nil, instancetype=nil, instancename=nil, status=nil, statusdesc=nil, instancestateinfo=nil, instanceid=nil, createtime=nil, region=nil, zone=nil, regiondesc=nil, zonedesc=nil, tags=nil, version=nil, charset=nil, engineversion=nil, gtmnodes=nil, cnnodes=nil, dnnodes=nil, backupstorage=nil, fnnodes=nil)
|
453
|
+
@ID = id
|
454
|
+
@InstanceType = instancetype
|
455
|
+
@InstanceName = instancename
|
456
|
+
@Status = status
|
457
|
+
@StatusDesc = statusdesc
|
458
|
+
@InstanceStateInfo = instancestateinfo
|
459
|
+
@InstanceID = instanceid
|
460
|
+
@CreateTime = createtime
|
461
|
+
@Region = region
|
462
|
+
@Zone = zone
|
463
|
+
@RegionDesc = regiondesc
|
464
|
+
@ZoneDesc = zonedesc
|
465
|
+
@Tags = tags
|
466
|
+
@Version = version
|
467
|
+
@Charset = charset
|
468
|
+
@EngineVersion = engineversion
|
469
|
+
@GTMNodes = gtmnodes
|
470
|
+
@CNNodes = cnnodes
|
471
|
+
@DNNodes = dnnodes
|
472
|
+
@BackupStorage = backupstorage
|
473
|
+
@FNNodes = fnnodes
|
474
|
+
end
|
475
|
+
|
476
|
+
def deserialize(params)
|
477
|
+
@ID = params['ID']
|
478
|
+
@InstanceType = params['InstanceType']
|
479
|
+
@InstanceName = params['InstanceName']
|
480
|
+
@Status = params['Status']
|
481
|
+
@StatusDesc = params['StatusDesc']
|
482
|
+
unless params['InstanceStateInfo'].nil?
|
483
|
+
@InstanceStateInfo = InstanceStateInfo.new
|
484
|
+
@InstanceStateInfo.deserialize(params['InstanceStateInfo'])
|
485
|
+
end
|
486
|
+
@InstanceID = params['InstanceID']
|
487
|
+
@CreateTime = params['CreateTime']
|
488
|
+
@Region = params['Region']
|
489
|
+
@Zone = params['Zone']
|
490
|
+
@RegionDesc = params['RegionDesc']
|
491
|
+
@ZoneDesc = params['ZoneDesc']
|
492
|
+
unless params['Tags'].nil?
|
493
|
+
@Tags = []
|
494
|
+
params['Tags'].each do |i|
|
495
|
+
tag_tmp = Tag.new
|
496
|
+
tag_tmp.deserialize(i)
|
497
|
+
@Tags << tag_tmp
|
498
|
+
end
|
499
|
+
end
|
500
|
+
@Version = params['Version']
|
501
|
+
@Charset = params['Charset']
|
502
|
+
@EngineVersion = params['EngineVersion']
|
503
|
+
unless params['GTMNodes'].nil?
|
504
|
+
@GTMNodes = []
|
505
|
+
params['GTMNodes'].each do |i|
|
506
|
+
instancenodegroup_tmp = InstanceNodeGroup.new
|
507
|
+
instancenodegroup_tmp.deserialize(i)
|
508
|
+
@GTMNodes << instancenodegroup_tmp
|
509
|
+
end
|
510
|
+
end
|
511
|
+
unless params['CNNodes'].nil?
|
512
|
+
@CNNodes = []
|
513
|
+
params['CNNodes'].each do |i|
|
514
|
+
instancenodegroup_tmp = InstanceNodeGroup.new
|
515
|
+
instancenodegroup_tmp.deserialize(i)
|
516
|
+
@CNNodes << instancenodegroup_tmp
|
517
|
+
end
|
518
|
+
end
|
519
|
+
unless params['DNNodes'].nil?
|
520
|
+
@DNNodes = []
|
521
|
+
params['DNNodes'].each do |i|
|
522
|
+
instancenodegroup_tmp = InstanceNodeGroup.new
|
523
|
+
instancenodegroup_tmp.deserialize(i)
|
524
|
+
@DNNodes << instancenodegroup_tmp
|
525
|
+
end
|
526
|
+
end
|
527
|
+
unless params['BackupStorage'].nil?
|
528
|
+
@BackupStorage = []
|
529
|
+
params['BackupStorage'].each do |i|
|
530
|
+
instancenodegroup_tmp = InstanceNodeGroup.new
|
531
|
+
instancenodegroup_tmp.deserialize(i)
|
532
|
+
@BackupStorage << instancenodegroup_tmp
|
533
|
+
end
|
534
|
+
end
|
535
|
+
unless params['FNNodes'].nil?
|
536
|
+
@FNNodes = []
|
537
|
+
params['FNNodes'].each do |i|
|
538
|
+
instancenodegroup_tmp = InstanceNodeGroup.new
|
539
|
+
instancenodegroup_tmp.deserialize(i)
|
540
|
+
@FNNodes << instancenodegroup_tmp
|
541
|
+
end
|
542
|
+
end
|
543
|
+
end
|
544
|
+
end
|
545
|
+
|
546
|
+
# 集群节点信息
|
547
|
+
class InstanceNodeGroup < TencentCloud::Common::AbstractModel
|
548
|
+
|
549
|
+
|
550
|
+
def initialize()
|
551
|
+
end
|
552
|
+
|
553
|
+
def deserialize(params)
|
554
|
+
end
|
555
|
+
end
|
556
|
+
|
345
557
|
# 精简集群信息
|
346
558
|
class InstanceSimpleInfoNew < TencentCloud::Common::AbstractModel
|
347
559
|
# @param ID: 1
|
@@ -439,6 +651,68 @@ module TencentCloud
|
|
439
651
|
end
|
440
652
|
end
|
441
653
|
|
654
|
+
# 集群状态抽象后的结构体
|
655
|
+
class InstanceStateInfo < TencentCloud::Common::AbstractModel
|
656
|
+
# @param InstanceState: 集群状态,例如:Serving
|
657
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
658
|
+
# @type InstanceState: String
|
659
|
+
# @param FlowCreateTime: 集群操作创建时间
|
660
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
661
|
+
# @type FlowCreateTime: String
|
662
|
+
# @param FlowName: 集群操作名称
|
663
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
664
|
+
# @type FlowName: String
|
665
|
+
# @param FlowProgress: 集群操作进度
|
666
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
667
|
+
# @type FlowProgress: Integer
|
668
|
+
# @param InstanceStateDesc: 集群状态描述,例如:运行中
|
669
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
670
|
+
# @type InstanceStateDesc: String
|
671
|
+
# @param FlowMsg: 集群流程错误信息,例如:“创建失败,资源不足”
|
672
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
673
|
+
# @type FlowMsg: String
|
674
|
+
# @param ProcessName: 当前步骤的名称,例如:”购买资源中“
|
675
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
676
|
+
# @type ProcessName: String
|
677
|
+
# @param BackupStatus: 集群是否有备份中任务,有为1,无为0
|
678
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
679
|
+
# @type BackupStatus: Integer
|
680
|
+
# @param RequestId: 1
|
681
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
682
|
+
# @type RequestId: String
|
683
|
+
# @param BackupOpenStatus: 1
|
684
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
685
|
+
# @type BackupOpenStatus: Integer
|
686
|
+
|
687
|
+
attr_accessor :InstanceState, :FlowCreateTime, :FlowName, :FlowProgress, :InstanceStateDesc, :FlowMsg, :ProcessName, :BackupStatus, :RequestId, :BackupOpenStatus
|
688
|
+
|
689
|
+
def initialize(instancestate=nil, flowcreatetime=nil, flowname=nil, flowprogress=nil, instancestatedesc=nil, flowmsg=nil, processname=nil, backupstatus=nil, requestid=nil, backupopenstatus=nil)
|
690
|
+
@InstanceState = instancestate
|
691
|
+
@FlowCreateTime = flowcreatetime
|
692
|
+
@FlowName = flowname
|
693
|
+
@FlowProgress = flowprogress
|
694
|
+
@InstanceStateDesc = instancestatedesc
|
695
|
+
@FlowMsg = flowmsg
|
696
|
+
@ProcessName = processname
|
697
|
+
@BackupStatus = backupstatus
|
698
|
+
@RequestId = requestid
|
699
|
+
@BackupOpenStatus = backupopenstatus
|
700
|
+
end
|
701
|
+
|
702
|
+
def deserialize(params)
|
703
|
+
@InstanceState = params['InstanceState']
|
704
|
+
@FlowCreateTime = params['FlowCreateTime']
|
705
|
+
@FlowName = params['FlowName']
|
706
|
+
@FlowProgress = params['FlowProgress']
|
707
|
+
@InstanceStateDesc = params['InstanceStateDesc']
|
708
|
+
@FlowMsg = params['FlowMsg']
|
709
|
+
@ProcessName = params['ProcessName']
|
710
|
+
@BackupStatus = params['BackupStatus']
|
711
|
+
@RequestId = params['RequestId']
|
712
|
+
@BackupOpenStatus = params['BackupOpenStatus']
|
713
|
+
end
|
714
|
+
end
|
715
|
+
|
442
716
|
# ModifyInstance请求参数结构体
|
443
717
|
class ModifyInstanceRequest < TencentCloud::Common::AbstractModel
|
444
718
|
# @param InstanceId: 实例Id
|
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.676
|
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-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|