tencentcloud-sdk-cvm 3.0.1100 → 3.0.1144
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 +0 -96
- data/lib/v20170312/models.rb +48 -608
- 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: 1a6d2530e2c4d80ba279fba8cb45c7714e971bff
|
4
|
+
data.tar.gz: 61027feb9514d59df2328b9e487db2971d7a5cc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff74fbb2b872c9ea815fd4e2d70d8ad72e4280647b4d6b80ab07491951eb6628c06bc95fab793ae3e376a417d17643c29380de305aa36056e723447df240b472
|
7
|
+
data.tar.gz: 40c4f42eea82bfb5669e0e30553477a1aec3c253b5febcab572ed80090fad0691b73ece4821662a2777d1d50386853c15b4e5b4b782e0aafe4e5c0953e5f7ad8
|
data/lib/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.1144
|
data/lib/v20170312/client.rb
CHANGED
@@ -1200,54 +1200,6 @@ module TencentCloud
|
|
1200
1200
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1201
1201
|
end
|
1202
1202
|
|
1203
|
-
# 本接口(DescribeReservedInstancesConfigInfos)供用户列出可购买预留实例机型配置。预留实例当前只针对国际站白名单用户开放。
|
1204
|
-
|
1205
|
-
# @param request: Request instance for DescribeReservedInstancesConfigInfos.
|
1206
|
-
# @type request: :class:`Tencentcloud::cvm::V20170312::DescribeReservedInstancesConfigInfosRequest`
|
1207
|
-
# @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeReservedInstancesConfigInfosResponse`
|
1208
|
-
def DescribeReservedInstancesConfigInfos(request)
|
1209
|
-
body = send_request('DescribeReservedInstancesConfigInfos', request.serialize)
|
1210
|
-
response = JSON.parse(body)
|
1211
|
-
if response['Response'].key?('Error') == false
|
1212
|
-
model = DescribeReservedInstancesConfigInfosResponse.new
|
1213
|
-
model.deserialize(response['Response'])
|
1214
|
-
model
|
1215
|
-
else
|
1216
|
-
code = response['Response']['Error']['Code']
|
1217
|
-
message = response['Response']['Error']['Message']
|
1218
|
-
reqid = response['Response']['RequestId']
|
1219
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1220
|
-
end
|
1221
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1222
|
-
raise e
|
1223
|
-
rescue StandardError => e
|
1224
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1225
|
-
end
|
1226
|
-
|
1227
|
-
# 本接口(DescribeReservedInstancesOfferings)供用户列出可购买的预留实例配置,预留实例当前只针对国际站白名单用户开放。
|
1228
|
-
|
1229
|
-
# @param request: Request instance for DescribeReservedInstancesOfferings.
|
1230
|
-
# @type request: :class:`Tencentcloud::cvm::V20170312::DescribeReservedInstancesOfferingsRequest`
|
1231
|
-
# @rtype: :class:`Tencentcloud::cvm::V20170312::DescribeReservedInstancesOfferingsResponse`
|
1232
|
-
def DescribeReservedInstancesOfferings(request)
|
1233
|
-
body = send_request('DescribeReservedInstancesOfferings', request.serialize)
|
1234
|
-
response = JSON.parse(body)
|
1235
|
-
if response['Response'].key?('Error') == false
|
1236
|
-
model = DescribeReservedInstancesOfferingsResponse.new
|
1237
|
-
model.deserialize(response['Response'])
|
1238
|
-
model
|
1239
|
-
else
|
1240
|
-
code = response['Response']['Error']['Code']
|
1241
|
-
message = response['Response']['Error']['Message']
|
1242
|
-
reqid = response['Response']['RequestId']
|
1243
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1244
|
-
end
|
1245
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1246
|
-
raise e
|
1247
|
-
rescue StandardError => e
|
1248
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1249
|
-
end
|
1250
|
-
|
1251
1203
|
# 本接口 (DescribeTaskInfo) 用于查询云服务器维修任务列表及详细信息。
|
1252
1204
|
|
1253
1205
|
# - 可以根据实例ID、实例名称或任务状态等信息来查询维修任务列表。过滤信息详情可参考入参说明。
|
@@ -1527,30 +1479,6 @@ module TencentCloud
|
|
1527
1479
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1528
1480
|
end
|
1529
1481
|
|
1530
|
-
# 本接口(InquirePricePurchaseReservedInstancesOffering)用于创建预留实例询价。本接口仅允许针对购买限制范围内的预留实例配置进行询价。预留实例当前只针对国际站白名单用户开放。
|
1531
|
-
|
1532
|
-
# @param request: Request instance for InquirePricePurchaseReservedInstancesOffering.
|
1533
|
-
# @type request: :class:`Tencentcloud::cvm::V20170312::InquirePricePurchaseReservedInstancesOfferingRequest`
|
1534
|
-
# @rtype: :class:`Tencentcloud::cvm::V20170312::InquirePricePurchaseReservedInstancesOfferingResponse`
|
1535
|
-
def InquirePricePurchaseReservedInstancesOffering(request)
|
1536
|
-
body = send_request('InquirePricePurchaseReservedInstancesOffering', request.serialize)
|
1537
|
-
response = JSON.parse(body)
|
1538
|
-
if response['Response'].key?('Error') == false
|
1539
|
-
model = InquirePricePurchaseReservedInstancesOfferingResponse.new
|
1540
|
-
model.deserialize(response['Response'])
|
1541
|
-
model
|
1542
|
-
else
|
1543
|
-
code = response['Response']['Error']['Code']
|
1544
|
-
message = response['Response']['Error']['Message']
|
1545
|
-
reqid = response['Response']['RequestId']
|
1546
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
1547
|
-
end
|
1548
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
1549
|
-
raise e
|
1550
|
-
rescue StandardError => e
|
1551
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
1552
|
-
end
|
1553
|
-
|
1554
1482
|
# 本接口 (InquiryPriceModifyInstancesChargeType) 用于切换实例的计费模式询价。
|
1555
1483
|
|
1556
1484
|
|
@@ -2222,30 +2150,6 @@ module TencentCloud
|
|
2222
2150
|
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2223
2151
|
end
|
2224
2152
|
|
2225
|
-
# 本接口(PurchaseReservedInstancesOffering)用于用户购买一个或者多个指定配置的预留实例,预留实例当前只针对国际站白名单用户开放。
|
2226
|
-
|
2227
|
-
# @param request: Request instance for PurchaseReservedInstancesOffering.
|
2228
|
-
# @type request: :class:`Tencentcloud::cvm::V20170312::PurchaseReservedInstancesOfferingRequest`
|
2229
|
-
# @rtype: :class:`Tencentcloud::cvm::V20170312::PurchaseReservedInstancesOfferingResponse`
|
2230
|
-
def PurchaseReservedInstancesOffering(request)
|
2231
|
-
body = send_request('PurchaseReservedInstancesOffering', request.serialize)
|
2232
|
-
response = JSON.parse(body)
|
2233
|
-
if response['Response'].key?('Error') == false
|
2234
|
-
model = PurchaseReservedInstancesOfferingResponse.new
|
2235
|
-
model.deserialize(response['Response'])
|
2236
|
-
model
|
2237
|
-
else
|
2238
|
-
code = response['Response']['Error']['Code']
|
2239
|
-
message = response['Response']['Error']['Message']
|
2240
|
-
reqid = response['Response']['RequestId']
|
2241
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
|
2242
|
-
end
|
2243
|
-
rescue TencentCloud::Common::TencentCloudSDKException => e
|
2244
|
-
raise e
|
2245
|
-
rescue StandardError => e
|
2246
|
-
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
|
2247
|
-
end
|
2248
|
-
|
2249
2153
|
# 本接口 (RebootInstances) 用于重启实例。
|
2250
2154
|
|
2251
2155
|
# * 只有状态为`RUNNING`的实例才可以进行此操作。
|
data/lib/v20170312/models.rb
CHANGED
@@ -1138,6 +1138,8 @@ module TencentCloud
|
|
1138
1138
|
# @type InstanceChargePrepaid: :class:`Tencentcloud::Cvm.v20170312.models.InstanceChargePrepaid`
|
1139
1139
|
# @param DisableApiTermination: 实例销毁保护标志,表示是否允许通过api接口删除实例。取值范围:<br><li>TRUE:表示开启实例保护,不允许通过api接口删除实例</li><li>FALSE:表示关闭实例保护,允许通过api接口删除实例<br></li>默认取值:FALSE。
|
1140
1140
|
# @type DisableApiTermination: Boolean
|
1141
|
+
# @param EnableJumboFrame: 实例是否开启巨型帧,取值范围:<br><li/> true:表示实例开启巨型帧,只有支持巨型帧的机型可设置为true。<br><li/>false:表示实例关闭巨型帧,只有支持巨型帧的机型可设置为false。<br> 支持巨型帧的实例规格: [实例规格](https://cloud.tencent.com/document/product/213/11518)
|
1142
|
+
# @type EnableJumboFrame: Boolean
|
1141
1143
|
# @param LaunchTemplateTagSpecification: 标签描述列表。通过指定该参数可以绑定标签到实例启动模板。
|
1142
1144
|
# @type LaunchTemplateTagSpecification: Array
|
1143
1145
|
# @param Metadata: 自定义metadata,支持创建 CVM 时添加自定义元数据键值对。
|
@@ -1150,9 +1152,9 @@ module TencentCloud
|
|
1150
1152
|
# **注:内测中**。
|
1151
1153
|
# @type TemplateDataModifyAction: String
|
1152
1154
|
|
1153
|
-
attr_accessor :LaunchTemplateName, :Placement, :ImageId, :LaunchTemplateVersionDescription, :InstanceType, :SystemDisk, :DataDisks, :VirtualPrivateCloud, :InternetAccessible, :InstanceCount, :InstanceName, :LoginSettings, :SecurityGroupIds, :EnhancedService, :ClientToken, :HostName, :ActionTimer, :DisasterRecoverGroupIds, :TagSpecification, :InstanceMarketOptions, :UserData, :DryRun, :CamRoleName, :HpcClusterId, :InstanceChargeType, :InstanceChargePrepaid, :DisableApiTermination, :LaunchTemplateTagSpecification, :Metadata, :TemplateDataModifyAction
|
1155
|
+
attr_accessor :LaunchTemplateName, :Placement, :ImageId, :LaunchTemplateVersionDescription, :InstanceType, :SystemDisk, :DataDisks, :VirtualPrivateCloud, :InternetAccessible, :InstanceCount, :InstanceName, :LoginSettings, :SecurityGroupIds, :EnhancedService, :ClientToken, :HostName, :ActionTimer, :DisasterRecoverGroupIds, :TagSpecification, :InstanceMarketOptions, :UserData, :DryRun, :CamRoleName, :HpcClusterId, :InstanceChargeType, :InstanceChargePrepaid, :DisableApiTermination, :EnableJumboFrame, :LaunchTemplateTagSpecification, :Metadata, :TemplateDataModifyAction
|
1154
1156
|
|
1155
|
-
def initialize(launchtemplatename=nil, placement=nil, imageid=nil, launchtemplateversiondescription=nil, instancetype=nil, systemdisk=nil, datadisks=nil, virtualprivatecloud=nil, internetaccessible=nil, instancecount=nil, instancename=nil, loginsettings=nil, securitygroupids=nil, enhancedservice=nil, clienttoken=nil, hostname=nil, actiontimer=nil, disasterrecovergroupids=nil, tagspecification=nil, instancemarketoptions=nil, userdata=nil, dryrun=nil, camrolename=nil, hpcclusterid=nil, instancechargetype=nil, instancechargeprepaid=nil, disableapitermination=nil, launchtemplatetagspecification=nil, metadata=nil, templatedatamodifyaction=nil)
|
1157
|
+
def initialize(launchtemplatename=nil, placement=nil, imageid=nil, launchtemplateversiondescription=nil, instancetype=nil, systemdisk=nil, datadisks=nil, virtualprivatecloud=nil, internetaccessible=nil, instancecount=nil, instancename=nil, loginsettings=nil, securitygroupids=nil, enhancedservice=nil, clienttoken=nil, hostname=nil, actiontimer=nil, disasterrecovergroupids=nil, tagspecification=nil, instancemarketoptions=nil, userdata=nil, dryrun=nil, camrolename=nil, hpcclusterid=nil, instancechargetype=nil, instancechargeprepaid=nil, disableapitermination=nil, enablejumboframe=nil, launchtemplatetagspecification=nil, metadata=nil, templatedatamodifyaction=nil)
|
1156
1158
|
@LaunchTemplateName = launchtemplatename
|
1157
1159
|
@Placement = placement
|
1158
1160
|
@ImageId = imageid
|
@@ -1180,6 +1182,7 @@ module TencentCloud
|
|
1180
1182
|
@InstanceChargeType = instancechargetype
|
1181
1183
|
@InstanceChargePrepaid = instancechargeprepaid
|
1182
1184
|
@DisableApiTermination = disableapitermination
|
1185
|
+
@EnableJumboFrame = enablejumboframe
|
1183
1186
|
@LaunchTemplateTagSpecification = launchtemplatetagspecification
|
1184
1187
|
@Metadata = metadata
|
1185
1188
|
@TemplateDataModifyAction = templatedatamodifyaction
|
@@ -1254,6 +1257,7 @@ module TencentCloud
|
|
1254
1257
|
@InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
|
1255
1258
|
end
|
1256
1259
|
@DisableApiTermination = params['DisableApiTermination']
|
1260
|
+
@EnableJumboFrame = params['EnableJumboFrame']
|
1257
1261
|
unless params['LaunchTemplateTagSpecification'].nil?
|
1258
1262
|
@LaunchTemplateTagSpecification = []
|
1259
1263
|
params['LaunchTemplateTagSpecification'].each do |i|
|
@@ -1353,6 +1357,8 @@ module TencentCloud
|
|
1353
1357
|
# @type InstanceChargePrepaid: :class:`Tencentcloud::Cvm.v20170312.models.InstanceChargePrepaid`
|
1354
1358
|
# @param DisableApiTermination: 实例销毁保护标志,表示是否允许通过api接口删除实例。取值范围:<br><li>TRUE:表示开启实例保护,不允许通过api接口删除实例</li><br><li>FALSE:表示关闭实例保护,允许通过api接口删除实例</li><br><br>默认取值:FALSE。
|
1355
1359
|
# @type DisableApiTermination: Boolean
|
1360
|
+
# @param EnableJumboFrame: 实例是否开启巨型帧,取值范围:<br><li/> true:表示实例开启巨型帧,只有支持巨型帧的机型可设置为true。<br><li/>false:表示实例关闭巨型帧,只有支持巨型帧的机型可设置为false。<br> 支持巨型帧的实例规格: [实例规格](https://cloud.tencent.com/document/product/213/11518)
|
1361
|
+
# @type EnableJumboFrame: Boolean
|
1356
1362
|
# @param Metadata: 自定义metadata,支持创建 CVM 时添加自定义元数据键值对。
|
1357
1363
|
# **注:内测中**。
|
1358
1364
|
# @type Metadata: :class:`Tencentcloud::Cvm.v20170312.models.Metadata`
|
@@ -1363,9 +1369,9 @@ module TencentCloud
|
|
1363
1369
|
# **注:内测中**。
|
1364
1370
|
# @type TemplateDataModifyAction: String
|
1365
1371
|
|
1366
|
-
attr_accessor :Placement, :LaunchTemplateId, :LaunchTemplateVersion, :LaunchTemplateVersionDescription, :InstanceType, :ImageId, :SystemDisk, :DataDisks, :VirtualPrivateCloud, :InternetAccessible, :InstanceCount, :InstanceName, :LoginSettings, :SecurityGroupIds, :EnhancedService, :ClientToken, :HostName, :ActionTimer, :DisasterRecoverGroupIds, :TagSpecification, :InstanceMarketOptions, :UserData, :DryRun, :CamRoleName, :HpcClusterId, :InstanceChargeType, :InstanceChargePrepaid, :DisableApiTermination, :Metadata, :TemplateDataModifyAction
|
1372
|
+
attr_accessor :Placement, :LaunchTemplateId, :LaunchTemplateVersion, :LaunchTemplateVersionDescription, :InstanceType, :ImageId, :SystemDisk, :DataDisks, :VirtualPrivateCloud, :InternetAccessible, :InstanceCount, :InstanceName, :LoginSettings, :SecurityGroupIds, :EnhancedService, :ClientToken, :HostName, :ActionTimer, :DisasterRecoverGroupIds, :TagSpecification, :InstanceMarketOptions, :UserData, :DryRun, :CamRoleName, :HpcClusterId, :InstanceChargeType, :InstanceChargePrepaid, :DisableApiTermination, :EnableJumboFrame, :Metadata, :TemplateDataModifyAction
|
1367
1373
|
|
1368
|
-
def initialize(placement=nil, launchtemplateid=nil, launchtemplateversion=nil, launchtemplateversiondescription=nil, instancetype=nil, imageid=nil, systemdisk=nil, datadisks=nil, virtualprivatecloud=nil, internetaccessible=nil, instancecount=nil, instancename=nil, loginsettings=nil, securitygroupids=nil, enhancedservice=nil, clienttoken=nil, hostname=nil, actiontimer=nil, disasterrecovergroupids=nil, tagspecification=nil, instancemarketoptions=nil, userdata=nil, dryrun=nil, camrolename=nil, hpcclusterid=nil, instancechargetype=nil, instancechargeprepaid=nil, disableapitermination=nil, metadata=nil, templatedatamodifyaction=nil)
|
1374
|
+
def initialize(placement=nil, launchtemplateid=nil, launchtemplateversion=nil, launchtemplateversiondescription=nil, instancetype=nil, imageid=nil, systemdisk=nil, datadisks=nil, virtualprivatecloud=nil, internetaccessible=nil, instancecount=nil, instancename=nil, loginsettings=nil, securitygroupids=nil, enhancedservice=nil, clienttoken=nil, hostname=nil, actiontimer=nil, disasterrecovergroupids=nil, tagspecification=nil, instancemarketoptions=nil, userdata=nil, dryrun=nil, camrolename=nil, hpcclusterid=nil, instancechargetype=nil, instancechargeprepaid=nil, disableapitermination=nil, enablejumboframe=nil, metadata=nil, templatedatamodifyaction=nil)
|
1369
1375
|
@Placement = placement
|
1370
1376
|
@LaunchTemplateId = launchtemplateid
|
1371
1377
|
@LaunchTemplateVersion = launchtemplateversion
|
@@ -1394,6 +1400,7 @@ module TencentCloud
|
|
1394
1400
|
@InstanceChargeType = instancechargetype
|
1395
1401
|
@InstanceChargePrepaid = instancechargeprepaid
|
1396
1402
|
@DisableApiTermination = disableapitermination
|
1403
|
+
@EnableJumboFrame = enablejumboframe
|
1397
1404
|
@Metadata = metadata
|
1398
1405
|
@TemplateDataModifyAction = templatedatamodifyaction
|
1399
1406
|
end
|
@@ -1468,6 +1475,7 @@ module TencentCloud
|
|
1468
1475
|
@InstanceChargePrepaid.deserialize(params['InstanceChargePrepaid'])
|
1469
1476
|
end
|
1470
1477
|
@DisableApiTermination = params['DisableApiTermination']
|
1478
|
+
@EnableJumboFrame = params['EnableJumboFrame']
|
1471
1479
|
unless params['Metadata'].nil?
|
1472
1480
|
@Metadata = Metadata.new
|
1473
1481
|
@Metadata.deserialize(params['Metadata'])
|
@@ -1802,7 +1810,7 @@ module TencentCloud
|
|
1802
1810
|
# DescribeAccountQuota请求参数结构体
|
1803
1811
|
class DescribeAccountQuotaRequest < TencentCloud::Common::AbstractModel
|
1804
1812
|
# @param Filters: <li><strong>zone</strong></li>
|
1805
|
-
# <p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-
|
1813
|
+
# <p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-6。</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>
|
1806
1814
|
# <li><strong>quota-type</strong></li>
|
1807
1815
|
# <p style="padding-left: 30px;">按照【<strong>配额类型</strong>】进行过滤。配额类型形如:PostPaidQuotaSet。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:</p><p style="padding-left: 30px;">PostPaidQuotaSet: 后付费配额</p><p style="padding-left: 30px;">PrePaidQuotaSet: 预付费配额</p><p style="padding-left: 30px;">SpotPaidQuotaSet: 竞价配额</p><p style="padding-left: 30px;">ImageQuotaSet: 镜像配额</p><p style="padding-left: 30px;">DisasterRecoverGroupQuotaSet: 置放群组配额</p>
|
1808
1816
|
# @type Filters: Array
|
@@ -1899,20 +1907,7 @@ module TencentCloud
|
|
1899
1907
|
class DescribeChcHostsRequest < TencentCloud::Common::AbstractModel
|
1900
1908
|
# @param ChcIds: CHC物理服务器实例ID。每次请求的实例的上限为100。参数不支持同时指定`ChcIds`和`Filters`。
|
1901
1909
|
# @type ChcIds: Array
|
1902
|
-
# @param Filters: <li><strong>zone</strong></li>
|
1903
|
-
# <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>
|
1904
|
-
# <li><strong>instance-name</strong></li>
|
1905
|
-
# <p style="padding-left: 30px;">按照【<strong>实例名称</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
1906
|
-
# <li><strong>instance-state</strong></li>
|
1907
|
-
# <p style="padding-left: 30px;">按照【<strong>实例状态</strong>】进行过滤。状态类型详见[实例状态表](https://cloud.tencent.com/document/api/213/15753#InstanceStatus)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
1908
|
-
# <li><strong>device-type</strong></li>
|
1909
|
-
# <p style="padding-left: 30px;">按照【<strong>设备类型</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
1910
|
-
# <li><strong>vpc-id</strong></li>
|
1911
|
-
# <p style="padding-left: 30px;">按照【<strong>私有网络唯一ID</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
1912
|
-
# <li><strong>subnet-id</strong></li>
|
1913
|
-
# <p style="padding-left: 30px;">按照【<strong>私有子网唯一ID</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
1914
|
-
# <li><strong>sn</strong></li>
|
1915
|
-
# <p style="padding-left: 30px;">按照【<strong>设备SN</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
1910
|
+
# @param Filters: <li><strong>zone</strong></li><p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-6。</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><li><strong>instance-name</strong></li><p style="padding-left: 30px;">按照【<strong>实例名称</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><li><strong>instance-state</strong></li><p style="padding-left: 30px;">按照【<strong>实例状态</strong>】进行过滤。状态类型详见[实例状态表](https://cloud.tencent.com/document/api/213/15753#InstanceStatus)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><li><strong>device-type</strong></li><p style="padding-left: 30px;">按照【<strong>设备类型</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><li><strong>vpc-id</strong></li><p style="padding-left: 30px;">按照【<strong>私有网络唯一ID</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><li><strong>subnet-id</strong></li><p style="padding-left: 30px;">按照【<strong>私有子网唯一ID</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><li><strong>sn</strong></li><p style="padding-left: 30px;">按照【<strong>设备SN</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
1916
1911
|
# @type Filters: Array
|
1917
1912
|
# @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
1918
1913
|
# @type Offset: Integer
|
@@ -2004,8 +1999,8 @@ module TencentCloud
|
|
2004
1999
|
|
2005
2000
|
attr_accessor :GroupQuota, :CurrentNum, :CvmInHostGroupQuota, :CvmInSwGroupQuota, :CvmInRackGroupQuota, :CvmInSwitchGroupQuota, :RequestId
|
2006
2001
|
extend Gem::Deprecate
|
2007
|
-
deprecate :CvmInSwGroupQuota, :none, 2025,
|
2008
|
-
deprecate :CvmInSwGroupQuota=, :none, 2025,
|
2002
|
+
deprecate :CvmInSwGroupQuota, :none, 2025, 9
|
2003
|
+
deprecate :CvmInSwGroupQuota=, :none, 2025, 9
|
2009
2004
|
|
2010
2005
|
def initialize(groupquota=nil, currentnum=nil, cvminhostgroupquota=nil, cvminswgroupquota=nil, cvminrackgroupquota=nil, cvminswitchgroupquota=nil, requestid=nil)
|
2011
2006
|
@GroupQuota = groupquota
|
@@ -2591,7 +2586,7 @@ module TencentCloud
|
|
2591
2586
|
# DescribeInstanceTypeConfigs请求参数结构体
|
2592
2587
|
class DescribeInstanceTypeConfigsRequest < TencentCloud::Common::AbstractModel
|
2593
2588
|
# @param Filters: <li><strong>zone</strong></li>
|
2594
|
-
# <p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-
|
2589
|
+
# <p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-6。</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>
|
2595
2590
|
# <li><strong>instance-family</strong></li>
|
2596
2591
|
# <p style="padding-left: 30px;">按照【<strong>实例机型系列</strong>】进行过滤。实例机型系列形如:S1、I1、M1等。具体取值参见[实例类型](https://cloud.tencent.com/document/product/213/11518)描述。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
2597
2592
|
# <li><strong>instance-type</strong></li>
|
@@ -2903,7 +2898,7 @@ module TencentCloud
|
|
2903
2898
|
class DescribeInstancesRequest < TencentCloud::Common::AbstractModel
|
2904
2899
|
# @param InstanceIds: 按照一个或者多个实例ID查询。实例ID例如:`ins-xxxxxxxx`。(此参数的具体格式可参考API[简介](https://cloud.tencent.com/document/api/213/15688)的`ids.N`一节)。每次请求的实例的上限为100。参数不支持同时指定`InstanceIds`和`Filters`。
|
2905
2900
|
# @type InstanceIds: Array
|
2906
|
-
# @param Filters: <li><strong>zone</strong></li> <p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区例如:ap-guangzhou-
|
2901
|
+
# @param Filters: <li><strong>zone</strong></li> <p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区例如:ap-guangzhou-6。</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> <li><strong>project-id</strong></li> <p style="padding-left: 30px;">按照【<strong>项目ID</strong>】进行过滤,可通过调用[DescribeProjects](https://cloud.tencent.com/document/api/651/78725)查询已创建的项目列表或登录[控制台](https://console.cloud.tencent.com/cvm/index)进行查看;也可以调用[AddProject](https://cloud.tencent.com/document/api/651/81952)创建新的项目。项目ID例如:1002189。</p><p style="padding-left: 30px;">类型:Integer</p><p style="padding-left: 30px;">必选:否</p> <li><strong>host-id</strong></li> <p style="padding-left: 30px;">按照【<strong>[CDH](https://cloud.tencent.com/document/product/416) ID</strong>】进行过滤。[CDH](https://cloud.tencent.com/document/product/416) ID例如:host-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>dedicated-cluster-id</strong></li> <p style="padding-left: 30px;">按照【<strong>[CDC](https://cloud.tencent.com/document/product/1346) ID</strong>】进行过滤。[CDC](https://cloud.tencent.com/document/product/1346) ID例如:cluster-xxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>vpc-id</strong></li> <p style="padding-left: 30px;">按照【<strong>VPC ID</strong>】进行过滤。VPC ID例如:vpc-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>subnet-id</strong></li> <p style="padding-left: 30px;">按照【<strong>子网ID</strong>】进行过滤。子网ID例如:subnet-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>instance-id</strong></li> <p style="padding-left: 30px;">按照【<strong>实例ID</strong>】进行过滤。实例ID例如:ins-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>uuid</strong></li> <p style="padding-left: 30px;">按照【<strong>实例UUID</strong>】进行过滤。实例UUID例如:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>security-group-id</strong></li> <p style="padding-left: 30px;">按照【<strong>安全组ID</strong>】进行过滤。安全组ID例如: sg-8jlk3f3r。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>instance-name</strong></li> <p style="padding-left: 30px;">按照【<strong>实例名称</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>instance-charge-type</strong></li> <p style="padding-left: 30px;">按照【<strong>实例计费模式</strong>】进行过滤。(PREPAID:表示预付费,即包年包月 | POSTPAID_BY_HOUR:表示后付费,即按量计费 | CDHPAID:表示[CDH](https://cloud.tencent.com/document/product/416)付费,即只对[CDH](https://cloud.tencent.com/document/product/416)计费,不对[CDH](https://cloud.tencent.com/document/product/416)上的实例计费。)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>instance-state</strong></li> <p style="padding-left: 30px;">按照【<strong>实例状态</strong>】进行过滤。状态类型详见[实例状态表](https://cloud.tencent.com/document/api/213/15753#InstanceStatus)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>private-ip-address</strong></li> <p style="padding-left: 30px;">按照【<strong>实例主网卡的内网IP</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>public-ip-address</strong></li> <p style="padding-left: 30px;">按照【<strong>实例主网卡的公网IP</strong>】进行过滤,包含实例创建时自动分配的IP和实例创建后手动绑定的弹性IP。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>ipv6-address</strong></li> <p style="padding-left: 30px;">按照【<strong>实例的IPv6地址</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>tag-key</strong></li> <p style="padding-left: 30px;">按照【<strong>标签键</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <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> <li><strong>tag:tag-key</strong></li> <p style="padding-left: 30px;">按照【<strong>标签键值对</strong>】进行过滤。tag-key使用具体的标签键进行替换。使用请参考示例2。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><li><strong>creation-start-time</strong></li> <p style="padding-left: 30px;">按照【<strong>创建实例请求的起始时间</strong>】进行过滤。例如:2023-06-01 00:00:00。
|
2907
2902
|
# </p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
2908
2903
|
# <li><strong>creation-end-time</strong></li> <p style="padding-left: 30px;">按照【<strong>创建实例请求的截止时间</strong>】进行过滤。例如:2023-06-01 00:00:00。
|
2909
2904
|
# </p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`InstanceIds`和`Filters`。
|
@@ -3318,163 +3313,6 @@ module TencentCloud
|
|
3318
3313
|
end
|
3319
3314
|
end
|
3320
3315
|
|
3321
|
-
# DescribeReservedInstancesConfigInfos请求参数结构体
|
3322
|
-
class DescribeReservedInstancesConfigInfosRequest < TencentCloud::Common::AbstractModel
|
3323
|
-
# @param Filters: zone
|
3324
|
-
# 按照预留实例计费可购买的可用区进行过滤。形如:ap-guangzhou-1。
|
3325
|
-
# 类型:String
|
3326
|
-
# 必选:否
|
3327
|
-
# 可选项:各地域可用区列表
|
3328
|
-
|
3329
|
-
# product-description
|
3330
|
-
# 按照预留实例计费的平台描述(即操作系统)进行过滤。形如:linux。
|
3331
|
-
# 类型:String
|
3332
|
-
# 必选:否
|
3333
|
-
# 可选项:linux
|
3334
|
-
|
3335
|
-
# duration
|
3336
|
-
# 按照预留实例计费有效期,即预留实例计费购买时长进行过滤。形如:31536000。
|
3337
|
-
# 类型:Integer
|
3338
|
-
# 计量单位:秒
|
3339
|
-
# 必选:否
|
3340
|
-
# 可选项:31536000 (1年)
|
3341
|
-
# @type Filters: Array
|
3342
|
-
|
3343
|
-
attr_accessor :Filters
|
3344
|
-
|
3345
|
-
def initialize(filters=nil)
|
3346
|
-
@Filters = filters
|
3347
|
-
end
|
3348
|
-
|
3349
|
-
def deserialize(params)
|
3350
|
-
unless params['Filters'].nil?
|
3351
|
-
@Filters = []
|
3352
|
-
params['Filters'].each do |i|
|
3353
|
-
filter_tmp = Filter.new
|
3354
|
-
filter_tmp.deserialize(i)
|
3355
|
-
@Filters << filter_tmp
|
3356
|
-
end
|
3357
|
-
end
|
3358
|
-
end
|
3359
|
-
end
|
3360
|
-
|
3361
|
-
# DescribeReservedInstancesConfigInfos返回参数结构体
|
3362
|
-
class DescribeReservedInstancesConfigInfosResponse < TencentCloud::Common::AbstractModel
|
3363
|
-
# @param ReservedInstanceConfigInfos: 预留实例静态配置信息列表。
|
3364
|
-
# @type ReservedInstanceConfigInfos: Array
|
3365
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3366
|
-
# @type RequestId: String
|
3367
|
-
|
3368
|
-
attr_accessor :ReservedInstanceConfigInfos, :RequestId
|
3369
|
-
|
3370
|
-
def initialize(reservedinstanceconfiginfos=nil, requestid=nil)
|
3371
|
-
@ReservedInstanceConfigInfos = reservedinstanceconfiginfos
|
3372
|
-
@RequestId = requestid
|
3373
|
-
end
|
3374
|
-
|
3375
|
-
def deserialize(params)
|
3376
|
-
unless params['ReservedInstanceConfigInfos'].nil?
|
3377
|
-
@ReservedInstanceConfigInfos = []
|
3378
|
-
params['ReservedInstanceConfigInfos'].each do |i|
|
3379
|
-
reservedinstanceconfiginfoitem_tmp = ReservedInstanceConfigInfoItem.new
|
3380
|
-
reservedinstanceconfiginfoitem_tmp.deserialize(i)
|
3381
|
-
@ReservedInstanceConfigInfos << reservedinstanceconfiginfoitem_tmp
|
3382
|
-
end
|
3383
|
-
end
|
3384
|
-
@RequestId = params['RequestId']
|
3385
|
-
end
|
3386
|
-
end
|
3387
|
-
|
3388
|
-
# DescribeReservedInstancesOfferings请求参数结构体
|
3389
|
-
class DescribeReservedInstancesOfferingsRequest < TencentCloud::Common::AbstractModel
|
3390
|
-
# @param DryRun: 试运行, 默认为 false。
|
3391
|
-
# @type DryRun: Boolean
|
3392
|
-
# @param Offset: 偏移量,默认为0。关于`Offset`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
3393
|
-
# @type Offset: Integer
|
3394
|
-
# @param Limit: 返回数量,默认为20,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
3395
|
-
# @type Limit: Integer
|
3396
|
-
# @param MaxDuration: 以最大有效期作为过滤参数。
|
3397
|
-
# 计量单位: 秒
|
3398
|
-
# 默认为 94608000。
|
3399
|
-
# @type MaxDuration: Integer
|
3400
|
-
# @param MinDuration: 以最小有效期作为过滤参数。
|
3401
|
-
# 计量单位: 秒
|
3402
|
-
# 默认为 2592000。
|
3403
|
-
# @type MinDuration: Integer
|
3404
|
-
# @param Filters: <li><strong>zone</strong></li>
|
3405
|
-
# <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>
|
3406
|
-
# <li><strong>duration</strong></li>
|
3407
|
-
# <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>
|
3408
|
-
# <li><strong>instance-type</strong></li>
|
3409
|
-
# <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>
|
3410
|
-
# <li><strong>offering-type</strong></li>
|
3411
|
-
# <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>
|
3412
|
-
# <li><strong>product-description</strong></li>
|
3413
|
-
# <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>
|
3414
|
-
# <li><strong>reserved-instances-offering-id</strong></li>
|
3415
|
-
# <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>
|
3416
|
-
# 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。
|
3417
|
-
# @type Filters: Array
|
3418
|
-
|
3419
|
-
attr_accessor :DryRun, :Offset, :Limit, :MaxDuration, :MinDuration, :Filters
|
3420
|
-
|
3421
|
-
def initialize(dryrun=nil, offset=nil, limit=nil, maxduration=nil, minduration=nil, filters=nil)
|
3422
|
-
@DryRun = dryrun
|
3423
|
-
@Offset = offset
|
3424
|
-
@Limit = limit
|
3425
|
-
@MaxDuration = maxduration
|
3426
|
-
@MinDuration = minduration
|
3427
|
-
@Filters = filters
|
3428
|
-
end
|
3429
|
-
|
3430
|
-
def deserialize(params)
|
3431
|
-
@DryRun = params['DryRun']
|
3432
|
-
@Offset = params['Offset']
|
3433
|
-
@Limit = params['Limit']
|
3434
|
-
@MaxDuration = params['MaxDuration']
|
3435
|
-
@MinDuration = params['MinDuration']
|
3436
|
-
unless params['Filters'].nil?
|
3437
|
-
@Filters = []
|
3438
|
-
params['Filters'].each do |i|
|
3439
|
-
filter_tmp = Filter.new
|
3440
|
-
filter_tmp.deserialize(i)
|
3441
|
-
@Filters << filter_tmp
|
3442
|
-
end
|
3443
|
-
end
|
3444
|
-
end
|
3445
|
-
end
|
3446
|
-
|
3447
|
-
# DescribeReservedInstancesOfferings返回参数结构体
|
3448
|
-
class DescribeReservedInstancesOfferingsResponse < TencentCloud::Common::AbstractModel
|
3449
|
-
# @param TotalCount: 符合条件的预留实例计费数量。
|
3450
|
-
# @type TotalCount: Integer
|
3451
|
-
# @param ReservedInstancesOfferingsSet: 符合条件的预留实例计费列表。
|
3452
|
-
# @type ReservedInstancesOfferingsSet: Array
|
3453
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
3454
|
-
# @type RequestId: String
|
3455
|
-
|
3456
|
-
attr_accessor :TotalCount, :ReservedInstancesOfferingsSet, :RequestId
|
3457
|
-
|
3458
|
-
def initialize(totalcount=nil, reservedinstancesofferingsset=nil, requestid=nil)
|
3459
|
-
@TotalCount = totalcount
|
3460
|
-
@ReservedInstancesOfferingsSet = reservedinstancesofferingsset
|
3461
|
-
@RequestId = requestid
|
3462
|
-
end
|
3463
|
-
|
3464
|
-
def deserialize(params)
|
3465
|
-
@TotalCount = params['TotalCount']
|
3466
|
-
unless params['ReservedInstancesOfferingsSet'].nil?
|
3467
|
-
@ReservedInstancesOfferingsSet = []
|
3468
|
-
params['ReservedInstancesOfferingsSet'].each do |i|
|
3469
|
-
reservedinstancesoffering_tmp = ReservedInstancesOffering.new
|
3470
|
-
reservedinstancesoffering_tmp.deserialize(i)
|
3471
|
-
@ReservedInstancesOfferingsSet << reservedinstancesoffering_tmp
|
3472
|
-
end
|
3473
|
-
end
|
3474
|
-
@RequestId = params['RequestId']
|
3475
|
-
end
|
3476
|
-
end
|
3477
|
-
|
3478
3316
|
# DescribeTaskInfo请求参数结构体
|
3479
3317
|
class DescribeTaskInfoRequest < TencentCloud::Common::AbstractModel
|
3480
3318
|
# @param Limit: 返回数量,最大值为100。关于`Limit`的更进一步介绍请参考 API [简介](https://cloud.tencent.com/document/api/213/15688)中的相关小节。
|
@@ -3608,7 +3446,7 @@ module TencentCloud
|
|
3608
3446
|
# DescribeZoneInstanceConfigInfos请求参数结构体
|
3609
3447
|
class DescribeZoneInstanceConfigInfosRequest < TencentCloud::Common::AbstractModel
|
3610
3448
|
# @param Filters: <li><strong>zone</strong></li>
|
3611
|
-
# <p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-
|
3449
|
+
# <p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-6。</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>
|
3612
3450
|
# <li><strong>instance-family</strong></li>
|
3613
3451
|
# <p style="padding-left: 30px;">按照【<strong>实例机型系列</strong>】进行过滤。实例机型系列形如:S1、I1、M1等。具体取值参见[实例类型](https://cloud.tencent.com/document/product/213/11518)描述。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p>
|
3614
3452
|
# <li><strong>instance-type</strong></li>
|
@@ -3927,8 +3765,8 @@ module TencentCloud
|
|
3927
3765
|
|
3928
3766
|
attr_accessor :InstanceId, :Password, :Username, :ForceStop, :StopType
|
3929
3767
|
extend Gem::Deprecate
|
3930
|
-
deprecate :ForceStop, :none, 2025,
|
3931
|
-
deprecate :ForceStop=, :none, 2025,
|
3768
|
+
deprecate :ForceStop, :none, 2025, 9
|
3769
|
+
deprecate :ForceStop=, :none, 2025, 9
|
3932
3770
|
|
3933
3771
|
def initialize(instanceid=nil, password=nil, username=nil, forcestop=nil, stoptype=nil)
|
3934
3772
|
@InstanceId = instanceid
|
@@ -4097,10 +3935,10 @@ module TencentCloud
|
|
4097
3935
|
# > * 若存在多个`Filter`时,`Filter`间的关系为逻辑与(`AND`)关系。
|
4098
3936
|
# > * 若同一个`Filter`存在多个`Values`,同一`Filter`下`Values`间的关系为逻辑或(`OR`)关系。
|
4099
3937
|
# >
|
4100
|
-
# > 以[DescribeInstances](https://cloud.tencent.com/document/api/213/15728)接口的`Filter`为例。若我们需要查询可用区(`zone
|
3938
|
+
# > 以[DescribeInstances](https://cloud.tencent.com/document/api/213/15728)接口的`Filter`为例。若我们需要查询可用区(`zone`)为广州六区 ***并且*** 实例计费模式(`instance-charge-type`)为包年包月 ***或者*** 按量计费的实例时,可如下实现:
|
4101
3939
|
# ```
|
4102
3940
|
# Filters.0.Name=zone
|
4103
|
-
# &Filters.0.Values.0=ap-guangzhou-
|
3941
|
+
# &Filters.0.Values.0=ap-guangzhou-6
|
4104
3942
|
# &Filters.1.Name=instance-charge-type
|
4105
3943
|
# &Filters.1.Values.0=PREPAID
|
4106
3944
|
# &Filters.1.Values.1=POSTPAID_BY_HOUR
|
@@ -4757,61 +4595,6 @@ module TencentCloud
|
|
4757
4595
|
end
|
4758
4596
|
end
|
4759
4597
|
|
4760
|
-
# InquirePricePurchaseReservedInstancesOffering请求参数结构体
|
4761
|
-
class InquirePricePurchaseReservedInstancesOfferingRequest < TencentCloud::Common::AbstractModel
|
4762
|
-
# @param InstanceCount: 购买预留实例计费数量
|
4763
|
-
# @type InstanceCount: Integer
|
4764
|
-
# @param ReservedInstancesOfferingId: 预留实例计费配置ID
|
4765
|
-
# @type ReservedInstancesOfferingId: String
|
4766
|
-
# @param DryRun: 试运行
|
4767
|
-
# @type DryRun: Boolean
|
4768
|
-
# @param ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。<br>更多详细信息请参阅:如何保证幂等性
|
4769
|
-
# @type ClientToken: String
|
4770
|
-
# @param ReservedInstanceName: 预留实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>
|
4771
|
-
# @type ReservedInstanceName: String
|
4772
|
-
|
4773
|
-
attr_accessor :InstanceCount, :ReservedInstancesOfferingId, :DryRun, :ClientToken, :ReservedInstanceName
|
4774
|
-
|
4775
|
-
def initialize(instancecount=nil, reservedinstancesofferingid=nil, dryrun=nil, clienttoken=nil, reservedinstancename=nil)
|
4776
|
-
@InstanceCount = instancecount
|
4777
|
-
@ReservedInstancesOfferingId = reservedinstancesofferingid
|
4778
|
-
@DryRun = dryrun
|
4779
|
-
@ClientToken = clienttoken
|
4780
|
-
@ReservedInstanceName = reservedinstancename
|
4781
|
-
end
|
4782
|
-
|
4783
|
-
def deserialize(params)
|
4784
|
-
@InstanceCount = params['InstanceCount']
|
4785
|
-
@ReservedInstancesOfferingId = params['ReservedInstancesOfferingId']
|
4786
|
-
@DryRun = params['DryRun']
|
4787
|
-
@ClientToken = params['ClientToken']
|
4788
|
-
@ReservedInstanceName = params['ReservedInstanceName']
|
4789
|
-
end
|
4790
|
-
end
|
4791
|
-
|
4792
|
-
# InquirePricePurchaseReservedInstancesOffering返回参数结构体
|
4793
|
-
class InquirePricePurchaseReservedInstancesOfferingResponse < TencentCloud::Common::AbstractModel
|
4794
|
-
# @param Price: 该参数表示对应配置预留实例的价格。
|
4795
|
-
# @type Price: :class:`Tencentcloud::Cvm.v20170312.models.ReservedInstancePrice`
|
4796
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
4797
|
-
# @type RequestId: String
|
4798
|
-
|
4799
|
-
attr_accessor :Price, :RequestId
|
4800
|
-
|
4801
|
-
def initialize(price=nil, requestid=nil)
|
4802
|
-
@Price = price
|
4803
|
-
@RequestId = requestid
|
4804
|
-
end
|
4805
|
-
|
4806
|
-
def deserialize(params)
|
4807
|
-
unless params['Price'].nil?
|
4808
|
-
@Price = ReservedInstancePrice.new
|
4809
|
-
@Price.deserialize(params['Price'])
|
4810
|
-
end
|
4811
|
-
@RequestId = params['RequestId']
|
4812
|
-
end
|
4813
|
-
end
|
4814
|
-
|
4815
4598
|
# InquiryPriceModifyInstancesChargeType请求参数结构体
|
4816
4599
|
class InquiryPriceModifyInstancesChargeTypeRequest < TencentCloud::Common::AbstractModel
|
4817
4600
|
# @param InstanceIds: 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
|
@@ -5972,42 +5755,31 @@ module TencentCloud
|
|
5972
5755
|
# @type PublicIpAssigned: Boolean
|
5973
5756
|
# @param BandwidthPackageId: 带宽包ID。可通过[ DescribeBandwidthPackages ](https://cloud.tencent.com/document/api/215/19209)接口返回值中的`BandwidthPackageId`获取。该参数仅在RunInstances接口中作为入参使用。
|
5974
5757
|
# @type BandwidthPackageId: String
|
5975
|
-
# @param InternetServiceProvider:
|
5976
|
-
|
5977
|
-
# - BGP:常规 BGP 线路
|
5978
|
-
|
5758
|
+
# @param InternetServiceProvider: 线路类型。各种线路类型及支持地区详情可参考:[EIP 的 IP 地址类型](https://cloud.tencent.com/document/product/1199/41646)。默认值:BGP。
|
5759
|
+
# <li>BGP:常规 BGP 线路</li>
|
5979
5760
|
# 已开通静态单线IP白名单的用户,可选值:
|
5980
|
-
|
5981
|
-
#
|
5982
|
-
#
|
5983
|
-
# - CUCC:中国联通
|
5984
|
-
|
5761
|
+
# <li>CMCC:中国移动</li>
|
5762
|
+
# <li>CTCC:中国电信</li>
|
5763
|
+
# <li>CUCC:中国联通</li>
|
5985
5764
|
# 注意:仅部分地域支持静态单线IP。
|
5986
|
-
# 示例值:BGP
|
5987
5765
|
# @type InternetServiceProvider: String
|
5988
5766
|
# @param IPv4AddressType: 公网 IP 类型。
|
5989
5767
|
|
5990
|
-
#
|
5991
|
-
#
|
5992
|
-
#
|
5993
|
-
|
5768
|
+
# <li> WanIP:普通公网IP。</li>
|
5769
|
+
# <li> HighQualityEIP:精品 IP。仅新加坡和中国香港支持精品IP。</li>
|
5770
|
+
# <li> AntiDDoSEIP:高防 IP。仅部分地域支持高防IP,详情可见[弹性公网IP产品概述](https://cloud.tencent.com/document/product/1199/41646)。</li>
|
5994
5771
|
# 如需为资源分配公网IPv4地址,请指定公网IPv4地址类型。
|
5995
5772
|
|
5996
|
-
# 示例值:WanIP
|
5997
|
-
|
5998
5773
|
# 此功能仅部分地区灰度开放,如需使用[请提交工单咨询](https://console.cloud.tencent.com/workorder/category)
|
5999
5774
|
# @type IPv4AddressType: String
|
6000
5775
|
# @param IPv6AddressType: 弹性公网 IPv6 类型。
|
6001
|
-
#
|
6002
|
-
#
|
6003
|
-
|
5776
|
+
# <li> EIPv6:弹性公网 IPv6。</li>
|
5777
|
+
# <li> HighQualityEIPv6:精品 IPv6。仅中国香港支持精品IPv6。</li>
|
6004
5778
|
# 如需为资源分配IPv6地址,请指定弹性公网IPv6类型。
|
6005
|
-
# 示例值:EIPv6
|
6006
5779
|
|
6007
5780
|
# 此功能仅部分地区灰度开放,如需使用[请提交工单咨询](https://console.cloud.tencent.com/workorder/category)
|
6008
5781
|
# @type IPv6AddressType: String
|
6009
5782
|
# @param AntiDDoSPackageId: 高防包唯一ID,申请高防IP时,该字段必传。
|
6010
|
-
# 示例值:bgp-12345678
|
6011
5783
|
# @type AntiDDoSPackageId: String
|
6012
5784
|
|
6013
5785
|
attr_accessor :InternetChargeType, :InternetMaxBandwidthOut, :PublicIpAssigned, :BandwidthPackageId, :InternetServiceProvider, :IPv4AddressType, :IPv6AddressType, :AntiDDoSPackageId
|
@@ -6691,7 +6463,7 @@ module TencentCloud
|
|
6691
6463
|
# @type HostName: String
|
6692
6464
|
# @param RenewFlag: 自动续费标识。取值范围:<br><li>NOTIFY_AND_AUTO_RENEW:通知过期且自动续费</li><li>NOTIFY_AND_MANUAL_RENEW:通知过期不自动续费</li><li>DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费</li><br>若该参数指定为NOTIFY_AND_AUTO_RENEW,在账户余额充足的情况下,实例到期后将按月自动续费。
|
6693
6465
|
# @type RenewFlag: String
|
6694
|
-
# @param ProjectId: 项目ID。项目可以使用[AddProject](https://cloud.tencent.com/document/api/651/81952)接口创建。可通过[
|
6466
|
+
# @param ProjectId: 项目ID。项目可以使用 [AddProject](https://cloud.tencent.com/document/api/651/81952) 接口创建。可通过 [DescribeProjects](https://cloud.tencent.com/document/api/651/78725) 接口返回值中的`projectId`获取。后续使用 [DescribeHosts](https://cloud.tencent.com/document/api/213/16474) 接口查询实例时,项目ID可用于过滤结果。
|
6695
6467
|
# @type ProjectId: Integer
|
6696
6468
|
|
6697
6469
|
attr_accessor :HostIds, :HostName, :RenewFlag, :ProjectId
|
@@ -7468,58 +7240,6 @@ module TencentCloud
|
|
7468
7240
|
end
|
7469
7241
|
end
|
7470
7242
|
|
7471
|
-
# PurchaseReservedInstancesOffering请求参数结构体
|
7472
|
-
class PurchaseReservedInstancesOfferingRequest < TencentCloud::Common::AbstractModel
|
7473
|
-
# @param InstanceCount: 购买预留实例计费数量
|
7474
|
-
# @type InstanceCount: Integer
|
7475
|
-
# @param ReservedInstancesOfferingId: 预留实例计费配置ID
|
7476
|
-
# @type ReservedInstancesOfferingId: String
|
7477
|
-
# @param DryRun: 试运行
|
7478
|
-
# @type DryRun: Boolean
|
7479
|
-
# @param ClientToken: 用于保证请求幂等性的字符串。该字符串由客户生成,需保证不同请求之间唯一,最大值不超过64个ASCII字符。若不指定该参数,则无法保证请求的幂等性。<br>更多详细信息请参阅:如何保证幂等性
|
7480
|
-
# @type ClientToken: String
|
7481
|
-
# @param ReservedInstanceName: 预留实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>最多支持60个字符(包含模式串)。</li>
|
7482
|
-
# @type ReservedInstanceName: String
|
7483
|
-
|
7484
|
-
attr_accessor :InstanceCount, :ReservedInstancesOfferingId, :DryRun, :ClientToken, :ReservedInstanceName
|
7485
|
-
|
7486
|
-
def initialize(instancecount=nil, reservedinstancesofferingid=nil, dryrun=nil, clienttoken=nil, reservedinstancename=nil)
|
7487
|
-
@InstanceCount = instancecount
|
7488
|
-
@ReservedInstancesOfferingId = reservedinstancesofferingid
|
7489
|
-
@DryRun = dryrun
|
7490
|
-
@ClientToken = clienttoken
|
7491
|
-
@ReservedInstanceName = reservedinstancename
|
7492
|
-
end
|
7493
|
-
|
7494
|
-
def deserialize(params)
|
7495
|
-
@InstanceCount = params['InstanceCount']
|
7496
|
-
@ReservedInstancesOfferingId = params['ReservedInstancesOfferingId']
|
7497
|
-
@DryRun = params['DryRun']
|
7498
|
-
@ClientToken = params['ClientToken']
|
7499
|
-
@ReservedInstanceName = params['ReservedInstanceName']
|
7500
|
-
end
|
7501
|
-
end
|
7502
|
-
|
7503
|
-
# PurchaseReservedInstancesOffering返回参数结构体
|
7504
|
-
class PurchaseReservedInstancesOfferingResponse < TencentCloud::Common::AbstractModel
|
7505
|
-
# @param ReservedInstanceId: 已购买预留实例计费ID
|
7506
|
-
# @type ReservedInstanceId: String
|
7507
|
-
# @param RequestId: 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
7508
|
-
# @type RequestId: String
|
7509
|
-
|
7510
|
-
attr_accessor :ReservedInstanceId, :RequestId
|
7511
|
-
|
7512
|
-
def initialize(reservedinstanceid=nil, requestid=nil)
|
7513
|
-
@ReservedInstanceId = reservedinstanceid
|
7514
|
-
@RequestId = requestid
|
7515
|
-
end
|
7516
|
-
|
7517
|
-
def deserialize(params)
|
7518
|
-
@ReservedInstanceId = params['ReservedInstanceId']
|
7519
|
-
@RequestId = params['RequestId']
|
7520
|
-
end
|
7521
|
-
end
|
7522
|
-
|
7523
7243
|
# RebootInstances请求参数结构体
|
7524
7244
|
class RebootInstancesRequest < TencentCloud::Common::AbstractModel
|
7525
7245
|
# @param InstanceIds: 一个或多个待操作的实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) 接口返回值中的`InstanceId`获取。每次请求批量实例的上限为100。
|
@@ -7531,8 +7251,8 @@ module TencentCloud
|
|
7531
7251
|
|
7532
7252
|
attr_accessor :InstanceIds, :ForceReboot, :StopType
|
7533
7253
|
extend Gem::Deprecate
|
7534
|
-
deprecate :ForceReboot, :none, 2025,
|
7535
|
-
deprecate :ForceReboot=, :none, 2025,
|
7254
|
+
deprecate :ForceReboot, :none, 2025, 9
|
7255
|
+
deprecate :ForceReboot=, :none, 2025, 9
|
7536
7256
|
|
7537
7257
|
def initialize(instanceids=nil, forcereboot=nil, stoptype=nil)
|
7538
7258
|
@InstanceIds = instanceids
|
@@ -7972,293 +7692,6 @@ module TencentCloud
|
|
7972
7692
|
end
|
7973
7693
|
end
|
7974
7694
|
|
7975
|
-
# 预留实例静态配置信息。预留实例当前只针对国际站白名单用户开放。
|
7976
|
-
class ReservedInstanceConfigInfoItem < TencentCloud::Common::AbstractModel
|
7977
|
-
# @param Type: 实例规格。
|
7978
|
-
# @type Type: String
|
7979
|
-
# @param TypeName: 实例规格名称。
|
7980
|
-
# @type TypeName: String
|
7981
|
-
# @param Order: 优先级。
|
7982
|
-
# @type Order: Integer
|
7983
|
-
# @param InstanceFamilies: 实例族信息列表。
|
7984
|
-
# @type InstanceFamilies: Array
|
7985
|
-
|
7986
|
-
attr_accessor :Type, :TypeName, :Order, :InstanceFamilies
|
7987
|
-
|
7988
|
-
def initialize(type=nil, typename=nil, order=nil, instancefamilies=nil)
|
7989
|
-
@Type = type
|
7990
|
-
@TypeName = typename
|
7991
|
-
@Order = order
|
7992
|
-
@InstanceFamilies = instancefamilies
|
7993
|
-
end
|
7994
|
-
|
7995
|
-
def deserialize(params)
|
7996
|
-
@Type = params['Type']
|
7997
|
-
@TypeName = params['TypeName']
|
7998
|
-
@Order = params['Order']
|
7999
|
-
unless params['InstanceFamilies'].nil?
|
8000
|
-
@InstanceFamilies = []
|
8001
|
-
params['InstanceFamilies'].each do |i|
|
8002
|
-
reservedinstancefamilyitem_tmp = ReservedInstanceFamilyItem.new
|
8003
|
-
reservedinstancefamilyitem_tmp.deserialize(i)
|
8004
|
-
@InstanceFamilies << reservedinstancefamilyitem_tmp
|
8005
|
-
end
|
8006
|
-
end
|
8007
|
-
end
|
8008
|
-
end
|
8009
|
-
|
8010
|
-
# 预留实例相关实例族信息。预留实例当前只针对国际站白名单用户开放。
|
8011
|
-
class ReservedInstanceFamilyItem < TencentCloud::Common::AbstractModel
|
8012
|
-
# @param InstanceFamily: 实例族。
|
8013
|
-
# @type InstanceFamily: String
|
8014
|
-
# @param Order: 优先级。
|
8015
|
-
# @type Order: Integer
|
8016
|
-
# @param InstanceTypes: 实例类型信息列表。
|
8017
|
-
# @type InstanceTypes: Array
|
8018
|
-
|
8019
|
-
attr_accessor :InstanceFamily, :Order, :InstanceTypes
|
8020
|
-
|
8021
|
-
def initialize(instancefamily=nil, order=nil, instancetypes=nil)
|
8022
|
-
@InstanceFamily = instancefamily
|
8023
|
-
@Order = order
|
8024
|
-
@InstanceTypes = instancetypes
|
8025
|
-
end
|
8026
|
-
|
8027
|
-
def deserialize(params)
|
8028
|
-
@InstanceFamily = params['InstanceFamily']
|
8029
|
-
@Order = params['Order']
|
8030
|
-
unless params['InstanceTypes'].nil?
|
8031
|
-
@InstanceTypes = []
|
8032
|
-
params['InstanceTypes'].each do |i|
|
8033
|
-
reservedinstancetypeitem_tmp = ReservedInstanceTypeItem.new
|
8034
|
-
reservedinstancetypeitem_tmp.deserialize(i)
|
8035
|
-
@InstanceTypes << reservedinstancetypeitem_tmp
|
8036
|
-
end
|
8037
|
-
end
|
8038
|
-
end
|
8039
|
-
end
|
8040
|
-
|
8041
|
-
# 预留实例相关价格信息。预留实例当前只针对国际站白名单用户开放。
|
8042
|
-
class ReservedInstancePrice < TencentCloud::Common::AbstractModel
|
8043
|
-
# @param OriginalFixedPrice: 预支合计费用的原价,单位:元。
|
8044
|
-
# @type OriginalFixedPrice: Float
|
8045
|
-
# @param DiscountFixedPrice: 预支合计费用的折扣价,单位:元。
|
8046
|
-
# @type DiscountFixedPrice: Float
|
8047
|
-
# @param OriginalUsagePrice: 后续合计费用的原价,单位:元/小时
|
8048
|
-
# @type OriginalUsagePrice: Float
|
8049
|
-
# @param DiscountUsagePrice: 后续合计费用的折扣价,单位:元/小时
|
8050
|
-
# @type DiscountUsagePrice: Float
|
8051
|
-
# @param FixedPriceDiscount: 预支费用的折扣,如20.0代表2折。 注意:此字段可能返回 null,表示取不到有效值。
|
8052
|
-
# @type FixedPriceDiscount: Float
|
8053
|
-
# @param UsagePriceDiscount: 后续费用的折扣,如20.0代表2折。 注意:此字段可能返回 null,表示取不到有效值。
|
8054
|
-
# @type UsagePriceDiscount: Float
|
8055
|
-
|
8056
|
-
attr_accessor :OriginalFixedPrice, :DiscountFixedPrice, :OriginalUsagePrice, :DiscountUsagePrice, :FixedPriceDiscount, :UsagePriceDiscount
|
8057
|
-
|
8058
|
-
def initialize(originalfixedprice=nil, discountfixedprice=nil, originalusageprice=nil, discountusageprice=nil, fixedpricediscount=nil, usagepricediscount=nil)
|
8059
|
-
@OriginalFixedPrice = originalfixedprice
|
8060
|
-
@DiscountFixedPrice = discountfixedprice
|
8061
|
-
@OriginalUsagePrice = originalusageprice
|
8062
|
-
@DiscountUsagePrice = discountusageprice
|
8063
|
-
@FixedPriceDiscount = fixedpricediscount
|
8064
|
-
@UsagePriceDiscount = usagepricediscount
|
8065
|
-
end
|
8066
|
-
|
8067
|
-
def deserialize(params)
|
8068
|
-
@OriginalFixedPrice = params['OriginalFixedPrice']
|
8069
|
-
@DiscountFixedPrice = params['DiscountFixedPrice']
|
8070
|
-
@OriginalUsagePrice = params['OriginalUsagePrice']
|
8071
|
-
@DiscountUsagePrice = params['DiscountUsagePrice']
|
8072
|
-
@FixedPriceDiscount = params['FixedPriceDiscount']
|
8073
|
-
@UsagePriceDiscount = params['UsagePriceDiscount']
|
8074
|
-
end
|
8075
|
-
end
|
8076
|
-
|
8077
|
-
# 基于付费类型的预留实例相关价格信息。预留实例当前只针对国际站白名单用户开放。
|
8078
|
-
class ReservedInstancePriceItem < TencentCloud::Common::AbstractModel
|
8079
|
-
# @param OfferingType: 付费类型,如:"All Upfront","Partial Upfront","No Upfront"
|
8080
|
-
# @type OfferingType: String
|
8081
|
-
# @param FixedPrice: 预支合计费用,单位:元。
|
8082
|
-
# @type FixedPrice: Float
|
8083
|
-
# @param UsagePrice: 后续合计费用,单位:元/小时
|
8084
|
-
# @type UsagePrice: Float
|
8085
|
-
# @param ReservedInstancesOfferingId: 预留实例配置ID
|
8086
|
-
# @type ReservedInstancesOfferingId: String
|
8087
|
-
# @param Zone: 预留实例计费可购买的可用区。
|
8088
|
-
# @type Zone: String
|
8089
|
-
# @param Duration: 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。
|
8090
|
-
# 计量单位:秒
|
8091
|
-
# @type Duration: Integer
|
8092
|
-
# @param ProductDescription: 预留实例计费的平台描述(即操作系统)。形如:Linux。
|
8093
|
-
# 返回项: Linux 。
|
8094
|
-
# @type ProductDescription: String
|
8095
|
-
# @param DiscountUsagePrice: 预支合计费用,单位:元。
|
8096
|
-
# @type DiscountUsagePrice: Float
|
8097
|
-
# @param DiscountFixedPrice: 后续合计费用的折扣价,单位:元/小时
|
8098
|
-
# @type DiscountFixedPrice: Float
|
8099
|
-
|
8100
|
-
attr_accessor :OfferingType, :FixedPrice, :UsagePrice, :ReservedInstancesOfferingId, :Zone, :Duration, :ProductDescription, :DiscountUsagePrice, :DiscountFixedPrice
|
8101
|
-
|
8102
|
-
def initialize(offeringtype=nil, fixedprice=nil, usageprice=nil, reservedinstancesofferingid=nil, zone=nil, duration=nil, productdescription=nil, discountusageprice=nil, discountfixedprice=nil)
|
8103
|
-
@OfferingType = offeringtype
|
8104
|
-
@FixedPrice = fixedprice
|
8105
|
-
@UsagePrice = usageprice
|
8106
|
-
@ReservedInstancesOfferingId = reservedinstancesofferingid
|
8107
|
-
@Zone = zone
|
8108
|
-
@Duration = duration
|
8109
|
-
@ProductDescription = productdescription
|
8110
|
-
@DiscountUsagePrice = discountusageprice
|
8111
|
-
@DiscountFixedPrice = discountfixedprice
|
8112
|
-
end
|
8113
|
-
|
8114
|
-
def deserialize(params)
|
8115
|
-
@OfferingType = params['OfferingType']
|
8116
|
-
@FixedPrice = params['FixedPrice']
|
8117
|
-
@UsagePrice = params['UsagePrice']
|
8118
|
-
@ReservedInstancesOfferingId = params['ReservedInstancesOfferingId']
|
8119
|
-
@Zone = params['Zone']
|
8120
|
-
@Duration = params['Duration']
|
8121
|
-
@ProductDescription = params['ProductDescription']
|
8122
|
-
@DiscountUsagePrice = params['DiscountUsagePrice']
|
8123
|
-
@DiscountFixedPrice = params['DiscountFixedPrice']
|
8124
|
-
end
|
8125
|
-
end
|
8126
|
-
|
8127
|
-
# 预留实例类型信息。预留实例当前只针对国际站白名单用户开放。
|
8128
|
-
class ReservedInstanceTypeItem < TencentCloud::Common::AbstractModel
|
8129
|
-
# @param InstanceType: 实例类型。
|
8130
|
-
# @type InstanceType: String
|
8131
|
-
# @param Cpu: CPU核数。
|
8132
|
-
# @type Cpu: Integer
|
8133
|
-
# @param Memory: 内存大小。
|
8134
|
-
# @type Memory: Integer
|
8135
|
-
# @param Gpu: GPU数量。
|
8136
|
-
# @type Gpu: Integer
|
8137
|
-
# @param Fpga: FPGA数量。
|
8138
|
-
# @type Fpga: Integer
|
8139
|
-
# @param StorageBlock: 本地存储块数量。
|
8140
|
-
# @type StorageBlock: Integer
|
8141
|
-
# @param NetworkCard: 网卡数。
|
8142
|
-
# @type NetworkCard: Integer
|
8143
|
-
# @param MaxBandwidth: 最大带宽。
|
8144
|
-
# @type MaxBandwidth: Float
|
8145
|
-
# @param Frequency: 主频。
|
8146
|
-
# @type Frequency: String
|
8147
|
-
# @param CpuModelName: CPU型号名称。
|
8148
|
-
# @type CpuModelName: String
|
8149
|
-
# @param Pps: 包转发率。
|
8150
|
-
# @type Pps: Integer
|
8151
|
-
# @param Externals: 外部信息。
|
8152
|
-
# @type Externals: :class:`Tencentcloud::Cvm.v20170312.models.Externals`
|
8153
|
-
# @param Remark: 备注信息。
|
8154
|
-
# @type Remark: String
|
8155
|
-
# @param Prices: 预留实例配置价格信息。
|
8156
|
-
# @type Prices: Array
|
8157
|
-
|
8158
|
-
attr_accessor :InstanceType, :Cpu, :Memory, :Gpu, :Fpga, :StorageBlock, :NetworkCard, :MaxBandwidth, :Frequency, :CpuModelName, :Pps, :Externals, :Remark, :Prices
|
8159
|
-
|
8160
|
-
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)
|
8161
|
-
@InstanceType = instancetype
|
8162
|
-
@Cpu = cpu
|
8163
|
-
@Memory = memory
|
8164
|
-
@Gpu = gpu
|
8165
|
-
@Fpga = fpga
|
8166
|
-
@StorageBlock = storageblock
|
8167
|
-
@NetworkCard = networkcard
|
8168
|
-
@MaxBandwidth = maxbandwidth
|
8169
|
-
@Frequency = frequency
|
8170
|
-
@CpuModelName = cpumodelname
|
8171
|
-
@Pps = pps
|
8172
|
-
@Externals = externals
|
8173
|
-
@Remark = remark
|
8174
|
-
@Prices = prices
|
8175
|
-
end
|
8176
|
-
|
8177
|
-
def deserialize(params)
|
8178
|
-
@InstanceType = params['InstanceType']
|
8179
|
-
@Cpu = params['Cpu']
|
8180
|
-
@Memory = params['Memory']
|
8181
|
-
@Gpu = params['Gpu']
|
8182
|
-
@Fpga = params['Fpga']
|
8183
|
-
@StorageBlock = params['StorageBlock']
|
8184
|
-
@NetworkCard = params['NetworkCard']
|
8185
|
-
@MaxBandwidth = params['MaxBandwidth']
|
8186
|
-
@Frequency = params['Frequency']
|
8187
|
-
@CpuModelName = params['CpuModelName']
|
8188
|
-
@Pps = params['Pps']
|
8189
|
-
unless params['Externals'].nil?
|
8190
|
-
@Externals = Externals.new
|
8191
|
-
@Externals.deserialize(params['Externals'])
|
8192
|
-
end
|
8193
|
-
@Remark = params['Remark']
|
8194
|
-
unless params['Prices'].nil?
|
8195
|
-
@Prices = []
|
8196
|
-
params['Prices'].each do |i|
|
8197
|
-
reservedinstancepriceitem_tmp = ReservedInstancePriceItem.new
|
8198
|
-
reservedinstancepriceitem_tmp.deserialize(i)
|
8199
|
-
@Prices << reservedinstancepriceitem_tmp
|
8200
|
-
end
|
8201
|
-
end
|
8202
|
-
end
|
8203
|
-
end
|
8204
|
-
|
8205
|
-
# 描述可购买预留实例计费信息
|
8206
|
-
class ReservedInstancesOffering < TencentCloud::Common::AbstractModel
|
8207
|
-
# @param Zone: 预留实例计费可购买的可用区。形如:ap-guangzhou-1。
|
8208
|
-
# 返回项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a>
|
8209
|
-
# @type Zone: String
|
8210
|
-
# @param CurrencyCode: 可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。
|
8211
|
-
# 返回项:USD(美元)。
|
8212
|
-
# @type CurrencyCode: String
|
8213
|
-
# @param Duration: 预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。
|
8214
|
-
# 计量单位:秒
|
8215
|
-
# @type Duration: Integer
|
8216
|
-
# @param FixedPrice: 预留实例计费的购买价格。形如:4000.0。
|
8217
|
-
# 计量单位:与 currencyCode 一致,目前支持 USD(美元)
|
8218
|
-
# @type FixedPrice: Float
|
8219
|
-
# @param InstanceType: 预留实例计费的实例类型。形如:S3.MEDIUM4。
|
8220
|
-
# 返回项:<a href="https://cloud.tencent.com/product/cvm/instances">预留实例计费类型列表</a>
|
8221
|
-
# @type InstanceType: String
|
8222
|
-
# @param OfferingType: 预留实例计费的付款类型。形如:All Upfront。
|
8223
|
-
# 返回项: All Upfront (预付全部费用)。
|
8224
|
-
# @type OfferingType: String
|
8225
|
-
# @param ReservedInstancesOfferingId: 可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。
|
8226
|
-
# @type ReservedInstancesOfferingId: String
|
8227
|
-
# @param ProductDescription: 预留实例计费的平台描述(即操作系统)。形如:linux。
|
8228
|
-
# 返回项: linux 。
|
8229
|
-
# @type ProductDescription: String
|
8230
|
-
# @param UsagePrice: 扣除预付费之后的使用价格 (按小时计费)。形如:0.0。
|
8231
|
-
# 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。
|
8232
|
-
# 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)
|
8233
|
-
# @type UsagePrice: Float
|
8234
|
-
|
8235
|
-
attr_accessor :Zone, :CurrencyCode, :Duration, :FixedPrice, :InstanceType, :OfferingType, :ReservedInstancesOfferingId, :ProductDescription, :UsagePrice
|
8236
|
-
|
8237
|
-
def initialize(zone=nil, currencycode=nil, duration=nil, fixedprice=nil, instancetype=nil, offeringtype=nil, reservedinstancesofferingid=nil, productdescription=nil, usageprice=nil)
|
8238
|
-
@Zone = zone
|
8239
|
-
@CurrencyCode = currencycode
|
8240
|
-
@Duration = duration
|
8241
|
-
@FixedPrice = fixedprice
|
8242
|
-
@InstanceType = instancetype
|
8243
|
-
@OfferingType = offeringtype
|
8244
|
-
@ReservedInstancesOfferingId = reservedinstancesofferingid
|
8245
|
-
@ProductDescription = productdescription
|
8246
|
-
@UsagePrice = usageprice
|
8247
|
-
end
|
8248
|
-
|
8249
|
-
def deserialize(params)
|
8250
|
-
@Zone = params['Zone']
|
8251
|
-
@CurrencyCode = params['CurrencyCode']
|
8252
|
-
@Duration = params['Duration']
|
8253
|
-
@FixedPrice = params['FixedPrice']
|
8254
|
-
@InstanceType = params['InstanceType']
|
8255
|
-
@OfferingType = params['OfferingType']
|
8256
|
-
@ReservedInstancesOfferingId = params['ReservedInstancesOfferingId']
|
8257
|
-
@ProductDescription = params['ProductDescription']
|
8258
|
-
@UsagePrice = params['UsagePrice']
|
8259
|
-
end
|
8260
|
-
end
|
8261
|
-
|
8262
7695
|
# ResetInstance请求参数结构体
|
8263
7696
|
class ResetInstanceRequest < TencentCloud::Common::AbstractModel
|
8264
7697
|
# @param InstanceId: 实例ID。可通过 [DescribeInstances](https://cloud.tencent.com/document/api/213/15728) API返回值中的`InstanceId`获取。
|
@@ -8557,6 +7990,11 @@ module TencentCloud
|
|
8557
7990
|
# @type InternetAccessible: :class:`Tencentcloud::Cvm.v20170312.models.InternetAccessible`
|
8558
7991
|
# @param InstanceCount: 购买实例数量。包年包月实例取值范围:[1,500],按量计费实例取值范围:[1,500]。默认取值:1。指定购买实例的数量不能超过用户所能购买的剩余配额数量,具体配额相关限制详见[CVM实例购买限制](https://cloud.tencent.com/document/product/213/2664)。
|
8559
7992
|
# @type InstanceCount: Integer
|
7993
|
+
# @param MinCount: 指定创建实例的最小数量,取值范围为不大于InstanceCount的正整数。
|
7994
|
+
# 指定最小数量时,承诺最少创建MinCount台实例,并尽量创建InstanceCount台实例。
|
7995
|
+
# 库存不足以满足最小数量时,API 会返回库存不足最小数量的错误信息。
|
7996
|
+
# 仅对支持部分发货的账号、区域和计费模式(包年包月、按量计费、竞价实例、按量包销)生效。
|
7997
|
+
# @type MinCount: Integer
|
8560
7998
|
# @param InstanceName: 实例显示名称。<br><li>不指定实例显示名称则默认显示‘未命名’。</li><li>购买多台实例,如果指定模式串`{R:x}`,表示生成数字`[x, x+n-1]`,其中`n`表示购买实例的数量,例如`server_{R:3}`,购买1台时,实例显示名称为`server_3`;购买2台时,实例显示名称分别为`server_3`,`server_4`。支持指定多个模式串`{R:x}`。</li><li>购买多台实例,如果不指定模式串,则在实例显示名称添加后缀`1、2...n`,其中`n`表示购买实例的数量,例如`server_`,购买2台时,实例显示名称分别为`server_1`,`server_2`。</li><li>最多支持128个字符(包含模式串)。</li>
|
8561
7999
|
# @type InstanceName: String
|
8562
8000
|
# @param LoginSettings: 实例登录设置。通过该参数可以设置实例的登录方式密码、密钥或保持镜像的原始登录设置。默认情况下会随机生成密码,并以站内信方式知会到用户。
|
@@ -8605,9 +8043,9 @@ module TencentCloud
|
|
8605
8043
|
# @param EnableJumboFrame: 实例是否开启巨型帧,取值范围:<br><li/> true:表示实例开启巨型帧,只有支持巨型帧的机型可设置为true。<br><li/>false:表示实例关闭巨型帧,只有支持巨型帧的机型可设置为false。<br> 支持巨型帧的实例规格: [实例规格](https://cloud.tencent.com/document/product/213/11518)
|
8606
8044
|
# @type EnableJumboFrame: Boolean
|
8607
8045
|
|
8608
|
-
attr_accessor :InstanceChargeType, :InstanceChargePrepaid, :Placement, :InstanceType, :ImageId, :SystemDisk, :DataDisks, :VirtualPrivateCloud, :InternetAccessible, :InstanceCount, :InstanceName, :LoginSettings, :SecurityGroupIds, :EnhancedService, :ClientToken, :HostName, :ActionTimer, :DisasterRecoverGroupIds, :TagSpecification, :InstanceMarketOptions, :UserData, :Metadata, :DryRun, :CpuTopology, :CamRoleName, :HpcClusterId, :LaunchTemplate, :DedicatedClusterId, :ChcIds, :DisableApiTermination, :EnableJumboFrame
|
8046
|
+
attr_accessor :InstanceChargeType, :InstanceChargePrepaid, :Placement, :InstanceType, :ImageId, :SystemDisk, :DataDisks, :VirtualPrivateCloud, :InternetAccessible, :InstanceCount, :MinCount, :InstanceName, :LoginSettings, :SecurityGroupIds, :EnhancedService, :ClientToken, :HostName, :ActionTimer, :DisasterRecoverGroupIds, :TagSpecification, :InstanceMarketOptions, :UserData, :Metadata, :DryRun, :CpuTopology, :CamRoleName, :HpcClusterId, :LaunchTemplate, :DedicatedClusterId, :ChcIds, :DisableApiTermination, :EnableJumboFrame
|
8609
8047
|
|
8610
|
-
def initialize(instancechargetype=nil, instancechargeprepaid=nil, placement=nil, instancetype=nil, imageid=nil, systemdisk=nil, datadisks=nil, virtualprivatecloud=nil, internetaccessible=nil, instancecount=nil, instancename=nil, loginsettings=nil, securitygroupids=nil, enhancedservice=nil, clienttoken=nil, hostname=nil, actiontimer=nil, disasterrecovergroupids=nil, tagspecification=nil, instancemarketoptions=nil, userdata=nil, metadata=nil, dryrun=nil, cputopology=nil, camrolename=nil, hpcclusterid=nil, launchtemplate=nil, dedicatedclusterid=nil, chcids=nil, disableapitermination=nil, enablejumboframe=nil)
|
8048
|
+
def initialize(instancechargetype=nil, instancechargeprepaid=nil, placement=nil, instancetype=nil, imageid=nil, systemdisk=nil, datadisks=nil, virtualprivatecloud=nil, internetaccessible=nil, instancecount=nil, mincount=nil, instancename=nil, loginsettings=nil, securitygroupids=nil, enhancedservice=nil, clienttoken=nil, hostname=nil, actiontimer=nil, disasterrecovergroupids=nil, tagspecification=nil, instancemarketoptions=nil, userdata=nil, metadata=nil, dryrun=nil, cputopology=nil, camrolename=nil, hpcclusterid=nil, launchtemplate=nil, dedicatedclusterid=nil, chcids=nil, disableapitermination=nil, enablejumboframe=nil)
|
8611
8049
|
@InstanceChargeType = instancechargetype
|
8612
8050
|
@InstanceChargePrepaid = instancechargeprepaid
|
8613
8051
|
@Placement = placement
|
@@ -8618,6 +8056,7 @@ module TencentCloud
|
|
8618
8056
|
@VirtualPrivateCloud = virtualprivatecloud
|
8619
8057
|
@InternetAccessible = internetaccessible
|
8620
8058
|
@InstanceCount = instancecount
|
8059
|
+
@MinCount = mincount
|
8621
8060
|
@InstanceName = instancename
|
8622
8061
|
@LoginSettings = loginsettings
|
8623
8062
|
@SecurityGroupIds = securitygroupids
|
@@ -8674,6 +8113,7 @@ module TencentCloud
|
|
8674
8113
|
@InternetAccessible.deserialize(params['InternetAccessible'])
|
8675
8114
|
end
|
8676
8115
|
@InstanceCount = params['InstanceCount']
|
8116
|
+
@MinCount = params['MinCount']
|
8677
8117
|
@InstanceName = params['InstanceName']
|
8678
8118
|
unless params['LoginSettings'].nil?
|
8679
8119
|
@LoginSettings = LoginSettings.new
|
@@ -8920,8 +8360,8 @@ module TencentCloud
|
|
8920
8360
|
|
8921
8361
|
attr_accessor :InstanceIds, :ForceStop, :StopType, :StoppedMode
|
8922
8362
|
extend Gem::Deprecate
|
8923
|
-
deprecate :ForceStop, :none, 2025,
|
8924
|
-
deprecate :ForceStop=, :none, 2025,
|
8363
|
+
deprecate :ForceStop, :none, 2025, 9
|
8364
|
+
deprecate :ForceStop=, :none, 2025, 9
|
8925
8365
|
|
8926
8366
|
def initialize(instanceids=nil, forcestop=nil, stoptype=nil, stoppedmode=nil)
|
8927
8367
|
@InstanceIds = instanceids
|
@@ -9087,7 +8527,7 @@ module TencentCloud
|
|
9087
8527
|
# 默认取值:当前有库存的硬盘类型。
|
9088
8528
|
# @type DiskType: String
|
9089
8529
|
# @param DiskId: 系统盘ID。
|
9090
|
-
#
|
8530
|
+
# 该参数目前仅用于 [DescribeInstances](https://cloud.tencent.com/document/product/213/15728) 等查询类接口的返回参数,不可用于 [RunInstances](https://cloud.tencent.com/document/product/213/15730) 等写接口的入参。
|
9091
8531
|
# @type DiskId: String
|
9092
8532
|
# @param DiskSize: 系统盘大小,单位:GiB。默认值为 50
|
9093
8533
|
# @type DiskSize: Integer
|
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.1144
|
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-
|
11
|
+
date: 2025-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tencentcloud-sdk-common
|