tencentcloud-sdk-cvm 3.0.970 → 3.0.972
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 +0 -120
- data/lib/v20170312/models.rb +137 -724
- 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: d3e865bc4b52bb1dbd82ce2f5f5fbb6171d8f728
|
4
|
+
data.tar.gz: 901bda113f1e7abdc7d882e2a2dfb4d0ca28b070
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a197cfa3b43be826862bbd567c8756bbc7a8b4c1a79185eda575c3e3859019740933b66860bb89fdbdb33c6c0b9e334a10f97d51bba7d7746d4425bf72426bf
|
7
|
+
data.tar.gz: 0b0c97cf6c6ef42aaefb2ed492273a30c23892dfcad9c522cfeb8be682ceef1e79f4719339c412584ac07c79693535fe5818ecfc9200a88375ffb2042ff9c85b
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.972
|
data/lib/v20170312/client.rb
CHANGED
@@ -1172,78 +1172,6 @@ module TencentCloud
|
|
1172
1172
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1173
1173
|
end
|
1174
1174
|
|
1175
|
-
# 本接口(DescribeReservedInstances)可提供列出用户已购买的预留实例
|
1176
|
-
|
1177
|
-
# @param request: Request instance for DescribeReservedInstances.
|
1178
|
-
# @type request: :class:`Tencentcloud::cvm::V20170312::DescribeReservedInstancesRequest`
|
1179
|
-
# @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeReservedInstancesResponse`
|
1180
|
-
def DescribeReservedInstances(request)
|
1181
|
-
body = send_request('DescribeReservedInstances', request.serialize)
|
1182
|
-
response = JSON.parse(body)
|
1183
|
-
if response['Response'].key?('Error') == false
|
1184
|
-
model = DescribeReservedInstancesResponse.new
|
1185
|
-
model.deserialize(response['Response'])
|
1186
|
-
model
|
1187
|
-
else
|
1188
|
-
code = response['Response']['Error']['Code']
|
1189
|
-
message = response['Response']['Error']['Message']
|
1190
|
-
reqid = response['Response']['RequestId']
|
1191
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1192
|
-
end
|
1193
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1194
|
-
raise e
|
1195
|
-
rescue StandardError => e
|
1196
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1197
|
-
end
|
1198
|
-
|
1199
|
-
# 本接口(DescribeReservedInstancesConfigInfos)供用户列出可购买预留实例机型配置。预留实例当前只针对国际站白名单用户开放。
|
1200
|
-
|
1201
|
-
# @param request: Request instance for DescribeReservedInstancesConfigInfos.
|
1202
|
-
# @type request: :class:`Tencentcloud::cvm::V20170312::DescribeReservedInstancesConfigInfosRequest`
|
1203
|
-
# @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeReservedInstancesConfigInfosResponse`
|
1204
|
-
def DescribeReservedInstancesConfigInfos(request)
|
1205
|
-
body = send_request('DescribeReservedInstancesConfigInfos', request.serialize)
|
1206
|
-
response = JSON.parse(body)
|
1207
|
-
if response['Response'].key?('Error') == false
|
1208
|
-
model = DescribeReservedInstancesConfigInfosResponse.new
|
1209
|
-
model.deserialize(response['Response'])
|
1210
|
-
model
|
1211
|
-
else
|
1212
|
-
code = response['Response']['Error']['Code']
|
1213
|
-
message = response['Response']['Error']['Message']
|
1214
|
-
reqid = response['Response']['RequestId']
|
1215
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1216
|
-
end
|
1217
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1218
|
-
raise e
|
1219
|
-
rescue StandardError => e
|
1220
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1221
|
-
end
|
1222
|
-
|
1223
|
-
# 本接口(DescribeReservedInstancesOfferings)供用户列出可购买的预留实例配置
|
1224
|
-
|
1225
|
-
# @param request: Request instance for DescribeReservedInstancesOfferings.
|
1226
|
-
# @type request: :class:`Tencentcloud::cvm::V20170312::DescribeReservedInstancesOfferingsRequest`
|
1227
|
-
# @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeReservedInstancesOfferingsResponse`
|
1228
|
-
def DescribeReservedInstancesOfferings(request)
|
1229
|
-
body = send_request('DescribeReservedInstancesOfferings', request.serialize)
|
1230
|
-
response = JSON.parse(body)
|
1231
|
-
if response['Response'].key?('Error') == false
|
1232
|
-
model = DescribeReservedInstancesOfferingsResponse.new
|
1233
|
-
model.deserialize(response['Response'])
|
1234
|
-
model
|
1235
|
-
else
|
1236
|
-
code = response['Response']['Error']['Code']
|
1237
|
-
message = response['Response']['Error']['Message']
|
1238
|
-
reqid = response['Response']['RequestId']
|
1239
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1240
|
-
end
|
1241
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1242
|
-
raise e
|
1243
|
-
rescue StandardError => e
|
1244
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1245
|
-
end
|
1246
|
-
|
1247
1175
|
# 本接口 (DescribeTaskInfo) 用于查询云服务器维修任务列表及详细信息。
|
1248
1176
|
|
1249
1177
|
# - 可以根据实例ID、实例名称或任务状态等信息来查询维修任务列表。过滤信息详情可参考入参说明。
|
@@ -1521,30 +1449,6 @@ module TencentCloud
|
|
1521
1449
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1522
1450
|
end
|
1523
1451
|
|
1524
|
-
# 本接口(InquirePricePurchaseReservedInstancesOffering)用于创建预留实例询价。本接口仅允许针对购买限制范围内的预留实例配置进行询价。预留实例当前只针对国际站白名单用户开放。
|
1525
|
-
|
1526
|
-
# @param request: Request instance for InquirePricePurchaseReservedInstancesOffering.
|
1527
|
-
# @type request: :class:`Tencentcloud::cvm::V20170312::InquirePricePurchaseReservedInstancesOfferingRequest`
|
1528
|
-
# @rtype: :class:`Tencentcloud::cvm::V20170312::InquirePricePurchaseReservedInstancesOfferingResponse`
|
1529
|
-
def InquirePricePurchaseReservedInstancesOffering(request)
|
1530
|
-
body = send_request('InquirePricePurchaseReservedInstancesOffering', request.serialize)
|
1531
|
-
response = JSON.parse(body)
|
1532
|
-
if response['Response'].key?('Error') == false
|
1533
|
-
model = InquirePricePurchaseReservedInstancesOfferingResponse.new
|
1534
|
-
model.deserialize(response['Response'])
|
1535
|
-
model
|
1536
|
-
else
|
1537
|
-
code = response['Response']['Error']['Code']
|
1538
|
-
message = response['Response']['Error']['Message']
|
1539
|
-
reqid = response['Response']['RequestId']
|
1540
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1541
|
-
end
|
1542
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1543
|
-
raise e
|
1544
|
-
rescue StandardError => e
|
1545
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1546
|
-
end
|
1547
|
-
|
1548
1452
|
# 本接口 (InquiryPriceModifyInstancesChargeType) 用于切换实例的计费模式询价。
|
1549
1453
|
|
1550
1454
|
|
@@ -2190,30 +2094,6 @@ module TencentCloud
|
|
2190
2094
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2191
2095
|
end
|
2192
2096
|
|
2193
|
-
# 本接口(PurchaseReservedInstancesOffering)用于用户购买一个或者多个指定配置的预留实例
|
2194
|
-
|
2195
|
-
# @param request: Request instance for PurchaseReservedInstancesOffering.
|
2196
|
-
# @type request: :class:`Tencentcloud::cvm::V20170312::PurchaseReservedInstancesOfferingRequest`
|
2197
|
-
# @rtype: :class:`Tencentcloud::cvm::V20170312::PurchaseReservedInstancesOfferingResponse`
|
2198
|
-
def PurchaseReservedInstancesOffering(request)
|
2199
|
-
body = send_request('PurchaseReservedInstancesOffering', request.serialize)
|
2200
|
-
response = JSON.parse(body)
|
2201
|
-
if response['Response'].key?('Error') == false
|
2202
|
-
model = PurchaseReservedInstancesOfferingResponse.new
|
2203
|
-
model.deserialize(response['Response'])
|
2204
|
-
model
|
2205
|
-
else
|
2206
|
-
code = response['Response']['Error']['Code']
|
2207
|
-
message = response['Response']['Error']['Message']
|
2208
|
-
reqid = response['Response']['RequestId']
|
2209
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2210
|
-
end
|
2211
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2212
|
-
raise e
|
2213
|
-
rescue StandardError => e
|
2214
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2215
|
-
end
|
2216
|
-
|
2217
2097
|
# 本接口 (RebootInstances) 用于重启实例。
|
2218
2098
|
|
2219
2099
|
# * 只有状态为`RUNNING`的实例才可以进行此操作。
|
data/lib/v20170312/models.rb
CHANGED
@@ -324,12 +324,33 @@ module TencentCloud
|
|
324
324
|
|
325
325
|
# chc部署网络minos引导配置。
|
326
326
|
class ChcDeployExtraConfig < TencentCloud::Common::AbstractModel
|
327
|
+
# @param MiniOsType: minos类型。是使用腾讯云的minios,还是客户自己的minios。
|
328
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
329
|
+
# @type MiniOsType: String
|
330
|
+
# @param BootType: 服务器的架构和启动方式。取值为x86_legacy, arm_uefi。
|
331
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
332
|
+
# @type BootType: String
|
333
|
+
# @param BootFile: PXE使用的引导文件。默认为pxelinux.0。
|
334
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
335
|
+
# @type BootFile: String
|
336
|
+
# @param NextServerAddress: tftp服务器的ip地址。
|
337
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
338
|
+
# @type NextServerAddress: String
|
327
339
|
|
340
|
+
attr_accessor :MiniOsType, :BootType, :BootFile, :NextServerAddress
|
328
341
|
|
329
|
-
def initialize()
|
342
|
+
def initialize(miniostype=nil, boottype=nil, bootfile=nil, nextserveraddress=nil)
|
343
|
+
@MiniOsType = miniostype
|
344
|
+
@BootType = boottype
|
345
|
+
@BootFile = bootfile
|
346
|
+
@NextServerAddress = nextserveraddress
|
330
347
|
end
|
331
348
|
|
332
349
|
def deserialize(params)
|
350
|
+
@MiniOsType = params['MiniOsType']
|
351
|
+
@BootType = params['BootType']
|
352
|
+
@BootFile = params['BootFile']
|
353
|
+
@NextServerAddress = params['NextServerAddress']
|
333
354
|
end
|
334
355
|
end
|
335
356
|
|
@@ -402,13 +423,59 @@ module TencentCloud
|
|
402
423
|
# TENANT: 租赁
|
403
424
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
404
425
|
# @type TenantType: String
|
405
|
-
# @param DeployExtraConfig: chc dhcp选项,用于minios
|
426
|
+
# @param DeployExtraConfig: chc dhcp选项,用于minios调试。
|
406
427
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
407
428
|
# @type DeployExtraConfig: :class:`Tencentcloud::Cvm.v20170312.models.ChcDeployExtraConfig`
|
429
|
+
# @param Gpu: GPU型号。
|
430
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
431
|
+
# @type Gpu: String
|
432
|
+
# @param NetworkCard: 网卡型号。主要指RDMA网卡。
|
433
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
434
|
+
# @type NetworkCard: String
|
435
|
+
# @param IsPredefinedType: 是否是预定义机型。
|
436
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
437
|
+
# @type IsPredefinedType: Boolean
|
438
|
+
# @param ChcInstanceType: CHC云主机机型。
|
439
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
440
|
+
# @type ChcInstanceType: String
|
441
|
+
# @param ChcInstanceFamily: CHC云主机机型簇。
|
442
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
443
|
+
# @type ChcInstanceFamily: String
|
444
|
+
# @param ChcInstanceFamilyName: CHC云主机机型簇名称。
|
445
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
446
|
+
# @type ChcInstanceFamilyName: String
|
447
|
+
# @param ResaleAppId: 转售客户的AppId。
|
448
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
449
|
+
# @type ResaleAppId: String
|
450
|
+
# @param ResaleAccountId: 转售客户的账号ID。
|
451
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
452
|
+
# @type ResaleAccountId: String
|
453
|
+
# @param SaleStatus: 售卖状态。<br/>
|
454
|
+
# <ul>
|
455
|
+
# <li>NOT_FOR_SALE:不可售卖</li>
|
456
|
+
# <li>AVAILABLE: 可售卖</li>
|
457
|
+
# <li>SOLD: 已售卖</li>
|
458
|
+
# </ul>
|
459
|
+
|
460
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
461
|
+
# @type SaleStatus: String
|
462
|
+
# @param Tags: CHC物理服务器关联的标签列表。
|
463
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
464
|
+
# @type Tags: Array
|
465
|
+
# @param LatestOperation: 最近操作
|
466
|
+
# @type LatestOperation: String
|
467
|
+
# @param LatestOperationErrorCode: 最近操作错误码
|
468
|
+
# @type LatestOperationErrorCode: String
|
469
|
+
# @param LatestOperationErrorMsg: 最近操作错误详情和建议项
|
470
|
+
# @type LatestOperationErrorMsg: String
|
471
|
+
# @param LatestOperationName: 最近操作名称
|
472
|
+
# @type LatestOperationName: String
|
473
|
+
# @param LatestOperationState: 最近操作状态
|
474
|
+
# @type LatestOperationState: String
|
408
475
|
|
409
|
-
attr_accessor :ChcId, :InstanceName, :SerialNumber, :InstanceState, :DeviceType, :Placement, :BmcVirtualPrivateCloud, :BmcIp, :BmcSecurityGroupIds, :DeployVirtualPrivateCloud, :DeployIp, :DeploySecurityGroupIds, :CvmInstanceId, :CreatedTime, :HardwareDescription, :CPU, :Memory, :Disk, :BmcMAC, :DeployMAC, :TenantType, :DeployExtraConfig
|
476
|
+
attr_accessor :ChcId, :InstanceName, :SerialNumber, :InstanceState, :DeviceType, :Placement, :BmcVirtualPrivateCloud, :BmcIp, :BmcSecurityGroupIds, :DeployVirtualPrivateCloud, :DeployIp, :DeploySecurityGroupIds, :CvmInstanceId, :CreatedTime, :HardwareDescription, :CPU, :Memory, :Disk, :BmcMAC, :DeployMAC, :TenantType, :DeployExtraConfig, :Gpu, :NetworkCard, :IsPredefinedType, :ChcInstanceType, :ChcInstanceFamily, :ChcInstanceFamilyName, :ResaleAppId, :ResaleAccountId, :SaleStatus, :Tags, :LatestOperation, :LatestOperationErrorCode, :LatestOperationErrorMsg, :LatestOperationName, :LatestOperationState
|
410
477
|
|
411
|
-
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)
|
478
|
+
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, gpu=nil, networkcard=nil, ispredefinedtype=nil, chcinstancetype=nil, chcinstancefamily=nil, chcinstancefamilyname=nil, resaleappid=nil, resaleaccountid=nil, salestatus=nil, tags=nil, latestoperation=nil, latestoperationerrorcode=nil, latestoperationerrormsg=nil, latestoperationname=nil, latestoperationstate=nil)
|
412
479
|
@ChcId = chcid
|
413
480
|
@InstanceName = instancename
|
414
481
|
@SerialNumber = serialnumber
|
@@ -431,6 +498,21 @@ module TencentCloud
|
|
431
498
|
@DeployMAC = deploymac
|
432
499
|
@TenantType = tenanttype
|
433
500
|
@DeployExtraConfig = deployextraconfig
|
501
|
+
@Gpu = gpu
|
502
|
+
@NetworkCard = networkcard
|
503
|
+
@IsPredefinedType = ispredefinedtype
|
504
|
+
@ChcInstanceType = chcinstancetype
|
505
|
+
@ChcInstanceFamily = chcinstancefamily
|
506
|
+
@ChcInstanceFamilyName = chcinstancefamilyname
|
507
|
+
@ResaleAppId = resaleappid
|
508
|
+
@ResaleAccountId = resaleaccountid
|
509
|
+
@SaleStatus = salestatus
|
510
|
+
@Tags = tags
|
511
|
+
@LatestOperation = latestoperation
|
512
|
+
@LatestOperationErrorCode = latestoperationerrorcode
|
513
|
+
@LatestOperationErrorMsg = latestoperationerrormsg
|
514
|
+
@LatestOperationName = latestoperationname
|
515
|
+
@LatestOperationState = latestoperationstate
|
434
516
|
end
|
435
517
|
|
436
518
|
def deserialize(params)
|
@@ -468,6 +550,28 @@ module TencentCloud
|
|
468
550
|
@DeployExtraConfig = ChcDeployExtraConfig.new
|
469
551
|
@DeployExtraConfig.deserialize(params['DeployExtraConfig'])
|
470
552
|
end
|
553
|
+
@Gpu = params['Gpu']
|
554
|
+
@NetworkCard = params['NetworkCard']
|
555
|
+
@IsPredefinedType = params['IsPredefinedType']
|
556
|
+
@ChcInstanceType = params['ChcInstanceType']
|
557
|
+
@ChcInstanceFamily = params['ChcInstanceFamily']
|
558
|
+
@ChcInstanceFamilyName = params['ChcInstanceFamilyName']
|
559
|
+
@ResaleAppId = params['ResaleAppId']
|
560
|
+
@ResaleAccountId = params['ResaleAccountId']
|
561
|
+
@SaleStatus = params['SaleStatus']
|
562
|
+
unless params['Tags'].nil?
|
563
|
+
@Tags = []
|
564
|
+
params['Tags'].each do |i|
|
565
|
+
tag_tmp = Tag.new
|
566
|
+
tag_tmp.deserialize(i)
|
567
|
+
@Tags << tag_tmp
|
568
|
+
end
|
569
|
+
end
|
570
|
+
@LatestOperation = params['LatestOperation']
|
571
|
+
@LatestOperationErrorCode = params['LatestOperationErrorCode']
|
572
|
+
@LatestOperationErrorMsg = params['LatestOperationErrorMsg']
|
573
|
+
@LatestOperationName = params['LatestOperationName']
|
574
|
+
@LatestOperationState = params['LatestOperationState']
|
471
575
|
end
|
472
576
|
end
|
473
577
|
|
@@ -507,15 +611,18 @@ module TencentCloud
|
|
507
611
|
# @type DeployVirtualPrivateCloud: :class:`Tencentcloud::Cvm.v20170312.models.VirtualPrivateCloud`
|
508
612
|
# @param DeploySecurityGroupIds: 部署网络的安全组列表
|
509
613
|
# @type DeploySecurityGroupIds: Array
|
614
|
+
# @param ChcDeployExtraConfig: 部署网络的附加参数,用于指定minios类型、bios引导模式等
|
615
|
+
# @type ChcDeployExtraConfig: :class:`Tencentcloud::Cvm.v20170312.models.ChcDeployExtraConfig`
|
510
616
|
|
511
|
-
attr_accessor :ChcIds, :BmcVirtualPrivateCloud, :BmcSecurityGroupIds, :DeployVirtualPrivateCloud, :DeploySecurityGroupIds
|
617
|
+
attr_accessor :ChcIds, :BmcVirtualPrivateCloud, :BmcSecurityGroupIds, :DeployVirtualPrivateCloud, :DeploySecurityGroupIds, :ChcDeployExtraConfig
|
512
618
|
|
513
|
-
def initialize(chcids=nil, bmcvirtualprivatecloud=nil, bmcsecuritygroupids=nil, deployvirtualprivatecloud=nil, deploysecuritygroupids=nil)
|
619
|
+
def initialize(chcids=nil, bmcvirtualprivatecloud=nil, bmcsecuritygroupids=nil, deployvirtualprivatecloud=nil, deploysecuritygroupids=nil, chcdeployextraconfig=nil)
|
514
620
|
@ChcIds = chcids
|
515
621
|
@BmcVirtualPrivateCloud = bmcvirtualprivatecloud
|
516
622
|
@BmcSecurityGroupIds = bmcsecuritygroupids
|
517
623
|
@DeployVirtualPrivateCloud = deployvirtualprivatecloud
|
518
624
|
@DeploySecurityGroupIds = deploysecuritygroupids
|
625
|
+
@ChcDeployExtraConfig = chcdeployextraconfig
|
519
626
|
end
|
520
627
|
|
521
628
|
def deserialize(params)
|
@@ -530,6 +637,10 @@ module TencentCloud
|
|
530
637
|
@DeployVirtualPrivateCloud.deserialize(params['DeployVirtualPrivateCloud'])
|
531
638
|
end
|
532
639
|
@DeploySecurityGroupIds = params['DeploySecurityGroupIds']
|
640
|
+
unless params['ChcDeployExtraConfig'].nil?
|
641
|
+
@ChcDeployExtraConfig = ChcDeployExtraConfig.new
|
642
|
+
@ChcDeployExtraConfig.deserialize(params['ChcDeployExtraConfig'])
|
643
|
+
end
|
533
644
|
end
|
534
645
|
end
|
535
646
|
|
@@ -557,13 +668,16 @@ module TencentCloud
|
|
557
668
|
# @type DeployVirtualPrivateCloud: :class:`Tencentcloud::Cvm.v20170312.models.VirtualPrivateCloud`
|
558
669
|
# @param DeploySecurityGroupIds: 部署网络的安全组列表。
|
559
670
|
# @type DeploySecurityGroupIds: Array
|
671
|
+
# @param ChcDeployExtraConfig: 部署所需要的dhcp选项参数
|
672
|
+
# @type ChcDeployExtraConfig: :class:`Tencentcloud::Cvm.v20170312.models.ChcDeployExtraConfig`
|
560
673
|
|
561
|
-
attr_accessor :ChcIds, :DeployVirtualPrivateCloud, :DeploySecurityGroupIds
|
674
|
+
attr_accessor :ChcIds, :DeployVirtualPrivateCloud, :DeploySecurityGroupIds, :ChcDeployExtraConfig
|
562
675
|
|
563
|
-
def initialize(chcids=nil, deployvirtualprivatecloud=nil, deploysecuritygroupids=nil)
|
676
|
+
def initialize(chcids=nil, deployvirtualprivatecloud=nil, deploysecuritygroupids=nil, chcdeployextraconfig=nil)
|
564
677
|
@ChcIds = chcids
|
565
678
|
@DeployVirtualPrivateCloud = deployvirtualprivatecloud
|
566
679
|
@DeploySecurityGroupIds = deploysecuritygroupids
|
680
|
+
@ChcDeployExtraConfig = chcdeployextraconfig
|
567
681
|
end
|
568
682
|
|
569
683
|
def deserialize(params)
|
@@ -573,6 +687,10 @@ module TencentCloud
|
|
573
687
|
@DeployVirtualPrivateCloud.deserialize(params['DeployVirtualPrivateCloud'])
|
574
688
|
end
|
575
689
|
@DeploySecurityGroupIds = params['DeploySecurityGroupIds']
|
690
|
+
unless params['ChcDeployExtraConfig'].nil?
|
691
|
+
@ChcDeployExtraConfig = ChcDeployExtraConfig.new
|
692
|
+
@ChcDeployExtraConfig.deserialize(params['ChcDeployExtraConfig'])
|
693
|
+
end
|
576
694
|
end
|
577
695
|
end
|
578
696
|
|
@@ -1745,6 +1863,8 @@ module TencentCloud
|
|
1745
1863
|
# <p style="padding-left: 30px;">按照【<strong>私有网络唯一ID</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
1746
1864
|
# <li><strong>subnet-id</strong></li>
|
1747
1865
|
# <p style="padding-left: 30px;">按照【<strong>私有子网唯一ID</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
1866
|
+
# <li><strong>sn</strong></li>
|
1867
|
+
# <p style="padding-left: 30px;">按照【<strong>设备SN</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
1748
1868
|
# @type Filters: Array
|
1749
1869
|
# @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
1750
1870
|
# @type Offset: Integer
|
@@ -3062,246 +3182,6 @@ module TencentCloud
|
|
3062
3182
|
end
|
3063
3183
|
end
|
3064
3184
|
|
3065
|
-
# DescribeReservedInstancesConfigInfos请求参数结构体
|
3066
|
-
class DescribeReservedInstancesConfigInfosRequest < TencentCloud::Common::AbstractModel
|
3067
|
-
# @param Filters: zone
|
3068
|
-
# 按照预留实例计费可购买的可用区进行过滤。形如:ap-guangzhou-1。
|
3069
|
-
# 类型:String
|
3070
|
-
# 必选:否
|
3071
|
-
# 可选项:各地域可用区列表
|
3072
|
-
|
3073
|
-
# product-description
|
3074
|
-
# 按照预留实例计费的平台描述(即操作系统)进行过滤。形如:linux。
|
3075
|
-
# 类型:String
|
3076
|
-
# 必选:否
|
3077
|
-
# 可选项:linux
|
3078
|
-
|
3079
|
-
# duration
|
3080
|
-
# 按照预留实例计费有效期,即预留实例计费购买时长进行过滤。形如:31536000。
|
3081
|
-
# 类型:Integer
|
3082
|
-
# 计量单位:秒
|
3083
|
-
# 必选:否
|
3084
|
-
# 可选项:31536000 (1年)
|
3085
|
-
# @type Filters: Array
|
3086
|
-
|
3087
|
-
attr_accessor :Filters
|
3088
|
-
|
3089
|
-
def initialize(filters=nil)
|
3090
|
-
@Filters = filters
|
3091
|
-
end
|
3092
|
-
|
3093
|
-
def deserialize(params)
|
3094
|
-
unless params['Filters'].nil?
|
3095
|
-
@Filters = []
|
3096
|
-
params['Filters'].each do |i|
|
3097
|
-
filter_tmp = Filter.new
|
3098
|
-
filter_tmp.deserialize(i)
|
3099
|
-
@Filters << filter_tmp
|
3100
|
-
end
|
3101
|
-
end
|
3102
|
-
end
|
3103
|
-
end
|
3104
|
-
|
3105
|
-
# DescribeReservedInstancesConfigInfos返回参数结构体
|
3106
|
-
class DescribeReservedInstancesConfigInfosResponse < TencentCloud::Common::AbstractModel
|
3107
|
-
# @param ReservedInstanceConfigInfos: 预留实例静态配置信息列表。
|
3108
|
-
# @type ReservedInstanceConfigInfos: Array
|
3109
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3110
|
-
# @type RequestId: String
|
3111
|
-
|
3112
|
-
attr_accessor :ReservedInstanceConfigInfos, :RequestId
|
3113
|
-
|
3114
|
-
def initialize(reservedinstanceconfiginfos=nil, requestid=nil)
|
3115
|
-
@ReservedInstanceConfigInfos = reservedinstanceconfiginfos
|
3116
|
-
@RequestId = requestid
|
3117
|
-
end
|
3118
|
-
|
3119
|
-
def deserialize(params)
|
3120
|
-
unless params['ReservedInstanceConfigInfos'].nil?
|
3121
|
-
@ReservedInstanceConfigInfos = []
|
3122
|
-
params['ReservedInstanceConfigInfos'].each do |i|
|
3123
|
-
reservedinstanceconfiginfoitem_tmp = ReservedInstanceConfigInfoItem.new
|
3124
|
-
reservedinstanceconfiginfoitem_tmp.deserialize(i)
|
3125
|
-
@ReservedInstanceConfigInfos << reservedinstanceconfiginfoitem_tmp
|
3126
|
-
end
|
3127
|
-
end
|
3128
|
-
@RequestId = params['RequestId']
|
3129
|
-
end
|
3130
|
-
end
|
3131
|
-
|
3132
|
-
# DescribeReservedInstancesOfferings请求参数结构体
|
3133
|
-
class DescribeReservedInstancesOfferingsRequest < TencentCloud::Common::AbstractModel
|
3134
|
-
# @param DryRun: 试运行, 默认为 false。
|
3135
|
-
# @type DryRun: Boolean
|
3136
|
-
# @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
3137
|
-
# @type Offset: Integer
|
3138
|
-
# @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
3139
|
-
# @type Limit: Integer
|
3140
|
-
# @param MaxDuration: 以最大有效期作为过滤参数。
|
3141
|
-
# 计量单位: 秒
|
3142
|
-
# 默认为 94608000。
|
3143
|
-
# @type MaxDuration: Integer
|
3144
|
-
# @param MinDuration: 以最小有效期作为过滤参数。
|
3145
|
-
# 计量单位: 秒
|
3146
|
-
# 默认为 2592000。
|
3147
|
-
# @type MinDuration: Integer
|
3148
|
-
# @param Filters: <li><strong>zone</strong></li>
|
3149
|
-
# <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>
|
3150
|
-
# <li><strong>duration</strong></li>
|
3151
|
-
# <p style="padding-left: 30px;">按照预留实例计费【<strong>有效期</strong>】即预留实例计费购买时长进行过滤。形如:31536000。</p><p style="padding-left: 30px;">类型:Integer</p><p style="padding-left: 30px;">计量单位:秒</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:31536000 (1年) | 94608000(3年)</p>
|
3152
|
-
# <li><strong>instance-type</strong></li>
|
3153
|
-
# <p style="padding-left: 30px;">按照【<strong>预留实例计费类型</strong>】进行过滤。形如:S3.MEDIUM4。</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/11518">预留实例计费类型列表</a></p>
|
3154
|
-
# <li><strong>offering-type</strong></li>
|
3155
|
-
# <p style="padding-left: 30px;">按照【<strong>付款类型</strong>】进行过滤。形如:All Upfront (预付全部费用)。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:All Upfront (预付全部费用)</p>
|
3156
|
-
# <li><strong>product-description</strong></li>
|
3157
|
-
# <p style="padding-left: 30px;">按照预留实例计费的【<strong>平台描述</strong>】(即操作系统)进行过滤。形如:linux。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:linux</p>
|
3158
|
-
# <li><strong>reserved-instances-offering-id</strong></li>
|
3159
|
-
# <p style="padding-left: 30px;">按照【<strong>预留实例计费配置ID</strong>】进行过滤。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
3160
|
-
# 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。
|
3161
|
-
# @type Filters: Array
|
3162
|
-
|
3163
|
-
attr_accessor :DryRun, :Offset, :Limit, :MaxDuration, :MinDuration, :Filters
|
3164
|
-
|
3165
|
-
def initialize(dryrun=nil, offset=nil, limit=nil, maxduration=nil, minduration=nil, filters=nil)
|
3166
|
-
@DryRun = dryrun
|
3167
|
-
@Offset = offset
|
3168
|
-
@Limit = limit
|
3169
|
-
@MaxDuration = maxduration
|
3170
|
-
@MinDuration = minduration
|
3171
|
-
@Filters = filters
|
3172
|
-
end
|
3173
|
-
|
3174
|
-
def deserialize(params)
|
3175
|
-
@DryRun = params['DryRun']
|
3176
|
-
@Offset = params['Offset']
|
3177
|
-
@Limit = params['Limit']
|
3178
|
-
@MaxDuration = params['MaxDuration']
|
3179
|
-
@MinDuration = params['MinDuration']
|
3180
|
-
unless params['Filters'].nil?
|
3181
|
-
@Filters = []
|
3182
|
-
params['Filters'].each do |i|
|
3183
|
-
filter_tmp = Filter.new
|
3184
|
-
filter_tmp.deserialize(i)
|
3185
|
-
@Filters << filter_tmp
|
3186
|
-
end
|
3187
|
-
end
|
3188
|
-
end
|
3189
|
-
end
|
3190
|
-
|
3191
|
-
# DescribeReservedInstancesOfferings返回参数结构体
|
3192
|
-
class DescribeReservedInstancesOfferingsResponse < TencentCloud::Common::AbstractModel
|
3193
|
-
# @param TotalCount: 符合条件的预留实例计费数量。
|
3194
|
-
# @type TotalCount: Integer
|
3195
|
-
# @param ReservedInstancesOfferingsSet: 符合条件的预留实例计费列表。
|
3196
|
-
# @type ReservedInstancesOfferingsSet: Array
|
3197
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3198
|
-
# @type RequestId: String
|
3199
|
-
|
3200
|
-
attr_accessor :TotalCount, :ReservedInstancesOfferingsSet, :RequestId
|
3201
|
-
|
3202
|
-
def initialize(totalcount=nil, reservedinstancesofferingsset=nil, requestid=nil)
|
3203
|
-
@TotalCount = totalcount
|
3204
|
-
@ReservedInstancesOfferingsSet = reservedinstancesofferingsset
|
3205
|
-
@RequestId = requestid
|
3206
|
-
end
|
3207
|
-
|
3208
|
-
def deserialize(params)
|
3209
|
-
@TotalCount = params['TotalCount']
|
3210
|
-
unless params['ReservedInstancesOfferingsSet'].nil?
|
3211
|
-
@ReservedInstancesOfferingsSet = []
|
3212
|
-
params['ReservedInstancesOfferingsSet'].each do |i|
|
3213
|
-
reservedinstancesoffering_tmp = ReservedInstancesOffering.new
|
3214
|
-
reservedinstancesoffering_tmp.deserialize(i)
|
3215
|
-
@ReservedInstancesOfferingsSet << reservedinstancesoffering_tmp
|
3216
|
-
end
|
3217
|
-
end
|
3218
|
-
@RequestId = params['RequestId']
|
3219
|
-
end
|
3220
|
-
end
|
3221
|
-
|
3222
|
-
# DescribeReservedInstances请求参数结构体
|
3223
|
-
class DescribeReservedInstancesRequest < TencentCloud::Common::AbstractModel
|
3224
|
-
# @param DryRun: 试运行。默认为 false。
|
3225
|
-
# @type DryRun: Boolean
|
3226
|
-
# @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
3227
|
-
# @type Offset: Integer
|
3228
|
-
# @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
3229
|
-
# @type Limit: Integer
|
3230
|
-
# @param Filters: <li><strong>zone</strong></li>
|
3231
|
-
# <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>
|
3232
|
-
# <li><strong>duration</strong></li>
|
3233
|
-
# <p style="padding-left: 30px;">按照预留实例计费【<strong>有效期</strong>】即预留实例计费购买时长进行过滤。形如:31536000。</p><p style="padding-left: 30px;">类型:Integer</p><p style="padding-left: 30px;">计量单位:秒</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:31536000 (1年) | 94608000(3年)</p>
|
3234
|
-
# <li><strong>instance-type</strong></li>
|
3235
|
-
# <p style="padding-left: 30px;">按照【<strong>预留实例规格</strong>】进行过滤。形如:S3.MEDIUM4。</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/11518">预留实例规格列表</a></p>
|
3236
|
-
# <li><strong>instance-family</strong></li>
|
3237
|
-
# <p style="padding-left: 30px;">按照【<strong>预留实例类型</strong>】进行过滤。形如:S3。</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/11518">预留实例类型列表</a></p>
|
3238
|
-
# <li><strong>offering-type</strong></li>
|
3239
|
-
# <li><strong>offering-type</strong></li>
|
3240
|
-
# <p style="padding-left: 30px;">按照【<strong>付款类型</strong>】进行过滤。形如:All Upfront (全预付)。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:All Upfront (全预付) | Partial Upfront (部分预付) | No Upfront (零预付)</p>
|
3241
|
-
# <li><strong>product-description</strong></li>
|
3242
|
-
# <p style="padding-left: 30px;">按照预留实例计费的【<strong>平台描述</strong>】(即操作系统)进行过滤。形如:linux。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:linux</p>
|
3243
|
-
# <li><strong>reserved-instances-id</strong></li>
|
3244
|
-
# <p style="padding-left: 30px;">按照已购买【<strong>预留实例计费ID</strong>】进行过滤。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
3245
|
-
# <li><strong>state</strong></li>
|
3246
|
-
# <p style="padding-left: 30px;">按照已购买【<strong>预留实例计费状态</strong>】进行过滤。形如:active。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:active (已创建) | pending (等待被创建) | retired (过期)</p>
|
3247
|
-
# 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。
|
3248
|
-
# @type Filters: Array
|
3249
|
-
|
3250
|
-
attr_accessor :DryRun, :Offset, :Limit, :Filters
|
3251
|
-
|
3252
|
-
def initialize(dryrun=nil, offset=nil, limit=nil, filters=nil)
|
3253
|
-
@DryRun = dryrun
|
3254
|
-
@Offset = offset
|
3255
|
-
@Limit = limit
|
3256
|
-
@Filters = filters
|
3257
|
-
end
|
3258
|
-
|
3259
|
-
def deserialize(params)
|
3260
|
-
@DryRun = params['DryRun']
|
3261
|
-
@Offset = params['Offset']
|
3262
|
-
@Limit = params['Limit']
|
3263
|
-
unless params['Filters'].nil?
|
3264
|
-
@Filters = []
|
3265
|
-
params['Filters'].each do |i|
|
3266
|
-
filter_tmp = Filter.new
|
3267
|
-
filter_tmp.deserialize(i)
|
3268
|
-
@Filters << filter_tmp
|
3269
|
-
end
|
3270
|
-
end
|
3271
|
-
end
|
3272
|
-
end
|
3273
|
-
|
3274
|
-
# DescribeReservedInstances返回参数结构体
|
3275
|
-
class DescribeReservedInstancesResponse < TencentCloud::Common::AbstractModel
|
3276
|
-
# @param TotalCount: 符合条件的预留实例计费数量。
|
3277
|
-
# @type TotalCount: Integer
|
3278
|
-
# @param ReservedInstancesSet: 符合条件的预留实例计费列表。
|
3279
|
-
# @type ReservedInstancesSet: Array
|
3280
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3281
|
-
# @type RequestId: String
|
3282
|
-
|
3283
|
-
attr_accessor :TotalCount, :ReservedInstancesSet, :RequestId
|
3284
|
-
|
3285
|
-
def initialize(totalcount=nil, reservedinstancesset=nil, requestid=nil)
|
3286
|
-
@TotalCount = totalcount
|
3287
|
-
@ReservedInstancesSet = reservedinstancesset
|
3288
|
-
@RequestId = requestid
|
3289
|
-
end
|
3290
|
-
|
3291
|
-
def deserialize(params)
|
3292
|
-
@TotalCount = params['TotalCount']
|
3293
|
-
unless params['ReservedInstancesSet'].nil?
|
3294
|
-
@ReservedInstancesSet = []
|
3295
|
-
params['ReservedInstancesSet'].each do |i|
|
3296
|
-
reservedinstances_tmp = ReservedInstances.new
|
3297
|
-
reservedinstances_tmp.deserialize(i)
|
3298
|
-
@ReservedInstancesSet << reservedinstances_tmp
|
3299
|
-
end
|
3300
|
-
end
|
3301
|
-
@RequestId = params['RequestId']
|
3302
|
-
end
|
3303
|
-
end
|
3304
|
-
|
3305
3185
|
# DescribeTaskInfo请求参数结构体
|
3306
3186
|
class DescribeTaskInfoRequest < TencentCloud::Common::AbstractModel
|
3307
3187
|
# @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
@@ -4531,61 +4411,6 @@ module TencentCloud
|
|
4531
4411
|
end
|
4532
4412
|
end
|
4533
4413
|
|
4534
|
-
# InquirePricePurchaseReservedInstancesOffering请求参数结构体
|
4535
|
-
class InquirePricePurchaseReservedInstancesOfferingRequest < TencentCloud::Common::AbstractModel
|
4536
|
-
# @param InstanceCount: 购买预留实例计费数量
|
4537
|
-
# @type InstanceCount: Integer
|
4538
|
-
# @param ReservedInstancesOfferingId: 预留实例计费配置ID
|
4539
|
-
# @type ReservedInstancesOfferingId: String
|
4540
|
-
# @param DryRun: 试运行
|
4541
|
-
# @type DryRun: Boolean
|
4542
|
-
# @param ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。<br>更多详细信息请参阅:如何保证幂等性
|
4543
|
-
# @type ClientToken: String
|
4544
|
-
# @param ReservedInstanceName: 预留实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>
|
4545
|
-
# @type ReservedInstanceName: String
|
4546
|
-
|
4547
|
-
attr_accessor :InstanceCount, :ReservedInstancesOfferingId, :DryRun, :ClientToken, :ReservedInstanceName
|
4548
|
-
|
4549
|
-
def initialize(instancecount=nil, reservedinstancesofferingid=nil, dryrun=nil, clienttoken=nil, reservedinstancename=nil)
|
4550
|
-
@InstanceCount = instancecount
|
4551
|
-
@ReservedInstancesOfferingId = reservedinstancesofferingid
|
4552
|
-
@DryRun = dryrun
|
4553
|
-
@ClientToken = clienttoken
|
4554
|
-
@ReservedInstanceName = reservedinstancename
|
4555
|
-
end
|
4556
|
-
|
4557
|
-
def deserialize(params)
|
4558
|
-
@InstanceCount = params['InstanceCount']
|
4559
|
-
@ReservedInstancesOfferingId = params['ReservedInstancesOfferingId']
|
4560
|
-
@DryRun = params['DryRun']
|
4561
|
-
@ClientToken = params['ClientToken']
|
4562
|
-
@ReservedInstanceName = params['ReservedInstanceName']
|
4563
|
-
end
|
4564
|
-
end
|
4565
|
-
|
4566
|
-
# InquirePricePurchaseReservedInstancesOffering返回参数结构体
|
4567
|
-
class InquirePricePurchaseReservedInstancesOfferingResponse < TencentCloud::Common::AbstractModel
|
4568
|
-
# @param Price: 该参数表示对应配置预留实例的价格。
|
4569
|
-
# @type Price: :class:`Tencentcloud::Cvm.v20170312.models.ReservedInstancePrice`
|
4570
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4571
|
-
# @type RequestId: String
|
4572
|
-
|
4573
|
-
attr_accessor :Price, :RequestId
|
4574
|
-
|
4575
|
-
def initialize(price=nil, requestid=nil)
|
4576
|
-
@Price = price
|
4577
|
-
@RequestId = requestid
|
4578
|
-
end
|
4579
|
-
|
4580
|
-
def deserialize(params)
|
4581
|
-
unless params['Price'].nil?
|
4582
|
-
@Price = ReservedInstancePrice.new
|
4583
|
-
@Price.deserialize(params['Price'])
|
4584
|
-
end
|
4585
|
-
@RequestId = params['RequestId']
|
4586
|
-
end
|
4587
|
-
end
|
4588
|
-
|
4589
4414
|
# InquiryPriceModifyInstancesChargeType请求参数结构体
|
4590
4415
|
class InquiryPriceModifyInstancesChargeTypeRequest < TencentCloud::Common::AbstractModel
|
4591
4416
|
# @param InstanceIds: 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
|
@@ -5760,8 +5585,10 @@ module TencentCloud
|
|
5760
5585
|
# 描述了网络计费
|
5761
5586
|
class InternetChargeTypeConfig < TencentCloud::Common::AbstractModel
|
5762
5587
|
# @param InternetChargeType: 网络计费模式。
|
5588
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5763
5589
|
# @type InternetChargeType: String
|
5764
5590
|
# @param Description: 网络计费模式描述信息。
|
5591
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
5765
5592
|
# @type Description: String
|
5766
5593
|
|
5767
5594
|
attr_accessor :InternetChargeType, :Description
|
@@ -6249,7 +6076,7 @@ module TencentCloud
|
|
6249
6076
|
# @type MinSize: Integer
|
6250
6077
|
# @param MaxSize: 本地磁盘最大值。
|
6251
6078
|
# @type MaxSize: Integer
|
6252
|
-
# @param Required: 购买时本地盘是否为必选。取值范围:<br><li>REQUIRED
|
6079
|
+
# @param Required: 购买时本地盘是否为必选。取值范围:<br><li>REQUIRED:表示必选</li><li>OPTIONAL:表示可选。</li>
|
6253
6080
|
# @type Required: String
|
6254
6081
|
|
6255
6082
|
attr_accessor :Type, :PartitionType, :MinSize, :MaxSize, :Required
|
@@ -6921,7 +6748,7 @@ module TencentCloud
|
|
6921
6748
|
|
6922
6749
|
# 描述了单台实例操作次数限制
|
6923
6750
|
class OperationCountLimit < TencentCloud::Common::AbstractModel
|
6924
|
-
# @param Operation: 实例操作。取值范围:<br><li>`INSTANCE_DEGRADE
|
6751
|
+
# @param Operation: 实例操作。取值范围:<br><li>`INSTANCE_DEGRADE`:降配操作</li><li>`INTERNET_CHARGE_TYPE_CHANGE`:修改网络带宽计费模式</li>
|
6925
6752
|
# @type Operation: String
|
6926
6753
|
# @param InstanceId: 实例ID。
|
6927
6754
|
# @type InstanceId: String
|
@@ -7129,58 +6956,6 @@ module TencentCloud
|
|
7129
6956
|
end
|
7130
6957
|
end
|
7131
6958
|
|
7132
|
-
# PurchaseReservedInstancesOffering请求参数结构体
|
7133
|
-
class PurchaseReservedInstancesOfferingRequest < TencentCloud::Common::AbstractModel
|
7134
|
-
# @param InstanceCount: 购买预留实例计费数量
|
7135
|
-
# @type InstanceCount: Integer
|
7136
|
-
# @param ReservedInstancesOfferingId: 预留实例计费配置ID
|
7137
|
-
# @type ReservedInstancesOfferingId: String
|
7138
|
-
# @param DryRun: 试运行
|
7139
|
-
# @type DryRun: Boolean
|
7140
|
-
# @param ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。<br>更多详细信息请参阅:如何保证幂等性
|
7141
|
-
# @type ClientToken: String
|
7142
|
-
# @param ReservedInstanceName: 预留实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>
|
7143
|
-
# @type ReservedInstanceName: String
|
7144
|
-
|
7145
|
-
attr_accessor :InstanceCount, :ReservedInstancesOfferingId, :DryRun, :ClientToken, :ReservedInstanceName
|
7146
|
-
|
7147
|
-
def initialize(instancecount=nil, reservedinstancesofferingid=nil, dryrun=nil, clienttoken=nil, reservedinstancename=nil)
|
7148
|
-
@InstanceCount = instancecount
|
7149
|
-
@ReservedInstancesOfferingId = reservedinstancesofferingid
|
7150
|
-
@DryRun = dryrun
|
7151
|
-
@ClientToken = clienttoken
|
7152
|
-
@ReservedInstanceName = reservedinstancename
|
7153
|
-
end
|
7154
|
-
|
7155
|
-
def deserialize(params)
|
7156
|
-
@InstanceCount = params['InstanceCount']
|
7157
|
-
@ReservedInstancesOfferingId = params['ReservedInstancesOfferingId']
|
7158
|
-
@DryRun = params['DryRun']
|
7159
|
-
@ClientToken = params['ClientToken']
|
7160
|
-
@ReservedInstanceName = params['ReservedInstanceName']
|
7161
|
-
end
|
7162
|
-
end
|
7163
|
-
|
7164
|
-
# PurchaseReservedInstancesOffering返回参数结构体
|
7165
|
-
class PurchaseReservedInstancesOfferingResponse < TencentCloud::Common::AbstractModel
|
7166
|
-
# @param ReservedInstanceId: 已购买预留实例计费ID
|
7167
|
-
# @type ReservedInstanceId: String
|
7168
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7169
|
-
# @type RequestId: String
|
7170
|
-
|
7171
|
-
attr_accessor :ReservedInstanceId, :RequestId
|
7172
|
-
|
7173
|
-
def initialize(reservedinstanceid=nil, requestid=nil)
|
7174
|
-
@ReservedInstanceId = reservedinstanceid
|
7175
|
-
@RequestId = requestid
|
7176
|
-
end
|
7177
|
-
|
7178
|
-
def deserialize(params)
|
7179
|
-
@ReservedInstanceId = params['ReservedInstanceId']
|
7180
|
-
@RequestId = params['RequestId']
|
7181
|
-
end
|
7182
|
-
end
|
7183
|
-
|
7184
6959
|
# RebootInstances请求参数结构体
|
7185
6960
|
class RebootInstancesRequest < TencentCloud::Common::AbstractModel
|
7186
6961
|
# @param InstanceIds: 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
|
@@ -7224,10 +6999,13 @@ module TencentCloud
|
|
7224
6999
|
# 地域信息
|
7225
7000
|
class RegionInfo < TencentCloud::Common::AbstractModel
|
7226
7001
|
# @param Region: 地域名称,例如,ap-guangzhou
|
7002
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7227
7003
|
# @type Region: String
|
7228
7004
|
# @param RegionName: 地域描述,例如,华南地区(广州)
|
7005
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7229
7006
|
# @type RegionName: String
|
7230
7007
|
# @param RegionState: 地域是否可用状态
|
7008
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7231
7009
|
# @type RegionState: String
|
7232
7010
|
|
7233
7011
|
attr_accessor :Region, :RegionName, :RegionState
|
@@ -7355,7 +7133,7 @@ module TencentCloud
|
|
7355
7133
|
# @param InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。通过该参数可以指定包年包月实例的续费时长、是否设置自动续费等属性。<dx-alert infotype="explain" title="">
|
7356
7134
|
# 包年包月实例该参数为必传参数。</dx-alert>
|
7357
7135
|
# @type InstanceChargePrepaid: :class:`Tencentcloud::Cvm.v20170312.models.InstanceChargePrepaid`
|
7358
|
-
# @param RenewPortableDataDisk: 是否续费弹性数据盘。取值范围:<br><li>true
|
7136
|
+
# @param RenewPortableDataDisk: 是否续费弹性数据盘。取值范围:<br><li>true:表示续费包年包月实例同时续费其挂载的弹性数据盘</li><li>false:表示续费包年包月实例同时不再续费其挂载的弹性数据盘</li><br>默认取值:true。
|
7359
7137
|
# @type RenewPortableDataDisk: Boolean
|
7360
7138
|
|
7361
7139
|
attr_accessor :InstanceIds, :InstanceChargePrepaid, :RenewPortableDataDisk
|
@@ -7616,371 +7394,6 @@ module TencentCloud
|
|
7616
7394
|
end
|
7617
7395
|
end
|
7618
7396
|
|
7619
|
-
# 预留实例静态配置信息。预留实例当前只针对国际站白名单用户开放。
|
7620
|
-
class ReservedInstanceConfigInfoItem < TencentCloud::Common::AbstractModel
|
7621
|
-
# @param Type: 实例规格。
|
7622
|
-
# @type Type: String
|
7623
|
-
# @param TypeName: 实例规格名称。
|
7624
|
-
# @type TypeName: String
|
7625
|
-
# @param Order: 优先级。
|
7626
|
-
# @type Order: Integer
|
7627
|
-
# @param InstanceFamilies: 实例族信息列表。
|
7628
|
-
# @type InstanceFamilies: Array
|
7629
|
-
|
7630
|
-
attr_accessor :Type, :TypeName, :Order, :InstanceFamilies
|
7631
|
-
|
7632
|
-
def initialize(type=nil, typename=nil, order=nil, instancefamilies=nil)
|
7633
|
-
@Type = type
|
7634
|
-
@TypeName = typename
|
7635
|
-
@Order = order
|
7636
|
-
@InstanceFamilies = instancefamilies
|
7637
|
-
end
|
7638
|
-
|
7639
|
-
def deserialize(params)
|
7640
|
-
@Type = params['Type']
|
7641
|
-
@TypeName = params['TypeName']
|
7642
|
-
@Order = params['Order']
|
7643
|
-
unless params['InstanceFamilies'].nil?
|
7644
|
-
@InstanceFamilies = []
|
7645
|
-
params['InstanceFamilies'].each do |i|
|
7646
|
-
reservedinstancefamilyitem_tmp = ReservedInstanceFamilyItem.new
|
7647
|
-
reservedinstancefamilyitem_tmp.deserialize(i)
|
7648
|
-
@InstanceFamilies << reservedinstancefamilyitem_tmp
|
7649
|
-
end
|
7650
|
-
end
|
7651
|
-
end
|
7652
|
-
end
|
7653
|
-
|
7654
|
-
# 预留实例相关实例族信息。预留实例当前只针对国际站白名单用户开放。
|
7655
|
-
class ReservedInstanceFamilyItem < TencentCloud::Common::AbstractModel
|
7656
|
-
# @param InstanceFamily: 实例族。
|
7657
|
-
# @type InstanceFamily: String
|
7658
|
-
# @param Order: 优先级。
|
7659
|
-
# @type Order: Integer
|
7660
|
-
# @param InstanceTypes: 实例类型信息列表。
|
7661
|
-
# @type InstanceTypes: Array
|
7662
|
-
|
7663
|
-
attr_accessor :InstanceFamily, :Order, :InstanceTypes
|
7664
|
-
|
7665
|
-
def initialize(instancefamily=nil, order=nil, instancetypes=nil)
|
7666
|
-
@InstanceFamily = instancefamily
|
7667
|
-
@Order = order
|
7668
|
-
@InstanceTypes = instancetypes
|
7669
|
-
end
|
7670
|
-
|
7671
|
-
def deserialize(params)
|
7672
|
-
@InstanceFamily = params['InstanceFamily']
|
7673
|
-
@Order = params['Order']
|
7674
|
-
unless params['InstanceTypes'].nil?
|
7675
|
-
@InstanceTypes = []
|
7676
|
-
params['InstanceTypes'].each do |i|
|
7677
|
-
reservedinstancetypeitem_tmp = ReservedInstanceTypeItem.new
|
7678
|
-
reservedinstancetypeitem_tmp.deserialize(i)
|
7679
|
-
@InstanceTypes << reservedinstancetypeitem_tmp
|
7680
|
-
end
|
7681
|
-
end
|
7682
|
-
end
|
7683
|
-
end
|
7684
|
-
|
7685
|
-
# 预留实例相关价格信息。预留实例当前只针对国际站白名单用户开放。
|
7686
|
-
class ReservedInstancePrice < TencentCloud::Common::AbstractModel
|
7687
|
-
# @param OriginalFixedPrice: 预支合计费用的原价,单位:元。
|
7688
|
-
# @type OriginalFixedPrice: Float
|
7689
|
-
# @param DiscountFixedPrice: 预支合计费用的折扣价,单位:元。
|
7690
|
-
# @type DiscountFixedPrice: Float
|
7691
|
-
# @param OriginalUsagePrice: 后续合计费用的原价,单位:元/小时
|
7692
|
-
# @type OriginalUsagePrice: Float
|
7693
|
-
# @param DiscountUsagePrice: 后续合计费用的折扣价,单位:元/小时
|
7694
|
-
# @type DiscountUsagePrice: Float
|
7695
|
-
# @param FixedPriceDiscount: 预支费用的折扣,如20.0代表2折。 注意:此字段可能返回 null,表示取不到有效值。
|
7696
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
7697
|
-
# @type FixedPriceDiscount: Float
|
7698
|
-
# @param UsagePriceDiscount: 后续费用的折扣,如20.0代表2折。 注意:此字段可能返回 null,表示取不到有效值。
|
7699
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
7700
|
-
# @type UsagePriceDiscount: Float
|
7701
|
-
|
7702
|
-
attr_accessor :OriginalFixedPrice, :DiscountFixedPrice, :OriginalUsagePrice, :DiscountUsagePrice, :FixedPriceDiscount, :UsagePriceDiscount
|
7703
|
-
|
7704
|
-
def initialize(originalfixedprice=nil, discountfixedprice=nil, originalusageprice=nil, discountusageprice=nil, fixedpricediscount=nil, usagepricediscount=nil)
|
7705
|
-
@OriginalFixedPrice = originalfixedprice
|
7706
|
-
@DiscountFixedPrice = discountfixedprice
|
7707
|
-
@OriginalUsagePrice = originalusageprice
|
7708
|
-
@DiscountUsagePrice = discountusageprice
|
7709
|
-
@FixedPriceDiscount = fixedpricediscount
|
7710
|
-
@UsagePriceDiscount = usagepricediscount
|
7711
|
-
end
|
7712
|
-
|
7713
|
-
def deserialize(params)
|
7714
|
-
@OriginalFixedPrice = params['OriginalFixedPrice']
|
7715
|
-
@DiscountFixedPrice = params['DiscountFixedPrice']
|
7716
|
-
@OriginalUsagePrice = params['OriginalUsagePrice']
|
7717
|
-
@DiscountUsagePrice = params['DiscountUsagePrice']
|
7718
|
-
@FixedPriceDiscount = params['FixedPriceDiscount']
|
7719
|
-
@UsagePriceDiscount = params['UsagePriceDiscount']
|
7720
|
-
end
|
7721
|
-
end
|
7722
|
-
|
7723
|
-
# 基于付费类型的预留实例相关价格信息。预留实例当前只针对国际站白名单用户开放。
|
7724
|
-
class ReservedInstancePriceItem < TencentCloud::Common::AbstractModel
|
7725
|
-
# @param OfferingType: 付费类型,如:"All Upfront","Partial Upfront","No Upfront"
|
7726
|
-
# @type OfferingType: String
|
7727
|
-
# @param FixedPrice: 预支合计费用,单位:元。
|
7728
|
-
# @type FixedPrice: Float
|
7729
|
-
# @param UsagePrice: 后续合计费用,单位:元/小时
|
7730
|
-
# @type UsagePrice: Float
|
7731
|
-
# @param ReservedInstancesOfferingId: 预留实例配置ID
|
7732
|
-
# @type ReservedInstancesOfferingId: String
|
7733
|
-
# @param Zone: 预留实例计费可购买的可用区。
|
7734
|
-
# @type Zone: String
|
7735
|
-
# @param Duration: 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。
|
7736
|
-
# 计量单位:秒
|
7737
|
-
# @type Duration: Integer
|
7738
|
-
# @param ProductDescription: 预留实例计费的平台描述(即操作系统)。形如:Linux。
|
7739
|
-
# 返回项: Linux 。
|
7740
|
-
# @type ProductDescription: String
|
7741
|
-
# @param DiscountUsagePrice: 预支合计费用,单位:元。
|
7742
|
-
# @type DiscountUsagePrice: Float
|
7743
|
-
# @param DiscountFixedPrice: 后续合计费用的折扣价,单位:元/小时
|
7744
|
-
# @type DiscountFixedPrice: Float
|
7745
|
-
|
7746
|
-
attr_accessor :OfferingType, :FixedPrice, :UsagePrice, :ReservedInstancesOfferingId, :Zone, :Duration, :ProductDescription, :DiscountUsagePrice, :DiscountFixedPrice
|
7747
|
-
|
7748
|
-
def initialize(offeringtype=nil, fixedprice=nil, usageprice=nil, reservedinstancesofferingid=nil, zone=nil, duration=nil, productdescription=nil, discountusageprice=nil, discountfixedprice=nil)
|
7749
|
-
@OfferingType = offeringtype
|
7750
|
-
@FixedPrice = fixedprice
|
7751
|
-
@UsagePrice = usageprice
|
7752
|
-
@ReservedInstancesOfferingId = reservedinstancesofferingid
|
7753
|
-
@Zone = zone
|
7754
|
-
@Duration = duration
|
7755
|
-
@ProductDescription = productdescription
|
7756
|
-
@DiscountUsagePrice = discountusageprice
|
7757
|
-
@DiscountFixedPrice = discountfixedprice
|
7758
|
-
end
|
7759
|
-
|
7760
|
-
def deserialize(params)
|
7761
|
-
@OfferingType = params['OfferingType']
|
7762
|
-
@FixedPrice = params['FixedPrice']
|
7763
|
-
@UsagePrice = params['UsagePrice']
|
7764
|
-
@ReservedInstancesOfferingId = params['ReservedInstancesOfferingId']
|
7765
|
-
@Zone = params['Zone']
|
7766
|
-
@Duration = params['Duration']
|
7767
|
-
@ProductDescription = params['ProductDescription']
|
7768
|
-
@DiscountUsagePrice = params['DiscountUsagePrice']
|
7769
|
-
@DiscountFixedPrice = params['DiscountFixedPrice']
|
7770
|
-
end
|
7771
|
-
end
|
7772
|
-
|
7773
|
-
# 预留实例类型信息。预留实例当前只针对国际站白名单用户开放。
|
7774
|
-
class ReservedInstanceTypeItem < TencentCloud::Common::AbstractModel
|
7775
|
-
# @param InstanceType: 实例类型。
|
7776
|
-
# @type InstanceType: String
|
7777
|
-
# @param Cpu: CPU核数。
|
7778
|
-
# @type Cpu: Integer
|
7779
|
-
# @param Memory: 内存大小。
|
7780
|
-
# @type Memory: Integer
|
7781
|
-
# @param Gpu: GPU数量。
|
7782
|
-
# @type Gpu: Integer
|
7783
|
-
# @param Fpga: FPGA数量。
|
7784
|
-
# @type Fpga: Integer
|
7785
|
-
# @param StorageBlock: 本地存储块数量。
|
7786
|
-
# @type StorageBlock: Integer
|
7787
|
-
# @param NetworkCard: 网卡数。
|
7788
|
-
# @type NetworkCard: Integer
|
7789
|
-
# @param MaxBandwidth: 最大带宽。
|
7790
|
-
# @type MaxBandwidth: Float
|
7791
|
-
# @param Frequency: 主频。
|
7792
|
-
# @type Frequency: String
|
7793
|
-
# @param CpuModelName: CPU型号名称。
|
7794
|
-
# @type CpuModelName: String
|
7795
|
-
# @param Pps: 包转发率。
|
7796
|
-
# @type Pps: Integer
|
7797
|
-
# @param Externals: 外部信息。
|
7798
|
-
# @type Externals: :class:`Tencentcloud::Cvm.v20170312.models.Externals`
|
7799
|
-
# @param Remark: 备注信息。
|
7800
|
-
# @type Remark: String
|
7801
|
-
# @param Prices: 预留实例配置价格信息。
|
7802
|
-
# @type Prices: Array
|
7803
|
-
|
7804
|
-
attr_accessor :InstanceType, :Cpu, :Memory, :Gpu, :Fpga, :StorageBlock, :NetworkCard, :MaxBandwidth, :Frequency, :CpuModelName, :Pps, :Externals, :Remark, :Prices
|
7805
|
-
|
7806
|
-
def initialize(instancetype=nil, cpu=nil, memory=nil, gpu=nil, fpga=nil, storageblock=nil, networkcard=nil, maxbandwidth=nil, frequency=nil, cpumodelname=nil, pps=nil, externals=nil, remark=nil, prices=nil)
|
7807
|
-
@InstanceType = instancetype
|
7808
|
-
@Cpu = cpu
|
7809
|
-
@Memory = memory
|
7810
|
-
@Gpu = gpu
|
7811
|
-
@Fpga = fpga
|
7812
|
-
@StorageBlock = storageblock
|
7813
|
-
@NetworkCard = networkcard
|
7814
|
-
@MaxBandwidth = maxbandwidth
|
7815
|
-
@Frequency = frequency
|
7816
|
-
@CpuModelName = cpumodelname
|
7817
|
-
@Pps = pps
|
7818
|
-
@Externals = externals
|
7819
|
-
@Remark = remark
|
7820
|
-
@Prices = prices
|
7821
|
-
end
|
7822
|
-
|
7823
|
-
def deserialize(params)
|
7824
|
-
@InstanceType = params['InstanceType']
|
7825
|
-
@Cpu = params['Cpu']
|
7826
|
-
@Memory = params['Memory']
|
7827
|
-
@Gpu = params['Gpu']
|
7828
|
-
@Fpga = params['Fpga']
|
7829
|
-
@StorageBlock = params['StorageBlock']
|
7830
|
-
@NetworkCard = params['NetworkCard']
|
7831
|
-
@MaxBandwidth = params['MaxBandwidth']
|
7832
|
-
@Frequency = params['Frequency']
|
7833
|
-
@CpuModelName = params['CpuModelName']
|
7834
|
-
@Pps = params['Pps']
|
7835
|
-
unless params['Externals'].nil?
|
7836
|
-
@Externals = Externals.new
|
7837
|
-
@Externals.deserialize(params['Externals'])
|
7838
|
-
end
|
7839
|
-
@Remark = params['Remark']
|
7840
|
-
unless params['Prices'].nil?
|
7841
|
-
@Prices = []
|
7842
|
-
params['Prices'].each do |i|
|
7843
|
-
reservedinstancepriceitem_tmp = ReservedInstancePriceItem.new
|
7844
|
-
reservedinstancepriceitem_tmp.deserialize(i)
|
7845
|
-
@Prices << reservedinstancepriceitem_tmp
|
7846
|
-
end
|
7847
|
-
end
|
7848
|
-
end
|
7849
|
-
end
|
7850
|
-
|
7851
|
-
# 描述用户已购买预留实例计费信息
|
7852
|
-
class ReservedInstances < TencentCloud::Common::AbstractModel
|
7853
|
-
# @param ReservedInstancesId: (此字段已废弃,建议使用字段:ReservedInstanceId)已购买的预留实例计费ID。形如:ri-rtbh4han。
|
7854
|
-
# @type ReservedInstancesId: String
|
7855
|
-
# @param InstanceType: 预留实例计费的规格。形如:S3.MEDIUM4。
|
7856
|
-
# 返回项:<a href="https://cloud.tencent.com/document/product/213/11518">预留实例计费规格列表</a>
|
7857
|
-
# @type InstanceType: String
|
7858
|
-
# @param Zone: 预留实例计费可购买的可用区。形如:ap-guangzhou-1。
|
7859
|
-
# 返回项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a>
|
7860
|
-
# @type Zone: String
|
7861
|
-
# @param StartTime: 预留实例计费开始时间。形如:1949-10-01 00:00:00
|
7862
|
-
# @type StartTime: String
|
7863
|
-
# @param EndTime: 预留实例计费到期时间。形如:1949-10-01 00:00:00
|
7864
|
-
# @type EndTime: String
|
7865
|
-
# @param Duration: 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。
|
7866
|
-
# 计量单位:秒。
|
7867
|
-
# @type Duration: Integer
|
7868
|
-
# @param InstanceCount: 已购买的预留实例计费个数。形如:10。
|
7869
|
-
# @type InstanceCount: Integer
|
7870
|
-
# @param ProductDescription: 描述预留实例计费的平台描述(即操作系统)。形如:linux。
|
7871
|
-
# 返回项: linux 。
|
7872
|
-
# @type ProductDescription: String
|
7873
|
-
# @param State: 预留实例计费购买的状态。形如:active
|
7874
|
-
# 返回项: active (以创建) | pending (等待被创建) | retired (过期)。
|
7875
|
-
# @type State: String
|
7876
|
-
# @param CurrencyCode: 可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。形如:USD。
|
7877
|
-
# 返回项:USD(美元)。
|
7878
|
-
# @type CurrencyCode: String
|
7879
|
-
# @param OfferingType: 预留实例计费的付款类型。形如:All Upfront。
|
7880
|
-
# 返回项: All Upfront (预付全部费用)。
|
7881
|
-
# @type OfferingType: String
|
7882
|
-
# @param InstanceFamily: 预留实例计费的类型。形如:S3。
|
7883
|
-
# 返回项:<a href="https://cloud.tencent.com/document/product/213/11518">预留实例计费类型列表</a>
|
7884
|
-
# @type InstanceFamily: String
|
7885
|
-
# @param ReservedInstanceId: 已购买的预留实例计费ID。形如:ri-rtbh4han。
|
7886
|
-
# @type ReservedInstanceId: String
|
7887
|
-
# @param ReservedInstanceName: 预留实例显示名称。形如:riname-01
|
7888
|
-
# @type ReservedInstanceName: String
|
7889
|
-
|
7890
|
-
attr_accessor :ReservedInstancesId, :InstanceType, :Zone, :StartTime, :EndTime, :Duration, :InstanceCount, :ProductDescription, :State, :CurrencyCode, :OfferingType, :InstanceFamily, :ReservedInstanceId, :ReservedInstanceName
|
7891
|
-
|
7892
|
-
def initialize(reservedinstancesid=nil, instancetype=nil, zone=nil, starttime=nil, endtime=nil, duration=nil, instancecount=nil, productdescription=nil, state=nil, currencycode=nil, offeringtype=nil, instancefamily=nil, reservedinstanceid=nil, reservedinstancename=nil)
|
7893
|
-
@ReservedInstancesId = reservedinstancesid
|
7894
|
-
@InstanceType = instancetype
|
7895
|
-
@Zone = zone
|
7896
|
-
@StartTime = starttime
|
7897
|
-
@EndTime = endtime
|
7898
|
-
@Duration = duration
|
7899
|
-
@InstanceCount = instancecount
|
7900
|
-
@ProductDescription = productdescription
|
7901
|
-
@State = state
|
7902
|
-
@CurrencyCode = currencycode
|
7903
|
-
@OfferingType = offeringtype
|
7904
|
-
@InstanceFamily = instancefamily
|
7905
|
-
@ReservedInstanceId = reservedinstanceid
|
7906
|
-
@ReservedInstanceName = reservedinstancename
|
7907
|
-
end
|
7908
|
-
|
7909
|
-
def deserialize(params)
|
7910
|
-
@ReservedInstancesId = params['ReservedInstancesId']
|
7911
|
-
@InstanceType = params['InstanceType']
|
7912
|
-
@Zone = params['Zone']
|
7913
|
-
@StartTime = params['StartTime']
|
7914
|
-
@EndTime = params['EndTime']
|
7915
|
-
@Duration = params['Duration']
|
7916
|
-
@InstanceCount = params['InstanceCount']
|
7917
|
-
@ProductDescription = params['ProductDescription']
|
7918
|
-
@State = params['State']
|
7919
|
-
@CurrencyCode = params['CurrencyCode']
|
7920
|
-
@OfferingType = params['OfferingType']
|
7921
|
-
@InstanceFamily = params['InstanceFamily']
|
7922
|
-
@ReservedInstanceId = params['ReservedInstanceId']
|
7923
|
-
@ReservedInstanceName = params['ReservedInstanceName']
|
7924
|
-
end
|
7925
|
-
end
|
7926
|
-
|
7927
|
-
# 描述可购买预留实例计费信息
|
7928
|
-
class ReservedInstancesOffering < TencentCloud::Common::AbstractModel
|
7929
|
-
# @param Zone: 预留实例计费可购买的可用区。形如:ap-guangzhou-1。
|
7930
|
-
# 返回项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a>
|
7931
|
-
# @type Zone: String
|
7932
|
-
# @param CurrencyCode: 可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。
|
7933
|
-
# 返回项:USD(美元)。
|
7934
|
-
# @type CurrencyCode: String
|
7935
|
-
# @param Duration: 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。
|
7936
|
-
# 计量单位:秒
|
7937
|
-
# @type Duration: Integer
|
7938
|
-
# @param FixedPrice: 预留实例计费的购买价格。形如:4000.0。
|
7939
|
-
# 计量单位:与 currencyCode 一致,目前支持 USD(美元)
|
7940
|
-
# @type FixedPrice: Float
|
7941
|
-
# @param InstanceType: 预留实例计费的实例类型。形如:S3.MEDIUM4。
|
7942
|
-
# 返回项:<a href="https://cloud.tencent.com/product/cvm/instances">预留实例计费类型列表</a>
|
7943
|
-
# @type InstanceType: String
|
7944
|
-
# @param OfferingType: 预留实例计费的付款类型。形如:All Upfront。
|
7945
|
-
# 返回项: All Upfront (预付全部费用)。
|
7946
|
-
# @type OfferingType: String
|
7947
|
-
# @param ReservedInstancesOfferingId: 可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。
|
7948
|
-
# @type ReservedInstancesOfferingId: String
|
7949
|
-
# @param ProductDescription: 预留实例计费的平台描述(即操作系统)。形如:linux。
|
7950
|
-
# 返回项: linux 。
|
7951
|
-
# @type ProductDescription: String
|
7952
|
-
# @param UsagePrice: 扣除预付费之后的使用价格 (按小时计费)。形如:0.0。
|
7953
|
-
# 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。
|
7954
|
-
# 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)
|
7955
|
-
# @type UsagePrice: Float
|
7956
|
-
|
7957
|
-
attr_accessor :Zone, :CurrencyCode, :Duration, :FixedPrice, :InstanceType, :OfferingType, :ReservedInstancesOfferingId, :ProductDescription, :UsagePrice
|
7958
|
-
|
7959
|
-
def initialize(zone=nil, currencycode=nil, duration=nil, fixedprice=nil, instancetype=nil, offeringtype=nil, reservedinstancesofferingid=nil, productdescription=nil, usageprice=nil)
|
7960
|
-
@Zone = zone
|
7961
|
-
@CurrencyCode = currencycode
|
7962
|
-
@Duration = duration
|
7963
|
-
@FixedPrice = fixedprice
|
7964
|
-
@InstanceType = instancetype
|
7965
|
-
@OfferingType = offeringtype
|
7966
|
-
@ReservedInstancesOfferingId = reservedinstancesofferingid
|
7967
|
-
@ProductDescription = productdescription
|
7968
|
-
@UsagePrice = usageprice
|
7969
|
-
end
|
7970
|
-
|
7971
|
-
def deserialize(params)
|
7972
|
-
@Zone = params['Zone']
|
7973
|
-
@CurrencyCode = params['CurrencyCode']
|
7974
|
-
@Duration = params['Duration']
|
7975
|
-
@FixedPrice = params['FixedPrice']
|
7976
|
-
@InstanceType = params['InstanceType']
|
7977
|
-
@OfferingType = params['OfferingType']
|
7978
|
-
@ReservedInstancesOfferingId = params['ReservedInstancesOfferingId']
|
7979
|
-
@ProductDescription = params['ProductDescription']
|
7980
|
-
@UsagePrice = params['UsagePrice']
|
7981
|
-
end
|
7982
|
-
end
|
7983
|
-
|
7984
7397
|
# ResetInstance请求参数结构体
|
7985
7398
|
class ResetInstanceRequest < TencentCloud::Common::AbstractModel
|
7986
7399
|
# @param InstanceId: 实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) API返回值中的`InstanceId`获取。
|
@@ -8146,7 +7559,7 @@ module TencentCloud
|
|
8146
7559
|
# @type InstanceIds: Array
|
8147
7560
|
# @param InstanceType: 调整后的实例机型。不同实例机型指定了不同的资源规格,具体取值可通过调用接口[`DescribeInstanceTypeConfigs`](https://cloud.tencent.com/document/api/213/15749)来获得最新的规格表或参见[实例类型](https://cloud.tencent.com/document/product/213/11518)描述。
|
8148
7561
|
# @type InstanceType: String
|
8149
|
-
# @param ForceStop: 是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机。取值范围:<br><li>true
|
7562
|
+
# @param ForceStop: 是否对运行中的实例选择强制关机。建议对运行中的实例先手动关机。取值范围:<br><li>true:表示在正常关机失败后进行强制关机</li><br><li>false:表示在正常关机失败后不进行强制关机</li><br><br>默认取值:false。<br><br>强制关机的效果等同于关闭物理计算机的电源开关。强制关机可能会导致数据丢失或文件系统损坏,请仅在服务器不能正常关机时使用。
|
8150
7563
|
# @type ForceStop: Boolean
|
8151
7564
|
|
8152
7565
|
attr_accessor :InstanceIds, :InstanceType, :ForceStop
|
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: 3.0.
|
4
|
+
version: 3.0.972
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-12-
|
11
|
+
date: 2024-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|