Class: TencentCloud::Waf::V20180125::ApiSecExtractRule

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

Overview

api提取规则内容

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rulename = nil, apiname = nil, methods = nil, status = nil, regex = nil, updatetime = nil) ⇒ ApiSecExtractRule

Returns a new instance of ApiSecExtractRule.



1570
1571
1572
1573
1574
1575
1576
1577
# File 'lib/v20180125/models.rb', line 1570

def initialize(rulename=nil, apiname=nil, methods=nil, status=nil, regex=nil, updatetime=nil)
  @RuleName = rulename
  @ApiName = apiname
  @Methods = methods
  @Status = status
  @Regex = regex
  @UpdateTime = updatetime
end

Instance Attribute Details

#ApiNameObject

Parameters:

  • RuleName:

    规则名称

  • ApiName:

    api名称

  • Methods:

    请求方法列表

  • Status:

    开关状态,0是关,1是开

  • Regex:

    正则匹配内容

  • UpdateTime:

    10更新时间戳



1568
1569
1570
# File 'lib/v20180125/models.rb', line 1568

def ApiName
  @ApiName
end

#MethodsObject

Parameters:

  • RuleName:

    规则名称

  • ApiName:

    api名称

  • Methods:

    请求方法列表

  • Status:

    开关状态,0是关,1是开

  • Regex:

    正则匹配内容

  • UpdateTime:

    10更新时间戳



1568
1569
1570
# File 'lib/v20180125/models.rb', line 1568

def Methods
  @Methods
end

#RegexObject

Parameters:

  • RuleName:

    规则名称

  • ApiName:

    api名称

  • Methods:

    请求方法列表

  • Status:

    开关状态,0是关,1是开

  • Regex:

    正则匹配内容

  • UpdateTime:

    10更新时间戳



1568
1569
1570
# File 'lib/v20180125/models.rb', line 1568

def Regex
  @Regex
end

#RuleNameObject

Parameters:

  • RuleName:

    规则名称

  • ApiName:

    api名称

  • Methods:

    请求方法列表

  • Status:

    开关状态,0是关,1是开

  • Regex:

    正则匹配内容

  • UpdateTime:

    10更新时间戳



1568
1569
1570
# File 'lib/v20180125/models.rb', line 1568

def RuleName
  @RuleName
end

#StatusObject

Parameters:

  • RuleName:

    规则名称

  • ApiName:

    api名称

  • Methods:

    请求方法列表

  • Status:

    开关状态,0是关,1是开

  • Regex:

    正则匹配内容

  • UpdateTime:

    10更新时间戳



1568
1569
1570
# File 'lib/v20180125/models.rb', line 1568

def Status
  @Status
end

#UpdateTimeObject

Parameters:

  • RuleName:

    规则名称

  • ApiName:

    api名称

  • Methods:

    请求方法列表

  • Status:

    开关状态,0是关,1是开

  • Regex:

    正则匹配内容

  • UpdateTime:

    10更新时间戳



1568
1569
1570
# File 'lib/v20180125/models.rb', line 1568

def UpdateTime
  @UpdateTime
end

Instance Method Details

#deserialize(params) ⇒ Object



1579
1580
1581
1582
1583
1584
1585
1586
# File 'lib/v20180125/models.rb', line 1579

def deserialize(params)
  @RuleName = params['RuleName']
  @ApiName = params['ApiName']
  @Methods = params['Methods']
  @Status = params['Status']
  @Regex = params['Regex']
  @UpdateTime = params['UpdateTime']
end