Class: TencentCloud::Thpc::V20230321::Filter
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Thpc::V20230321::Filter
- Defined in:
- lib/v20230321/models.rb
Overview
>描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等 > * 若存在多个‘Filter`时,`Filter`间的关系为逻辑与(`AND`)关系。 > * 若同一个`Filter`存在多个`Values`,同一`Filter`下`Values`间的关系为逻辑或(`OR`)关系。
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, values = nil) ⇒ Filter
constructor
A new instance of Filter.
Constructor Details
#initialize(name = nil, values = nil) ⇒ Filter
Returns a new instance of Filter.
1749 1750 1751 1752 |
# File 'lib/v20230321/models.rb', line 1749 def initialize(name=nil, values=nil) @Name = name @Values = values end |
Instance Attribute Details
#Name ⇒ Object
1747 1748 1749 |
# File 'lib/v20230321/models.rb', line 1747 def Name @Name end |
#Values ⇒ Object
1747 1748 1749 |
# File 'lib/v20230321/models.rb', line 1747 def Values @Values end |
Instance Method Details
#deserialize(params) ⇒ Object
1754 1755 1756 1757 |
# File 'lib/v20230321/models.rb', line 1754 def deserialize(params) @Name = params['Name'] @Values = params['Values'] end |