Class: TencentCloud::Solar::V20181011::DescribeProjectStockResponse

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

Overview

DescribeProjectStock返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(projectstocks = nil, requestid = nil) ⇒ DescribeProjectStockResponse

Returns a new instance of DescribeProjectStockResponse.



748
749
750
751
# File 'lib/v20181011/models.rb', line 748

def initialize(projectstocks=nil, requestid=nil)
  @ProjectStocks = projectstocks
  @RequestId = requestid
end

Instance Attribute Details

#ProjectStocks ⇒ Object

Parameters:

  • ProjectStocks: —

    项目库存列表

  • RequestId: —

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



746
747
748
# File 'lib/v20181011/models.rb', line 746

def ProjectStocks
  @ProjectStocks
end

#RequestId ⇒ Object

Parameters:

  • ProjectStocks: —

    项目库存列表

  • RequestId: —

    唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。



746
747
748
# File 'lib/v20181011/models.rb', line 746

def RequestId
  @RequestId
end

Instance Method Details

#deserialize(params) ⇒ Object



753
754
755
756
757
758
759
760
761
762
763
# File 'lib/v20181011/models.rb', line 753

def deserialize(params)
  unless params['ProjectStocks'].nil?
    @ProjectStocks = []
    params['ProjectStocks'].each do |i|
      projectstock_tmp = ProjectStock.new
      projectstock_tmp.deserialize(i)
      @ProjectStocks << projectstock_tmp
    end
  end
  @RequestId = params['RequestId']
end