Class: TencentCloud::Cvm::V20170312::ReservedInstancePriceItem

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(offeringtype = nil, fixedprice = nil, usageprice = nil, reservedinstancesofferingid = nil, zone = nil, duration = nil, productdescription = nil) ⇒ ReservedInstancePriceItem

Returns a new instance of ReservedInstancePriceItem.



7577
7578
7579
7580
7581
7582
7583
7584
7585
# File 'lib/v20170312/models.rb', line 7577

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

Instance Attribute Details

#DurationObject

计量单位:秒 返回项: Linux 。

Parameters:

  • OfferingType:

    付费类型,如:“All Upfront”,“Partial Upfront”,“No Upfront”

  • FixedPrice:

    预支合计费用,单位:元。

  • UsagePrice:

    后续合计费用,单位:元/小时

  • ReservedInstancesOfferingId:

    预留实例配置ID

  • Zone:

    预留实例计费可购买的可用区。

  • Duration:

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

  • ProductDescription:

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



7575
7576
7577
# File 'lib/v20170312/models.rb', line 7575

def Duration
  @Duration
end

#FixedPriceObject

计量单位:秒 返回项: Linux 。

Parameters:

  • OfferingType:

    付费类型,如:“All Upfront”,“Partial Upfront”,“No Upfront”

  • FixedPrice:

    预支合计费用,单位:元。

  • UsagePrice:

    后续合计费用,单位:元/小时

  • ReservedInstancesOfferingId:

    预留实例配置ID

  • Zone:

    预留实例计费可购买的可用区。

  • Duration:

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

  • ProductDescription:

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



7575
7576
7577
# File 'lib/v20170312/models.rb', line 7575

def FixedPrice
  @FixedPrice
end

#OfferingTypeObject

计量单位:秒 返回项: Linux 。

Parameters:

  • OfferingType:

    付费类型,如:“All Upfront”,“Partial Upfront”,“No Upfront”

  • FixedPrice:

    预支合计费用,单位:元。

  • UsagePrice:

    后续合计费用,单位:元/小时

  • ReservedInstancesOfferingId:

    预留实例配置ID

  • Zone:

    预留实例计费可购买的可用区。

  • Duration:

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

  • ProductDescription:

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



7575
7576
7577
# File 'lib/v20170312/models.rb', line 7575

def OfferingType
  @OfferingType
end

#ProductDescriptionObject

计量单位:秒 返回项: Linux 。

Parameters:

  • OfferingType:

    付费类型,如:“All Upfront”,“Partial Upfront”,“No Upfront”

  • FixedPrice:

    预支合计费用,单位:元。

  • UsagePrice:

    后续合计费用,单位:元/小时

  • ReservedInstancesOfferingId:

    预留实例配置ID

  • Zone:

    预留实例计费可购买的可用区。

  • Duration:

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

  • ProductDescription:

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



7575
7576
7577
# File 'lib/v20170312/models.rb', line 7575

def ProductDescription
  @ProductDescription
end

#ReservedInstancesOfferingIdObject

计量单位:秒 返回项: Linux 。

Parameters:

  • OfferingType:

    付费类型,如:“All Upfront”,“Partial Upfront”,“No Upfront”

  • FixedPrice:

    预支合计费用,单位:元。

  • UsagePrice:

    后续合计费用,单位:元/小时

  • ReservedInstancesOfferingId:

    预留实例配置ID

  • Zone:

    预留实例计费可购买的可用区。

  • Duration:

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

  • ProductDescription:

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



7575
7576
7577
# File 'lib/v20170312/models.rb', line 7575

def ReservedInstancesOfferingId
  @ReservedInstancesOfferingId
end

#UsagePriceObject

计量单位:秒 返回项: Linux 。

Parameters:

  • OfferingType:

    付费类型,如:“All Upfront”,“Partial Upfront”,“No Upfront”

  • FixedPrice:

    预支合计费用,单位:元。

  • UsagePrice:

    后续合计费用,单位:元/小时

  • ReservedInstancesOfferingId:

    预留实例配置ID

  • Zone:

    预留实例计费可购买的可用区。

  • Duration:

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

  • ProductDescription:

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



7575
7576
7577
# File 'lib/v20170312/models.rb', line 7575

def UsagePrice
  @UsagePrice
end

#ZoneObject

计量单位:秒 返回项: Linux 。

Parameters:

  • OfferingType:

    付费类型,如:“All Upfront”,“Partial Upfront”,“No Upfront”

  • FixedPrice:

    预支合计费用,单位:元。

  • UsagePrice:

    后续合计费用,单位:元/小时

  • ReservedInstancesOfferingId:

    预留实例配置ID

  • Zone:

    预留实例计费可购买的可用区。

  • Duration:

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

  • ProductDescription:

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



7575
7576
7577
# File 'lib/v20170312/models.rb', line 7575

def Zone
  @Zone
end

Instance Method Details

#deserialize(params) ⇒ Object



7587
7588
7589
7590
7591
7592
7593
7594
7595
# File 'lib/v20170312/models.rb', line 7587

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