tencentcloud-sdk-cvm 1.0.346 → 1.0.347

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: 60cf74439964b32ae2d3d8aecc35f71441aa7328
4
- data.tar.gz: 897fd0b3dd698e99382e51589d0ae6a1ef64fea7
3
+ metadata.gz: 47327e5068ac9b9097f895bfa42922cada6db0ff
4
+ data.tar.gz: 6943d49db89d71eb95a3f613493986a2a063053f
5
5
  SHA512:
6
- metadata.gz: eec87d7d7e24cc6f87d6fc3acecd7cf3f6e0e388af3b4feea5caac557aed5cfd813ff9b20da35a0f3c6603aab51300237279bd5c3497d1a4ee7e555de9b3df6d
7
- data.tar.gz: eb7e14db7e47706f81188049a1e8f738c0a847794018744cc0d5566566a85cf48df1ec33cc67e719496d48ece73d3038d1e5846dbf11346e7c188d1491d554b9
6
+ metadata.gz: 7e0e1f32ff66f04c079f856bcbc94b5a4150cdc720ff5d21dc3c9d71f7385e90609a1c59c01316211d01dbeb0e4ef6db821ab927bb0d963843c560215781ad5b
7
+ data.tar.gz: 0ed82773a9e864898805a14c069b1487d90796c98c3114097d8d79f02c6607d4a36973cf41a2525ee336466012c6c19542ad4c5300373b364821fa158fe82898
data/lib/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.346
1
+ 1.0.347
@@ -388,6 +388,33 @@ module TencentCloud
388
388
  raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
389
389
  end
390
390
 
391
+ # 本接口 (DescribeChcHosts) 用于查询一个或多个CHC物理服务器详细信息。
392
+
393
+ # * 可以根据实例`ID`、实例名称或者设备类型等信息来查询实例的详细信息。过滤信息详细请见过滤器`Filter`。
394
+ # * 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的实例。
395
+
396
+ # @param request: Request instance for DescribeChcHosts.
397
+ # @type request: :class:`Tencentcloud::cvm::V20170312::DescribeChcHostsRequest`
398
+ # @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeChcHostsResponse`
399
+ def DescribeChcHosts(request)
400
+ body = send_request('DescribeChcHosts', request.serialize)
401
+ response = JSON.parse(body)
402
+ if response['Response'].key?('Error') == false
403
+ model = DescribeChcHostsResponse.new
404
+ model.deserialize(response['Response'])
405
+ model
406
+ else
407
+ code = response['Response']['Error']['Code']
408
+ message = response['Response']['Error']['Message']
409
+ reqid = response['Response']['RequestId']
410
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
411
+ end
412
+ rescue TencentCloud::Common::TencentCloudSDKException => e
413
+ raise e
414
+ rescue StandardError => e
415
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
416
+ end
417
+
391
418
  # 本接口 (DescribeDisasterRecoverGroupQuota)用于查询[分散置放群组](https://cloud.tencent.com/document/product/213/15486)配额。
392
419
 
393
420
  # @param request: Request instance for DescribeDisasterRecoverGroupQuota.
@@ -303,6 +303,153 @@ module TencentCloud
303
303
  end
304
304
  end
305
305
 
