tencentcloud-sdk-cvm 3.0.1012 → 3.0.1014
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/VERSION +1 -1
- data/lib/v20170312/client.rb +96 -0
- data/lib/v20170312/models.rb +577 -109
- 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: 87eb0e1e9a08aefd710647e918838901d68d8255
|
4
|
+
data.tar.gz: 068f0281425f10b55f364e72b37452316b8694f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24e55d76de29888c9ce0cefafa72512413bbce41293b7b7d54367228dbebea01acde221beb42b411be0bffa5c776d33afae4da5041abd6ea358b5d0966d31eaa
|
7
|
+
data.tar.gz: 7e98adec280d873be23e8bd142ec3e2ae950241b9cda9fb7391775e1adbf3a31c5caf4e85baa17e5dc61f81e311c238fc2d9feea61bfe4d49a34e666b7b66c6c
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1014
|
data/lib/v20170312/client.rb
CHANGED
@@ -1172,6 +1172,54 @@ module TencentCloud
|
|
1172
1172
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1173
1173
|
end
|
1174
1174
|
|
1175
|
+
# 本接口(DescribeReservedInstancesConfigInfos)供用户列出可购买预留实例机型配置。预留实例当前只针对国际站白名单用户开放。
|
1176
|
+
|
1177
|
+
# @param request: Request instance for DescribeReservedInstancesConfigInfos.
|
1178
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::DescribeReservedInstancesConfigInfosRequest`
|
1179
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeReservedInstancesConfigInfosResponse`
|
1180
|
+
def DescribeReservedInstancesConfigInfos(request)
|
1181
|
+
body = send_request('DescribeReservedInstancesConfigInfos', request.serialize)
|
1182
|
+
response = JSON.parse(body)
|
1183
|
+
if response['Response'].key?('Error') == false
|
1184
|
+
model = DescribeReservedInstancesConfigInfosResponse.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
|
+
# 本接口(DescribeReservedInstancesOfferings)供用户列出可购买的预留实例配置,预留实例当前只针对国际站白名单用户开放。
|
1200
|
+
|
1201
|
+
# @param request: Request instance for DescribeReservedInstancesOfferings.
|
1202
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::DescribeReservedInstancesOfferingsRequest`
|
1203
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeReservedInstancesOfferingsResponse`
|
1204
|
+
def DescribeReservedInstancesOfferings(request)
|
1205
|
+
body = send_request('DescribeReservedInstancesOfferings', request.serialize)
|
1206
|
+
response = JSON.parse(body)
|
1207
|
+
if response['Response'].key?('Error') == false
|
1208
|
+
model = DescribeReservedInstancesOfferingsResponse.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
|
+
|
1175
1223
|
# 本接口 (DescribeTaskInfo) 用于查询云服务器维修任务列表及详细信息。
|
1176
1224
|
|
1177
1225
|
# - 可以根据实例ID、实例名称或任务状态等信息来查询维修任务列表。过滤信息详情可参考入参说明。
|
@@ -1449,6 +1497,30 @@ module TencentCloud
|
|
1449
1497
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1450
1498
|
end
|
1451
1499
|
|
1500
|
+
# 本接口(InquirePricePurchaseReservedInstancesOffering)用于创建预留实例询价。本接口仅允许针对购买限制范围内的预留实例配置进行询价。预留实例当前只针对国际站白名单用户开放。
|
1501
|
+
|
1502
|
+
# @param request: Request instance for InquirePricePurchaseReservedInstancesOffering.
|
1503
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::InquirePricePurchaseReservedInstancesOfferingRequest`
|
1504
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::InquirePricePurchaseReservedInstancesOfferingResponse`
|
1505
|
+
def InquirePricePurchaseReservedInstancesOffering(request)
|
1506
|
+
body = send_request('InquirePricePurchaseReservedInstancesOffering', request.serialize)
|
1507
|
+
response = JSON.parse(body)
|
1508
|
+
if response['Response'].key?('Error') == false
|
1509
|
+
model = InquirePricePurchaseReservedInstancesOfferingResponse.new
|
1510
|
+
model.deserialize(response['Response'])
|
1511
|
+
model
|
1512
|
+
else
|
1513
|
+
code = response['Response']['Error']['Code']
|
1514
|
+
message = response['Response']['Error']['Message']
|
1515
|
+
reqid = response['Response']['RequestId']
|
1516
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1517
|
+
end
|
1518
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1519
|
+
raise e
|
1520
|
+
rescue StandardError => e
|
1521
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1522
|
+
end
|
1523
|
+
|
1452
1524
|
# 本接口 (InquiryPriceModifyInstancesChargeType) 用于切换实例的计费模式询价。
|
1453
1525
|
|
1454
1526
|
|
@@ -2119,6 +2191,30 @@ module TencentCloud
|
|
2119
2191
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2120
2192
|
end
|
2121
2193
|
|
2194
|
+
# 本接口(PurchaseReservedInstancesOffering)用于用户购买一个或者多个指定配置的预留实例,预留实例当前只针对国际站白名单用户开放。
|
2195
|
+
|
2196
|
+
# @param request: Request instance for PurchaseReservedInstancesOffering.
|
2197
|
+
# @type request: :class:`Tencentcloud::cvm::V20170312::PurchaseReservedInstancesOfferingRequest`
|
2198
|
+
# @rtype: :class:`Tencentcloud::cvm::V20170312::PurchaseReservedInstancesOfferingResponse`
|
2199
|
+
def PurchaseReservedInstancesOffering(request)
|
2200
|
+
body = send_request('PurchaseReservedInstancesOffering', request.serialize)
|
2201
|
+
response = JSON.parse(body)
|
2202
|
+
if response['Response'].key?('Error') == false
|
2203
|
+
model = PurchaseReservedInstancesOfferingResponse.new
|
2204
|
+
model.deserialize(response['Response'])
|
2205
|
+
model
|
2206
|
+
else
|
2207
|
+
code = response['Response']['Error']['Code']
|
2208
|
+
message = response['Response']['Error']['Message']
|
2209
|
+
reqid = response['Response']['RequestId']
|
2210
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2211
|
+
end
|
2212
|
+
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2213
|
+
raise e
|
2214
|
+
rescue StandardError => e
|
2215
|
+
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2216
|
+
end
|
2217
|
+
|
2122
2218
|
# 本接口 (RebootInstances) 用于重启实例。
|
2123
2219
|
|
2124
2220
|
# * 只有状态为`RUNNING`的实例才可以进行此操作。
|
data/lib/v20170312/models.rb
CHANGED
@@ -322,16 +322,12 @@ module TencentCloud
|
|
322
322
|
# chc部署网络minos引导配置。
|
323
323
|
class ChcDeployExtraConfig < TencentCloud::Common::AbstractModel
|
324
324
|
# @param MiniOsType: minos类型。是使用腾讯云的minios,还是客户自己的minios。
|
325
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
326
325
|
# @type MiniOsType: String
|
327
326
|
# @param BootType: 服务器的架构和启动方式。取值为x86_legacy, arm_uefi。
|
328
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
329
327
|
# @type BootType: String
|
330
328
|
# @param BootFile: PXE使用的引导文件。默认为pxelinux.0。
|
331
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
332
329
|
# @type BootFile: String
|
333
330
|
# @param NextServerAddress: tftp服务器的ip地址。
|
334
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
335
331
|
# @type NextServerAddress: String
|
336
332
|
|
337
333
|
attr_accessor :MiniOsType, :BootType, :BootFile, :NextServerAddress
|
@@ -370,82 +366,58 @@ module TencentCloud
|
|
370
366
|
# </ul>
|
371
367
|
# @type InstanceState: String
|
372
368
|
# @param DeviceType: 设备类型。
|
373
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
374
369
|
# @type DeviceType: String
|
375
370
|
# @param Placement: 所属可用区
|
376
371
|
# @type Placement: :class:`Tencentcloud::Cvm.v20170312.models.Placement`
|
377
372
|
# @param BmcVirtualPrivateCloud: 带外网络。
|
378
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
379
373
|
# @type BmcVirtualPrivateCloud: :class:`Tencentcloud::Cvm.v20170312.models.VirtualPrivateCloud`
|
380
374
|
# @param BmcIp: 带外网络Ip。
|
381
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
382
375
|
# @type BmcIp: String
|
383
376
|
# @param BmcSecurityGroupIds: 带外网络安全组Id。
|
384
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
385
377
|
# @type BmcSecurityGroupIds: Array
|
386
378
|
# @param DeployVirtualPrivateCloud: 部署网络。
|
387
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
388
379
|
# @type DeployVirtualPrivateCloud: :class:`Tencentcloud::Cvm.v20170312.models.VirtualPrivateCloud`
|
389
380
|
# @param DeployIp: 部署网络Ip。
|
390
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
391
381
|
# @type DeployIp: String
|
392
382
|
# @param DeploySecurityGroupIds: 部署网络安全组Id。
|
393
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
394
383
|
# @type DeploySecurityGroupIds: Array
|
395
384
|
# @param CvmInstanceId: 关联的云主机Id。
|
396
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
397
385
|
# @type CvmInstanceId: String
|
398
386
|
# @param CreatedTime: 服务器导入的时间。
|
399
387
|
# @type CreatedTime: String
|
400
388
|
# @param HardwareDescription: 机型的硬件描述,分别为CPU核数,内存容量和磁盘容量
|
401
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
402
389
|
# @type HardwareDescription: String
|
403
390
|
# @param CPU: CHC物理服务器的CPU核数
|
404
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
405
391
|
# @type CPU: Integer
|
406
392
|
# @param Memory: CHC物理服务器的内存大小,单位为GB
|
407
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
408
393
|
# @type Memory: Integer
|
409
394
|
# @param Disk: CHC物理服务器的磁盘信息
|
410
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
411
395
|
# @type Disk: String
|
412
396
|
# @param BmcMAC: 带外网络下分配的MAC地址
|
413
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
414
397
|
# @type BmcMAC: String
|
415
398
|
# @param DeployMAC: 部署网络下分配的MAC地址
|
416
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
417
399
|
# @type DeployMAC: String
|
418
400
|
# @param TenantType: 设备托管类型。
|
419
401
|
# HOSTING: 托管
|
420
402
|
# TENANT: 租赁
|
421
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
422
403
|
# @type TenantType: String
|
423
404
|
# @param DeployExtraConfig: chc dhcp选项,用于minios调试。
|
424
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
425
405
|
# @type DeployExtraConfig: :class:`Tencentcloud::Cvm.v20170312.models.ChcDeployExtraConfig`
|
426
406
|
# @param Gpu: GPU型号。
|
427
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
428
407
|
# @type Gpu: String
|
429
408
|
# @param NetworkCard: 网卡型号。主要指RDMA网卡。
|
430
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
431
409
|
# @type NetworkCard: String
|
432
410
|
# @param IsPredefinedType: 是否是预定义机型。
|
433
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
434
411
|
# @type IsPredefinedType: Boolean
|
435
412
|
# @param ChcInstanceType: CHC云主机机型。
|
436
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
437
413
|
# @type ChcInstanceType: String
|
438
414
|
# @param ChcInstanceFamily: CHC云主机机型簇。
|
439
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
440
415
|
# @type ChcInstanceFamily: String
|
441
416
|
# @param ChcInstanceFamilyName: CHC云主机机型簇名称。
|
442
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
443
417
|
# @type ChcInstanceFamilyName: String
|
444
418
|
# @param ResaleAppId: 转售客户的AppId。
|
445
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
446
419
|
# @type ResaleAppId: String
|
447
420
|
# @param ResaleAccountId: 转售客户的账号ID。
|
448
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
449
421
|
# @type ResaleAccountId: String
|
450
422
|
# @param SaleStatus: 售卖状态。<br/>
|
451
423
|
# <ul>
|
@@ -453,11 +425,8 @@ module TencentCloud
|
|
453
425
|
# <li>AVAILABLE: 可售卖</li>
|
454
426
|
# <li>SOLD: 已售卖</li>
|
455
427
|
# </ul>
|
456
|
-
|
457
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
458
428
|
# @type SaleStatus: String
|
459
429
|
# @param Tags: CHC物理服务器关联的标签列表。
|
460
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
461
430
|
# @type Tags: Array
|
462
431
|
# @param LatestOperation: 最近操作
|
463
432
|
# @type LatestOperation: String
|
@@ -738,10 +707,8 @@ module TencentCloud
|
|
738
707
|
# ConvertOperatingSystems返回参数结构体
|
739
708
|
class ConvertOperatingSystemsResponse < TencentCloud::Common::AbstractModel
|
740
709
|
# @param SupportTargetOSList: 转换的目标操系统信息,仅在入参 DryRun 为 true 时返回。
|
741
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
742
710
|
# @type SupportTargetOSList: Array
|
743
711
|
# @param TaskId: 操作系统转换的任务 ID
|
744
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
745
712
|
# @type TaskId: String
|
746
713
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
747
714
|
# @type RequestId: String
|
@@ -914,7 +881,6 @@ module TencentCloud
|
|
914
881
|
# CreateHpcCluster返回参数结构体
|
915
882
|
class CreateHpcClusterResponse < TencentCloud::Common::AbstractModel
|
916
883
|
# @param HpcClusterSet: 高性能计算集群信息。
|
917
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
918
884
|
# @type HpcClusterSet: Array
|
919
885
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
920
886
|
# @type RequestId: String
|
@@ -1005,7 +971,6 @@ module TencentCloud
|
|
1005
971
|
# CreateImage返回参数结构体
|
1006
972
|
class CreateImageResponse < TencentCloud::Common::AbstractModel
|
1007
973
|
# @param ImageId: 镜像ID
|
1008
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
1009
974
|
# @type ImageId: String
|
1010
975
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1011
976
|
# @type RequestId: String
|
@@ -1976,17 +1941,23 @@ module TencentCloud
|
|
1976
1941
|
# @type CvmInSwGroupQuota: Integer
|
1977
1942
|
# @param CvmInRackGroupQuota: 机架类型容灾组内实例的配额数。
|
1978
1943
|
# @type CvmInRackGroupQuota: Integer
|
1944
|
+
# @param CvmInSwitchGroupQuota: 交换机类型容灾组内实例的配额数。
|
1945
|
+
# @type CvmInSwitchGroupQuota: Integer
|
1979
1946
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
1980
1947
|
# @type RequestId: String
|
1981
1948
|
|
1982
|
-
attr_accessor :GroupQuota, :CurrentNum, :CvmInHostGroupQuota, :CvmInSwGroupQuota, :CvmInRackGroupQuota, :RequestId
|
1949
|
+
attr_accessor :GroupQuota, :CurrentNum, :CvmInHostGroupQuota, :CvmInSwGroupQuota, :CvmInRackGroupQuota, :CvmInSwitchGroupQuota, :RequestId
|
1950
|
+
extend Gem::Deprecate
|
1951
|
+
deprecate :CvmInSwGroupQuota, :none, 2025, 3
|
1952
|
+
deprecate :CvmInSwGroupQuota=, :none, 2025, 3
|
1983
1953
|
|
1984
|
-
def initialize(groupquota=nil, currentnum=nil, cvminhostgroupquota=nil, cvminswgroupquota=nil, cvminrackgroupquota=nil, requestid=nil)
|
1954
|
+
def initialize(groupquota=nil, currentnum=nil, cvminhostgroupquota=nil, cvminswgroupquota=nil, cvminrackgroupquota=nil, cvminswitchgroupquota=nil, requestid=nil)
|
1985
1955
|
@GroupQuota = groupquota
|
1986
1956
|
@CurrentNum = currentnum
|
1987
1957
|
@CvmInHostGroupQuota = cvminhostgroupquota
|
1988
1958
|
@CvmInSwGroupQuota = cvminswgroupquota
|
1989
1959
|
@CvmInRackGroupQuota = cvminrackgroupquota
|
1960
|
+
@CvmInSwitchGroupQuota = cvminswitchgroupquota
|
1990
1961
|
@RequestId = requestid
|
1991
1962
|
end
|
1992
1963
|
|
@@ -1996,6 +1967,7 @@ module TencentCloud
|
|
1996
1967
|
@CvmInHostGroupQuota = params['CvmInHostGroupQuota']
|
1997
1968
|
@CvmInSwGroupQuota = params['CvmInSwGroupQuota']
|
1998
1969
|
@CvmInRackGroupQuota = params['CvmInRackGroupQuota']
|
1970
|
+
@CvmInSwitchGroupQuota = params['CvmInSwitchGroupQuota']
|
1999
1971
|
@RequestId = params['RequestId']
|
2000
1972
|
end
|
2001
1973
|
end
|
@@ -3132,7 +3104,12 @@ module TencentCloud
|
|
3132
3104
|
class DescribeLaunchTemplatesRequest < TencentCloud::Common::AbstractModel
|
3133
3105
|
# @param LaunchTemplateIds: 启动模板ID,一个或者多个启动模板ID。若未指定,则显示用户所有模板。
|
3134
3106
|
# @type LaunchTemplateIds: Array
|
3135
|
-
# @param Filters: <
|
3107
|
+
# @param Filters: <li><strong>LaunchTemplateName</strong></li>
|
3108
|
+
# <p style="padding-left: 30px;">按照【<strong>实例启动模板名称</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
3109
|
+
# <li><strong>tag-key</strong></li>
|
3110
|
+
# <p style="padding-left: 30px;">按照【<strong>标签键</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
3111
|
+
# <li><strong>tag-value</strong></li> <p style="padding-left: 30px;">按照【<strong>标签值</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
3112
|
+
# <li><strong>tag:tag-key</strong></li> <p style="padding-left: 30px;">按照【<strong>标签键值对</strong>】进行过滤。tag-key使用具体的标签键进行替换。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
3136
3113
|
# 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`LaunchTemplateIds`和`Filters`。
|
3137
3114
|
# @type Filters: Array
|
3138
3115
|
# @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
@@ -3167,10 +3144,8 @@ module TencentCloud
|
|
3167
3144
|
# DescribeLaunchTemplates返回参数结构体
|
3168
3145
|
class DescribeLaunchTemplatesResponse < TencentCloud::Common::AbstractModel
|
3169
3146
|
# @param TotalCount: 符合条件的实例模板数量。
|
3170
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3171
3147
|
# @type TotalCount: Integer
|
3172
3148
|
# @param LaunchTemplateSet: 实例详细信息列表。
|
3173
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3174
3149
|
# @type LaunchTemplateSet: Array
|
3175
3150
|
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3176
3151
|
# @type RequestId: String
|
@@ -3239,6 +3214,163 @@ module TencentCloud
|
|
3239
3214
|
end
|
3240
3215
|
end
|
3241
3216
|
|
3217
|
+
# DescribeReservedInstancesConfigInfos请求参数结构体
|
3218
|
+
class DescribeReservedInstancesConfigInfosRequest < TencentCloud::Common::AbstractModel
|
3219
|
+
# @param Filters: zone
|
3220
|
+
# 按照预留实例计费可购买的可用区进行过滤。形如:ap-guangzhou-1。
|
3221
|
+
# 类型:String
|
3222
|
+
# 必选:否
|
3223
|
+
# 可选项:各地域可用区列表
|
3224
|
+
|
3225
|
+
# product-description
|
3226
|
+
# 按照预留实例计费的平台描述(即操作系统)进行过滤。形如:linux。
|
3227
|
+
# 类型:String
|
3228
|
+
# 必选:否
|
3229
|
+
# 可选项:linux
|
3230
|
+
|
3231
|
+
# duration
|
3232
|
+
# 按照预留实例计费有效期,即预留实例计费购买时长进行过滤。形如:31536000。
|
3233
|
+
# 类型:Integer
|
3234
|
+
# 计量单位:秒
|
3235
|
+
# 必选:否
|
3236
|
+
# 可选项:31536000 (1年)
|
3237
|
+
# @type Filters: Array
|
3238
|
+
|
3239
|
+
attr_accessor :Filters
|
3240
|
+
|
3241
|
+
def initialize(filters=nil)
|
3242
|
+
@Filters = filters
|
3243
|
+
end
|
3244
|
+
|
3245
|
+
def deserialize(params)
|
3246
|
+
unless params['Filters'].nil?
|
3247
|
+
@Filters = []
|
3248
|
+
params['Filters'].each do |i|
|
3249
|
+
filter_tmp = Filter.new
|
3250
|
+
filter_tmp.deserialize(i)
|
3251
|
+
@Filters << filter_tmp
|
3252
|
+
end
|
3253
|
+
end
|
3254
|
+
end
|
3255
|
+
end
|
3256
|
+
|
3257
|
+
# DescribeReservedInstancesConfigInfos返回参数结构体
|
3258
|
+
class DescribeReservedInstancesConfigInfosResponse < TencentCloud::Common::AbstractModel
|
3259
|
+
# @param ReservedInstanceConfigInfos: 预留实例静态配置信息列表。
|
3260
|
+
# @type ReservedInstanceConfigInfos: Array
|
3261
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3262
|
+
# @type RequestId: String
|
3263
|
+
|
3264
|
+
attr_accessor :ReservedInstanceConfigInfos, :RequestId
|
3265
|
+
|
3266
|
+
def initialize(reservedinstanceconfiginfos=nil, requestid=nil)
|
3267
|
+
@ReservedInstanceConfigInfos = reservedinstanceconfiginfos
|
3268
|
+
@RequestId = requestid
|
3269
|
+
end
|
3270
|
+
|
3271
|
+
def deserialize(params)
|
3272
|
+
unless params['ReservedInstanceConfigInfos'].nil?
|
3273
|
+
@ReservedInstanceConfigInfos = []
|
3274
|
+
params['ReservedInstanceConfigInfos'].each do |i|
|
3275
|
+
reservedinstanceconfiginfoitem_tmp = ReservedInstanceConfigInfoItem.new
|
3276
|
+
reservedinstanceconfiginfoitem_tmp.deserialize(i)
|
3277
|
+
@ReservedInstanceConfigInfos << reservedinstanceconfiginfoitem_tmp
|
3278
|
+
end
|
3279
|
+
end
|
3280
|
+
@RequestId = params['RequestId']
|
3281
|
+
end
|
3282
|
+
end
|
3283
|
+
|
3284
|
+
# DescribeReservedInstancesOfferings请求参数结构体
|
3285
|
+
class DescribeReservedInstancesOfferingsRequest < TencentCloud::Common::AbstractModel
|
3286
|
+
# @param DryRun: 试运行, 默认为 false。
|
3287
|
+
# @type DryRun: Boolean
|
3288
|
+
# @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
3289
|
+
# @type Offset: Integer
|
3290
|
+
# @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
3291
|
+
# @type Limit: Integer
|
3292
|
+
# @param MaxDuration: 以最大有效期作为过滤参数。
|
3293
|
+
# 计量单位: 秒
|
3294
|
+
# 默认为 94608000。
|
3295
|
+
# @type MaxDuration: Integer
|
3296
|
+
# @param MinDuration: 以最小有效期作为过滤参数。
|
3297
|
+
# 计量单位: 秒
|
3298
|
+
# 默认为 2592000。
|
3299
|
+
# @type MinDuration: Integer
|
3300
|
+
# @param Filters: <li><strong>zone</strong></li>
|
3301
|
+
# <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>
|
3302
|
+
# <li><strong>duration</strong></li>
|
3303
|
+
# <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>
|
3304
|
+
# <li><strong>instance-type</strong></li>
|
3305
|
+
# <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>
|
3306
|
+
# <li><strong>offering-type</strong></li>
|
3307
|
+
# <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>
|
3308
|
+
# <li><strong>product-description</strong></li>
|
3309
|
+
# <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>
|
3310
|
+
# <li><strong>reserved-instances-offering-id</strong></li>
|
3311
|
+
# <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>
|
3312
|
+
# 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。
|
3313
|
+
# @type Filters: Array
|
3314
|
+
|
3315
|
+
attr_accessor :DryRun, :Offset, :Limit, :MaxDuration, :MinDuration, :Filters
|
3316
|
+
|
3317
|
+
def initialize(dryrun=nil, offset=nil, limit=nil, maxduration=nil, minduration=nil, filters=nil)
|
3318
|
+
@DryRun = dryrun
|
3319
|
+
@Offset = offset
|
3320
|
+
@Limit = limit
|
3321
|
+
@MaxDuration = maxduration
|
3322
|
+
@MinDuration = minduration
|
3323
|
+
@Filters = filters
|
3324
|
+
end
|
3325
|
+
|
3326
|
+
def deserialize(params)
|
3327
|
+
@DryRun = params['DryRun']
|
3328
|
+
@Offset = params['Offset']
|
3329
|
+
@Limit = params['Limit']
|
3330
|
+
@MaxDuration = params['MaxDuration']
|
3331
|
+
@MinDuration = params['MinDuration']
|
3332
|
+
unless params['Filters'].nil?
|
3333
|
+
@Filters = []
|
3334
|
+
params['Filters'].each do |i|
|
3335
|
+
filter_tmp = Filter.new
|
3336
|
+
filter_tmp.deserialize(i)
|
3337
|
+
@Filters << filter_tmp
|
3338
|
+
end
|
3339
|
+
end
|
3340
|
+
end
|
3341
|
+
end
|
3342
|
+
|
3343
|
+
# DescribeReservedInstancesOfferings返回参数结构体
|
3344
|
+
class DescribeReservedInstancesOfferingsResponse < TencentCloud::Common::AbstractModel
|
3345
|
+
# @param TotalCount: 符合条件的预留实例计费数量。
|
3346
|
+
# @type TotalCount: Integer
|
3347
|
+
# @param ReservedInstancesOfferingsSet: 符合条件的预留实例计费列表。
|
3348
|
+
# @type ReservedInstancesOfferingsSet: Array
|
3349
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3350
|
+
# @type RequestId: String
|
3351
|
+
|
3352
|
+
attr_accessor :TotalCount, :ReservedInstancesOfferingsSet, :RequestId
|
3353
|
+
|
3354
|
+
def initialize(totalcount=nil, reservedinstancesofferingsset=nil, requestid=nil)
|
3355
|
+
@TotalCount = totalcount
|
3356
|
+
@ReservedInstancesOfferingsSet = reservedinstancesofferingsset
|
3357
|
+
@RequestId = requestid
|
3358
|
+
end
|
3359
|
+
|
3360
|
+
def deserialize(params)
|
3361
|
+
@TotalCount = params['TotalCount']
|
3362
|
+
unless params['ReservedInstancesOfferingsSet'].nil?
|
3363
|
+
@ReservedInstancesOfferingsSet = []
|
3364
|
+
params['ReservedInstancesOfferingsSet'].each do |i|
|
3365
|
+
reservedinstancesoffering_tmp = ReservedInstancesOffering.new
|
3366
|
+
reservedinstancesoffering_tmp.deserialize(i)
|
3367
|
+
@ReservedInstancesOfferingsSet << reservedinstancesoffering_tmp
|
3368
|
+
end
|
3369
|
+
end
|
3370
|
+
@RequestId = params['RequestId']
|
3371
|
+
end
|
3372
|
+
end
|
3373
|
+
|
3242
3374
|
# DescribeTaskInfo请求参数结构体
|
3243
3375
|
class DescribeTaskInfoRequest < TencentCloud::Common::AbstractModel
|
3244
3376
|
# @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
@@ -3747,7 +3879,7 @@ module TencentCloud
|
|
3747
3879
|
class ExportImagesRequest < TencentCloud::Common::AbstractModel
|
3748
3880
|
# @param BucketName: COS存储桶名称
|
3749
3881
|
# @type BucketName: String
|
3750
|
-
# @param ImageIds: 镜像ID
|
3882
|
+
# @param ImageIds: 镜像ID列表。调用 ExportImages 接口时,参数 ImageIds 和 SnapshotIds 为二选一必填参数,目前参数 SnapshotIds 暂未对外开放。
|
3751
3883
|
# @type ImageIds: Array
|
3752
3884
|
# @param ExportFormat: 镜像文件导出格式。取值范围:RAW,QCOW2,VHD,VMDK。默认为RAW
|
3753
3885
|
# @type ExportFormat: String
|
@@ -3868,13 +4000,10 @@ module TencentCloud
|
|
3868
4000
|
# 实例GPU信息
|
3869
4001
|
class GPUInfo < TencentCloud::Common::AbstractModel
|
3870
4002
|
# @param GPUCount: 实例GPU个数。值小于1代表VGPU类型,大于1代表GPU直通类型。
|
3871
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3872
4003
|
# @type GPUCount: Float
|
3873
4004
|
# @param GPUId: 实例GPU地址。
|
3874
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3875
4005
|
# @type GPUId: Array
|
3876
4006
|
# @param GPUType: 实例GPU类型。
|
3877
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3878
4007
|
# @type GPUType: String
|
3879
4008
|
|
3880
4009
|
attr_accessor :GPUCount, :GPUId, :GPUType
|
@@ -3919,10 +4048,8 @@ module TencentCloud
|
|
3919
4048
|
# @param HostResource: 专用宿主机实例资源信息
|
3920
4049
|
# @type HostResource: :class:`Tencentcloud::Cvm.v20170312.models.HostResource`
|
3921
4050
|
# @param CageId: 专用宿主机所属的围笼ID。该字段仅对金融专区围笼内的专用宿主机有效。
|
3922
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3923
4051
|
# @type CageId: String
|
3924
4052
|
# @param Tags: 专用宿主机关联的标签列表。
|
3925
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
3926
4053
|
# @type Tags: Array
|
3927
4054
|
|
3928
4055
|
attr_accessor :Placement, :HostId, :HostType, :HostName, :HostChargeType, :RenewFlag, :CreatedTime, :ExpiredTime, :InstanceIds, :HostState, :HostIp, :HostResource, :CageId, :Tags
|
@@ -4015,7 +4142,6 @@ module TencentCloud
|
|
4015
4142
|
# @param GpuAvailable: 专用宿主机实例可用GPU卡数
|
4016
4143
|
# @type GpuAvailable: Integer
|
4017
4144
|
# @param ExclusiveOwner: CDH owner
|
4018
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4019
4145
|
# @type ExclusiveOwner: String
|
4020
4146
|
|
4021
4147
|
attr_accessor :CpuTotal, :CpuAvailable, :MemTotal, :MemAvailable, :DiskTotal, :DiskAvailable, :DiskType, :GpuTotal, :GpuAvailable, :ExclusiveOwner
|
@@ -4052,10 +4178,8 @@ module TencentCloud
|
|
4052
4178
|
# @param HpcClusterId: 高性能计算集群ID
|
4053
4179
|
# @type HpcClusterId: String
|
4054
4180
|
# @param Name: 高性能计算集群名
|
4055
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4056
4181
|
# @type Name: String
|
4057
4182
|
# @param Remark: 高性能计算集群备注
|
4058
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4059
4183
|
# @type Remark: String
|
4060
4184
|
# @param CvmQuotaTotal: 集群下设备容量
|
4061
4185
|
# @type CvmQuotaTotal: Integer
|
@@ -4064,16 +4188,12 @@ module TencentCloud
|
|
4064
4188
|
# @param CurrentNum: 集群当前已有设备量
|
4065
4189
|
# @type CurrentNum: Integer
|
4066
4190
|
# @param CreateTime: 集群创建时间
|
4067
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4068
4191
|
# @type CreateTime: String
|
4069
4192
|
# @param InstanceIds: 集群内实例ID列表
|
4070
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4071
4193
|
# @type InstanceIds: Array
|
4072
4194
|
# @param HpcClusterType: 高性能计算集群类型。
|
4073
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4074
4195
|
# @type HpcClusterType: String
|
4075
4196
|
# @param HpcClusterBusinessId: 高性能计算集群对应的业务场景标识,当前只支持CDC。
|
4076
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4077
4197
|
# @type HpcClusterBusinessId: String
|
4078
4198
|
# @param HpcClusterNetMode: 高性能计算集群网络模式
|
4079
4199
|
# @type HpcClusterNetMode: Integer
|
@@ -4157,18 +4277,14 @@ module TencentCloud
|
|
4157
4277
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
4158
4278
|
# @type SyncPercent: Integer
|
4159
4279
|
# @param IsSupportCloudinit: 镜像是否支持cloud-init
|
4160
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4161
4280
|
# @type IsSupportCloudinit: Boolean
|
4162
4281
|
# @param SnapshotSet: 镜像关联的快照信息
|
4163
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4164
4282
|
# @type SnapshotSet: Array
|
4165
4283
|
# @param Tags: 镜像关联的标签列表。
|
4166
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4167
4284
|
# @type Tags: Array
|
4168
4285
|
# @param LicenseType: 镜像许可类型
|
4169
4286
|
# @type LicenseType: String
|
4170
4287
|
# @param ImageFamily: 镜像族
|
4171
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4172
4288
|
# @type ImageFamily: String
|
4173
4289
|
# @param ImageDeprecated: 镜像是否废弃
|
4174
4290
|
# @type ImageDeprecated: Boolean
|
@@ -4237,10 +4353,8 @@ module TencentCloud
|
|
4237
4353
|
# 支持的操作系统类型,根据Windows和Linux分类。
|
4238
4354
|
class ImageOsList < TencentCloud::Common::AbstractModel
|
4239
4355
|
# @param Windows: 支持的Windows操作系统。
|
4240
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4241
4356
|
# @type Windows: Array
|
4242
4357
|
# @param Linux: 支持的Linux操作系统
|
4243
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
4244
4358
|
# @type Linux: Array
|
4245
4359
|
|
4246
4360
|
attr_accessor :Windows, :Linux
|
@@ -4493,6 +4607,61 @@ module TencentCloud
|
|
4493
4607
|
end
|
4494
4608
|
end
|
4495
4609
|
|
4610
|
+
# InquirePricePurchaseReservedInstancesOffering请求参数结构体
|
4611
|
+
class InquirePricePurchaseReservedInstancesOfferingRequest < TencentCloud::Common::AbstractModel
|
4612
|
+
# @param InstanceCount: 购买预留实例计费数量
|
4613
|
+
# @type InstanceCount: Integer
|
4614
|
+
# @param ReservedInstancesOfferingId: 预留实例计费配置ID
|
4615
|
+
# @type ReservedInstancesOfferingId: String
|
4616
|
+
# @param DryRun: 试运行
|
4617
|
+
# @type DryRun: Boolean
|
4618
|
+
# @param ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。<br>更多详细信息请参阅:如何保证幂等性
|
4619
|
+
# @type ClientToken: String
|
4620
|
+
# @param ReservedInstanceName: 预留实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>
|
4621
|
+
# @type ReservedInstanceName: String
|
4622
|
+
|
4623
|
+
attr_accessor :InstanceCount, :ReservedInstancesOfferingId, :DryRun, :ClientToken, :ReservedInstanceName
|
4624
|
+
|
4625
|
+
def initialize(instancecount=nil, reservedinstancesofferingid=nil, dryrun=nil, clienttoken=nil, reservedinstancename=nil)
|
4626
|
+
@InstanceCount = instancecount
|
4627
|
+
@ReservedInstancesOfferingId = reservedinstancesofferingid
|
4628
|
+
@DryRun = dryrun
|
4629
|
+
@ClientToken = clienttoken
|
4630
|
+
@ReservedInstanceName = reservedinstancename
|
4631
|
+
end
|
4632
|
+
|
4633
|
+
def deserialize(params)
|
4634
|
+
@InstanceCount = params['InstanceCount']
|
4635
|
+
@ReservedInstancesOfferingId = params['ReservedInstancesOfferingId']
|
4636
|
+
@DryRun = params['DryRun']
|
4637
|
+
@ClientToken = params['ClientToken']
|
4638
|
+
@ReservedInstanceName = params['ReservedInstanceName']
|
4639
|
+
end
|
4640
|
+
end
|
4641
|
+
|
4642
|
+
# InquirePricePurchaseReservedInstancesOffering返回参数结构体
|
4643
|
+
class InquirePricePurchaseReservedInstancesOfferingResponse < TencentCloud::Common::AbstractModel
|
4644
|
+
# @param Price: 该参数表示对应配置预留实例的价格。
|
4645
|
+
# @type Price: :class:`Tencentcloud::Cvm.v20170312.models.ReservedInstancePrice`
|
4646
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4647
|
+
# @type RequestId: String
|
4648
|
+
|
4649
|
+
attr_accessor :Price, :RequestId
|
4650
|
+
|
4651
|
+
def initialize(price=nil, requestid=nil)
|
4652
|
+
@Price = price
|
4653
|
+
@RequestId = requestid
|
4654
|
+
end
|
4655
|
+
|
4656
|
+
def deserialize(params)
|
4657
|
+
unless params['Price'].nil?
|
4658
|
+
@Price = ReservedInstancePrice.new
|
4659
|
+
@Price.deserialize(params['Price'])
|
4660
|
+
end
|
4661
|
+
@RequestId = params['RequestId']
|
4662
|
+
end
|
4663
|
+
end
|
4664
|
+
|
4496
4665
|
# InquiryPriceModifyInstancesChargeType请求参数结构体
|
4497
4666
|
class InquiryPriceModifyInstancesChargeTypeRequest < TencentCloud::Common::AbstractModel
|
4498
4667
|
# @param InstanceIds: 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
|
@@ -5140,7 +5309,6 @@ module TencentCloud
|
|
5140
5309
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
5141
5310
|
# @type LatestOperationRequestId: String
|
5142
5311
|
# @param DisasterRecoverGroupId: 分散置放群组ID。
|
5143
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5144
5312
|
# @type DisasterRecoverGroupId: String
|
5145
5313
|
# @param IPv6Addresses: 实例的IPv6地址。
|
5146
5314
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
@@ -5149,19 +5317,15 @@ module TencentCloud
|
|
5149
5317
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
5150
5318
|
# @type CamRoleName: String
|
5151
5319
|
# @param HpcClusterId: 高性能计算集群`ID`。
|
5152
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5153
5320
|
# @type HpcClusterId: String
|
5154
5321
|
# @param RdmaIpAddresses: 高性能计算集群`IP`列表。
|
5155
5322
|
# 注意:此字段可能返回 null,表示取不到有效值。
|
5156
5323
|
# @type RdmaIpAddresses: Array
|
5157
5324
|
# @param DedicatedClusterId: 实例所在的专用集群`ID`。
|
5158
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5159
5325
|
# @type DedicatedClusterId: String
|
5160
5326
|
# @param IsolatedSource: 实例隔离类型。取值范围:<br><li>ARREAR:表示欠费隔离<br></li><li>EXPIRE:表示到期隔离<br></li><li>MANMADE:表示主动退还隔离<br></li><li>NOTISOLATED:表示未隔离<br></li>
|
5161
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5162
5327
|
# @type IsolatedSource: String
|
5163
5328
|
# @param GPUInfo: GPU信息。如果是gpu类型子机,该值会返回GPU信息,如果是其他类型子机则不返回。
|
5164
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5165
5329
|
# @type GPUInfo: :class:`Tencentcloud::Cvm.v20170312.models.GPUInfo`
|
5166
5330
|
# @param LicenseType: 实例的操作系统许可类型,默认为TencentCloud
|
5167
5331
|
# @type LicenseType: String
|
@@ -5365,13 +5529,10 @@ module TencentCloud
|
|
5365
5529
|
# 描述退款详情。
|
5366
5530
|
class InstanceRefund < TencentCloud::Common::AbstractModel
|
5367
5531
|
# @param InstanceId: 实例Id。
|
5368
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5369
5532
|
# @type InstanceId: String
|
5370
5533
|
# @param Refunds: 退款数额。
|
5371
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5372
5534
|
# @type Refunds: Float
|
5373
5535
|
# @param PriceDetail: 退款详情。
|
5374
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5375
5536
|
# @type PriceDetail: String
|
5376
5537
|
|
5377
5538
|
attr_accessor :InstanceId, :Refunds, :PriceDetail
|
@@ -5458,7 +5619,6 @@ module TencentCloud
|
|
5458
5619
|
# @param Status: 状态描述
|
5459
5620
|
# @type Status: String
|
5460
5621
|
# @param Message: 状态描述信息
|
5461
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5462
5622
|
# @type Message: String
|
5463
5623
|
# @param InstanceTypeConfig: 配置信息
|
5464
5624
|
# @type InstanceTypeConfig: :class:`Tencentcloud::Cvm.v20170312.models.InstanceTypeConfig`
|
@@ -5660,10 +5820,8 @@ module TencentCloud
|
|
5660
5820
|
# 描述了网络计费
|
5661
5821
|
class InternetChargeTypeConfig < TencentCloud::Common::AbstractModel
|
5662
5822
|
# @param InternetChargeType: 网络计费模式。
|
5663
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5664
5823
|
# @type InternetChargeType: String
|
5665
5824
|
# @param Description: 网络计费模式描述信息。
|
5666
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5667
5825
|
# @type Description: String
|
5668
5826
|
|
5669
5827
|
attr_accessor :InternetChargeType, :Description
|
@@ -5795,7 +5953,6 @@ module TencentCloud
|
|
5795
5953
|
# @param CreatedTime: 创建时间。按照`ISO8601`标准表示,并且使用`UTC`时间。格式为:`YYYY-MM-DDThh:mm:ssZ`。
|
5796
5954
|
# @type CreatedTime: String
|
5797
5955
|
# @param Tags: 密钥关联的标签列表。
|
5798
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5799
5956
|
# @type Tags: Array
|
5800
5957
|
|
5801
5958
|
attr_accessor :KeyId, :KeyName, :ProjectId, :Description, :PublicKey, :PrivateKey, :AssociatedInstanceIds, :CreatedTime, :Tags
|
@@ -5855,25 +6012,18 @@ module TencentCloud
|
|
5855
6012
|
# 实例启动模板简要信息。
|
5856
6013
|
class LaunchTemplateInfo < TencentCloud::Common::AbstractModel
|
5857
6014
|
# @param LatestVersionNumber: 实例启动模版本号。
|
5858
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5859
6015
|
# @type LatestVersionNumber: Integer
|
5860
6016
|
# @param LaunchTemplateId: 实例启动模板ID。
|
5861
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5862
6017
|
# @type LaunchTemplateId: String
|
5863
6018
|
# @param LaunchTemplateName: 实例启动模板名。
|
5864
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5865
6019
|
# @type LaunchTemplateName: String
|
5866
6020
|
# @param DefaultVersionNumber: 实例启动模板默认版本号。
|
5867
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5868
6021
|
# @type DefaultVersionNumber: Integer
|
5869
6022
|
# @param LaunchTemplateVersionCount: 实例启动模板包含的版本总数量。
|
5870
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5871
6023
|
# @type LaunchTemplateVersionCount: Integer
|
5872
6024
|
# @param CreatedBy: 创建该模板的用户UIN。
|
5873
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5874
6025
|
# @type CreatedBy: String
|
5875
6026
|
# @param CreationTime: 创建该模板的时间。
|
5876
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5877
6027
|
# @type CreationTime: String
|
5878
6028
|
|
5879
6029
|
attr_accessor :LatestVersionNumber, :LaunchTemplateId, :LaunchTemplateName, :DefaultVersionNumber, :LaunchTemplateVersionCount, :CreatedBy, :CreationTime
|
@@ -5902,81 +6052,61 @@ module TencentCloud
|
|
5902
6052
|
# 实例启动模板版本信息
|
5903
6053
|
class LaunchTemplateVersionData < TencentCloud::Common::AbstractModel
|
5904
6054
|
# @param Placement: 实例所在的位置。
|
5905
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5906
6055
|
# @type Placement: :class:`Tencentcloud::Cvm.v20170312.models.Placement`
|
5907
6056
|
# @param InstanceType: 实例机型。
|
5908
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5909
6057
|
# @type InstanceType: String
|
5910
6058
|
# @param InstanceName: 实例名称。
|
5911
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5912
6059
|
# @type InstanceName: String
|
5913
|
-
# @param InstanceChargeType:
|
5914
|
-
#
|
6060
|
+
# @param InstanceChargeType: 实例计费模式。取值范围:
|
6061
|
+
# <li>`PREPAID`:表示预付费,即包年包月</li>
|
6062
|
+
# <li>`POSTPAID_BY_HOUR`:表示后付费,即按量计费</li>
|
6063
|
+
# <li>`CDHPAID`:`专用宿主机`付费,即只对`专用宿主机`计费,不对`专用宿主机`上的实例计费。</li>
|
6064
|
+
# <li>`SPOTPAID`:表示竞价实例付费。</li>
|
5915
6065
|
# @type InstanceChargeType: String
|
5916
6066
|
# @param SystemDisk: 实例系统盘信息。
|
5917
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5918
6067
|
# @type SystemDisk: :class:`Tencentcloud::Cvm.v20170312.models.SystemDisk`
|
5919
6068
|
# @param DataDisks: 实例数据盘信息。只包含随实例购买的数据盘。
|
5920
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5921
6069
|
# @type DataDisks: Array
|
5922
6070
|
# @param InternetAccessible: 实例带宽信息。
|
5923
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5924
6071
|
# @type InternetAccessible: :class:`Tencentcloud::Cvm.v20170312.models.InternetAccessible`
|
5925
6072
|
# @param VirtualPrivateCloud: 实例所属虚拟私有网络信息。
|
5926
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5927
6073
|
# @type VirtualPrivateCloud: :class:`Tencentcloud::Cvm.v20170312.models.VirtualPrivateCloud`
|
5928
6074
|
# @param ImageId: 生产实例所使用的镜像`ID`。
|
5929
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5930
6075
|
# @type ImageId: String
|
5931
6076
|
# @param SecurityGroupIds: 实例所属安全组。该参数可以通过调用 [DescribeSecurityGroups](https://cloud.tencent.com/document/api/215/15808) 的返回值中的sgId字段来获取。
|
5932
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5933
6077
|
# @type SecurityGroupIds: Array
|
5934
6078
|
# @param LoginSettings: 实例登录设置。目前只返回实例所关联的密钥。
|
5935
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5936
6079
|
# @type LoginSettings: :class:`Tencentcloud::Cvm.v20170312.models.LoginSettings`
|
5937
6080
|
# @param CamRoleName: CAM角色名。
|
5938
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5939
6081
|
# @type CamRoleName: String
|
5940
6082
|
# @param HpcClusterId: 高性能计算集群`ID`。
|
5941
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5942
6083
|
# @type HpcClusterId: String
|
5943
6084
|
# @param InstanceCount: 购买实例数量。
|
5944
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5945
6085
|
# @type InstanceCount: Integer
|
5946
6086
|
# @param EnhancedService: 增强服务。
|
5947
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5948
6087
|
# @type EnhancedService: :class:`Tencentcloud::Cvm.v20170312.models.EnhancedService`
|
5949
6088
|
# @param UserData: 提供给实例使用的用户数据,需要以 base64 方式编码,支持的最大数据大小为 16KB。
|
5950
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5951
6089
|
# @type UserData: String
|
5952
6090
|
# @param DisasterRecoverGroupIds: 置放群组ID,仅支持指定一个。
|
5953
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5954
6091
|
# @type DisasterRecoverGroupIds: Array
|
5955
6092
|
# @param ActionTimer: 定时任务。通过该参数可以为实例指定定时任务,目前仅支持定时销毁。
|
5956
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5957
6093
|
# @type ActionTimer: :class:`Tencentcloud::Cvm.v20170312.models.ActionTimer`
|
5958
6094
|
# @param InstanceMarketOptions: 实例的市场相关选项,如竞价实例相关参数,若指定实例的付费模式为竞价付费则该参数必传。
|
5959
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5960
6095
|
# @type InstanceMarketOptions: :class:`Tencentcloud::Cvm.v20170312.models.InstanceMarketOptionsRequest`
|
5961
6096
|
# @param HostName: 云服务器的主机名。
|
5962
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5963
6097
|
# @type HostName: String
|
5964
6098
|
# @param ClientToken: 用于保证请求幂等性的字符串。
|
5965
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5966
6099
|
# @type ClientToken: String
|
5967
6100
|
# @param InstanceChargePrepaid: 预付费模式,即包年包月相关参数设置。
|
5968
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5969
6101
|
# @type InstanceChargePrepaid: :class:`Tencentcloud::Cvm.v20170312.models.InstanceChargePrepaid`
|
5970
6102
|
# @param TagSpecification: 标签描述列表。通过指定该参数可以同时绑定标签到相应的云服务器、云硬盘实例。
|
5971
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
5972
6103
|
# @type TagSpecification: Array
|
5973
6104
|
# @param DisableApiTermination: 实例销毁保护标志,表示是否允许通过api接口删除实例。取值范围:
|
5974
6105
|
|
5975
|
-
#
|
5976
|
-
#
|
6106
|
+
# true:表示开启实例保护,不允许通过api接口删除实例
|
6107
|
+
# false:表示关闭实例保护,允许通过api接口删除实例
|
5977
6108
|
|
5978
|
-
# 默认取值:
|
5979
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
6109
|
+
# 默认取值:false。
|
5980
6110
|
# @type DisableApiTermination: Boolean
|
5981
6111
|
|
5982
6112
|
attr_accessor :Placement, :InstanceType, :InstanceName, :InstanceChargeType, :SystemDisk, :DataDisks, :InternetAccessible, :VirtualPrivateCloud, :ImageId, :SecurityGroupIds, :LoginSettings, :CamRoleName, :HpcClusterId, :InstanceCount, :EnhancedService, :UserData, :DisasterRecoverGroupIds, :ActionTimer, :InstanceMarketOptions, :HostName, :ClientToken, :InstanceChargePrepaid, :TagSpecification, :DisableApiTermination
|
@@ -7051,6 +7181,58 @@ module TencentCloud
|
|
7051
7181
|
end
|
7052
7182
|
end
|
7053
7183
|
|
7184
|
+
# PurchaseReservedInstancesOffering请求参数结构体
|
7185
|
+
class PurchaseReservedInstancesOfferingRequest < TencentCloud::Common::AbstractModel
|
7186
|
+
# @param InstanceCount: 购买预留实例计费数量
|
7187
|
+
# @type InstanceCount: Integer
|
7188
|
+
# @param ReservedInstancesOfferingId: 预留实例计费配置ID
|
7189
|
+
# @type ReservedInstancesOfferingId: String
|
7190
|
+
# @param DryRun: 试运行
|
7191
|
+
# @type DryRun: Boolean
|
7192
|
+
# @param ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。<br>更多详细信息请参阅:如何保证幂等性
|
7193
|
+
# @type ClientToken: String
|
7194
|
+
# @param ReservedInstanceName: 预留实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>
|
7195
|
+
# @type ReservedInstanceName: String
|
7196
|
+
|
7197
|
+
attr_accessor :InstanceCount, :ReservedInstancesOfferingId, :DryRun, :ClientToken, :ReservedInstanceName
|
7198
|
+
|
7199
|
+
def initialize(instancecount=nil, reservedinstancesofferingid=nil, dryrun=nil, clienttoken=nil, reservedinstancename=nil)
|
7200
|
+
@InstanceCount = instancecount
|
7201
|
+
@ReservedInstancesOfferingId = reservedinstancesofferingid
|
7202
|
+
@DryRun = dryrun
|
7203
|
+
@ClientToken = clienttoken
|
7204
|
+
@ReservedInstanceName = reservedinstancename
|
7205
|
+
end
|
7206
|
+
|
7207
|
+
def deserialize(params)
|
7208
|
+
@InstanceCount = params['InstanceCount']
|
7209
|
+
@ReservedInstancesOfferingId = params['ReservedInstancesOfferingId']
|
7210
|
+
@DryRun = params['DryRun']
|
7211
|
+
@ClientToken = params['ClientToken']
|
7212
|
+
@ReservedInstanceName = params['ReservedInstanceName']
|
7213
|
+
end
|
7214
|
+
end
|
7215
|
+
|
7216
|
+
# PurchaseReservedInstancesOffering返回参数结构体
|
7217
|
+
class PurchaseReservedInstancesOfferingResponse < TencentCloud::Common::AbstractModel
|
7218
|
+
# @param ReservedInstanceId: 已购买预留实例计费ID
|
7219
|
+
# @type ReservedInstanceId: String
|
7220
|
+
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7221
|
+
# @type RequestId: String
|
7222
|
+
|
7223
|
+
attr_accessor :ReservedInstanceId, :RequestId
|
7224
|
+
|
7225
|
+
def initialize(reservedinstanceid=nil, requestid=nil)
|
7226
|
+
@ReservedInstanceId = reservedinstanceid
|
7227
|
+
@RequestId = requestid
|
7228
|
+
end
|
7229
|
+
|
7230
|
+
def deserialize(params)
|
7231
|
+
@ReservedInstanceId = params['ReservedInstanceId']
|
7232
|
+
@RequestId = params['RequestId']
|
7233
|
+
end
|
7234
|
+
end
|
7235
|
+
|
7054
7236
|
# RebootInstances请求参数结构体
|
7055
7237
|
class RebootInstancesRequest < TencentCloud::Common::AbstractModel
|
7056
7238
|
# @param InstanceIds: 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
|
@@ -7094,13 +7276,10 @@ module TencentCloud
|
|
7094
7276
|
# 地域信息
|
7095
7277
|
class RegionInfo < TencentCloud::Common::AbstractModel
|
7096
7278
|
# @param Region: 地域名称,例如,ap-guangzhou
|
7097
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
7098
7279
|
# @type Region: String
|
7099
7280
|
# @param RegionName: 地域描述,例如,华南地区(广州)
|
7100
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
7101
7281
|
# @type RegionName: String
|
7102
7282
|
# @param RegionState: 地域是否可用状态
|
7103
|
-
# 注意:此字段可能返回 null,表示取不到有效值。
|
7104
7283
|
# @type RegionState: String
|
7105
7284
|
|
7106
7285
|
attr_accessor :Region, :RegionName, :RegionState
|
@@ -7489,6 +7668,295 @@ module TencentCloud
|
|
7489
7668
|
end
|
7490
7669
|
end
|
7491
7670
|
|
7671
|
+
# 预留实例静态配置信息。预留实例当前只针对国际站白名单用户开放。
|
7672
|
+
class ReservedInstanceConfigInfoItem < TencentCloud::Common::AbstractModel
|
7673
|
+
# @param Type: 实例规格。
|
7674
|
+
# @type Type: String
|
7675
|
+
# @param TypeName: 实例规格名称。
|
7676
|
+
# @type TypeName: String
|
7677
|
+
# @param Order: 优先级。
|
7678
|
+
# @type Order: Integer
|
7679
|
+
# @param InstanceFamilies: 实例族信息列表。
|
7680
|
+
# @type InstanceFamilies: Array
|
7681
|
+
|
7682
|
+
attr_accessor :Type, :TypeName, :Order, :InstanceFamilies
|
7683
|
+
|
7684
|
+
def initialize(type=nil, typename=nil, order=nil, instancefamilies=nil)
|
7685
|
+
@Type = type
|
7686
|
+
@TypeName = typename
|
7687
|
+
@Order = order
|
7688
|
+
@InstanceFamilies = instancefamilies
|
7689
|
+
end
|
7690
|
+
|
7691
|
+
def deserialize(params)
|
7692
|
+
@Type = params['Type']
|
7693
|
+
@TypeName = params['TypeName']
|
7694
|
+
@Order = params['Order']
|
7695
|
+
unless params['InstanceFamilies'].nil?
|
7696
|
+
@InstanceFamilies = []
|
7697
|
+
params['InstanceFamilies'].each do |i|
|
7698
|
+
reservedinstancefamilyitem_tmp = ReservedInstanceFamilyItem.new
|
7699
|
+
reservedinstancefamilyitem_tmp.deserialize(i)
|
7700
|
+
@InstanceFamilies << reservedinstancefamilyitem_tmp
|
7701
|
+
end
|
7702
|
+
end
|
7703
|
+
end
|
7704
|
+
end
|
7705
|
+
|
7706
|
+
# 预留实例相关实例族信息。预留实例当前只针对国际站白名单用户开放。
|
7707
|
+
class ReservedInstanceFamilyItem < TencentCloud::Common::AbstractModel
|
7708
|
+
# @param InstanceFamily: 实例族。
|
7709
|
+
# @type InstanceFamily: String
|
7710
|
+
# @param Order: 优先级。
|
7711
|
+
# @type Order: Integer
|
7712
|
+
# @param InstanceTypes: 实例类型信息列表。
|
7713
|
+
# @type InstanceTypes: Array
|
7714
|
+
|
7715
|
+
attr_accessor :InstanceFamily, :Order, :InstanceTypes
|
7716
|
+
|
7717
|
+
def initialize(instancefamily=nil, order=nil, instancetypes=nil)
|
7718
|
+
@InstanceFamily = instancefamily
|
7719
|
+
@Order = order
|
7720
|
+
@InstanceTypes = instancetypes
|
7721
|
+
end
|
7722
|
+
|
7723
|
+
def deserialize(params)
|
7724
|
+
@InstanceFamily = params['InstanceFamily']
|
7725
|
+
@Order = params['Order']
|
7726
|
+
unless params['InstanceTypes'].nil?
|
7727
|
+
@InstanceTypes = []
|
7728
|
+
params['InstanceTypes'].each do |i|
|
7729
|
+
reservedinstancetypeitem_tmp = ReservedInstanceTypeItem.new
|
7730
|
+
reservedinstancetypeitem_tmp.deserialize(i)
|
7731
|
+
@InstanceTypes << reservedinstancetypeitem_tmp
|
7732
|
+
end
|
7733
|
+
end
|
7734
|
+
end
|
7735
|
+
end
|
7736
|
+
|
7737
|
+
# 预留实例相关价格信息。预留实例当前只针对国际站白名单用户开放。
|
7738
|
+
class ReservedInstancePrice < TencentCloud::Common::AbstractModel
|
7739
|
+
# @param OriginalFixedPrice: 预支合计费用的原价,单位:元。
|
7740
|
+
# @type OriginalFixedPrice: Float
|
7741
|
+
# @param DiscountFixedPrice: 预支合计费用的折扣价,单位:元。
|
7742
|
+
# @type DiscountFixedPrice: Float
|
7743
|
+
# @param OriginalUsagePrice: 后续合计费用的原价,单位:元/小时
|
7744
|
+
# @type OriginalUsagePrice: Float
|
7745
|
+
# @param DiscountUsagePrice: 后续合计费用的折扣价,单位:元/小时
|
7746
|
+
# @type DiscountUsagePrice: Float
|
7747
|
+
# @param FixedPriceDiscount: 预支费用的折扣,如20.0代表2折。 注意:此字段可能返回 null,表示取不到有效值。
|
7748
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7749
|
+
# @type FixedPriceDiscount: Float
|
7750
|
+
# @param UsagePriceDiscount: 后续费用的折扣,如20.0代表2折。 注意:此字段可能返回 null,表示取不到有效值。
|
7751
|
+
# 注意:此字段可能返回 null,表示取不到有效值。
|
7752
|
+
# @type UsagePriceDiscount: Float
|
7753
|
+
|
7754
|
+
attr_accessor :OriginalFixedPrice, :DiscountFixedPrice, :OriginalUsagePrice, :DiscountUsagePrice, :FixedPriceDiscount, :UsagePriceDiscount
|
7755
|
+
|
7756
|
+
def initialize(originalfixedprice=nil, discountfixedprice=nil, originalusageprice=nil, discountusageprice=nil, fixedpricediscount=nil, usagepricediscount=nil)
|
7757
|
+
@OriginalFixedPrice = originalfixedprice
|
7758
|
+
@DiscountFixedPrice = discountfixedprice
|
7759
|
+
@OriginalUsagePrice = originalusageprice
|
7760
|
+
@DiscountUsagePrice = discountusageprice
|
7761
|
+
@FixedPriceDiscount = fixedpricediscount
|
7762
|
+
@UsagePriceDiscount = usagepricediscount
|
7763
|
+
end
|
7764
|
+
|
7765
|
+
def deserialize(params)
|
7766
|
+
@OriginalFixedPrice = params['OriginalFixedPrice']
|
7767
|
+
@DiscountFixedPrice = params['DiscountFixedPrice']
|
7768
|
+
@OriginalUsagePrice = params['OriginalUsagePrice']
|
7769
|
+
@DiscountUsagePrice = params['DiscountUsagePrice']
|
7770
|
+
@FixedPriceDiscount = params['FixedPriceDiscount']
|
7771
|
+
@UsagePriceDiscount = params['UsagePriceDiscount']
|
7772
|
+
end
|
7773
|
+
end
|
7774
|
+
|
7775
|
+
# 基于付费类型的预留实例相关价格信息。预留实例当前只针对国际站白名单用户开放。
|
7776
|
+
class ReservedInstancePriceItem < TencentCloud::Common::AbstractModel
|
7777
|
+
# @param OfferingType: 付费类型,如:"All Upfront","Partial Upfront","No Upfront"
|
7778
|
+
# @type OfferingType: String
|
7779
|
+
# @param FixedPrice: 预支合计费用,单位:元。
|
7780
|
+
# @type FixedPrice: Float
|
7781
|
+
# @param UsagePrice: 后续合计费用,单位:元/小时
|
7782
|
+
# @type UsagePrice: Float
|
7783
|
+
# @param ReservedInstancesOfferingId: 预留实例配置ID
|
7784
|
+
# @type ReservedInstancesOfferingId: String
|
7785
|
+
# @param Zone: 预留实例计费可购买的可用区。
|
7786
|
+
# @type Zone: String
|
7787
|
+
# @param Duration: 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。
|
7788
|
+
# 计量单位:秒
|
7789
|
+
# @type Duration: Integer
|
7790
|
+
# @param ProductDescription: 预留实例计费的平台描述(即操作系统)。形如:Linux。
|
7791
|
+
# 返回项: Linux 。
|
7792
|
+
# @type ProductDescription: String
|
7793
|
+
# @param DiscountUsagePrice: 预支合计费用,单位:元。
|
7794
|
+
# @type DiscountUsagePrice: Float
|
7795
|
+
# @param DiscountFixedPrice: 后续合计费用的折扣价,单位:元/小时
|
7796
|
+
# @type DiscountFixedPrice: Float
|
7797
|
+
|
7798
|
+
attr_accessor :OfferingType, :FixedPrice, :UsagePrice, :ReservedInstancesOfferingId, :Zone, :Duration, :ProductDescription, :DiscountUsagePrice, :DiscountFixedPrice
|
7799
|
+
|
7800
|
+
def initialize(offeringtype=nil, fixedprice=nil, usageprice=nil, reservedinstancesofferingid=nil, zone=nil, duration=nil, productdescription=nil, discountusageprice=nil, discountfixedprice=nil)
|
7801
|
+
@OfferingType = offeringtype
|
7802
|
+
@FixedPrice = fixedprice
|
7803
|
+
@UsagePrice = usageprice
|
7804
|
+
@ReservedInstancesOfferingId = reservedinstancesofferingid
|
7805
|
+
@Zone = zone
|
7806
|
+
@Duration = duration
|
7807
|
+
@ProductDescription = productdescription
|
7808
|
+
@DiscountUsagePrice = discountusageprice
|
7809
|
+
@DiscountFixedPrice = discountfixedprice
|
7810
|
+
end
|
7811
|
+
|
7812
|
+
def deserialize(params)
|
7813
|
+
@OfferingType = params['OfferingType']
|
7814
|
+
@FixedPrice = params['FixedPrice']
|
7815
|
+
@UsagePrice = params['UsagePrice']
|
7816
|
+
@ReservedInstancesOfferingId = params['ReservedInstancesOfferingId']
|
7817
|
+
@Zone = params['Zone']
|
7818
|
+
@Duration = params['Duration']
|
7819
|
+
@ProductDescription = params['ProductDescription']
|
7820
|
+
@DiscountUsagePrice = params['DiscountUsagePrice']
|
7821
|
+
@DiscountFixedPrice = params['DiscountFixedPrice']
|
7822
|
+
end
|
7823
|
+
end
|
7824
|
+
|
7825
|
+
# 预留实例类型信息。预留实例当前只针对国际站白名单用户开放。
|
7826
|
+
class ReservedInstanceTypeItem < TencentCloud::Common::AbstractModel
|
7827
|
+
# @param InstanceType: 实例类型。
|
7828
|
+
# @type InstanceType: String
|
7829
|
+
# @param Cpu: CPU核数。
|
7830
|
+
# @type Cpu: Integer
|
7831
|
+
# @param Memory: 内存大小。
|
7832
|
+
# @type Memory: Integer
|
7833
|
+
# @param Gpu: GPU数量。
|
7834
|
+
# @type Gpu: Integer
|
7835
|
+
# @param Fpga: FPGA数量。
|
7836
|
+
# @type Fpga: Integer
|
7837
|
+
# @param StorageBlock: 本地存储块数量。
|
7838
|
+
# @type StorageBlock: Integer
|
7839
|
+
# @param NetworkCard: 网卡数。
|
7840
|
+
# @type NetworkCard: Integer
|
7841
|
+
# @param MaxBandwidth: 最大带宽。
|
7842
|
+
# @type MaxBandwidth: Float
|
7843
|
+
# @param Frequency: 主频。
|
7844
|
+
# @type Frequency: String
|
7845
|
+
# @param CpuModelName: CPU型号名称。
|
7846
|
+
# @type CpuModelName: String
|
7847
|
+
# @param Pps: 包转发率。
|
7848
|
+
# @type Pps: Integer
|
7849
|
+
# @param Externals: 外部信息。
|
7850
|
+
# @type Externals: :class:`Tencentcloud::Cvm.v20170312.models.Externals`
|
7851
|
+
# @param Remark: 备注信息。
|
7852
|
+
# @type Remark: String
|
7853
|
+
# @param Prices: 预留实例配置价格信息。
|
7854
|
+
# @type Prices: Array
|
7855
|
+
|
7856
|
+
attr_accessor :InstanceType, :Cpu, :Memory, :Gpu, :Fpga, :StorageBlock, :NetworkCard, :MaxBandwidth, :Frequency, :CpuModelName, :Pps, :Externals, :Remark, :Prices
|
7857
|
+
|
7858
|
+
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)
|
7859
|
+
@InstanceType = instancetype
|
7860
|
+
@Cpu = cpu
|
7861
|
+
@Memory = memory
|
7862
|
+
@Gpu = gpu
|
7863
|
+
@Fpga = fpga
|
7864
|
+
@StorageBlock = storageblock
|
7865
|
+
@NetworkCard = networkcard
|
7866
|
+
@MaxBandwidth = maxbandwidth
|
7867
|
+
@Frequency = frequency
|
7868
|
+
@CpuModelName = cpumodelname
|
7869
|
+
@Pps = pps
|
7870
|
+
@Externals = externals
|
7871
|
+
@Remark = remark
|
7872
|
+
@Prices = prices
|
7873
|
+
end
|
7874
|
+
|
7875
|
+
def deserialize(params)
|
7876
|
+
@InstanceType = params['InstanceType']
|
7877
|
+
@Cpu = params['Cpu']
|
7878
|
+
@Memory = params['Memory']
|
7879
|
+
@Gpu = params['Gpu']
|
7880
|
+
@Fpga = params['Fpga']
|
7881
|
+
@StorageBlock = params['StorageBlock']
|
7882
|
+
@NetworkCard = params['NetworkCard']
|
7883
|
+
@MaxBandwidth = params['MaxBandwidth']
|
7884
|
+
@Frequency = params['Frequency']
|
7885
|
+
@CpuModelName = params['CpuModelName']
|
7886
|
+
@Pps = params['Pps']
|
7887
|
+
unless params['Externals'].nil?
|
7888
|
+
@Externals = Externals.new
|
7889
|
+
@Externals.deserialize(params['Externals'])
|
7890
|
+
end
|
7891
|
+
@Remark = params['Remark']
|
7892
|
+
unless params['Prices'].nil?
|
7893
|
+
@Prices = []
|
7894
|
+
params['Prices'].each do |i|
|
7895
|
+
reservedinstancepriceitem_tmp = ReservedInstancePriceItem.new
|
7896
|
+
reservedinstancepriceitem_tmp.deserialize(i)
|
7897
|
+
@Prices << reservedinstancepriceitem_tmp
|
7898
|
+
end
|
7899
|
+
end
|
7900
|
+
end
|
7901
|
+
end
|
7902
|
+
|
7903
|
+
# 描述可购买预留实例计费信息
|
7904
|
+
class ReservedInstancesOffering < TencentCloud::Common::AbstractModel
|
7905
|
+
# @param Zone: 预留实例计费可购买的可用区。形如:ap-guangzhou-1。
|
7906
|
+
# 返回项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a>
|
7907
|
+
# @type Zone: String
|
7908
|
+
# @param CurrencyCode: 可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。
|
7909
|
+
# 返回项:USD(美元)。
|
7910
|
+
# @type CurrencyCode: String
|
7911
|
+
# @param Duration: 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。
|
7912
|
+
# 计量单位:秒
|
7913
|
+
# @type Duration: Integer
|
7914
|
+
# @param FixedPrice: 预留实例计费的购买价格。形如:4000.0。
|
7915
|
+
# 计量单位:与 currencyCode 一致,目前支持 USD(美元)
|
7916
|
+
# @type FixedPrice: Float
|
7917
|
+
# @param InstanceType: 预留实例计费的实例类型。形如:S3.MEDIUM4。
|
7918
|
+
# 返回项:<a href="https://cloud.tencent.com/product/cvm/instances">预留实例计费类型列表</a>
|
7919
|
+
# @type InstanceType: String
|
7920
|
+
# @param OfferingType: 预留实例计费的付款类型。形如:All Upfront。
|
7921
|
+
# 返回项: All Upfront (预付全部费用)。
|
7922
|
+
# @type OfferingType: String
|
7923
|
+
# @param ReservedInstancesOfferingId: 可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。
|
7924
|
+
# @type ReservedInstancesOfferingId: String
|
7925
|
+
# @param ProductDescription: 预留实例计费的平台描述(即操作系统)。形如:linux。
|
7926
|
+
# 返回项: linux 。
|
7927
|
+
# @type ProductDescription: String
|
7928
|
+
# @param UsagePrice: 扣除预付费之后的使用价格 (按小时计费)。形如:0.0。
|
7929
|
+
# 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。
|
7930
|
+
# 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)
|
7931
|
+
# @type UsagePrice: Float
|
7932
|
+
|
7933
|
+
attr_accessor :Zone, :CurrencyCode, :Duration, :FixedPrice, :InstanceType, :OfferingType, :ReservedInstancesOfferingId, :ProductDescription, :UsagePrice
|
7934
|
+
|
7935
|
+
def initialize(zone=nil, currencycode=nil, duration=nil, fixedprice=nil, instancetype=nil, offeringtype=nil, reservedinstancesofferingid=nil, productdescription=nil, usageprice=nil)
|
7936
|
+
@Zone = zone
|
7937
|
+
@CurrencyCode = currencycode
|
7938
|
+
@Duration = duration
|
7939
|
+
@FixedPrice = fixedprice
|
7940
|
+
@InstanceType = instancetype
|
7941
|
+
@OfferingType = offeringtype
|
7942
|
+
@ReservedInstancesOfferingId = reservedinstancesofferingid
|
7943
|
+
@ProductDescription = productdescription
|
7944
|
+
@UsagePrice = usageprice
|
7945
|
+
end
|
7946
|
+
|
7947
|
+
def deserialize(params)
|
7948
|
+
@Zone = params['Zone']
|
7949
|
+
@CurrencyCode = params['CurrencyCode']
|
7950
|
+
@Duration = params['Duration']
|
7951
|
+
@FixedPrice = params['FixedPrice']
|
7952
|
+
@InstanceType = params['InstanceType']
|
7953
|
+
@OfferingType = params['OfferingType']
|
7954
|
+
@ReservedInstancesOfferingId = params['ReservedInstancesOfferingId']
|
7955
|
+
@ProductDescription = params['ProductDescription']
|
7956
|
+
@UsagePrice = params['UsagePrice']
|
7957
|
+
end
|
7958
|
+
end
|
7959
|
+
|
7492
7960
|
# ResetInstance请求参数结构体
|
7493
7961
|
class ResetInstanceRequest < TencentCloud::Common::AbstractModel
|
7494
7962
|
# @param InstanceId: 实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) API返回值中的`InstanceId`获取。
|
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.1014
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tencent Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-03-
|
11
|
+
date: 2025-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|