Class: TencentCloud::Cdn::V20180606::ScdnErrorPage

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

Overview

acl的错误页面

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(redirectcode = nil, redirecturl = nil) ⇒ ScdnErrorPage

Returns a new instance of ScdnErrorPage.



12137
12138
12139
12140
# File 'lib/v20180606/models.rb', line 12137

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

Instance Attribute Details

#RedirectCodeObject

执行动作为:intercept 默认传值 403 执行动作为:redirect 默认传值 301

Parameters:

  • RedirectCode:

    状态码

  • RedirectUrl:

    重定向url



12135
12136
12137
# File 'lib/v20180606/models.rb', line 12135

def RedirectCode
  @RedirectCode
end

#RedirectUrlObject

执行动作为:intercept 默认传值 403 执行动作为:redirect 默认传值 301

Parameters:

  • RedirectCode:

    状态码

  • RedirectUrl:

    重定向url



12135
12136
12137
# File 'lib/v20180606/models.rb', line 12135

def RedirectUrl
  @RedirectUrl
end

Instance Method Details

#deserialize(params) ⇒ Object



12142
12143
12144
12145
# File 'lib/v20180606/models.rb', line 12142

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