Class: TencentCloud::Cvm::V20170312::Price

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(instanceprice = nil, bandwidthprice = nil) ⇒ Price

Returns a new instance of Price.



6914
6915
6916
6917
# File 'lib/v20170312/models.rb', line 6914

def initialize(instanceprice=nil, bandwidthprice=nil)
  @InstancePrice = instanceprice
  @BandwidthPrice = bandwidthprice
end

Instance Attribute Details

#BandwidthPriceObject

Parameters:

  • InstancePrice:

    描述了实例价格。

  • BandwidthPrice:

    描述了网络价格。



6912
6913
6914
# File 'lib/v20170312/models.rb', line 6912

def BandwidthPrice
  @BandwidthPrice
end

#InstancePriceObject

Parameters:

  • InstancePrice:

    描述了实例价格。

  • BandwidthPrice:

    描述了网络价格。



6912
6913
6914
# File 'lib/v20170312/models.rb', line 6912

def InstancePrice
  @InstancePrice
end

Instance Method Details

#deserialize(params) ⇒ Object



6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
# File 'lib/v20170312/models.rb', line 6919

def deserialize(params)
  unless params['InstancePrice'].nil?
    @InstancePrice = ItemPrice.new
    @InstancePrice.deserialize(params['InstancePrice'])
  end
  unless params['BandwidthPrice'].nil?
    @BandwidthPrice = ItemPrice.new
    @BandwidthPrice.deserialize(params['BandwidthPrice'])
  end
end