Class: TencentCloud::Tcr::V20190924::FilterSelector

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

Overview

过滤选择器

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(decoration = nil, pattern = nil) ⇒ FilterSelector

Returns a new instance of FilterSelector.



4796
4797
4798
4799
# File 'lib/v20190924/models.rb', line 4796

def initialize(decoration=nil, pattern=nil)
  @Decoration = decoration
  @Pattern = pattern
end

Instance Attribute Details

#Decoration ⇒ Object

Parameters:

  • Decoration: (p) —

    过滤规则类型,在tag过滤中,可选值为matches(匹配),excludes(排除),在仓库过滤中,可选值为repoMatches(仓库匹配),repoExcludes(仓库排除)

  • Pattern: (p) —

    过滤表达式



4794
4795
4796
# File 'lib/v20190924/models.rb', line 4794

def Decoration
  @Decoration
end

#Pattern ⇒ Object

Parameters:

  • Decoration: (p) —

    过滤规则类型,在tag过滤中,可选值为matches(匹配),excludes(排除),在仓库过滤中,可选值为repoMatches(仓库匹配),repoExcludes(仓库排除)

  • Pattern: (p) —

    过滤表达式



4794
4795
4796
# File 'lib/v20190924/models.rb', line 4794

def Pattern
  @Pattern
end

Instance Method Details

#deserialize(params) ⇒ Object



4801
4802
4803
4804
# File 'lib/v20190924/models.rb', line 4801

def deserialize(params)
  @Decoration = params['Decoration']
  @Pattern = params['Pattern']
end