Class: TencentCloud::Gpm::V20200820::DescribeMatchesRequest

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

Overview

DescribeMatches请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of DescribeMatchesRequest.



475
476
477
478
479
480
481
# File 'lib/v20200820/models.rb', line 475

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:

    单页大小,不传则获取所有有权限的资源。

  • SearchType:

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

  • Keyword:

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

  • Tags:

    标签列表,用于过滤。



473
474
475
# File 'lib/v20200820/models.rb', line 473

def Keyword
  @Keyword
end

#PageNumberObject

Parameters:

  • PageNumber:

    当前页号,不传则获取所有有权限的资源。

  • PageSize:

    单页大小,不传则获取所有有权限的资源。

  • SearchType:

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

  • Keyword:

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

  • Tags:

    标签列表,用于过滤。



473
474
475
# File 'lib/v20200820/models.rb', line 473

def PageNumber
  @PageNumber
end

#PageSizeObject

Parameters:

  • PageNumber:

    当前页号,不传则获取所有有权限的资源。

  • PageSize:

    单页大小,不传则获取所有有权限的资源。

  • SearchType:

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

  • Keyword:

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

  • Tags:

    标签列表,用于过滤。



473
474
475
# File 'lib/v20200820/models.rb', line 473

def PageSize
  @PageSize
end

#SearchTypeObject

Parameters:

  • PageNumber:

    当前页号,不传则获取所有有权限的资源。

  • PageSize:

    单页大小,不传则获取所有有权限的资源。

  • SearchType:

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

  • Keyword:

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

  • Tags:

    标签列表,用于过滤。



473
474
475
# File 'lib/v20200820/models.rb', line 473

def SearchType
  @SearchType
end

#TagsObject

Parameters:

  • PageNumber:

    当前页号,不传则获取所有有权限的资源。

  • PageSize:

    单页大小,不传则获取所有有权限的资源。

  • SearchType:

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

  • Keyword:

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

  • Tags:

    标签列表,用于过滤。



473
474
475
# File 'lib/v20200820/models.rb', line 473

def Tags
  @Tags
end

Instance Method Details

#deserialize(params) ⇒ Object



483
484
485
486
487
488
489
490
491
492
493
494
495
496
# File 'lib/v20200820/models.rb', line 483

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