Class: TencentCloud::Cdn::V20180606::MaxAgeCodeRule

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

Overview

MaxAge 状态码相关规则配置

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action = nil, statuscodes = nil) ⇒ MaxAgeCodeRule

Returns a new instance of MaxAgeCodeRule.



9794
9795
9796
9797
# File 'lib/v20180606/models.rb', line 9794

def initialize(action=nil, statuscodes=nil)
  @Action = action
  @StatusCodes = statuscodes
end

Instance Attribute Details

#ActionObject

clear:清除 cache-control 头部

Parameters:

  • Action:

    处理动作

  • StatusCodes:

    指定HTTP状态码生效,当前仅支持填写“400-599”



9792
9793
9794
# File 'lib/v20180606/models.rb', line 9792

def Action
  @Action
end

#StatusCodesObject

clear:清除 cache-control 头部

Parameters:

  • Action:

    处理动作

  • StatusCodes:

    指定HTTP状态码生效,当前仅支持填写“400-599”



9792
9793
9794
# File 'lib/v20180606/models.rb', line 9792

def StatusCodes
  @StatusCodes
end

Instance Method Details

#deserialize(params) ⇒ Object



9799
9800
9801
9802
# File 'lib/v20180606/models.rb', line 9799

def deserialize(params)
  @Action = params['Action']
  @StatusCodes = params['StatusCodes']
end