Class: TencentCloud::Smh::V20210712::DescribeLibrariesResponse

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

Overview

DescribeLibraries返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(list = nil, totalcount = nil, requestid = nil) ⇒ DescribeLibrariesResponse

Returns a new instance of DescribeLibrariesResponse.



387
388
389
390
391
# File 'lib/v20210712/models.rb', line 387

def initialize(list=nil, totalcount=nil, requestid=nil)
  @List = list
  @TotalCount = totalcount
  @RequestId = requestid
end

Instance Attribute Details

#ListObject

Parameters:

  • List:

    媒体库列表

  • TotalCount:

    总数

  • RequestId:

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



385
386
387
# File 'lib/v20210712/models.rb', line 385

def List
  @List
end

#RequestIdObject

Parameters:

  • List:

    媒体库列表

  • TotalCount:

    总数

  • RequestId:

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



385
386
387
# File 'lib/v20210712/models.rb', line 385

def RequestId
  @RequestId
end

#TotalCountObject

Parameters:

  • List:

    媒体库列表

  • TotalCount:

    总数

  • RequestId:

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



385
386
387
# File 'lib/v20210712/models.rb', line 385

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



393
394
395
396
397
398
399
400
401
402
403
404
# File 'lib/v20210712/models.rb', line 393

def deserialize(params)
  unless params['List'].nil?
    @List = []
    params['List'].each do |i|
      library_tmp = Library.new
      library_tmp.deserialize(i)
      @List << library_tmp
    end
  end
  @TotalCount = params['TotalCount']
  @RequestId = params['RequestId']
end