Class: TencentCloud::Thpc::V20220401::Filter
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Thpc::V20220401::Filter
- Defined in:
- lib/v20220401/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.
1354 1355 1356 1357 |
# File 'lib/v20220401/models.rb', line 1354 def initialize(name=nil, values=nil) @Name = name @Values = values end |
Instance Attribute Details
#Name ⇒ Object
1352 1353 1354 |
# File 'lib/v20220401/models.rb', line 1352 def Name @Name end |
#Values ⇒ Object
1352 1353 1354 |
# File 'lib/v20220401/models.rb', line 1352 def Values @Values end |
Instance Method Details
#deserialize(params) ⇒ Object
1359 1360 1361 1362 |
# File 'lib/v20220401/models.rb', line 1359 def deserialize(params) @Name = params['Name'] @Values = params['Values'] end |