tencentcloud-sdk-cdwch 3.0.476 → 3.0.477
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/v20200915/client.rb +48 -0
- data/lib/v20200915/models.rb +436 -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: 27bb90d95a263e9e7d7648424bef6d7eb5cc9f93
|
4
|
+
data.tar.gz: 09010683b98b23dcde9519d3f70a8e95085a744e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c82cdb4dbc739177fd54d408a0cb3328dc58dd565c5695f89454a3d9909115518b1a058903071123325c2930b9859650764ff4944e086a9f4e62dcfdad407a0b
|
7
|
+
data.tar.gz: 113a3c535eb74be3faec7c4818fd96ea663932564b72a16d90be89f2404e8eedfe29ed24e5bd2181f703749ccb537cf9a2d33d2d1eef184630930e1c2bbe56a3
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.477
|
data/lib/v20200915/client.rb
CHANGED
@@ -77,6 +77,30 @@ module TencentCloud
|
|
77
77
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
78
78
|
end
|
79
79
|
|
80
|
+
# 创建集群
|
81
|
+
|
82
|
+
# @param request: Request instance for CreateInstanceNew.
|
83
|
+
# @type request: :class:`Tencentcloud::cdwch::V20200915::CreateInstanceNewRequest`
|
84
|
+
# @rtype: :class:`Tencentcloud::cdwch::V20200915::CreateInstanceNewResponse`
|
85
|
+
def CreateInstanceNew(request)
|
86
|
+
body = send_request('CreateInstanceNew', request.serialize)
|
87
|
+
response = JSON.parse(body)
|
88
|
+
if response['Response'].key?('Error') == false
|
89
|
+
model = CreateInstanceNewResponse.new
|
90
|
+
model.deserialize(response['Response'])
|
91
|
+
model
|
92
|
+
else
|
93
|
+
code = response['Response']['Error']['Code']
|
94
|
+
message = response['Response']['Error']['Message']
|
95
|
+
reqid = response['Response']['RequestId']
|
96
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
97
|
+
end
|
98
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
99
|
+
raise e
|
100
|
+
rescue StandardError => e
|
101
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
|
+
end
|
103
|
+
|
80
104
|
# 查询集群用户、集群表,数据库等相关信息
|
81
105
|
|
82
106
|
# @param request: Request instance for DescribeCkSqlApis.
|
@@ -101,6 +125,30 @@ module TencentCloud
|
|
101
125
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
102
126
|
end
|
103
127
|
|
128
|
+
# 根据实例ID查询某个实例的具体信息
|
129
|
+
|
130
|
+
# @param request: Request instance for DescribeInstance.
|
131
|
+
# @type request: :class:`Tencentcloud::cdwch::V20200915::DescribeInstanceRequest`
|
132
|
+
# @rtype: :class:`Tencentcloud::cdwch::V20200915::DescribeInstanceResponse`
|
133
|
+
def DescribeInstance(request)
|
134
|
+
body = send_request('DescribeInstance', request.serialize)
|
135
|
+
response = JSON.parse(body)
|
136
|
+
if response['Response'].key?('Error') == false
|
137
|
+
model = DescribeInstanceResponse.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
|
# 获取实例shard信息列表
|
105
153
|
|
106
154
|
# @param request: Request instance for DescribeInstanceShards.
|
data/lib/v20200915/models.rb
CHANGED
@@ -94,6 +94,30 @@ module TencentCloud
|
|
94
94
|
end
|
95
95
|
end
|
96
96
|
|
97
|
+
# 集群计费相关信息
|
98
|
+
class Charge < TencentCloud::Common::AbstractModel
|
99
|
+
# @param ChargeType: 计费类型,“PREPAID” 预付费,“POSTPAID_BY_HOUR” 后付费
|
100
|
+
# @type ChargeType: String
|
101
|
+
# @param RenewFlag: PREPAID需要传递,是否自动续费,1表示自动续费开启
|
102
|
+
# @type RenewFlag: Integer
|
103
|
+
# @param TimeSpan: 预付费需要传递,计费时间长度,多少个月
|
104
|
+
# @type TimeSpan: Integer
|
105
|
+
|
106
|
+
attr_accessor :ChargeType, :RenewFlag, :TimeSpan
|
107
|
+
|
108
|
+
def initialize(chargetype=nil, renewflag=nil, timespan=nil)
|
109
|
+
@ChargeType = chargetype
|
110
|
+
@RenewFlag = renewflag
|
111
|
+
@TimeSpan = timespan
|
112
|
+
end
|
113
|
+
|
114
|
+
def deserialize(params)
|
115
|
+
@ChargeType = params['ChargeType']
|
116
|
+
@RenewFlag = params['RenewFlag']
|
117
|
+
@TimeSpan = params['TimeSpan']
|
118
|
+
end
|
119
|
+
end
|
120
|
+
|
97
121
|
# 新增或是修改ck用户
|
98
122
|
class CkUserAlterInfo < TencentCloud::Common::AbstractModel
|
99
123
|
# @param InstanceId: 集群实例id
|
@@ -201,6 +225,117 @@ module TencentCloud
|
|
201
225
|
end
|
202
226
|
end
|
203
227
|
|
228
|
+
# CreateInstanceNew请求参数结构体
|
229
|
+
class CreateInstanceNewRequest < TencentCloud::Common::AbstractModel
|
230
|
+
# @param Zone: 可用区
|
231
|
+
# @type Zone: String
|
232
|
+
# @param HaFlag: 是否高可用
|
233
|
+
# @type HaFlag: Boolean
|
234
|
+
# @param UserVPCId: 私有网络
|
235
|
+
# @type UserVPCId: String
|
236
|
+
# @param UserSubnetId: 子网
|
237
|
+
# @type UserSubnetId: String
|
238
|
+
# @param ProductVersion: 版本
|
239
|
+
# @type ProductVersion: String
|
240
|
+
# @param ChargeProperties: 计费方式
|
241
|
+
# @type ChargeProperties: :class:`Tencentcloud::Cdwch.v20200915.models.Charge`
|
242
|
+
# @param InstanceName: 实例名称
|
243
|
+
# @type InstanceName: String
|
244
|
+
# @param DataSpec: 数据节点
|
245
|
+
# @type DataSpec: :class:`Tencentcloud::Cdwch.v20200915.models.NodeSpec`
|
246
|
+
# @param Tags: 标签列表
|
247
|
+
# @type Tags: :class:`Tencentcloud::Cdwch.v20200915.models.Tag`
|
248
|
+
# @param ClsLogSetId: 日志主题ID
|
249
|
+
# @type ClsLogSetId: String
|
250
|
+
# @param CosBucketName: COS桶名称
|
251
|
+
# @type CosBucketName: String
|
252
|
+
# @param MountDiskType: 是否是裸盘挂载
|
253
|
+
# @type MountDiskType: Integer
|
254
|
+
# @param HAZk: 是否是ZK高可用
|
255
|
+
# @type HAZk: Boolean
|
256
|
+
# @param CommonSpec: ZK节点
|
257
|
+
# @type CommonSpec: :class:`Tencentcloud::Cdwch.v20200915.models.NodeSpec`
|
258
|
+
|
259
|
+
attr_accessor :Zone, :HaFlag, :UserVPCId, :UserSubnetId, :ProductVersion, :ChargeProperties, :InstanceName, :DataSpec, :Tags, :ClsLogSetId, :CosBucketName, :MountDiskType, :HAZk, :CommonSpec
|
260
|
+
|
261
|
+
def initialize(zone=nil, haflag=nil, uservpcid=nil, usersubnetid=nil, productversion=nil, chargeproperties=nil, instancename=nil, dataspec=nil, tags=nil, clslogsetid=nil, cosbucketname=nil, mountdisktype=nil, hazk=nil, commonspec=nil)
|
262
|
+
@Zone = zone
|
263
|
+
@HaFlag = haflag
|
264
|
+
@UserVPCId = uservpcid
|
265
|
+
@UserSubnetId = usersubnetid
|
266
|
+
@ProductVersion = productversion
|
267
|
+
@ChargeProperties = chargeproperties
|
268
|
+
@InstanceName = instancename
|
269
|
+
@DataSpec = dataspec
|
270
|
+
@Tags = tags
|
271
|
+
@ClsLogSetId = clslogsetid
|
272
|
+
@CosBucketName = cosbucketname
|
273
|
+
@MountDiskType = mountdisktype
|
274
|
+
@HAZk = hazk
|
275
|
+
@CommonSpec = commonspec
|
276
|
+
end
|
277
|
+
|
278
|
+
def deserialize(params)
|
279
|
+
@Zone = params['Zone']
|
280
|
+
@HaFlag = params['HaFlag']
|
281
|
+
@UserVPCId = params['UserVPCId']
|
282
|
+
@UserSubnetId = params['UserSubnetId']
|
283
|
+
@ProductVersion = params['ProductVersion']
|
284
|
+
unless params['ChargeProperties'].nil?
|
285
|
+
@ChargeProperties = Charge.new
|
286
|
+
@ChargeProperties.deserialize(params['ChargeProperties'])
|
287
|
+
end
|
288
|
+
@InstanceName = params['InstanceName']
|
289
|
+
unless params['DataSpec'].nil?
|
290
|
+
@DataSpec = NodeSpec.new
|
291
|
+
@DataSpec.deserialize(params['DataSpec'])
|
292
|
+
end
|
293
|
+
unless params['Tags'].nil?
|
294
|
+
@Tags = Tag.new
|
295
|
+
@Tags.deserialize(params['Tags'])
|
296
|
+
end
|
297
|
+
@ClsLogSetId = params['ClsLogSetId']
|
298
|
+
@CosBucketName = params['CosBucketName']
|
299
|
+
@MountDiskType = params['MountDiskType']
|
300
|
+
@HAZk = params['HAZk']
|
301
|
+
unless params['CommonSpec'].nil?
|
302
|
+
@CommonSpec = NodeSpec.new
|
303
|
+
@CommonSpec.deserialize(params['CommonSpec'])
|
304
|
+
end
|
305
|
+
end
|
306
|
+
end
|
307
|
+
|
308
|
+
# CreateInstanceNew返回参数结构体
|
309
|
+
class CreateInstanceNewResponse < TencentCloud::Common::AbstractModel
|
310
|
+
# @param FlowId: 流程ID
|
311
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
312
|
+
# @type FlowId: String
|
313
|
+
# @param InstanceId: 实例ID
|
314
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
315
|
+
# @type InstanceId: String
|
316
|
+
# @param ErrorMsg: 错误信息
|
317
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
318
|
+
# @type ErrorMsg: String
|
319
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
320
|
+
# @type RequestId: String
|
321
|
+
|
322
|
+
attr_accessor :FlowId, :InstanceId, :ErrorMsg, :RequestId
|
323
|
+
|
324
|
+
def initialize(flowid=nil, instanceid=nil, errormsg=nil, requestid=nil)
|
325
|
+
@FlowId = flowid
|
326
|
+
@InstanceId = instanceid
|
327
|
+
@ErrorMsg = errormsg
|
328
|
+
@RequestId = requestid
|
329
|
+
end
|
330
|
+
|
331
|
+
def deserialize(params)
|
332
|
+
@FlowId = params['FlowId']
|
333
|
+
@InstanceId = params['InstanceId']
|
334
|
+
@ErrorMsg = params['ErrorMsg']
|
335
|
+
@RequestId = params['RequestId']
|
336
|
+
end
|
337
|
+
end
|
338
|
+
|
204
339
|
# DescribeCkSqlApis请求参数结构体
|
205
340
|
class DescribeCkSqlApisRequest < TencentCloud::Common::AbstractModel
|
206
341
|
# @param InstanceId: 实例id
|
@@ -261,6 +396,45 @@ module TencentCloud
|
|
261
396
|
end
|
262
397
|
end
|
263
398
|
|
399
|
+
# DescribeInstance请求参数结构体
|
400
|
+
class DescribeInstanceRequest < TencentCloud::Common::AbstractModel
|
401
|
+
# @param InstanceId: 集群实例ID
|
402
|
+
# @type InstanceId: String
|
403
|
+
|
404
|
+
attr_accessor :InstanceId
|
405
|
+
|
406
|
+
def initialize(instanceid=nil)
|
407
|
+
@InstanceId = instanceid
|
408
|
+
end
|
409
|
+
|
410
|
+
def deserialize(params)
|
411
|
+
@InstanceId = params['InstanceId']
|
412
|
+
end
|
413
|
+
end
|
414
|
+
|
415
|
+
# DescribeInstance返回参数结构体
|
416
|
+
class DescribeInstanceResponse < TencentCloud::Common::AbstractModel
|
417
|
+
# @param InstanceInfo: 实例描述信息
|
418
|
+
# @type InstanceInfo: :class:`Tencentcloud::Cdwch.v20200915.models.InstanceInfo`
|
419
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
420
|
+
# @type RequestId: String
|
421
|
+
|
422
|
+
attr_accessor :InstanceInfo, :RequestId
|
423
|
+
|
424
|
+
def initialize(instanceinfo=nil, requestid=nil)
|
425
|
+
@InstanceInfo = instanceinfo
|
426
|
+
@RequestId = requestid
|
427
|
+
end
|
428
|
+
|
429
|
+
def deserialize(params)
|
430
|
+
unless params['InstanceInfo'].nil?
|
431
|
+
@InstanceInfo = InstanceInfo.new
|
432
|
+
@InstanceInfo.deserialize(params['InstanceInfo'])
|
433
|
+
end
|
434
|
+
@RequestId = params['RequestId']
|
435
|
+
end
|
436
|
+
end
|
437
|
+
|
264
438
|
# DescribeInstanceShards请求参数结构体
|
265
439
|
class DescribeInstanceShardsRequest < TencentCloud::Common::AbstractModel
|
266
440
|
# @param InstanceId: 集群实例ID
|
@@ -404,6 +578,184 @@ module TencentCloud
|
|
404
578
|
end
|
405
579
|
end
|
406
580
|
|
581
|
+
# 实例描述信息
|
582
|
+
class InstanceInfo < TencentCloud::Common::AbstractModel
|
583
|
+
# @param InstanceId: 集群实例ID, "cdw-xxxx" 字符串类型
|
584
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
585
|
+
# @type InstanceId: String
|
586
|
+
# @param InstanceName: 集群实例名称
|
587
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
588
|
+
# @type InstanceName: String
|
589
|
+
# @param Status: 状态,
|
590
|
+
# Init 创建中; Serving 运行中;
|
591
|
+
# Deleted已销毁;Deleting 销毁中;
|
592
|
+
# Modify 集群变更中;
|
593
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
594
|
+
# @type Status: String
|
595
|
+
# @param Version: 版本
|
596
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
597
|
+
# @type Version: String
|
598
|
+
# @param Region: 地域, ap-guangzhou
|
599
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
600
|
+
# @type Region: String
|
601
|
+
# @param Zone: 可用区, ap-guangzhou-3
|
602
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
603
|
+
# @type Zone: String
|
604
|
+
# @param VpcId: 私有网络名称
|
605
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
606
|
+
# @type VpcId: String
|
607
|
+
# @param SubnetId: 子网名称
|
608
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
609
|
+
# @type SubnetId: String
|
610
|
+
# @param PayMode: 付费类型,"hour", "prepay"
|
611
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
612
|
+
# @type PayMode: String
|
613
|
+
# @param CreateTime: 创建时间
|
614
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
615
|
+
# @type CreateTime: String
|
616
|
+
# @param ExpireTime: 过期时间
|
617
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
618
|
+
# @type ExpireTime: String
|
619
|
+
# @param MasterSummary: 数据节点描述信息
|
620
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
621
|
+
# @type MasterSummary: :class:`Tencentcloud::Cdwch.v20200915.models.NodesSummary`
|
622
|
+
# @param CommonSummary: zookeeper节点描述信息
|
623
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
624
|
+
# @type CommonSummary: :class:`Tencentcloud::Cdwch.v20200915.models.NodesSummary`
|
625
|
+
# @param HA: 高可用,“true" "false"
|
626
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
627
|
+
# @type HA: String
|
628
|
+
# @param AccessInfo: 访问地址,例如 "10.0.0.1:9000"
|
629
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
630
|
+
# @type AccessInfo: String
|
631
|
+
# @param Id: 记录ID,数值型
|
632
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
633
|
+
# @type Id: Integer
|
634
|
+
# @param RegionId: regionId, 表示地域
|
635
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
636
|
+
# @type RegionId: Integer
|
637
|
+
# @param ZoneDesc: 可用区说明,例如 "广州二区"
|
638
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
639
|
+
# @type ZoneDesc: String
|
640
|
+
# @param FlowMsg: 错误流程说明信息
|
641
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
642
|
+
# @type FlowMsg: String
|
643
|
+
# @param StatusDesc: 状态描述,例如“运行中”等
|
644
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
645
|
+
# @type StatusDesc: String
|
646
|
+
# @param RenewFlag: 自动续费标记
|
647
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
648
|
+
# @type RenewFlag: Boolean
|
649
|
+
# @param Tags: 标签列表
|
650
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
651
|
+
# @type Tags: Array
|
652
|
+
# @param Monitor: 监控信息
|
653
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
654
|
+
# @type Monitor: String
|
655
|
+
# @param HasClsTopic: 是否开通日志
|
656
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
657
|
+
# @type HasClsTopic: Boolean
|
658
|
+
# @param ClsTopicId: 日志主题ID
|
659
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
660
|
+
# @type ClsTopicId: String
|
661
|
+
# @param ClsLogSetId: 日志集ID
|
662
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
663
|
+
# @type ClsLogSetId: String
|
664
|
+
# @param EnableXMLConfig: 是否支持xml配置管理
|
665
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
666
|
+
# @type EnableXMLConfig: Integer
|
667
|
+
# @param RegionDesc: 区域
|
668
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
669
|
+
# @type RegionDesc: String
|
670
|
+
# @param Eip: 弹性网卡地址
|
671
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
672
|
+
# @type Eip: String
|
673
|
+
# @param CosMoveFactor: 冷热分层系数
|
674
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
675
|
+
# @type CosMoveFactor: Integer
|
676
|
+
|
677
|
+
attr_accessor :InstanceId, :InstanceName, :Status, :Version, :Region, :Zone, :VpcId, :SubnetId, :PayMode, :CreateTime, :ExpireTime, :MasterSummary, :CommonSummary, :HA, :AccessInfo, :Id, :RegionId, :ZoneDesc, :FlowMsg, :StatusDesc, :RenewFlag, :Tags, :Monitor, :HasClsTopic, :ClsTopicId, :ClsLogSetId, :EnableXMLConfig, :RegionDesc, :Eip, :CosMoveFactor
|
678
|
+
|
679
|
+
def initialize(instanceid=nil, instancename=nil, status=nil, version=nil, region=nil, zone=nil, vpcid=nil, subnetid=nil, paymode=nil, createtime=nil, expiretime=nil, mastersummary=nil, commonsummary=nil, ha=nil, accessinfo=nil, id=nil, regionid=nil, zonedesc=nil, flowmsg=nil, statusdesc=nil, renewflag=nil, tags=nil, monitor=nil, hasclstopic=nil, clstopicid=nil, clslogsetid=nil, enablexmlconfig=nil, regiondesc=nil, eip=nil, cosmovefactor=nil)
|
680
|
+
@InstanceId = instanceid
|
681
|
+
@InstanceName = instancename
|
682
|
+
@Status = status
|
683
|
+
@Version = version
|
684
|
+
@Region = region
|
685
|
+
@Zone = zone
|
686
|
+
@VpcId = vpcid
|
687
|
+
@SubnetId = subnetid
|
688
|
+
@PayMode = paymode
|
689
|
+
@CreateTime = createtime
|
690
|
+
@ExpireTime = expiretime
|
691
|
+
@MasterSummary = mastersummary
|
692
|
+
@CommonSummary = commonsummary
|
693
|
+
@HA = ha
|
694
|
+
@AccessInfo = accessinfo
|
695
|
+
@Id = id
|
696
|
+
@RegionId = regionid
|
697
|
+
@ZoneDesc = zonedesc
|
698
|
+
@FlowMsg = flowmsg
|
699
|
+
@StatusDesc = statusdesc
|
700
|
+
@RenewFlag = renewflag
|
701
|
+
@Tags = tags
|
702
|
+
@Monitor = monitor
|
703
|
+
@HasClsTopic = hasclstopic
|
704
|
+
@ClsTopicId = clstopicid
|
705
|
+
@ClsLogSetId = clslogsetid
|
706
|
+
@EnableXMLConfig = enablexmlconfig
|
707
|
+
@RegionDesc = regiondesc
|
708
|
+
@Eip = eip
|
709
|
+
@CosMoveFactor = cosmovefactor
|
710
|
+
end
|
711
|
+
|
712
|
+
def deserialize(params)
|
713
|
+
@InstanceId = params['InstanceId']
|
714
|
+
@InstanceName = params['InstanceName']
|
715
|
+
@Status = params['Status']
|
716
|
+
@Version = params['Version']
|
717
|
+
@Region = params['Region']
|
718
|
+
@Zone = params['Zone']
|
719
|
+
@VpcId = params['VpcId']
|
720
|
+
@SubnetId = params['SubnetId']
|
721
|
+
@PayMode = params['PayMode']
|
722
|
+
@CreateTime = params['CreateTime']
|
723
|
+
@ExpireTime = params['ExpireTime']
|
724
|
+
unless params['MasterSummary'].nil?
|
725
|
+
@MasterSummary = NodesSummary.new
|
726
|
+
@MasterSummary.deserialize(params['MasterSummary'])
|
727
|
+
end
|
728
|
+
unless params['CommonSummary'].nil?
|
729
|
+
@CommonSummary = NodesSummary.new
|
730
|
+
@CommonSummary.deserialize(params['CommonSummary'])
|
731
|
+
end
|
732
|
+
@HA = params['HA']
|
733
|
+
@AccessInfo = params['AccessInfo']
|
734
|
+
@Id = params['Id']
|
735
|
+
@RegionId = params['RegionId']
|
736
|
+
@ZoneDesc = params['ZoneDesc']
|
737
|
+
@FlowMsg = params['FlowMsg']
|
738
|
+
@StatusDesc = params['StatusDesc']
|
739
|
+
@RenewFlag = params['RenewFlag']
|
740
|
+
unless params['Tags'].nil?
|
741
|
+
@Tags = []
|
742
|
+
params['Tags'].each do |i|
|
743
|
+
tag_tmp = Tag.new
|
744
|
+
tag_tmp.deserialize(i)
|
745
|
+
@Tags << tag_tmp
|
746
|
+
end
|
747
|
+
end
|
748
|
+
@Monitor = params['Monitor']
|
749
|
+
@HasClsTopic = params['HasClsTopic']
|
750
|
+
@ClsTopicId = params['ClsTopicId']
|
751
|
+
@ClsLogSetId = params['ClsLogSetId']
|
752
|
+
@EnableXMLConfig = params['EnableXMLConfig']
|
753
|
+
@RegionDesc = params['RegionDesc']
|
754
|
+
@Eip = params['Eip']
|
755
|
+
@CosMoveFactor = params['CosMoveFactor']
|
756
|
+
end
|
757
|
+
end
|
758
|
+
|
407
759
|
# ModifyClusterConfigs请求参数结构体
|
408
760
|
class ModifyClusterConfigsRequest < TencentCloud::Common::AbstractModel
|
409
761
|
# @param InstanceId: 集群ID,例如cdwch-xxxx
|
@@ -486,6 +838,70 @@ module TencentCloud
|
|
486
838
|
end
|
487
839
|
end
|
488
840
|
|
841
|
+
# 创建集群时的规格
|
842
|
+
class NodeSpec < TencentCloud::Common::AbstractModel
|
843
|
+
# @param SpecName: 规格名称
|
844
|
+
# @type SpecName: String
|
845
|
+
# @param Count: 数量
|
846
|
+
# @type Count: Integer
|
847
|
+
# @param DiskSize: 云盘大小
|
848
|
+
# @type DiskSize: Integer
|
849
|
+
|
850
|
+
attr_accessor :SpecName, :Count, :DiskSize
|
851
|
+
|
852
|
+
def initialize(specname=nil, count=nil, disksize=nil)
|
853
|
+
@SpecName = specname
|
854
|
+
@Count = count
|
855
|
+
@DiskSize = disksize
|
856
|
+
end
|
857
|
+
|
858
|
+
def deserialize(params)
|
859
|
+
@SpecName = params['SpecName']
|
860
|
+
@Count = params['Count']
|
861
|
+
@DiskSize = params['DiskSize']
|
862
|
+
end
|
863
|
+
end
|
864
|
+
|
865
|
+
# 节点角色描述信息
|
866
|
+
class NodesSummary < TencentCloud::Common::AbstractModel
|
867
|
+
# @param Spec: 机型,如 S1
|
868
|
+
# @type Spec: String
|
869
|
+
# @param NodeSize: 节点数目
|
870
|
+
# @type NodeSize: Integer
|
871
|
+
# @param Core: cpu核数,单位个
|
872
|
+
# @type Core: Integer
|
873
|
+
# @param Memory: 内存大小,单位G
|
874
|
+
# @type Memory: Integer
|
875
|
+
# @param Disk: 磁盘大小,单位G
|
876
|
+
# @type Disk: Integer
|
877
|
+
# @param DiskType: 磁盘类型
|
878
|
+
# @type DiskType: String
|
879
|
+
# @param DiskDesc: 磁盘描述
|
880
|
+
# @type DiskDesc: String
|
881
|
+
|
882
|
+
attr_accessor :Spec, :NodeSize, :Core, :Memory, :Disk, :DiskType, :DiskDesc
|
883
|
+
|
884
|
+
def initialize(spec=nil, nodesize=nil, core=nil, memory=nil, disk=nil, disktype=nil, diskdesc=nil)
|
885
|
+
@Spec = spec
|
886
|
+
@NodeSize = nodesize
|
887
|
+
@Core = core
|
888
|
+
@Memory = memory
|
889
|
+
@Disk = disk
|
890
|
+
@DiskType = disktype
|
891
|
+
@DiskDesc = diskdesc
|
892
|
+
end
|
893
|
+
|
894
|
+
def deserialize(params)
|
895
|
+
@Spec = params['Spec']
|
896
|
+
@NodeSize = params['NodeSize']
|
897
|
+
@Core = params['Core']
|
898
|
+
@Memory = params['Memory']
|
899
|
+
@Disk = params['Disk']
|
900
|
+
@DiskType = params['DiskType']
|
901
|
+
@DiskDesc = params['DiskDesc']
|
902
|
+
end
|
903
|
+
end
|
904
|
+
|
489
905
|
# OpenBackUp请求参数结构体
|
490
906
|
class OpenBackUpRequest < TencentCloud::Common::AbstractModel
|
491
907
|
# @param InstanceId: 集群id
|
@@ -592,6 +1008,26 @@ module TencentCloud
|
|
592
1008
|
end
|
593
1009
|
end
|
594
1010
|
|
1011
|
+
# 标签描述
|
1012
|
+
class Tag < TencentCloud::Common::AbstractModel
|
1013
|
+
# @param TagKey: 标签的键
|
1014
|
+
# @type TagKey: String
|
1015
|
+
# @param TagValue: 标签的值
|
1016
|
+
# @type TagValue: String
|
1017
|
+
|
1018
|
+
attr_accessor :TagKey, :TagValue
|
1019
|
+
|
1020
|
+
def initialize(tagkey=nil, tagvalue=nil)
|
1021
|
+
@TagKey = tagkey
|
1022
|
+
@TagValue = tagvalue
|
1023
|
+
end
|
1024
|
+
|
1025
|
+
def deserialize(params)
|
1026
|
+
@TagKey = params['TagKey']
|
1027
|
+
@TagValue = params['TagValue']
|
1028
|
+
end
|
1029
|
+
end
|
1030
|
+
|
595
1031
|
end
|
596
1032
|
end
|
597
1033
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tencentcloud-sdk-cdwch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.477
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|