Class: TencentCloud::Cvm::V20170312::InstanceMarketOptionsRequest

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(spotoptions = nil, markettype = nil) ⇒ InstanceMarketOptionsRequest

Returns a new instance of InstanceMarketOptionsRequest.



5298
5299
5300
5301
# File 'lib/v20170312/models.rb', line 5298

def initialize(spotoptions=nil, markettype=nil)
  @SpotOptions = spotoptions
  @MarketType = markettype
end

Instance Attribute Details

#MarketTypeObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SpotOptions:

    竞价相关选项

  • MarketType:

    市场选项类型,当前只支持取值:spot



5296
5297
5298
# File 'lib/v20170312/models.rb', line 5296

def MarketType
  @MarketType
end

#SpotOptionsObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • SpotOptions:

    竞价相关选项

  • MarketType:

    市场选项类型,当前只支持取值:spot



5296
5297
5298
# File 'lib/v20170312/models.rb', line 5296

def SpotOptions
  @SpotOptions
end

Instance Method Details

#deserialize(params) ⇒ Object



5303
5304
5305
5306
5307
5308
5309
# File 'lib/v20170312/models.rb', line 5303

def deserialize(params)
  unless params['SpotOptions'].nil?
    @SpotOptions = SpotMarketOptions.new
    @SpotOptions.deserialize(params['SpotOptions'])
  end
  @MarketType = params['MarketType']
end