Class: TencentCloud::Ecdn::V20191012::CacheRule

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

Overview

缓存配置规则。

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(cachetype = nil, cachecontents = nil, cachetime = nil) ⇒ CacheRule

Returns a new instance of CacheRule.



129
130
131
132
133
# File 'lib/v20191012/models.rb', line 129

def initialize(cachetype=nil, cachecontents=nil, cachetime=nil)
  @CacheType = cachetype
  @CacheContents = cachecontents
  @CacheTime = cachetime
end

Instance Attribute Details

#CacheContentsObject

Parameters:

  • CacheType:

    缓存类型,支持all,file,directory,path,index,分别表示全部文件,后缀类型,目录,完整路径,首页。

  • CacheContents:

    缓存内容列表。

  • CacheTime:

    缓存时间,单位秒。



127
128
129
# File 'lib/v20191012/models.rb', line 127

def CacheContents
  @CacheContents
end

#CacheTimeObject

Parameters:

  • CacheType:

    缓存类型,支持all,file,directory,path,index,分别表示全部文件,后缀类型,目录,完整路径,首页。

  • CacheContents:

    缓存内容列表。

  • CacheTime:

    缓存时间,单位秒。



127
128
129
# File 'lib/v20191012/models.rb', line 127

def CacheTime
  @CacheTime
end

#CacheTypeObject

Parameters:

  • CacheType:

    缓存类型,支持all,file,directory,path,index,分别表示全部文件,后缀类型,目录,完整路径,首页。

  • CacheContents:

    缓存内容列表。

  • CacheTime:

    缓存时间,单位秒。



127
128
129
# File 'lib/v20191012/models.rb', line 127

def CacheType
  @CacheType
end

Instance Method Details

#deserialize(params) ⇒ Object



135
136
137
138
139
# File 'lib/v20191012/models.rb', line 135

def deserialize(params)
  @CacheType = params['CacheType']
  @CacheContents = params['CacheContents']
  @CacheTime = params['CacheTime']
end