tencentcloud-sdk-cdwch 3.0.461 → 3.0.462

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f3cc5de33c371ed6fffdf3b955675e5f21ca705
4
- data.tar.gz: 0040d9dc034d3c4ef8a20510ea747702515cff5b
3
+ metadata.gz: 4ce40dbb010da25b05c6f8163a5177f47d394dd7
4
+ data.tar.gz: 59ca798452c7ed5d863f1c0ed30f3500f877c594
5
5
  SHA512:
6
- metadata.gz: 3a0962d32f1165a355b5cde7de58ab5cf563fbec14c553195dc58b6706ec25eab2a4133df14a73434031e59014119671b797c34f35166ff760b850354efdf8df
7
- data.tar.gz: cd97e3957da3fba3d9e86725ac3bb5b8cf5e1276c952462ef9b3a7af7dea5dcf4626084d02f870c1b2c3f5f3c56de768b811db07c935aad40cc02485ab24d5ae
6
+ metadata.gz: 00d3392840c86c899967c56d7529dc11dfeaf92de61729ca19efeed5235092c1fd33ab22a7a5712c8c868124272447bb00f57c6f6015c0686891a59c5330b10f
7
+ data.tar.gz: e2649bf756740a4b003f78a866b379f15f6cccea0b7504b1e30a30e15d23d439e185df341a2153ea1997419c7b5b5817f4f0a10232ceb899ace1db0c32209e71
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.461
1
+ 3.0.462
@@ -125,6 +125,30 @@ module TencentCloud
125
125
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
126
126
  end
127
127
 
128
+ # 购买页拉取集群的数据节点和zookeeper节点的规格列表
129
+
130
+ # @param request: Request instance for DescribeSpec.
131
+ # @type request: :class:`Tencentcloud::cdwch::V20200915::DescribeSpecRequest`
132
+ # @rtype: :class:`Tencentcloud::cdwch::V20200915::DescribeSpecResponse`
133
+ def DescribeSpec(request)
134
+ body = send_request('DescribeSpec', request.serialize)
135
+ response = JSON.parse(body)
136
+ if response['Response'].key?('Error') == false
137
+ model = DescribeSpecResponse.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
+
128
152
  # 在集群配置页面修改集群配置文件接口,xml模式
129
153
 
130
154
  # @param request: Request instance for ModifyClusterConfigs.
@@ -286,6 +286,112 @@ module TencentCloud
286
286
  end
287
287
  end
288
288
 
289
+ # DescribeSpec请求参数结构体
290
+ class DescribeSpecRequest < TencentCloud::Common::AbstractModel
291
+ # @param Zone: 地域信息,例如"ap-guangzhou-1"
292
+ # @type Zone: String
293
+ # @param PayMode: 计费类型,PREPAID 包年包月,POSTPAID_BY_HOUR 按量计费
294
+ # @type PayMode: String
295
+ # @param IsElastic: 是否弹性ck
296
+ # @type IsElastic: Boolean
297
+
298
+ attr_accessor :Zone, :PayMode, :IsElastic
299
+
300
+ def initialize(zone=nil, paymode=nil, iselastic=nil)
301
+ @Zone = zone
302
+ @PayMode = paymode
303
+ @IsElastic = iselastic
304
+ end
305
+
306
+ def deserialize(params)
307
+ @Zone = params['Zone']
308
+ @PayMode = params['PayMode']
309
+ @IsElastic = params['IsElastic']
310
+ end
311
+ end
312
+
313
+ # DescribeSpec返回参数结构体
314
+ class DescribeSpecResponse < TencentCloud::Common::AbstractModel
315
+ # @param CommonSpec: zookeeper节点规格描述
316
+ # @type CommonSpec: Array
317
+ # @param DataSpec: 数据节点规格描述
318
+ # @type DataSpec: Array
319
+ # @param AttachCBSSpec: 云盘列表
320
+ # 注意:此字段可能返回 null,表示取不到有效值。
321
+ # @type AttachCBSSpec: Array
322
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
323
+ # @type RequestId: String
324
+
325
+ attr_accessor :CommonSpec, :DataSpec, :AttachCBSSpec, :RequestId
326
+
327
+ def initialize(commonspec=nil, dataspec=nil, attachcbsspec=nil, requestid=nil)
328
+ @CommonSpec = commonspec
329
+ @DataSpec = dataspec
330
+ @AttachCBSSpec = attachcbsspec
331
+ @RequestId = requestid
332
+ end
333
+
334
+ def deserialize(params)
335
+ unless params['CommonSpec'].nil?
336
+ @CommonSpec = []
337
+ params['CommonSpec'].each do |i|
338
+ resourcespec_tmp = ResourceSpec.new
339
+ resourcespec_tmp.deserialize(i)
340
+ @CommonSpec << resourcespec_tmp
341
+ end
342
+ end
343
+ unless params['DataSpec'].nil?
344
+ @DataSpec = []
345
+ params['DataSpec'].each do |i|
346
+ resourcespec_tmp = ResourceSpec.new
347
+ resourcespec_tmp.deserialize(i)
348
+ @DataSpec << resourcespec_tmp
349
+ end
350
+ end
351
+ unless params['AttachCBSSpec'].nil?
352
+ @AttachCBSSpec = []
353
+ params['AttachCBSSpec'].each do |i|
354
+ diskspec_tmp = DiskSpec.new
355
+ diskspec_tmp.deserialize(i)
356
+ @AttachCBSSpec << diskspec_tmp
357
+ end
358
+ end
359
+ @RequestId = params['RequestId']
360
+ end
361
+ end
362
+
363
+ # 磁盘规格描述
364
+ class DiskSpec < TencentCloud::Common::AbstractModel
365
+ # @param DiskType: 磁盘类型,例如“CLOUD_SSD", "LOCAL_SSD"等
366
+ # @type DiskType: String
367
+ # @param DiskDesc: 磁盘类型说明,例如"云SSD", "本地SSD"等
368
+ # @type DiskDesc: String
369
+ # @param MinDiskSize: 磁盘最小规格大小,单位G
370
+ # @type MinDiskSize: Integer
371
+ # @param MaxDiskSize: 磁盘最大规格大小,单位G
372
+ # @type MaxDiskSize: Integer
373
+ # @param DiskCount: 磁盘数目
374
+ # @type DiskCount: Integer
375
+
376
+ attr_accessor :DiskType, :DiskDesc, :MinDiskSize, :MaxDiskSize, :DiskCount
377
+
378
+ def initialize(disktype=nil, diskdesc=nil, mindisksize=nil, maxdisksize=nil, diskcount=nil)
379
+ @DiskType = disktype
380
+ @DiskDesc = diskdesc
381
+ @MinDiskSize = mindisksize
382
+ @MaxDiskSize = maxdisksize
383
+ @DiskCount = diskcount
384
+ end
385
+
386
+ def deserialize(params)
387
+ @DiskType = params['DiskType']
388
+ @DiskDesc = params['DiskDesc']
389
+ @MinDiskSize = params['MinDiskSize']
390
+ @MaxDiskSize = params['MaxDiskSize']
391
+ @DiskCount = params['DiskCount']
392
+ end
393
+ end
394
+
289
395
  # ModifyClusterConfigs请求参数结构体
