Class: TencentCloud::As::V20180419::InstanceMarketOptionsRequest

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

Overview

CVM竞价请求相关选项

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(spotoptions = nil, markettype = nil) ⇒ InstanceMarketOptionsRequest

Returns a new instance of InstanceMarketOptionsRequest.



3248
3249
3250
3251
# File 'lib/v20180419/models.rb', line 3248

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

Instance Attribute Details

#MarketTypeObject

Parameters:

  • SpotOptions:

    竞价相关选项

  • MarketType:

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



3246
3247
3248
# File 'lib/v20180419/models.rb', line 3246

def MarketType
  @MarketType
end

#SpotOptionsObject

Parameters:

  • SpotOptions:

    竞价相关选项

  • MarketType:

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



3246
3247
3248
# File 'lib/v20180419/models.rb', line 3246

def SpotOptions
  @SpotOptions
end

Instance Method Details

#deserialize(params) ⇒ Object



3253
3254
3255
3256
3257
3258
3259
# File 'lib/v20180419/models.rb', line 3253

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