Class: TencentCloud::Waf::V20180125::ApiNameOp

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

Overview

带有匹配方式的apiname列表

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value = nil, op = nil, apinamemethod = nil) ⇒ ApiNameOp

Returns a new instance of ApiNameOp.



1324
1325
1326
1327
1328
# File 'lib/v20180125/models.rb', line 1324

def initialize(value=nil, op=nil, apinamemethod=nil)
  @Value = value
  @Op = op
  @ApiNameMethod = apinamemethod
end

Instance Attribute Details

#ApiNameMethodObject

Parameters:

  • Value:

    匹配值列表

  • Op:

    匹配方式,如属于和正则等

  • ApiNameMethod:

    手动筛选的时候,要传该结构体



1322
1323
1324
# File 'lib/v20180125/models.rb', line 1322

def ApiNameMethod
  @ApiNameMethod
end

#OpObject

Parameters:

  • Value:

    匹配值列表

  • Op:

    匹配方式,如属于和正则等

  • ApiNameMethod:

    手动筛选的时候,要传该结构体



1322
1323
1324
# File 'lib/v20180125/models.rb', line 1322

def Op
  @Op
end

#ValueObject

Parameters:

  • Value:

    匹配值列表

  • Op:

    匹配方式,如属于和正则等

  • ApiNameMethod:

    手动筛选的时候,要传该结构体



1322
1323
1324
# File 'lib/v20180125/models.rb', line 1322

def Value
  @Value
end

Instance Method Details

#deserialize(params) ⇒ Object



1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
# File 'lib/v20180125/models.rb', line 1330

def deserialize(params)
  @Value = params['Value']
  @Op = params['Op']
  unless params['ApiNameMethod'].nil?
    @ApiNameMethod = []
    params['ApiNameMethod'].each do |i|
      apinamemethod_tmp = ApiNameMethod.new
      apinamemethod_tmp.deserialize(i)
      @ApiNameMethod << apinamemethod_tmp
    end
  end
end