tencentcloud-sdk-cvm 1.0.345 → 1.0.348
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/v20170312/client.rb +147 -0
- data/lib/v20170312/models.rb +438 -1
- 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: 7f96ffb89e66a7e3b5cc3d5ab4bee46c58470d31
|
4
|
+
data.tar.gz: df3f5542fa3b923c9383feee0a7be6ace55f1e9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2134fd0b302723368cdcac66800199f514e3c750488ee77815979d39e914bf4afe0bf57feb9dbaf58619f664cd74776591d4f6da31318e59de53cd4a6efa067c
|
7
|
+
data.tar.gz: 9fcc8bbae84fb0999f1988c3bac5ec1e30ca30b6125799a58e464ee926a2cc66b4b32fba11c32ce5bca26c54bb546e50208b817dfcba6f15cd8c0f3e1b349300
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.348
|
data/lib/v20170312/client.rb
CHANGED
@@ -108,6 +108,54 @@ module TencentCloud
|
|
108
108
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
109
109
|
end
|
110
110
|
|
111
|
+
# 配置CHC物理服务器的带外和部署网络。传入带外网络和部署网络信息
|
112
|
+
|
113
|
+
# @param request: Request instance for ConfigureChcAssistVpc.
|
114
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::ConfigureChcAssistVpcRequest`
|
115
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::ConfigureChcAssistVpcResponse`
|
116
|
+
def ConfigureChcAssistVpc(request)
|
117
|
+
body = send_request('ConfigureChcAssistVpc', request.serialize)
|
118
|
+
response = JSON.parse(body)
|
119
|
+
if response['Response'].key?('Error') == false
|
120
|
+
model = ConfigureChcAssistVpcResponse.new
|
121
|
+
model.deserialize(response['Response'])
|
122
|
+
model
|
123
|
+
else
|
124
|
+
code = response['Response']['Error']['Code']
|
125
|
+
message = response['Response']['Error']['Message']
|
126
|
+
reqid = response['Response']['RequestId']
|
127
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
128
|
+
end
|
129
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
130
|
+
raise e
|
131
|
+
rescue StandardError => e
|
132
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
133
|
+
end
|
134
|
+
|
135
|
+
# 配置CHC物理服务器部署网络
|
136
|
+
|
137
|
+
# @param request: Request instance for ConfigureChcDeployVpc.
|
138
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::ConfigureChcDeployVpcRequest`
|
139
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::ConfigureChcDeployVpcResponse`
|
140
|
+
def ConfigureChcDeployVpc(request)
|
141
|
+
body = send_request('ConfigureChcDeployVpc', request.serialize)
|
142
|
+
response = JSON.parse(body)
|
143
|
+
if response['Response'].key?('Error') == false
|
144
|
+
model = ConfigureChcDeployVpcResponse.new
|
145
|
+
model.deserialize(response['Response'])
|
146
|
+
model
|
147
|
+
else
|
148
|
+
code = response['Response']['Error']['Code']
|
149
|
+
message = response['Response']['Error']['Message']
|
150
|
+
reqid = response['Response']['RequestId']
|
151
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
152
|
+
end
|
153
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
154
|
+
raise e
|
155
|
+
rescue StandardError => e
|
156
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
157
|
+
end
|
158
|
+
|
111
159
|
# 本接口 (CreateDisasterRecoverGroup)用于创建[分散置放群组](https://cloud.tencent.com/document/product/213/15486)。创建好的置放群组,可在[创建实例](https://cloud.tencent.com/document/api/213/15730)时指定。
|
112
160
|
|
113
161
|
# @param request: Request instance for CreateDisasterRecoverGroup.
|
@@ -388,6 +436,33 @@ module TencentCloud
|
|
388
436
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
389
437
|
end
|
390
438
|
|
439
|
+
# 本接口 (DescribeChcHosts) 用于查询一个或多个CHC物理服务器详细信息。
|
440
|
+
|
441
|
+
# * 可以根据实例`ID`、实例名称或者设备类型等信息来查询实例的详细信息。过滤信息详细请见过滤器`Filter`。
|
442
|
+
# * 如果参数为空,返回当前用户一定数量(`Limit`所指定的数量,默认为20)的实例。
|
443
|
+
|
444
|
+
# @param request: Request instance for DescribeChcHosts.
|
445
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::DescribeChcHostsRequest`
|
446
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeChcHostsResponse`
|
447
|
+
def DescribeChcHosts(request)
|
448
|
+
body = send_request('DescribeChcHosts', request.serialize)
|
449
|
+
response = JSON.parse(body)
|
450
|
+
if response['Response'].key?('Error') == false
|
451
|
+
model = DescribeChcHostsResponse.new
|
452
|
+
model.deserialize(response['Response'])
|
453
|
+
model
|
454
|
+
else
|
455
|
+
code = response['Response']['Error']['Code']
|
456
|
+
message = response['Response']['Error']['Message']
|
457
|
+
reqid = response['Response']['RequestId']
|
458
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
459
|
+
end
|
460
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
461
|
+
raise e
|
462
|
+
rescue StandardError => e
|
463
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
464
|
+
end
|
465
|
+
|
391
466
|
# 本接口 (DescribeDisasterRecoverGroupQuota)用于查询[分散置放群组](https://cloud.tencent.com/document/product/213/15486)配额。
|
392
467
|
|
393
468
|
# @param request: Request instance for DescribeDisasterRecoverGroupQuota.
|
@@ -1394,6 +1469,30 @@ module TencentCloud
|
|
1394
1469
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1395
1470
|
end
|
1396
1471
|
|
1472
|
+
# 修改CHC物理服务器的属性
|
1473
|
+
|
1474
|
+
# @param request: Request instance for ModifyChcAttribute.
|
1475
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::ModifyChcAttributeRequest`
|
1476
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::ModifyChcAttributeResponse`
|
1477
|
+
def ModifyChcAttribute(request)
|
1478
|
+
body = send_request('ModifyChcAttribute', request.serialize)
|
1479
|
+
response = JSON.parse(body)
|
1480
|
+
if response['Response'].key?('Error') == false
|
1481
|
+
model = ModifyChcAttributeResponse.new
|
1482
|
+
model.deserialize(response['Response'])
|
1483
|
+
model
|
1484
|
+
else
|
1485
|
+
code = response['Response']['Error']['Code']
|
1486
|
+
message = response['Response']['Error']['Message']
|
1487
|
+
reqid = response['Response']['RequestId']
|
1488
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1489
|
+
end
|
1490
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1491
|
+
raise e
|
1492
|
+
rescue StandardError => e
|
1493
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1494
|
+
end
|
1495
|
+
|
1397
1496
|
# 本接口 (ModifyDisasterRecoverGroupAttribute)用于修改[分散置放群组](https://cloud.tencent.com/document/product/213/15486)属性。
|
1398
1497
|
|
1399
1498
|
# @param request: Request instance for ModifyDisasterRecoverGroupAttribute.
|
@@ -1801,6 +1900,54 @@ module TencentCloud
|
|
1801
1900
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1802
1901
|
end
|
1803
1902
|
|
1903
|
+
# 清理CHC物理服务器的带外网络和部署网络
|
1904
|
+
|
1905
|
+
# @param request: Request instance for RemoveChcAssistVpc.
|
1906
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::RemoveChcAssistVpcRequest`
|
1907
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::RemoveChcAssistVpcResponse`
|
1908
|
+
def RemoveChcAssistVpc(request)
|
1909
|
+
body = send_request('RemoveChcAssistVpc', request.serialize)
|
1910
|
+
response = JSON.parse(body)
|
1911
|
+
if response['Response'].key?('Error') == false
|
1912
|
+
model = RemoveChcAssistVpcResponse.new
|
1913
|
+
model.deserialize(response['Response'])
|
1914
|
+
model
|
1915
|
+
else
|
1916
|
+
code = response['Response']['Error']['Code']
|
1917
|
+
message = response['Response']['Error']['Message']
|
1918
|
+
reqid = response['Response']['RequestId']
|
1919
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1920
|
+
end
|
1921
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1922
|
+
raise e
|
1923
|
+
rescue StandardError => e
|
1924
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1925
|
+
end
|
1926
|
+
|
1927
|
+
# 清理CHC物理服务器的部署网络
|
1928
|
+
|
1929
|
+
# @param request: Request instance for RemoveChcDeployVpc.
|
1930
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::RemoveChcDeployVpcRequest`
|
1931
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::RemoveChcDeployVpcResponse`
|
1932
|
+
def RemoveChcDeployVpc(request)
|
1933
|
+
body = send_request('RemoveChcDeployVpc', request.serialize)
|
1934
|
+
response = JSON.parse(body)
|
1935
|
+
if response['Response'].key?('Error') == false
|
1936
|
+
model = RemoveChcDeployVpcResponse.new
|
1937
|
+
model.deserialize(response['Response'])
|
1938
|
+
model
|
1939
|
+
else
|
1940
|
+
code = response['Response']['Error']['Code']
|
1941
|
+
message = response['Response']['Error']['Message']
|
1942
|
+
reqid = response['Response']['RequestId']
|
1943
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1944
|
+
end
|
1945
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1946
|
+
raise e
|
1947
|
+
rescue StandardError => e
|
1948
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1949
|
+
end
|
1950
|
+
|
1804
1951
|
# 本接口 (RenewHosts) 用于续费包年包月CDH实例。
|
1805
1952
|
|
1806
1953
|
# * 只支持操作包年包月实例,否则操作会以特定[错误码](#6.-.E9.94.99.E8.AF.AF.E7.A0.81)返回。
|
data/lib/v20170312/models.rb
CHANGED
@@ -303,6 +303,250 @@ 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
|
+
|
453
|
+
# ConfigureChcAssistVpc请求参数结构体
|
454
|
+
class ConfigureChcAssistVpcRequest < TencentCloud::Common::AbstractModel
|
455
|
+
# @param ChcIds: CHC物理服务器的实例Id。
|
456
|
+
# @type ChcIds: Array
|
457
|
+
# @param BmcVirtualPrivateCloud: 带外网络信息。
|
458
|
+
# @type BmcVirtualPrivateCloud: :class:`Tencentcloud::Cvm.v20170312.models.VirtualPrivateCloud`
|
459
|
+
# @param BmcSecurityGroupIds: 带外网络的安全组列表
|
460
|
+
# @type BmcSecurityGroupIds: Array
|
461
|
+
# @param DeployVirtualPrivateCloud: 部署网络信息。
|
462
|
+
# @type DeployVirtualPrivateCloud: :class:`Tencentcloud::Cvm.v20170312.models.VirtualPrivateCloud`
|
463
|
+
# @param DeploySecurityGroupIds: 部署网络的安全组列表
|
464
|
+
# @type DeploySecurityGroupIds: Array
|
465
|
+
|
466
|
+
attr_accessor :ChcIds, :BmcVirtualPrivateCloud, :BmcSecurityGroupIds, :DeployVirtualPrivateCloud, :DeploySecurityGroupIds
|
467
|
+
|
468
|
+
def initialize(chcids=nil, bmcvirtualprivatecloud=nil, bmcsecuritygroupids=nil, deployvirtualprivatecloud=nil, deploysecuritygroupids=nil)
|
469
|
+
@ChcIds = chcids
|
470
|
+
@BmcVirtualPrivateCloud = bmcvirtualprivatecloud
|
471
|
+
@BmcSecurityGroupIds = bmcsecuritygroupids
|
472
|
+
@DeployVirtualPrivateCloud = deployvirtualprivatecloud
|
473
|
+
@DeploySecurityGroupIds = deploysecuritygroupids
|
474
|
+
end
|
475
|
+
|
476
|
+
def deserialize(params)
|
477
|
+
@ChcIds = params['ChcIds']
|
478
|
+
unless params['BmcVirtualPrivateCloud'].nil?
|
479
|
+
@BmcVirtualPrivateCloud = VirtualPrivateCloud.new
|
480
|
+
@BmcVirtualPrivateCloud.deserialize(params['BmcVirtualPrivateCloud'])
|
481
|
+
end
|
482
|
+
@BmcSecurityGroupIds = params['BmcSecurityGroupIds']
|
483
|
+
unless params['DeployVirtualPrivateCloud'].nil?
|
484
|
+
@DeployVirtualPrivateCloud = VirtualPrivateCloud.new
|
485
|
+
@DeployVirtualPrivateCloud.deserialize(params['DeployVirtualPrivateCloud'])
|
486
|
+
end
|
487
|
+
@DeploySecurityGroupIds = params['DeploySecurityGroupIds']
|
488
|
+
end
|
489
|
+
end
|
490
|
+
|
491
|
+
# ConfigureChcAssistVpc返回参数结构体
|
492
|
+
class ConfigureChcAssistVpcResponse < TencentCloud::Common::AbstractModel
|
493
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
494
|
+
# @type RequestId: String
|
495
|
+
|
496
|
+
attr_accessor :RequestId
|
497
|
+
|
498
|
+
def initialize(requestid=nil)
|
499
|
+
@RequestId = requestid
|
500
|
+
end
|
501
|
+
|
502
|
+
def deserialize(params)
|
503
|
+
@RequestId = params['RequestId']
|
504
|
+
end
|
505
|
+
end
|
506
|
+
|
507
|
+
# ConfigureChcDeployVpc请求参数结构体
|
508
|
+
class ConfigureChcDeployVpcRequest < TencentCloud::Common::AbstractModel
|
509
|
+
# @param ChcIds: CHC物理服务器的实例Id。
|
510
|
+
# @type ChcIds: Array
|
511
|
+
# @param DeployVirtualPrivateCloud: 部署网络信息。
|
512
|
+
# @type DeployVirtualPrivateCloud: :class:`Tencentcloud::Cvm.v20170312.models.VirtualPrivateCloud`
|
513
|
+
# @param DeploySecurityGroupIds: 部署网络的安全组列表。
|
514
|
+
# @type DeploySecurityGroupIds: Array
|
515
|
+
|
516
|
+
attr_accessor :ChcIds, :DeployVirtualPrivateCloud, :DeploySecurityGroupIds
|
517
|
+
|
518
|
+
def initialize(chcids=nil, deployvirtualprivatecloud=nil, deploysecuritygroupids=nil)
|
519
|
+
@ChcIds = chcids
|
520
|
+
@DeployVirtualPrivateCloud = deployvirtualprivatecloud
|
521
|
+
@DeploySecurityGroupIds = deploysecuritygroupids
|
522
|
+
end
|
523
|
+
|
524
|
+
def deserialize(params)
|
525
|
+
@ChcIds = params['ChcIds']
|
526
|
+
unless params['DeployVirtualPrivateCloud'].nil?
|
527
|
+
@DeployVirtualPrivateCloud = VirtualPrivateCloud.new
|
528
|
+
@DeployVirtualPrivateCloud.deserialize(params['DeployVirtualPrivateCloud'])
|
529
|
+
end
|
530
|
+
@DeploySecurityGroupIds = params['DeploySecurityGroupIds']
|
531
|
+
end
|
532
|
+
end
|
533
|
+
|
534
|
+
# ConfigureChcDeployVpc返回参数结构体
|
535
|
+
class ConfigureChcDeployVpcResponse < TencentCloud::Common::AbstractModel
|
536
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
537
|
+
# @type RequestId: String
|
538
|
+
|
539
|
+
attr_accessor :RequestId
|
540
|
+
|
541
|
+
def initialize(requestid=nil)
|
542
|
+
@RequestId = requestid
|
543
|
+
end
|
544
|
+
|
545
|
+
def deserialize(params)
|
546
|
+
@RequestId = params['RequestId']
|
547
|
+
end
|
548
|
+
end
|
549
|
+
|
306
550
|
# CreateDisasterRecoverGroup请求参数结构体
|
307
551
|
class CreateDisasterRecoverGroupRequest < TencentCloud::Common::AbstractModel
|
308
552
|
# @param Name: 分散置放群组名称,长度1-60个字符,支持中、英文。
|
@@ -1159,6 +1403,83 @@ module TencentCloud
|
|
1159
1403
|
end
|
1160
1404
|
end
|
1161
1405
|
|
1406
|
+
# DescribeChcHosts请求参数结构体
|
1407
|
+
class DescribeChcHostsRequest < TencentCloud::Common::AbstractModel
|
1408
|
+
# @param ChcIds: CHC物理服务器实例ID。每次请求的实例的上限为100。参数不支持同时指定`ChcIds`和`Filters`。
|
1409
|
+
# @type ChcIds: Array
|
1410
|
+
# @param Filters: <li><strong>zone</strong></li>
|
1411
|
+
# <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>
|
1412
|
+
# <li><strong>instance-name</strong></li>
|
1413
|
+
# <p style="padding-left: 30px;">按照【<strong>实例名称</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
1414
|
+
# <li><strong>instance-state</strong></li>
|
1415
|
+
# <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>
|
1416
|
+
# <li><strong>device-type</strong></li>
|
1417
|
+
# <p style="padding-left: 30px;">按照【<strong>设备类型</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
1418
|
+
# <li><strong>vpc-id</strong></li>
|
1419
|
+
# <p style="padding-left: 30px;">按照【<strong>私有网络唯一ID</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
1420
|
+
# <li><strong>subnet-id</strong></li>
|
1421
|
+
# <p style="padding-left: 30px;">按照【<strong>私有子网唯一ID</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
1422
|
+
# @type Filters: Array
|
1423
|
+
# @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
1424
|
+
# @type Offset: Integer
|
1425
|
+
# @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
1426
|
+
# @type Limit: Integer
|
1427
|
+
|
1428
|
+
attr_accessor :ChcIds, :Filters, :Offset, :Limit
|
1429
|
+
|
1430
|
+
def initialize(chcids=nil, filters=nil, offset=nil, limit=nil)
|
1431
|
+
@ChcIds = chcids
|
1432
|
+
@Filters = filters
|
1433
|
+
@Offset = offset
|
1434
|
+
@Limit = limit
|
1435
|
+
end
|
1436
|
+
|
1437
|
+
def deserialize(params)
|
1438
|
+
@ChcIds = params['ChcIds']
|
1439
|
+
unless params['Filters'].nil?
|
1440
|
+
@Filters = []
|
1441
|
+
params['Filters'].each do |i|
|
1442
|
+
filter_tmp = Filter.new
|
1443
|
+
filter_tmp.deserialize(i)
|
1444
|
+
@Filters << filter_tmp
|
1445
|
+
end
|
1446
|
+
end
|
1447
|
+
@Offset = params['Offset']
|
1448
|
+
@Limit = params['Limit']
|
1449
|
+
end
|
1450
|
+
end
|
1451
|
+
|
1452
|
+
# DescribeChcHosts返回参数结构体
|
1453
|
+
class DescribeChcHostsResponse < TencentCloud::Common::AbstractModel
|
1454
|
+
# @param TotalCount: 符合条件的实例数量。
|
1455
|
+
# @type TotalCount: Integer
|
1456
|
+
# @param ChcHostSet: 返回的实例列表
|
1457
|
+
# @type ChcHostSet: Array
|
1458
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
1459
|
+
# @type RequestId: String
|
1460
|
+
|
1461
|
+
attr_accessor :TotalCount, :ChcHostSet, :RequestId
|
1462
|
+
|
1463
|
+
def initialize(totalcount=nil, chchostset=nil, requestid=nil)
|
1464
|
+
@TotalCount = totalcount
|
1465
|
+
@ChcHostSet = chchostset
|
1466
|
+
@RequestId = requestid
|
1467
|
+
end
|
1468
|
+
|
1469
|
+
def deserialize(params)
|
1470
|
+
@TotalCount = params['TotalCount']
|
1471
|
+
unless params['ChcHostSet'].nil?
|
1472
|
+
@ChcHostSet = []
|
1473
|
+
params['ChcHostSet'].each do |i|
|
1474
|
+
chchost_tmp = ChcHost.new
|
1475
|
+
chchost_tmp.deserialize(i)
|
1476
|
+
@ChcHostSet << chchost_tmp
|
1477
|
+
end
|
1478
|
+
end
|
1479
|
+
@RequestId = params['RequestId']
|
1480
|
+
end
|
1481
|
+
end
|
1482
|
+
|
1162
1483
|
# DescribeDisasterRecoverGroupQuota请求参数结构体
|
1163
1484
|
class DescribeDisasterRecoverGroupQuotaRequest < TencentCloud::Common::AbstractModel
|
1164
1485
|
|
@@ -4974,6 +5295,58 @@ module TencentCloud
|
|
4974
5295
|
end
|
4975
5296
|
end
|
4976
5297
|
|
5298
|
+
# ModifyChcAttribute请求参数结构体
|
5299
|
+
class ModifyChcAttributeRequest < TencentCloud::Common::AbstractModel
|
5300
|
+
# @param ChcIds: CHC物理服务器ID。
|
5301
|
+
# @type ChcIds: Array
|
5302
|
+
# @param InstanceName: CHC物理服务器名称
|
5303
|
+
# @type InstanceName: String
|
5304
|
+
# @param DeviceType: 服务器类型
|
5305
|
+
# @type DeviceType: String
|
5306
|
+
# @param BmcUser: 合法字符为字母,数字, 横线和下划线
|
5307
|
+
# @type BmcUser: String
|
5308
|
+
# @param Password: 密码8-16位字符, 允许数字,字母, 和特殊字符()`~!@#$%^&*-+=_|{}[]:;'<>,.?/
|
5309
|
+
# @type Password: String
|
5310
|
+
# @param BmcSecurityGroupIds: bmc网络的安全组列表
|
5311
|
+
# @type BmcSecurityGroupIds: Array
|
5312
|
+
|
5313
|
+
attr_accessor :ChcIds, :InstanceName, :DeviceType, :BmcUser, :Password, :BmcSecurityGroupIds
|
5314
|
+
|
5315
|
+
def initialize(chcids=nil, instancename=nil, devicetype=nil, bmcuser=nil, password=nil, bmcsecuritygroupids=nil)
|
5316
|
+
@ChcIds = chcids
|
5317
|
+
@InstanceName = instancename
|
5318
|
+
@DeviceType = devicetype
|
5319
|
+
@BmcUser = bmcuser
|
5320
|
+
@Password = password
|
5321
|
+
@BmcSecurityGroupIds = bmcsecuritygroupids
|
5322
|
+
end
|
5323
|
+
|
5324
|
+
def deserialize(params)
|
5325
|
+
@ChcIds = params['ChcIds']
|
5326
|
+
@InstanceName = params['InstanceName']
|
5327
|
+
@DeviceType = params['DeviceType']
|
5328
|
+
@BmcUser = params['BmcUser']
|
5329
|
+
@Password = params['Password']
|
5330
|
+
@BmcSecurityGroupIds = params['BmcSecurityGroupIds']
|
5331
|
+
end
|
5332
|
+
end
|
5333
|
+
|
5334
|
+
# ModifyChcAttribute返回参数结构体
|
5335
|
+
class ModifyChcAttributeResponse < TencentCloud::Common::AbstractModel
|
5336
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
5337
|
+
# @type RequestId: String
|
5338
|
+
|
5339
|
+
attr_accessor :RequestId
|
5340
|
+
|
5341
|
+
def initialize(requestid=nil)
|
5342
|
+
@RequestId = requestid
|
5343
|
+
end
|
5344
|
+
|
5345
|
+
def deserialize(params)
|
5346
|
+
@RequestId = params['RequestId']
|
5347
|
+
end
|
5348
|
+
end
|
5349
|
+
|
4977
5350
|
# ModifyDisasterRecoverGroupAttribute请求参数结构体
|
4978
5351
|
class ModifyDisasterRecoverGroupAttributeRequest < TencentCloud::Common::AbstractModel
|
4979
5352
|
# @param DisasterRecoverGroupId: 分散置放群组ID,可使用[DescribeDisasterRecoverGroups](https://cloud.tencent.com/document/api/213/17810)接口获取。
|
@@ -5811,6 +6184,70 @@ module TencentCloud
|
|
5811
6184
|
end
|
5812
6185
|
end
|
5813
6186
|
|
6187
|
+
# RemoveChcAssistVpc请求参数结构体
|
6188
|
+
class RemoveChcAssistVpcRequest < TencentCloud::Common::AbstractModel
|
6189
|
+
# @param ChcIds: CHC物理服务器Id。
|
6190
|
+
# @type ChcIds: Array
|
6191
|
+
|
6192
|
+
attr_accessor :ChcIds
|
6193
|
+
|
6194
|
+
def initialize(chcids=nil)
|
6195
|
+
@ChcIds = chcids
|
6196
|
+
end
|
6197
|
+
|
6198
|
+
def deserialize(params)
|
6199
|
+
@ChcIds = params['ChcIds']
|
6200
|
+
end
|
6201
|
+
end
|
6202
|
+
|
6203
|
+
# RemoveChcAssistVpc返回参数结构体
|
6204
|
+
class RemoveChcAssistVpcResponse < TencentCloud::Common::AbstractModel
|
6205
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6206
|
+
# @type RequestId: String
|
6207
|
+
|
6208
|
+
attr_accessor :RequestId
|
6209
|
+
|
6210
|
+
def initialize(requestid=nil)
|
6211
|
+
@RequestId = requestid
|
6212
|
+
end
|
6213
|
+
|
6214
|
+
def deserialize(params)
|
6215
|
+
@RequestId = params['RequestId']
|
6216
|
+
end
|
6217
|
+
end
|
6218
|
+
|
6219
|
+
# RemoveChcDeployVpc请求参数结构体
|
6220
|
+
class RemoveChcDeployVpcRequest < TencentCloud::Common::AbstractModel
|
6221
|
+
# @param ChcIds: CHC物理服务器Id。
|
6222
|
+
# @type ChcIds: Array
|
6223
|
+
|
6224
|
+
attr_accessor :ChcIds
|
6225
|
+
|
6226
|
+
def initialize(chcids=nil)
|
6227
|
+
@ChcIds = chcids
|
6228
|
+
end
|
6229
|
+
|
6230
|
+
def deserialize(params)
|
6231
|
+
@ChcIds = params['ChcIds']
|
6232
|
+
end
|
6233
|
+
end
|
6234
|
+
|
6235
|
+
# RemoveChcDeployVpc返回参数结构体
|
6236
|
+
class RemoveChcDeployVpcResponse < TencentCloud::Common::AbstractModel
|
6237
|
+
# @param RequestId: 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
6238
|
+
# @type RequestId: String
|
6239
|
+
|
6240
|
+
attr_accessor :RequestId
|
6241
|
+
|
6242
|
+
def initialize(requestid=nil)
|
6243
|
+
@RequestId = requestid
|
6244
|
+
end
|
6245
|
+
|
6246
|
+
def deserialize(params)
|
6247
|
+
@RequestId = params['RequestId']
|
6248
|
+
end
|
6249
|
+
end
|
6250
|
+
|
5814
6251
|
# RenewHosts请求参数结构体
|
5815
6252
|
class RenewHostsRequest < TencentCloud::Common::AbstractModel
|
5816
6253
|
# @param HostIds: 一个或多个待操作的CDH实例ID。每次请求的CDH实例的上限为100。
|
@@ -7027,7 +7464,7 @@ module TencentCloud
|
|
7027
7464
|
|
7028
7465
|
# 创建资源实例时同时绑定的标签对说明
|
7029
7466
|
class TagSpecification < TencentCloud::Common::AbstractModel
|
7030
|
-
# @param ResourceType: 标签绑定的资源类型,云服务器为“instance”,专用宿主机为“host”,镜像为“image”
|
7467
|
+
# @param ResourceType: 标签绑定的资源类型,云服务器为“instance”,专用宿主机为“host”,镜像为“image”,密钥为“keypair”
|
7031
7468
|
# @type ResourceType: String
|
7032
7469
|
# @param Tags: 标签对列表
|
7033
7470
|
# @type Tags: Array
|
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.
|
4
|
+
version: 1.0.348
|
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
|
+
date: 2022-07-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|