290
396
  class ModifyClusterConfigsRequest < TencentCloud::Common::AbstractModel
291
397
  # @param InstanceId: 集群ID,例如cdwch-xxxx
@@ -408,6 +514,72 @@ module TencentCloud
408
514
  end
409
515
  end
410
516
 
517
+ # 资源规格描述信息
518
+ class ResourceSpec < TencentCloud::Common::AbstractModel
519
+ # @param Name: 规格名称,例如“SCH1"
520
+ # @type Name: String
521
+ # @param Cpu: cpu核数
522
+ # @type Cpu: Integer
523
+ # @param Mem: 内存大小,单位G
524
+ # @type Mem: Integer
525
+ # @param Type: 分类标记,STANDARD/BIGDATA/HIGHIO分别表示标准型/大数据型/高IO
526
+ # @type Type: String
527
+ # @param SystemDisk: 系统盘描述信息
528
+ # @type SystemDisk: :class:`Tencentcloud::Cdwch.v20200915.models.DiskSpec`
529
+ # @param DataDisk: 数据盘描述信息
530
+ # @type DataDisk: :class:`Tencentcloud::Cdwch.v20200915.models.DiskSpec`
531
+ # @param MaxNodeSize: 最大节点数目限制
532
+ # @type MaxNodeSize: Integer
533
+ # @param Available: 是否可用,false代表售罄
534
+ # 注意:此字段可能返回 null,表示取不到有效值。
535
+ # @type Available: Boolean
536
+ # @param ComputeSpecDesc: 规格描述信息
537
+ # 注意:此字段可能返回 null,表示取不到有效值。
538
+ # @type ComputeSpecDesc: String
539
+ # @param DisplayName: 规格名
540
+ # 注意:此字段可能返回 null,表示取不到有效值。
541
+ # @type DisplayName: String
542
+ # @param InstanceQuota: 库存数
543
+ # 注意:此字段可能返回 null,表示取不到有效值。
544
+ # @type InstanceQuota: Integer
545
+
546
+ attr_accessor :Name, :Cpu, :Mem, :Type, :SystemDisk, :DataDisk, :MaxNodeSize, :Available, :ComputeSpecDesc, :DisplayName, :InstanceQuota
547
+
548
+ def initialize(name=nil, cpu=nil, mem=nil, type=nil, systemdisk=nil, datadisk=nil, maxnodesize=nil, available=nil, computespecdesc=nil, displayname=nil, instancequota=nil)
549
+ @Name = name
550
+ @Cpu = cpu
551
+ @Mem = mem
552
+ @Type = type
553
+ @SystemDisk = systemdisk
554
+ @DataDisk = datadisk
555
+ @MaxNodeSize = maxnodesize
556
+ @Available = available
557
+ @ComputeSpecDesc = computespecdesc
558
+ @DisplayName = displayname
559
+ @InstanceQuota = instancequota
560
+ end
561
+
562
+ def deserialize(params)
563
+ @Name = params['Name']
564
+ @Cpu = params['Cpu']
565
+ @Mem = params['Mem']
566
+ @Type = params['Type']
567
+ unless params['SystemDisk'].nil?
568
+ @SystemDisk = DiskSpec.new
569
+ @SystemDisk.deserialize(params['SystemDisk'])
570
+ end
571
+ unless params['DataDisk'].nil?
572
+ @DataDisk = DiskSpec.new
573
+ @DataDisk.deserialize(params['DataDisk'])
574
+ end
575
+ @MaxNodeSize = params['MaxNodeSize']
576
+ @Available = params['Available']
577
+ @ComputeSpecDesc = params['ComputeSpecDesc']
578
+ @DisplayName = params['DisplayName']
579
+ @InstanceQuota = params['InstanceQuota']
580
+ end
581
+ end
582
+
411
583
  end
412
584
  end
413
585
  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.461
4
+ version: 3.0.462
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-11-29 00:00:00.000000000 Z
11
+ date: 2022-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common