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.



7175
7176
7177
7178
# File 'lib/v20170312/models.rb', line 7175

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

Instance Attribute Details

#BandwidthPrice ⇒ Object

Parameters:

  • InstancePrice: —

    描述了实例价格。

  • BandwidthPrice: —

    描述了网络价格。



7173
7174
7175
# File 'lib/v20170312/models.rb', line 7173

def BandwidthPrice
  @BandwidthPrice
end

#InstancePrice ⇒ Object

Parameters:

  • InstancePrice: —

    描述了实例价格。

  • BandwidthPrice: —

    描述了网络价格。



7173
7174
7175
# File 'lib/v20170312/models.rb', line 7173

def InstancePrice
  @InstancePrice
end

Instance Method Details

#deserialize(params) ⇒ Object



7180
7181
7182
7183
7184
7185
7186
7187
7188
7189
# File 'lib/v20170312/models.rb', line 7180

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