Class: TencentCloud::Solar::V20181011::DescribeProjectsResponse

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

Overview

DescribeProjects返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(projectlist = nil, totalcount = nil, requestid = nil) ⇒ DescribeProjectsResponse

Returns a new instance of DescribeProjectsResponse.



812
813
814
815
816
# File 'lib/v20181011/models.rb', line 812

def initialize(projectlist=nil, totalcount=nil, requestid=nil)
  @ProjectList = projectlist
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#ProjectList ⇒ Object

Parameters:

  • ProjectList: —

    项目列表

  • TotalCount: —

    项目数

  • RequestId: —

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



810
811
812
# File 'lib/v20181011/models.rb', line 810

def ProjectList
  @ProjectList
end

#RequestId ⇒ Object

Parameters:

  • ProjectList: —

    项目列表

  • TotalCount: —

    项目数

  • RequestId: —

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



810
811
812
# File 'lib/v20181011/models.rb', line 810

def RequestId
  @RequestId
end

#TotalCount ⇒ Object

Parameters:

  • ProjectList: —

    项目列表

  • TotalCount: —

    项目数

  • RequestId: —

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



810
811
812
# File 'lib/v20181011/models.rb', line 810

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



818
819
820
821
822
823
824
825
826
827
828
829
# File 'lib/v20181011/models.rb', line 818

def deserialize(params)
  unless params['ProjectList'].nil?
    @ProjectList = []
    params['ProjectList'].each do |i|
      projectinfo_tmp = ProjectInfo.new
      projectinfo_tmp.deserialize(i)
      @ProjectList << projectinfo_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end