Class: TencentCloud::Billing::V20180709::DescribeDealsByCondResponse

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

Overview

DescribeDealsByCond返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(deals = nil, totalcount = nil, requestid = nil) ⇒ DescribeDealsByCondResponse

Returns a new instance of DescribeDealsByCondResponse.



8989
8990
8991
8992
8993
# File 'lib/v20180709/models.rb', line 8989

def initialize(deals=nil, totalcount=nil, requestid=nil)
  @Deals = deals
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#DealsObject

Parameters:

  • Deals:

    订单列表

  • TotalCount:

    订单总数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8987
8988
8989
# File 'lib/v20180709/models.rb', line 8987

def Deals
  @Deals
end

#RequestIdObject

Parameters:

  • Deals:

    订单列表

  • TotalCount:

    订单总数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8987
8988
8989
# File 'lib/v20180709/models.rb', line 8987

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • Deals:

    订单列表

  • TotalCount:

    订单总数

  • RequestId:

    唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。



8987
8988
8989
# File 'lib/v20180709/models.rb', line 8987

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



8995
8996
8997
8998
8999
9000
9001
9002
9003
9004
9005
9006
# File 'lib/v20180709/models.rb', line 8995

def deserialize(params)
  unless params['Deals'].nil?
    @Deals = []
    params['Deals'].each do |i|
      deal_tmp = Deal.new
      deal_tmp.deserialize(i)
      @Deals << deal_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end