Class: TencentCloud::Waf::V20180125::ApiSecPrivilegeRule
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Waf::V20180125::ApiSecPrivilegeRule
- Defined in:
- lib/v20180125/models.rb
Overview
自定义api鉴权规则
Instance Attribute Summary collapse
- #ApiName ⇒ Object
- #ApiNameOp ⇒ Object
- #Option ⇒ Object
- #ParameterList ⇒ Object
- #Position ⇒ Object
- #RuleName ⇒ Object
- #Source ⇒ Object
- #Status ⇒ Object
- #UpdateTime ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(rulename = nil, status = nil, apiname = nil, position = nil, parameterlist = nil, updatetime = nil, source = nil, apinameop = nil, option = nil) ⇒ ApiSecPrivilegeRule
constructor
A new instance of ApiSecPrivilegeRule.
Constructor Details
#initialize(rulename = nil, status = nil, apiname = nil, position = nil, parameterlist = nil, updatetime = nil, source = nil, apinameop = nil, option = nil) ⇒ ApiSecPrivilegeRule
Returns a new instance of ApiSecPrivilegeRule.
1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 |
# File 'lib/v20180125/models.rb', line 1636 def initialize(rulename=nil, status=nil, apiname=nil, position=nil, parameterlist=nil, updatetime=nil, source=nil, apinameop=nil, option=nil) @RuleName = rulename @Status = status @ApiName = apiname @Position = position @ParameterList = parameterlist @UpdateTime = updatetime @Source = source @ApiNameOp = apinameop @Option = option end |
Instance Attribute Details
#ApiName ⇒ Object
1634 1635 1636 |
# File 'lib/v20180125/models.rb', line 1634 def ApiName @ApiName end |
#ApiNameOp ⇒ Object
1634 1635 1636 |
# File 'lib/v20180125/models.rb', line 1634 def ApiNameOp @ApiNameOp end |
#Option ⇒ Object
1634 1635 1636 |
# File 'lib/v20180125/models.rb', line 1634 def Option @Option end |
#ParameterList ⇒ Object
1634 1635 1636 |
# File 'lib/v20180125/models.rb', line 1634 def ParameterList @ParameterList end |
#Position ⇒ Object
1634 1635 1636 |
# File 'lib/v20180125/models.rb', line 1634 def Position @Position end |
#RuleName ⇒ Object
1634 1635 1636 |
# File 'lib/v20180125/models.rb', line 1634 def RuleName @RuleName end |
#Source ⇒ Object
1634 1635 1636 |
# File 'lib/v20180125/models.rb', line 1634 def Source @Source end |
#Status ⇒ Object
1634 1635 1636 |
# File 'lib/v20180125/models.rb', line 1634 def Status @Status end |
#UpdateTime ⇒ Object
1634 1635 1636 |
# File 'lib/v20180125/models.rb', line 1634 def UpdateTime @UpdateTime end |
Instance Method Details
#deserialize(params) ⇒ Object
1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 |
# File 'lib/v20180125/models.rb', line 1648 def deserialize(params) @RuleName = params['RuleName'] @Status = params['Status'] @ApiName = params['ApiName'] @Position = params['Position'] @ParameterList = params['ParameterList'] @UpdateTime = params['UpdateTime'] @Source = params['Source'] unless params['ApiNameOp'].nil? @ApiNameOp = [] params['ApiNameOp'].each do |i| apinameop_tmp = ApiNameOp.new apinameop_tmp.deserialize(i) @ApiNameOp << apinameop_tmp end end @Option = params['Option'] end |