Class: TencentCloud::Cbs::V20170312::DescribeDiskStoragePoolRequest

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

Overview

DescribeDiskStoragePool请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(limit = nil, cdcids = nil, filters = nil, offset = nil) ⇒ DescribeDiskStoragePoolRequest

Returns a new instance of DescribeDiskStoragePoolRequest.



1345
1346
1347
1348
1349
1350
# File 'lib/v20170312/models.rb', line 1345

def initialize(limit=nil, cdcids=nil, filters=nil, offset=nil)
  @Limit = limit
  @CdcIds = cdcids
  @Filters = filters
  @Offset = offset
end

Instance Attribute Details

#CdcIdsObject

Parameters:

  • Limit:

    返回数量,默认为20,最大值为100。关于‘Limit`的更进一步介绍请参考 API [简介](/document/product/362/15633)中的相关小节。

  • CdcIds:

    指定需要查询的独享集群ID列表,该入参不能与Filters一起使用。

  • Filters:

    过滤条件。参数不支持同时指定‘CdcIds`和`Filters`。
    <li>cdc-id - Array of String - 是否必填:否 -(过滤条件)按独享集群ID过滤。
    <li>zone - Array of String - 是否必填:否 -(过滤条件)按独享集群所在(/document/product/213/15753#ZoneInfo)过滤。
    <li>cage-id - Array of String - 是否必填:否 -(过滤条件)按独享集群所在围笼的ID过滤。
    <li>disk-type - Array of String - 是否必填:否 -(过滤条件)按照云盘介质类型过滤。(CLOUD_BASIC:表示普通云硬盘 | CLOUD_PREMIUM:表示高性能云硬盘。| CLOUD_SSD:SSD表示SSD云硬盘。)

  • Offset:

    偏移量,默认为0。关于‘Offset`的更进一步介绍请参考API(/document/product/362/15633)中的相关小节。



1343
1344
1345
# File 'lib/v20170312/models.rb', line 1343

def CdcIds
  @CdcIds
end

#FiltersObject

Parameters:

  • Limit:

    返回数量,默认为20,最大值为100。关于‘Limit`的更进一步介绍请参考 API [简介](/document/product/362/15633)中的相关小节。

  • CdcIds:

    指定需要查询的独享集群ID列表,该入参不能与Filters一起使用。

  • Filters:

    过滤条件。参数不支持同时指定‘CdcIds`和`Filters`。
    <li>cdc-id - Array of String - 是否必填:否 -(过滤条件)按独享集群ID过滤。
    <li>zone - Array of String - 是否必填:否 -(过滤条件)按独享集群所在(/document/product/213/15753#ZoneInfo)过滤。
    <li>cage-id - Array of String - 是否必填:否 -(过滤条件)按独享集群所在围笼的ID过滤。
    <li>disk-type - Array of String - 是否必填:否 -(过滤条件)按照云盘介质类型过滤。(CLOUD_BASIC:表示普通云硬盘 | CLOUD_PREMIUM:表示高性能云硬盘。| CLOUD_SSD:SSD表示SSD云硬盘。)

  • Offset:

    偏移量,默认为0。关于‘Offset`的更进一步介绍请参考API(/document/product/362/15633)中的相关小节。



1343
1344
1345
# File 'lib/v20170312/models.rb', line 1343

def Filters
  @Filters
end

#LimitObject

Parameters:

  • Limit:

    返回数量,默认为20,最大值为100。关于‘Limit`的更进一步介绍请参考 API [简介](/document/product/362/15633)中的相关小节。

  • CdcIds:

    指定需要查询的独享集群ID列表,该入参不能与Filters一起使用。

  • Filters:

    过滤条件。参数不支持同时指定‘CdcIds`和`Filters`。
    <li>cdc-id - Array of String - 是否必填:否 -(过滤条件)按独享集群ID过滤。
    <li>zone - Array of String - 是否必填:否 -(过滤条件)按独享集群所在(/document/product/213/15753#ZoneInfo)过滤。
    <li>cage-id - Array of String - 是否必填:否 -(过滤条件)按独享集群所在围笼的ID过滤。
    <li>disk-type - Array of String - 是否必填:否 -(过滤条件)按照云盘介质类型过滤。(CLOUD_BASIC:表示普通云硬盘 | CLOUD_PREMIUM:表示高性能云硬盘。| CLOUD_SSD:SSD表示SSD云硬盘。)

  • Offset:

    偏移量,默认为0。关于‘Offset`的更进一步介绍请参考API(/document/product/362/15633)中的相关小节。



1343
1344
1345
# File 'lib/v20170312/models.rb', line 1343

def Limit
  @Limit
end

#OffsetObject

Parameters:

  • Limit:

    返回数量,默认为20,最大值为100。关于‘Limit`的更进一步介绍请参考 API [简介](/document/product/362/15633)中的相关小节。

  • CdcIds:

    指定需要查询的独享集群ID列表,该入参不能与Filters一起使用。

  • Filters:

    过滤条件。参数不支持同时指定‘CdcIds`和`Filters`。
    <li>cdc-id - Array of String - 是否必填:否 -(过滤条件)按独享集群ID过滤。
    <li>zone - Array of String - 是否必填:否 -(过滤条件)按独享集群所在(/document/product/213/15753#ZoneInfo)过滤。
    <li>cage-id - Array of String - 是否必填:否 -(过滤条件)按独享集群所在围笼的ID过滤。
    <li>disk-type - Array of String - 是否必填:否 -(过滤条件)按照云盘介质类型过滤。(CLOUD_BASIC:表示普通云硬盘 | CLOUD_PREMIUM:表示高性能云硬盘。| CLOUD_SSD:SSD表示SSD云硬盘。)

  • Offset:

    偏移量,默认为0。关于‘Offset`的更进一步介绍请参考API(/document/product/362/15633)中的相关小节。



1343
1344
1345
# File 'lib/v20170312/models.rb', line 1343

def Offset
  @Offset
end

Instance Method Details

#deserialize(params) ⇒ Object



1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
# File 'lib/v20170312/models.rb', line 1352

def deserialize(params)
  @Limit = params['Limit']
  @CdcIds = params['CdcIds']
  unless params['Filters'].nil?
    @Filters = []
    params['Filters'].each do |i|
      filter_tmp = Filter.new
      filter_tmp.deserialize(i)
      @Filters << filter_tmp
    end
  end
  @Offset = params['Offset']
end