Class: TencentCloud::Cdn::V20180606::ErrorPageRule

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

Overview

状态码重定向规则配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(statuscode = nil, redirectcode = nil, redirecturl = nil) ⇒ ErrorPageRule

Returns a new instance of ErrorPageRule.



7547
7548
7549
7550
7551
# File 'lib/v20180606/models.rb', line 7547

def initialize(statuscode=nil, redirectcode=nil, redirecturl=nil)
  @StatusCode = statuscode
  @RedirectCode = redirectcode
  @RedirectUrl = redirecturl
end

Instance Attribute Details

#RedirectCodeObject

支持 400、403、404、500 支持 301 或 302 需要为完整跳转路径,如 www.test.com/error.html

Parameters:

  • StatusCode:

    状态码

  • RedirectCode:

    重定向状态码设置

  • RedirectUrl:

    重定向 URL



7545
7546
7547
# File 'lib/v20180606/models.rb', line 7545

def RedirectCode
  @RedirectCode
end

#RedirectUrlObject

支持 400、403、404、500 支持 301 或 302 需要为完整跳转路径,如 www.test.com/error.html

Parameters:

  • StatusCode:

    状态码

  • RedirectCode:

    重定向状态码设置

  • RedirectUrl:

    重定向 URL



7545
7546
7547
# File 'lib/v20180606/models.rb', line 7545

def RedirectUrl
  @RedirectUrl
end

#StatusCodeObject

支持 400、403、404、500 支持 301 或 302 需要为完整跳转路径,如 www.test.com/error.html

Parameters:

  • StatusCode:

    状态码

  • RedirectCode:

    重定向状态码设置

  • RedirectUrl:

    重定向 URL



7545
7546
7547
# File 'lib/v20180606/models.rb', line 7545

def StatusCode
  @StatusCode
end

Instance Method Details

#deserialize(params) ⇒ Object



7553
7554
7555
7556
7557
# File 'lib/v20180606/models.rb', line 7553

def deserialize(params)
  @StatusCode = params['StatusCode']
  @RedirectCode = params['RedirectCode']
  @RedirectUrl = params['RedirectUrl']
end