Class: TencentCloud::Msp::V20180319::ListMigrationProjectResponse
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Msp::V20180319::ListMigrationProjectResponse
- Defined in:
- lib/v20180319/models.rb
Overview
ListMigrationProject返回参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(projects = nil, totalcount = nil, requestid = nil) ⇒ ListMigrationProjectResponse
constructor
A new instance of ListMigrationProjectResponse.
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
#Projects ⇒ Object
152 153 154 |
# File 'lib/v20180319/models.rb', line 152 def Projects @Projects end |
#RequestId ⇒ Object
152 153 154 |
# File 'lib/v20180319/models.rb', line 152 def RequestId @RequestId end |
#TotalCount ⇒ Object
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 |