Class: TencentCloud::Vod::V20240718::DescribeStorageResponse

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

Overview

DescribeStorage返回参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(totalcount = nil, storageinfoset = nil, requestid = nil) ⇒ DescribeStorageResponse

Returns a new instance of DescribeStorageResponse.



373
374
375
376
377
# File 'lib/v20240718/models.rb', line 373

def initialize(totalcount=nil, storageinfoset=nil, requestid=nil)
  @TotalCount = totalcount
  @StorageInfoSet = storageinfoset
  @RequestId = requestid
end

Instance Attribute Details

#RequestIdObject

Parameters:

  • TotalCount:

    符合条件的存储数量。

  • StorageInfoSet:

    符合条件的存储信息列表。

  • RequestId:

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



371
372
373
# File 'lib/v20240718/models.rb', line 371

def RequestId
  @RequestId
end

#StorageInfoSetObject

Parameters:

  • TotalCount:

    符合条件的存储数量。

  • StorageInfoSet:

    符合条件的存储信息列表。

  • RequestId:

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



371
372
373
# File 'lib/v20240718/models.rb', line 371

def StorageInfoSet
  @StorageInfoSet
end

#TotalCountObject

Parameters:

  • TotalCount:

    符合条件的存储数量。

  • StorageInfoSet:

    符合条件的存储信息列表。

  • RequestId:

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



371
372
373
# File 'lib/v20240718/models.rb', line 371

def TotalCount
  @TotalCount
end

Instance Method Details

#deserialize(params) ⇒ Object



379
380
381
382
383
384
385
386
387
388
389
390
# File 'lib/v20240718/models.rb', line 379

def deserialize(params)
  @TotalCount = params['TotalCount']
  unless params['StorageInfoSet'].nil?
    @StorageInfoSet = []
    params['StorageInfoSet'].each do |i|
      storageinfo_tmp = StorageInfo.new
      storageinfo_tmp.deserialize(i)
      @StorageInfoSet << storageinfo_tmp
    end
  end
  @RequestId = params['RequestId']
end