Class: TencentCloud::Cvm::V20170312::ReservedInstancesOffering

Inherits:
TencentCloud::Common::AbstractModel
  • Object
show all
Defined in:
lib/v20170312/models.rb

Overview

描述可购买预留实例计费信息

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(zone = nil, currencycode = nil, duration = nil, fixedprice = nil, instancetype = nil, offeringtype = nil, reservedinstancesofferingid = nil, productdescription = nil, usageprice = nil) ⇒ ReservedInstancesOffering

Returns a new instance of ReservedInstancesOffering.



7784
7785
7786
7787
7788
7789
7790
7791
7792
7793
7794
# File 'lib/v20170312/models.rb', line 7784

def initialize(zone=nil, currencycode=nil, duration=nil, fixedprice=nil, instancetype=nil, offeringtype=nil, reservedinstancesofferingid=nil, productdescription=nil, usageprice=nil)
  @Zone = zone
  @CurrencyCode = currencycode
  @Duration = duration
  @FixedPrice = fixedprice
  @InstanceType = instancetype
  @OfferingType = offeringtype
  @ReservedInstancesOfferingId = reservedinstancesofferingid
  @ProductDescription = productdescription
  @UsagePrice = usageprice
end

Instance Attribute Details

#CurrencyCodeObject

返回项:<a href=“cloud.tencent.com/document/product/213/6091”>可用区列表</a> 返回项:USD(美元)。 计量单位:秒 计量单位:与 currencyCode 一致,目前支持 USD(美元) 返回项:<a href=“cloud.tencent.com/product/cvm/instances”>预留实例计费类型列表</a> 返回项: All Upfront (预付全部费用)。 返回项: linux 。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)

Parameters:

  • Zone:

    预留实例计费可购买的可用区。形如:ap-guangzhou-1。

  • CurrencyCode:

    可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。

  • Duration:

    预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。

  • FixedPrice:

    预留实例计费的购买价格。形如:4000.0。

  • InstanceType:

    预留实例计费的实例类型。形如:S3.MEDIUM4。

  • OfferingType:

    预留实例计费的付款类型。形如:All Upfront。

  • ReservedInstancesOfferingId:

    可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。

  • ProductDescription:

    预留实例计费的平台描述(即操作系统)。形如:linux。

  • UsagePrice:

    扣除预付费之后的使用价格 (按小时计费)。形如:0.0。



7782
7783
7784
# File 'lib/v20170312/models.rb', line 7782

def CurrencyCode
  @CurrencyCode
end

#DurationObject

返回项:<a href=“cloud.tencent.com/document/product/213/6091”>可用区列表</a> 返回项:USD(美元)。 计量单位:秒 计量单位:与 currencyCode 一致,目前支持 USD(美元) 返回项:<a href=“cloud.tencent.com/product/cvm/instances”>预留实例计费类型列表</a> 返回项: All Upfront (预付全部费用)。 返回项: linux 。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)

Parameters:

  • Zone:

    预留实例计费可购买的可用区。形如:ap-guangzhou-1。

  • CurrencyCode:

    可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。

  • Duration:

    预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。

  • FixedPrice:

    预留实例计费的购买价格。形如:4000.0。

  • InstanceType:

    预留实例计费的实例类型。形如:S3.MEDIUM4。

  • OfferingType:

    预留实例计费的付款类型。形如:All Upfront。

  • ReservedInstancesOfferingId:

    可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。

  • ProductDescription:

    预留实例计费的平台描述(即操作系统)。形如:linux。

  • UsagePrice:

    扣除预付费之后的使用价格 (按小时计费)。形如:0.0。



7782
7783
7784
# File 'lib/v20170312/models.rb', line 7782

def Duration
  @Duration
end

#FixedPriceObject

返回项:<a href=“cloud.tencent.com/document/product/213/6091”>可用区列表</a> 返回项:USD(美元)。 计量单位:秒 计量单位:与 currencyCode 一致,目前支持 USD(美元) 返回项:<a href=“cloud.tencent.com/product/cvm/instances”>预留实例计费类型列表</a> 返回项: All Upfront (预付全部费用)。 返回项: linux 。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)

Parameters:

  • Zone:

    预留实例计费可购买的可用区。形如:ap-guangzhou-1。

  • CurrencyCode:

    可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。

  • Duration:

    预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。

  • FixedPrice:

    预留实例计费的购买价格。形如:4000.0。

  • InstanceType:

    预留实例计费的实例类型。形如:S3.MEDIUM4。

  • OfferingType:

    预留实例计费的付款类型。形如:All Upfront。

  • ReservedInstancesOfferingId:

    可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。

  • ProductDescription:

    预留实例计费的平台描述(即操作系统)。形如:linux。

  • UsagePrice:

    扣除预付费之后的使用价格 (按小时计费)。形如:0.0。



