Class: TencentCloud::Iotcloud::V20210408::DescribeProductTasksResponse

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

Overview

DescribeProductTasks返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, taskinfos = nil, requestid = nil) ⇒ DescribeProductTasksResponse

Returns a new instance of DescribeProductTasksResponse.



2315
2316
2317
2318
2319
# File 'lib/v20210408/models.rb', line 2315

def initialize(totalcount=nil, taskinfos=nil, requestid=nil)
  @TotalCount = totalcount
  @TaskInfos = taskinfos
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    符合条件的任务总个数

  • TaskInfos:

    任务详细信息列表

  • RequestId:

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



2313
2314
2315
# File 'lib/v20210408/models.rb', line 2313

def RequestId
  @RequestId
end

#TaskInfosObject

Parameters:

  • TotalCount:

    符合条件的任务总个数

  • TaskInfos:

    任务详细信息列表

  • RequestId:

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



2313
2314
2315
# File 'lib/v20210408/models.rb', line 2313

def TaskInfos
  @TaskInfos
end

#TotalCountObject

Parameters:

  • TotalCount:

    符合条件的任务总个数

  • TaskInfos:

    任务详细信息列表

  • RequestId:

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



2313
2314
2315
# File 'lib/v20210408/models.rb', line 2313

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
# File 'lib/v20210408/models.rb', line 2321

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['TaskInfos'].nil?
    @TaskInfos = []
    params['TaskInfos'].each do |i|
      producttaskinfo_tmp = ProductTaskInfo.new
      producttaskinfo_tmp.deserialize(i)
      @TaskInfos << producttaskinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end