Class: TencentCloud::Cbs::V20170312::DescribeSnapshotGroupsRequest

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

Overview

DescribeSnapshotGroups请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filters = nil, offset = nil, limit = nil) ⇒ DescribeSnapshotGroupsRequest

Returns a new instance of DescribeSnapshotGroupsRequest.



1541
1542
1543
1544
1545
# File 'lib/v20170312/models.rb', line 1541

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

Instance Attribute Details

#FiltersObject

Parameters:

  • Filters:

    过滤条件。
    <li>snapshot-group-id - Array of String - 是否必填:否 -(过滤条件)按快照组ID过滤
    <li>snapshot-group-state - Array of String - 是否必填:否 -(过滤条件)按快照组状态过滤。(NORMAL: 正常 | CREATING:创建中 | ROLLBACKING:回滚中)
    <li>snapshot-group-name - Array of String - 是否必填:否 -(过滤条件)按快照组名称过滤
    <li>snapshot-id - Array of String - 是否必填:否 -(过滤条件)按快照组内的快照ID过滤

  • Offset:

    偏移量,默认为0。

  • Limit:

    返回数量,默认为20,最大值为100。



1539
1540
1541
# File 'lib/v20170312/models.rb', line 1539

def Filters
  @Filters
end

#LimitObject

Parameters:

  • Filters:

    过滤条件。
    <li>snapshot-group-id - Array of String - 是否必填:否 -(过滤条件)按快照组ID过滤
    <li>snapshot-group-state - Array of String - 是否必填:否 -(过滤条件)按快照组状态过滤。(NORMAL: 正常 | CREATING:创建中 | ROLLBACKING:回滚中)
    <li>snapshot-group-name - Array of String - 是否必填:否 -(过滤条件)按快照组名称过滤
    <li>snapshot-id - Array of String - 是否必填:否 -(过滤条件)按快照组内的快照ID过滤

  • Offset:

    偏移量,默认为0。

  • Limit:

    返回数量,默认为20,最大值为100。



1539
1540
1541
# File 'lib/v20170312/models.rb', line 1539

def Limit
  @Limit
end

#OffsetObject

Parameters:

  • Filters:

    过滤条件。
    <li>snapshot-group-id - Array of String - 是否必填:否 -(过滤条件)按快照组ID过滤
    <li>snapshot-group-state - Array of String - 是否必填:否 -(过滤条件)按快照组状态过滤。(NORMAL: 正常 | CREATING:创建中 | ROLLBACKING:回滚中)
    <li>snapshot-group-name - Array of String - 是否必填:否 -(过滤条件)按快照组名称过滤
    <li>snapshot-id - Array of String - 是否必填:否 -(过滤条件)按快照组内的快照ID过滤

  • Offset:

    偏移量,默认为0。

  • Limit:

    返回数量,默认为20,最大值为100。



1539
1540
1541
# File 'lib/v20170312/models.rb', line 1539

def Offset
  @Offset
end

Instance Method Details

#deserialize(params) ⇒ Object



1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
# File 'lib/v20170312/models.rb', line 1547

def deserialize(params)
  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']
  @Limit = params['Limit']
end