7782
7783
7784
# File 'lib/v20170312/models.rb', line 7782

def FixedPrice
  @FixedPrice
end

#InstanceTypeObject

返回项:<a href=“cloud.tencent.com/document/product/213/6091”>可用区列表</a> 返回项:USD(美元)。 计量单位:秒 计量单位:与 currencyCode 一致,目前支持 USD(美元) 返回项:<a href=“cloud.tencent.com/product/cvm/instances”>预留实例计费类型列表</a> 返回项: All Upfront (预付全部费用)。 返回项: linux 。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)

Parameters:

  • Zone:

    预留实例计费可购买的可用区。形如:ap-guangzhou-1。

  • CurrencyCode:

    可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。

  • Duration:

    预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。

  • FixedPrice:

    预留实例计费的购买价格。形如:4000.0。

  • InstanceType:

    预留实例计费的实例类型。形如:S3.MEDIUM4。

  • OfferingType:

    预留实例计费的付款类型。形如:All Upfront。

  • ReservedInstancesOfferingId:

    可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。

  • ProductDescription:

    预留实例计费的平台描述(即操作系统)。形如:linux。

  • UsagePrice:

    扣除预付费之后的使用价格 (按小时计费)。形如:0.0。



7782
7783
7784
# File 'lib/v20170312/models.rb', line 7782

def InstanceType
  @InstanceType
end

#OfferingTypeObject

返回项:<a href=“cloud.tencent.com/document/product/213/6091”>可用区列表</a> 返回项:USD(美元)。 计量单位:秒 计量单位:与 currencyCode 一致,目前支持 USD(美元) 返回项:<a href=“cloud.tencent.com/product/cvm/instances”>预留实例计费类型列表</a> 返回项: All Upfront (预付全部费用)。 返回项: linux 。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)

Parameters:

  • Zone:

    预留实例计费可购买的可用区。形如:ap-guangzhou-1。

  • CurrencyCode:

    可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。

  • Duration:

    预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。

  • FixedPrice:

    预留实例计费的购买价格。形如:4000.0。

  • InstanceType:

    预留实例计费的实例类型。形如:S3.MEDIUM4。

  • OfferingType:

    预留实例计费的付款类型。形如:All Upfront。

  • ReservedInstancesOfferingId:

    可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。

  • ProductDescription:

    预留实例计费的平台描述(即操作系统)。形如:linux。

  • UsagePrice:

    扣除预付费之后的使用价格 (按小时计费)。形如:0.0。



7782
7783
7784
# File 'lib/v20170312/models.rb', line 7782

def OfferingType
  @OfferingType
end

#ProductDescriptionObject

返回项:<a href=“cloud.tencent.com/document/product/213/6091”>可用区列表</a> 返回项:USD(美元)。 计量单位:秒 计量单位:与 currencyCode 一致,目前支持 USD(美元) 返回项:<a href=“cloud.tencent.com/product/cvm/instances”>预留实例计费类型列表</a> 返回项: All Upfront (预付全部费用)。 返回项: linux 。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)

Parameters:

  • Zone:

    预留实例计费可购买的可用区。形如:ap-guangzhou-1。

  • CurrencyCode:

    可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。

  • Duration:

    预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。

  • FixedPrice:

    预留实例计费的购买价格。形如:4000.0。

  • InstanceType:

    预留实例计费的实例类型。形如:S3.MEDIUM4。

  • OfferingType:

    预留实例计费的付款类型。形如:All Upfront。

  • ReservedInstancesOfferingId:

    可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。

  • ProductDescription:

    预留实例计费的平台描述(即操作系统)。形如:linux。

  • UsagePrice:

    扣除预付费之后的使用价格 (按小时计费)。形如:0.0。



7782
7783
7784
# File 'lib/v20170312/models.rb', line 7782

def ProductDescription
  @ProductDescription
end

#ReservedInstancesOfferingIdObject

返回项:<a href=“cloud.tencent.com/document/product/213/6091”>可用区列表</a> 返回项:USD(美元)。 计量单位:秒 计量单位:与 currencyCode 一致,目前支持 USD(美元) 返回项:<a href=“cloud.tencent.com/product/cvm/instances”>预留实例计费类型列表</a> 返回项: All Upfront (预付全部费用)。 返回项: linux 。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)

