Class: TencentCloud::Organization::V20210331::DescribeOrganizationFinancialByProductResponse

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

Overview

DescribeOrganizationFinancialByProduct返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcost = nil, items = nil, total = nil, requestid = nil) ⇒ DescribeOrganizationFinancialByProductResponse

Returns a new instance of DescribeOrganizationFinancialByProductResponse.



2512
2513
2514
2515
2516
2517
# File 'lib/v20210331/models.rb', line 2512

def initialize(totalcost=nil, items=nil, total=nil, requestid=nil)
  @TotalCost = totalcost
  @Items = items
  @Total = total
  @RequestId = requestid
end

Instance Attribute Details

#ItemsObject

Parameters:

  • TotalCost:

    当月总消耗。

  • Items:

    产品消耗详情。

  • Total:

    总数目。

  • RequestId:

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



2510
2511
2512
# File 'lib/v20210331/models.rb', line 2510

def Items
  @Items
end

#RequestIdObject

Parameters:

  • TotalCost:

    当月总消耗。

  • Items:

    产品消耗详情。

  • Total:

    总数目。

  • RequestId:

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



2510
2511
2512
# File 'lib/v20210331/models.rb', line 2510

def RequestId
  @RequestId
end

#TotalObject

Parameters:

  • TotalCost:

    当月总消耗。

  • Items:

    产品消耗详情。

  • Total:

    总数目。

  • RequestId:

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



2510
2511
2512
# File 'lib/v20210331/models.rb', line 2510

def Total
  @Total
end

#TotalCostObject

Parameters:

  • TotalCost:

    当月总消耗。

  • Items:

    产品消耗详情。

  • Total:

    总数目。

  • RequestId:

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



2510
2511
2512
# File 'lib/v20210331/models.rb', line 2510

def TotalCost
  @TotalCost
end

Instance Method Details

#deserialize(params) ⇒ Object



2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
# File 'lib/v20210331/models.rb', line 2519

def deserialize(params)
  @TotalCost = params['TotalCost']
  unless params['Items'].nil?
    @Items = []
    params['Items'].each do |i|
      orgproductfinancial_tmp = OrgProductFinancial.new
      orgproductfinancial_tmp.deserialize(i)
      @Items << orgproductfinancial_tmp
    end
  end
  @Total = params['Total']
  @RequestId = params['RequestId']
end