306
+ # chc部署网络minos引导配置。
307
+ class ChcDeployExtraConfig < TencentCloud::Common::AbstractModel
308
+
309
+
310
+ def initialize()
311
+ end
312
+
313
+ def deserialize(params)
314
+ end
315
+ end
316
+
317
+ # CHC物理服务器信息
318
+ class ChcHost < TencentCloud::Common::AbstractModel
319
+ # @param ChcId: CHC物理服务器ID。
320
+ # @type ChcId: String
321
+ # @param InstanceName: 实例名称。
322
+ # @type InstanceName: String
323
+ # @param SerialNumber: 服务器序列号。
324
+ # @type SerialNumber: String
325
+ # @param InstanceState: CHC的状态<br/>
326
+ # <ul>
327
+ # <li>REGISTERED: 设备已录入。还未配置带外和部署网络</li>
328
+ # <li>VPC_READY: 已配置带外和部署网络</li>
329
+ # <li>PREPARED: 可分配云主机</li>
330
+ # <li>ONLINE: 已分配云主机</li>
331
+ # </ul>
332
+ # @type InstanceState: String
333
+ # @param DeviceType: 设备类型。
334
+ # 注意:此字段可能返回 null,表示取不到有效值。
335
+ # @type DeviceType: String
336
+ # @param Placement: 所属可用区
337
+ # @type Placement: :class:`Tencentcloud::Cvm.v20170312.models.Placement`
338
+ # @param BmcVirtualPrivateCloud: 带外网络。
339
+ # 注意:此字段可能返回 null,表示取不到有效值。
340
+ # @type BmcVirtualPrivateCloud: :class:`Tencentcloud::Cvm.v20170312.models.VirtualPrivateCloud`
341
+ # @param BmcIp: 带外网络Ip。
342
+ # 注意:此字段可能返回 null,表示取不到有效值。
343
+ # @type BmcIp: String
344
+ # @param BmcSecurityGroupIds: 带外网络安全组Id。
345
+ # 注意:此字段可能返回 null,表示取不到有效值。
346
+ # @type BmcSecurityGroupIds: Array
347
+ # @param DeployVirtualPrivateCloud: 部署网络。
348
+ # 注意:此字段可能返回 null,表示取不到有效值。
349
+ # @type DeployVirtualPrivateCloud: :class:`Tencentcloud::Cvm.v20170312.models.VirtualPrivateCloud`
350
+ # @param DeployIp: 部署网络Ip。
351
+ # 注意:此字段可能返回 null,表示取不到有效值。
352
+ # @type DeployIp: String
353
+ # @param DeploySecurityGroupIds: 部署网络安全组Id。
354
+ # 注意:此字段可能返回 null,表示取不到有效值。
355
+ # @type DeploySecurityGroupIds: Array
356
+ # @param CvmInstanceId: 关联的云主机Id。
357
+ # 注意:此字段可能返回 null,表示取不到有效值。
358
+ # @type CvmInstanceId: String
359
+ # @param CreatedTime: 服务器导入的时间。
360
+ # @type CreatedTime: String
361
+ # @param HardwareDescription: 机型的硬件描述,分别为CPU核数,内存容量和磁盘容量
362
+ # 注意:此字段可能返回 null,表示取不到有效值。
363
+ # @type HardwareDescription: String
364
+ # @param CPU: CHC物理服务器的CPU核数
365
+ # 注意:此字段可能返回 null,表示取不到有效值。
366
+ # @type CPU: Integer
367
+ # @param Memory: CHC物理服务器的内存大小,单位为GB
368
+ # 注意:此字段可能返回 null,表示取不到有效值。
369
+ # @type Memory: Integer
370
+ # @param Disk: CHC物理服务器的磁盘信息
371
+ # 注意:此字段可能返回 null,表示取不到有效值。
372
+ # @type Disk: String
373
+ # @param BmcMAC: 带外网络下分配的MAC地址
374
+ # 注意:此字段可能返回 null,表示取不到有效值。
375
+ # @type BmcMAC: String
376
+ # @param DeployMAC: 部署网络下分配的MAC地址
377
+ # 注意:此字段可能返回 null,表示取不到有效值。
378
+ # @type DeployMAC: String
379
+ # @param TenantType: 设备托管类型。
380
+ # HOSTING: 托管
381
+ # TENANT: 租赁
382
+ # 注意:此字段可能返回 null,表示取不到有效值。
383
+ # @type TenantType: String
384
+ # @param DeployExtraConfig: chc dhcp选项,用于minios调试
385
+ # 注意:此字段可能返回 null,表示取不到有效值。
386
+ # @type DeployExtraConfig: :class:`Tencentcloud::Cvm.v20170312.models.ChcDeployExtraConfig`
387
+
388
+ attr_accessor :ChcId, :InstanceName, :SerialNumber, :InstanceState, :DeviceType, :Placement, :BmcVirtualPrivateCloud, :BmcIp, :BmcSecurityGroupIds, :DeployVirtualPrivateCloud, :DeployIp, :DeploySecurityGroupIds, :CvmInstanceId, :CreatedTime, :HardwareDescription, :CPU, :Memory, :Disk, :BmcMAC, :DeployMAC, :TenantType, :DeployExtraConfig
389
+
390
+ def initialize(chcid=nil, instancename=nil, serialnumber=nil, instancestate=nil, devicetype=nil, placement=nil, bmcvirtualprivatecloud=nil, bmcip=nil, bmcsecuritygroupids=nil, deployvirtualprivatecloud=nil, deployip=nil, deploysecuritygroupids=nil, cvminstanceid=nil, createdtime=nil, hardwaredescription=nil, cpu=nil, memory=nil, disk=nil, bmcmac=nil, deploymac=nil, tenanttype=nil, deployextraconfig=nil)
391
+ @ChcId = chcid
392
+ @InstanceName = instancename
393
+ @SerialNumber = serialnumber
394
+ @InstanceState = instancestate
395
+ @DeviceType = devicetype
396
+ @Placement = placement
397
+ @BmcVirtualPrivateCloud = bmcvirtualprivatecloud
398
+ @BmcIp = bmcip
399
+ @BmcSecurityGroupIds = bmcsecuritygroupids
400
+ @DeployVirtualPrivateCloud = deployvirtualprivatecloud
401
+ @DeployIp = deployip
402
+ @DeploySecurityGroupIds = deploysecuritygroupids
403
+ @CvmInstanceId = cvminstanceid
404
+ @CreatedTime = createdtime
405
+ @HardwareDescription = hardwaredescription
406
+ @CPU = cpu
407
+ @Memory = memory
408
+ @Disk = disk
409
+ @BmcMAC = bmcmac
410
+ @DeployMAC = deploymac
411
+ @TenantType = tenanttype
412
+ @DeployExtraConfig = deployextraconfig
413
+ end
414
+
415
+ def deserialize(params)
416
+ @ChcId = params['ChcId']
417
+ @InstanceName = params['InstanceName']
418
+ @SerialNumber = params['SerialNumber']
419
+ @InstanceState = params['InstanceState']
420
+ @DeviceType = params['DeviceType']
421
+ unless params['Placement'].nil?
422
+ @Placement = Placement.new
423
+ @Placement.deserialize(params['Placement'])
424
+ end
425
+ unless params['BmcVirtualPrivateCloud'].nil?
426
+ @BmcVirtualPrivateCloud = VirtualPrivateCloud.new
427
+ @BmcVirtualPrivateCloud.deserialize(params['BmcVirtualPrivateCloud'])
428
+ end
429
+ @BmcIp = params['BmcIp']
430
+ @BmcSecurityGroupIds = params['BmcSecurityGroupIds']
431
+ unless params['DeployVirtualPrivateCloud'].nil?
432
+ @DeployVirtualPrivateCloud = VirtualPrivateCloud.new
433
+ @DeployVirtualPrivateCloud.deserialize(params['DeployVirtualPrivateCloud'])
434
+ end
435
+ @DeployIp = params['DeployIp']
436
+ @DeploySecurityGroupIds = params['DeploySecurityGroupIds']
437
+ @CvmInstanceId = params['CvmInstanceId']
438
+ @CreatedTime = params['CreatedTime']
439
+ @HardwareDescription = params['HardwareDescription']
440
+ @CPU = params['CPU']
441
+ @Memory = params['Memory']
442
+ @Disk = params['Disk']
443
+ @BmcMAC = params['BmcMAC']
444
+ @DeployMAC = params['DeployMAC']
445
+ @TenantType = params['TenantType']
446
+ unless params['DeployExtraConfig'].nil?
447
+ @DeployExtraConfig = ChcDeployExtraConfig.new
448
+ @DeployExtraConfig.deserialize(params['DeployExtraConfig'])
449
+ end
450
+ end
451
+ end
452
+
306
453
  # CreateDisasterRecoverGroup请求参数结构体