Parameters:

  • Zone:

    预留实例计费可购买的可用区。形如:ap-guangzhou-1。

  • CurrencyCode:

    可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。

  • Duration:

    预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。

  • FixedPrice:

    预留实例计费的购买价格。形如:4000.0。

  • InstanceType:

    预留实例计费的实例类型。形如:S3.MEDIUM4。

  • OfferingType:

    预留实例计费的付款类型。形如:All Upfront。

  • ReservedInstancesOfferingId:

    可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。

  • ProductDescription:

    预留实例计费的平台描述(即操作系统)。形如:linux。

  • UsagePrice:

    扣除预付费之后的使用价格 (按小时计费)。形如:0.0。



7782
7783
7784
# File 'lib/v20170312/models.rb', line 7782

def ReservedInstancesOfferingId
  @ReservedInstancesOfferingId
end

#UsagePriceObject

返回项:<a href=“cloud.tencent.com/document/product/213/6091”>可用区列表</a> 返回项:USD(美元)。 计量单位:秒 计量单位:与 currencyCode 一致,目前支持 USD(美元) 返回项:<a href=“cloud.tencent.com/product/cvm/instances”>预留实例计费类型列表</a> 返回项: All Upfront (预付全部费用)。 返回项: linux 。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)

Parameters:

  • Zone:

    预留实例计费可购买的可用区。形如:ap-guangzhou-1。

  • CurrencyCode:

    可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。

  • Duration:

    预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。

  • FixedPrice:

    预留实例计费的购买价格。形如:4000.0。

  • InstanceType:

    预留实例计费的实例类型。形如:S3.MEDIUM4。

  • OfferingType:

    预留实例计费的付款类型。形如:All Upfront。

  • ReservedInstancesOfferingId:

    可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。

  • ProductDescription:

    预留实例计费的平台描述(即操作系统)。形如:linux。

  • UsagePrice:

    扣除预付费之后的使用价格 (按小时计费)。形如:0.0。



7782
7783
7784
# File 'lib/v20170312/models.rb', line 7782

def UsagePrice
  @UsagePrice
end

#ZoneObject

返回项:<a href=“cloud.tencent.com/document/product/213/6091”>可用区列表</a> 返回项:USD(美元)。 计量单位:秒 计量单位:与 currencyCode 一致,目前支持 USD(美元) 返回项:<a href=“cloud.tencent.com/product/cvm/instances”>预留实例计费类型列表</a> 返回项: All Upfront (预付全部费用)。 返回项: linux 。 目前,因为只支持 All Upfront 付款类型,所以默认为 0元/小时。 计量单位:元/小时,货币单位与 currencyCode 一致,目前支持 USD(美元)

Parameters:

  • Zone:

    预留实例计费可购买的可用区。形如:ap-guangzhou-1。

  • CurrencyCode:

    可购买的预留实例计费类型的结算货币,使用ISO 4217标准货币代码。

  • Duration:

    预留实例计费【有效期】即预留实例计费购买时长。形如:31536000。

  • FixedPrice:

    预留实例计费的购买价格。形如:4000.0。

  • InstanceType:

    预留实例计费的实例类型。形如:S3.MEDIUM4。

  • OfferingType:

    预留实例计费的付款类型。形如:All Upfront。

  • ReservedInstancesOfferingId:

    可购买的预留实例计费配置ID。形如:650c138f-ae7e-4750-952a-96841d6e9fc1。

  • ProductDescription:

    预留实例计费的平台描述(即操作系统)。形如:linux。

  • UsagePrice:

    扣除预付费之后的使用价格 (按小时计费)。形如:0.0。



7782
7783
7784
# File 'lib/v20170312/models.rb', line 7782

def Zone
  @Zone
end

Instance Method Details

#deserialize(params) ⇒ Object



7796
7797
7798
7799
7800
7801
7802
7803
7804
7805
7806
# File 'lib/v20170312/models.rb', line 7796

def deserialize(params)
  @Zone = params['Zone']
  @CurrencyCode = params['CurrencyCode']
  @Duration = params['Duration']
  @FixedPrice = params['FixedPrice']
  @InstanceType = params['InstanceType']
  @OfferingType = params['OfferingType']
  @ReservedInstancesOfferingId = params['ReservedInstancesOfferingId']
  @ProductDescription = params['ProductDescription']
  @UsagePrice = params['UsagePrice']
end