Class: TencentCloud::Cdn::V20180606::AdvancedScdnAclGroup

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

Overview

SCDN精准访问控制配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rulename = nil, configure = nil, result = nil, status = nil, errorpage = nil) ⇒ AdvancedScdnAclGroup

Returns a new instance of AdvancedScdnAclGroup.



996
997
998
999
1000
1001
1002
# File 'lib/v20180606/models.rb', line 996

def initialize(rulename=nil, configure=nil, result=nil, status=nil, errorpage=nil)
  @RuleName = rulename
  @Configure = configure
  @Result = result
  @Status = status
  @ErrorPage = errorpage
end

Instance Attribute Details

#ConfigureObject

Parameters:

  • RuleName:

    规则名称

  • Configure:

    具体配置

  • Result:

    执行动作,intercept|redirect

  • Status:

    规则是否生效,active|inactive

  • ErrorPage:

    错误页面配置



994
995
996
# File 'lib/v20180606/models.rb', line 994

def Configure
  @Configure
end

#ErrorPageObject

Parameters:

  • RuleName:

    规则名称

  • Configure:

    具体配置

  • Result:

    执行动作,intercept|redirect

  • Status:

    规则是否生效,active|inactive

  • ErrorPage:

    错误页面配置



994
995
996
# File 'lib/v20180606/models.rb', line 994

def ErrorPage
  @ErrorPage
end

#ResultObject

Parameters:

  • RuleName:

    规则名称

  • Configure:

    具体配置

  • Result:

    执行动作,intercept|redirect

  • Status:

    规则是否生效,active|inactive

  • ErrorPage:

    错误页面配置



994
995
996
# File 'lib/v20180606/models.rb', line 994

def Result
  @Result
end

#RuleNameObject

Parameters:

  • RuleName:

    规则名称

  • Configure:

    具体配置

  • Result:

    执行动作,intercept|redirect

  • Status:

    规则是否生效,active|inactive

  • ErrorPage:

    错误页面配置



994
995
996
# File 'lib/v20180606/models.rb', line 994

def RuleName
  @RuleName
end

#StatusObject

Parameters:

  • RuleName:

    规则名称

  • Configure:

    具体配置

  • Result:

    执行动作,intercept|redirect

  • Status:

    规则是否生效,active|inactive

  • ErrorPage:

    错误页面配置



994
995
996
# File 'lib/v20180606/models.rb', line 994

def Status
  @Status
end

Instance Method Details

#deserialize(params) ⇒ Object



1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
# File 'lib/v20180606/models.rb', line 1004

def deserialize(params)
  @RuleName = params['RuleName']
  unless params['Configure'].nil?
    @Configure = []
    params['Configure'].each do |i|
      advancedscdnaclrule_tmp = AdvancedScdnAclRule.new
      advancedscdnaclrule_tmp.deserialize(i)
      @Configure << advancedscdnaclrule_tmp
    end
  end
  @Result = params['Result']
  @Status = params['Status']
  unless params['ErrorPage'].nil?
    @ErrorPage = ScdnErrorPage.new
    @ErrorPage.deserialize(params['ErrorPage'])
  end
end