Class: TencentCloud::Msp::V20180319::ListMigrationProjectResponse

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

Overview

ListMigrationProject返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(projects = nil, totalcount = nil, requestid = nil) ⇒ ListMigrationProjectResponse

Returns a new instance of ListMigrationProjectResponse.



154
155
156
157
158
# File 'lib/v20180319/models.rb', line 154

def initialize(projects=nil, totalcount=nil, requestid=nil)
  @Projects = projects
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#ProjectsObject

Parameters:

  • Projects:

    项目列表

  • TotalCount:

    项目总数

  • RequestId:

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



152
153
154
# File 'lib/v20180319/models.rb', line 152

def Projects
  @Projects
end

#RequestIdObject

Parameters:

  • Projects:

    项目列表

  • TotalCount:

    项目总数

  • RequestId:

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



152
153
154
# File 'lib/v20180319/models.rb', line 152

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • Projects:

    项目列表

  • TotalCount:

    项目总数

  • RequestId:

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



152
153
154
# File 'lib/v20180319/models.rb', line 152

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



160
161
162
163
164
165
166
167
168
169
170
171
# File 'lib/v20180319/models.rb', line 160

def deserialize(params)
  unless params['Projects'].nil?
    @Projects = []
    params['Projects'].each do |i|
      project_tmp = Project.new
      project_tmp.deserialize(i)
      @Projects << project_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end