Class: TencentCloud::Scf::V20180416::Filter

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

Overview

描述键值对过滤器,用于条件过滤查询。例如过滤ID、名称、状态等 若存在多个Filter时,Filter间的关系为逻辑与(AND)关系。 若同一个Filter存在多个Values,同一Filter下Values间的关系为逻辑或(OR)关系。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, values = nil) ⇒ Filter

Returns a new instance of Filter.



1418
1419
1420
1421
# File 'lib/v20180416/models.rb', line 1418

def initialize(name=nil, values=nil)
  @Name = name
  @Values = values
end

Instance Attribute Details

#Name ⇒ Object

Name可选值:VpcId, SubnetId, ClsTopicId, ClsLogsetId, Role, CfsId, CfsMountInsId, Eip;Values 长度限制为1。 Name可选值:Status, Runtime, FunctionType, PublicNetStatus, AsyncRunEnable, TraceEnable;Values 长度限制为20。 当 Name = Runtime 时,CustomImage 表示过滤镜像类型函数。

Parameters:

  • Name: —

    需要过滤的字段。过滤条件数量限制为10。

  • Values: —

    字段的过滤值。



1416
1417
1418
# File 'lib/v20180416/models.rb', line 1416

def Name
  @Name
end

#Values ⇒ Object

Name可选值:VpcId, SubnetId, ClsTopicId, ClsLogsetId, Role, CfsId, CfsMountInsId, Eip;Values 长度限制为1。 Name可选值:Status, Runtime, FunctionType, PublicNetStatus, AsyncRunEnable, TraceEnable;Values 长度限制为20。 当 Name = Runtime 时,CustomImage 表示过滤镜像类型函数。

Parameters:

  • Name: —

    需要过滤的字段。过滤条件数量限制为10。

  • Values: —

    字段的过滤值。



1416
1417
1418
# File 'lib/v20180416/models.rb', line 1416

def Values
  @Values
end

Instance Method Details

#deserialize(params) ⇒ Object



1423
1424
1425
1426
# File 'lib/v20180416/models.rb', line 1423

def deserialize(params)
  @Name = params['Name']
  @Values = params['Values']
end