Class: TencentCloud::Gpm::V20200820::DescribeRulesRequest

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

Overview

DescribeRules请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(pagenumber = nil, pagesize = nil, searchtype = nil, keyword = nil, tags = nil) ⇒ DescribeRulesRequest

Returns a new instance of DescribeRulesRequest.



658
659
660
661
662
663
664
# File 'lib/v20200820/models.rb', line 658

def initialize(pagenumber=nil, pagesize=nil, searchtype=nil, keyword=nil, tags=nil)
  @PageNumber = pagenumber
  @PageSize = pagesize
  @SearchType = searchtype
  @Keyword = keyword
  @Tags = tags
end

Instance Attribute Details

#KeywordObject

Parameters:

  • PageNumber:

    当前页号,不传则返回第一页

  • PageSize:

    单页大小,最大 30,不填默认30

  • SearchType:

    查询类型(可选):match表示通过matchCode或者matchName来搜索,rule表示通过ruleCode或者ruleName来搜索,其余类型不做过滤处理。

  • Keyword:

    查询关键词,针对SearchType进行具体过滤的内容。

  • Tags:

    标签列表,用于过滤。



656
657
658
# File 'lib/v20200820/models.rb', line 656

def Keyword
  @Keyword
end

#PageNumberObject

Parameters:

  • PageNumber:

    当前页号,不传则返回第一页

  • PageSize:

    单页大小,最大 30,不填默认30

  • SearchType:

    查询类型(可选):match表示通过matchCode或者matchName来搜索,rule表示通过ruleCode或者ruleName来搜索,其余类型不做过滤处理。

  • Keyword:

    查询关键词,针对SearchType进行具体过滤的内容。

  • Tags:

    标签列表,用于过滤。



656
657
658
# File 'lib/v20200820/models.rb', line 656

def PageNumber
  @PageNumber
end

#PageSizeObject

Parameters:

  • PageNumber:

    当前页号,不传则返回第一页

  • PageSize:

    单页大小,最大 30,不填默认30

  • SearchType:

    查询类型(可选):match表示通过matchCode或者matchName来搜索,rule表示通过ruleCode或者ruleName来搜索,其余类型不做过滤处理。

  • Keyword:

    查询关键词,针对SearchType进行具体过滤的内容。

  • Tags:

    标签列表,用于过滤。



656
657
658
# File 'lib/v20200820/models.rb', line 656

def PageSize
  @PageSize
end

#SearchTypeObject

Parameters:

  • PageNumber:

    当前页号,不传则返回第一页

  • PageSize:

    单页大小,最大 30,不填默认30

  • SearchType:

    查询类型(可选):match表示通过matchCode或者matchName来搜索,rule表示通过ruleCode或者ruleName来搜索,其余类型不做过滤处理。

  • Keyword:

    查询关键词,针对SearchType进行具体过滤的内容。

  • Tags:

    标签列表,用于过滤。



656
657
658
# File 'lib/v20200820/models.rb', line 656

def SearchType
  @SearchType
end

#TagsObject

Parameters:

  • PageNumber:

    当前页号,不传则返回第一页

  • PageSize:

    单页大小,最大 30,不填默认30

  • SearchType:

    查询类型(可选):match表示通过matchCode或者matchName来搜索,rule表示通过ruleCode或者ruleName来搜索,其余类型不做过滤处理。

  • Keyword:

    查询关键词,针对SearchType进行具体过滤的内容。

  • Tags:

    标签列表,用于过滤。



656
657
658
# File 'lib/v20200820/models.rb', line 656

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



666
667
668
669
670
671
672
673
674
675
676
677
678
679
# File 'lib/v20200820/models.rb', line 666

def deserialize(params)
  @PageNumber = params['PageNumber']
  @PageSize = params['PageSize']
  @SearchType = params['SearchType']
  @Keyword = params['Keyword']
  unless params['Tags'].nil?
    @Tags = []
    params['Tags'].each do |i|
      tag_tmp = Tag.new
      tag_tmp.deserialize(i)
      @Tags << tag_tmp
    end
  end
end