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.



1586
1587
1588
1589
1590
# File 'lib/v20170312/models.rb', line 1586

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

Instance Attribute Details

#FiltersObject

Parameters:

  • Filters:

    过滤条件。

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

  • Offset:

    偏移量,默认为0。

  • Limit:

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

  • 
    
    1584
    1585
    1586
    # File 'lib/v20170312/models.rb', line 1584
    
    def Filters
      @Filters
    end
    

    #LimitObject

    Parameters:

    • Filters:

      过滤条件。

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

  • Offset:

    偏移量,默认为0。

  • Limit:

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

  • 
    
    1584
    1585
    1586
    # File 'lib/v20170312/models.rb', line 1584
    
    def Limit
      @Limit
    end
    

    #OffsetObject

    Parameters:

    • Filters:

      过滤条件。

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

  • Offset:

    偏移量,默认为0。

  • Limit:

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

  • 
    
    1584
    1585
    1586
    # File 'lib/v20170312/models.rb', line 1584
    
    def Offset
      @Offset
    end
    

    Instance Method Details

    #deserialize(params) ⇒ Object

    
    
    1592
    1593
    1594
    1595
    1596
    1597
    1598
    1599
    1600
    1601
    1602
    1603
    # File 'lib/v20170312/models.rb', line 1592
    
    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