Class: TencentCloud::Waf::V20180125::CreateDealsGoods

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

Overview

计费下单接口出入参Goods

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(goodsnum = nil, goodsdetail = nil, goodscategoryid = nil, regionid = nil) ⇒ CreateDealsGoods

Returns a new instance of CreateDealsGoods.



1874
1875
1876
1877
1878
1879
# File 'lib/v20180125/models.rb', line 1874

def initialize(goodsnum=nil, goodsdetail=nil, goodscategoryid=nil, regionid=nil)
  @GoodsNum = goodsnum
  @GoodsDetail = goodsdetail
  @GoodsCategoryId = goodscategoryid
  @RegionId = regionid
end

Instance Attribute Details

#GoodsCategoryIdObject

注意:此字段可能返回 null,表示取不到有效值。 1 表示购买大陆资源; 9表示购买非中国大陆资源 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RegionId:

    购买waf实例区域ID



1872
1873
1874
# File 'lib/v20180125/models.rb', line 1872

def GoodsCategoryId
  @GoodsCategoryId
end

#GoodsDetailObject

注意:此字段可能返回 null,表示取不到有效值。 1 表示购买大陆资源; 9表示购买非中国大陆资源 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RegionId:

    购买waf实例区域ID



1872
1873
1874
# File 'lib/v20180125/models.rb', line 1872

def GoodsDetail
  @GoodsDetail
end

#GoodsNumObject

注意:此字段可能返回 null,表示取不到有效值。 1 表示购买大陆资源; 9表示购买非中国大陆资源 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RegionId:

    购买waf实例区域ID



1872
1873
1874
# File 'lib/v20180125/models.rb', line 1872

def GoodsNum
  @GoodsNum
end

#RegionIdObject

注意:此字段可能返回 null,表示取不到有效值。 1 表示购买大陆资源; 9表示购买非中国大陆资源 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RegionId:

    购买waf实例区域ID



1872
1873
1874
# File 'lib/v20180125/models.rb', line 1872

def RegionId
  @RegionId
end

Instance Method Details

#deserialize(params) ⇒ Object



1881
1882
1883
1884
1885
1886
1887
1888
1889
# File 'lib/v20180125/models.rb', line 1881

def deserialize(params)
  @GoodsNum = params['GoodsNum']
  unless params['GoodsDetail'].nil?
    @GoodsDetail = CreateDealsGoodsDetail.new
    @GoodsDetail.deserialize(params['GoodsDetail'])
  end
  @GoodsCategoryId = params['GoodsCategoryId']
  @RegionId = params['RegionId']
end