307
454
  class CreateDisasterRecoverGroupRequest < TencentCloud::Common::AbstractModel
308
455
  # @param Name: 分散置放群组名称,长度1-60个字符,支持中、英文。
@@ -1159,6 +1306,83 @@ module TencentCloud
1159
1306
  end
1160
1307
  end
1161
1308
 
1309
+ # DescribeChcHosts请求参数结构体
1310
+ class DescribeChcHostsRequest < TencentCloud::Common::AbstractModel
1311
+ # @param ChcIds: CHC物理服务器实例ID。每次请求的实例的上限为100。参数不支持同时指定`ChcIds`和`Filters`。
1312
+ # @type ChcIds: Array
1313
+ # @param Filters: <li><strong>zone</strong></li>
1314
+ # <p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a></p>
1315
+ # <li><strong>instance-name</strong></li>
1316
+ # <p style="padding-left: 30px;">按照【<strong>实例名称</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1317
+ # <li><strong>instance-state</strong></li>
1318
+ # <p style="padding-left: 30px;">按照【<strong>实例状态</strong>】进行过滤。状态类型详见[实例状态表](https://cloud.tencent.com/document/api/213/15753#InstanceStatus)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1319
+ # <li><strong>device-type</strong></li>
1320
+ # <p style="padding-left: 30px;">按照【<strong>设备类型</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1321
+ # <li><strong>vpc-id</strong></li>
1322
+ # <p style="padding-left: 30px;">按照【<strong>私有网络唯一ID</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1323
+ # <li><strong>subnet-id</strong></li>
1324
+ # <p style="padding-left: 30px;">按照【<strong>私有子网唯一ID</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
1325
+ # @type Filters: Array
1326
+ # @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
1327
+ # @type Offset: Integer
1328
+ # @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
1329
+ # @type Limit: Integer
1330
+
1331
+ attr_accessor :ChcIds, :Filters, :Offset, :Limit
1332
+
1333
+ def initialize(chcids=nil, filters=nil, offset=nil, limit=nil)
1334
+ @ChcIds = chcids
1335
+ @Filters = filters
1336
+ @Offset = offset
1337
+ @Limit = limit
1338
+ end
1339
+
1340
+ def deserialize(params)
1341
+ @ChcIds = params['ChcIds']
1342
+ unless params['Filters'].nil?
1343
+ @Filters = []
1344
+ params['Filters'].each do |i|
1345
+ filter_tmp = Filter.new
1346
+ filter_tmp.deserialize(i)
1347
+ @Filters << filter_tmp
1348
+ end
1349
+ end
1350
+ @Offset = params['Offset']
1351
+ @Limit = params['Limit']
1352
+ end
1353
+ end
1354
+
1355
+ # DescribeChcHosts返回参数结构体
1356
+ class DescribeChcHostsResponse < TencentCloud::Common::AbstractModel
1357
+ # @param TotalCount: 符合条件的实例数量。
1358
+ # @type TotalCount: Integer
1359
+ # @param ChcHostSet: 返回的实例列表
1360
+ # @type ChcHostSet: Array
1361
+ # @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1362
+ # @type RequestId: String
1363
+
1364
+ attr_accessor :TotalCount, :ChcHostSet, :RequestId
1365
+
1366
+ def initialize(totalcount=nil, chchostset=nil, requestid=nil)
1367
+ @TotalCount = totalcount
1368
+ @ChcHostSet = chchostset
1369
+ @RequestId = requestid
1370
+ end
1371
+
1372
+ def deserialize(params)
1373
+ @TotalCount = params['TotalCount']
1374
+ unless params['ChcHostSet'].nil?
1375
+ @ChcHostSet = []
1376
+ params['ChcHostSet'].each do |i|
1377
+ chchost_tmp = ChcHost.new
1378
+ chchost_tmp.deserialize(i)
1379
+ @ChcHostSet << chchost_tmp
1380
+ end
1381
+ end
1382
+ @RequestId = params['RequestId']
1383
+ end
1384
+ end
1385
+
1162
1386
  # DescribeDisasterRecoverGroupQuota请求参数结构体
1163
1387
  class DescribeDisasterRecoverGroupQuotaRequest < TencentCloud::Common::AbstractModel
1164
1388
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tencentcloud-sdk-cvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.346
4
+ version: 1.0.347
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-07-01 00:00:00.000000000 Z
11
+ date: 2022-07-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tencentcloud-sdk-common