Class: TencentCloud::Cdn::V20180606::ScdnAclGroup

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) ⇒ ScdnAclGroup

Returns a new instance of ScdnAclGroup.



11842
11843
11844
11845
11846
11847
11848
# File 'lib/v20180606/models.rb', line 11842

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

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RuleName:

    规则名称

  • Configure:

    具体配置

  • Result:

    执行动作,intercept|redirect

  • Status:

    规则是否生效,active|inactive

  • ErrorPage:

    错误页面配置



11840
11841
11842
# File 'lib/v20180606/models.rb', line 11840

def Configure
  @Configure
end

#ErrorPageObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RuleName:

    规则名称

  • Configure:

    具体配置

  • Result:

    执行动作,intercept|redirect

  • Status:

    规则是否生效,active|inactive

  • ErrorPage:

    错误页面配置



11840
11841
11842
# File 'lib/v20180606/models.rb', line 11840

def ErrorPage
  @ErrorPage
end

#ResultObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RuleName:

    规则名称

  • Configure:

    具体配置

  • Result:

    执行动作,intercept|redirect

  • Status:

    规则是否生效,active|inactive

  • ErrorPage:

    错误页面配置



11840
11841
11842
# File 'lib/v20180606/models.rb', line 11840

def Result
  @Result
end

#RuleNameObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RuleName:

    规则名称

  • Configure:

    具体配置

  • Result:

    执行动作,intercept|redirect

  • Status:

    规则是否生效,active|inactive

  • ErrorPage:

    错误页面配置



11840
11841
11842
# File 'lib/v20180606/models.rb', line 11840

def RuleName
  @RuleName
end

#StatusObject

注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • RuleName:

    规则名称

  • Configure:

    具体配置

  • Result:

    执行动作,intercept|redirect

  • Status:

    规则是否生效,active|inactive

  • ErrorPage:

    错误页面配置



11840
11841
11842
# File 'lib/v20180606/models.rb', line 11840

def Status
  @Status
end

Instance Method Details

#deserialize(params) ⇒ Object



11850
11851
11852
11853
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866
# File 'lib/v20180606/models.rb', line 11850

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