Class: TencentCloud::Teo::V20220106::CreatePurgeTaskRequest

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

Overview

CreatePurgeTask请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(zoneid = nil, type = nil, targets = nil, encodeurl = nil) ⇒ CreatePurgeTaskRequest

Returns a new instance of CreatePurgeTaskRequest.



115
116
117
118
119
120
# File 'lib/v20220106/models.rb', line 115

def initialize(zoneid=nil, type=nil, targets=nil, encodeurl=nil)
  @ZoneId = zoneid
  @Type = type
  @Targets = targets
  @EncodeUrl = encodeurl
end

Instance Attribute Details

#EncodeUrlObject

  • purge_url:URL

  • purge_prefix:前缀

  • purge_host:Hostname

  • purge_all:全部缓存

1) Type = purge_host 时形如:www.example.com 或 foo.bar.example.com 2) Type = purge_prefix 时形如:www.example.com/example 3) Type = purge_url 时形如: 4)Type = purge_all 时Targets可为空,不需要填写若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)

Parameters:

  • ZoneId:

    Zone ID

  • Type:

    类型,当前支持的类型:

  • Targets:

    要刷新的资源列表,每个元素格式依据Type而定

  • EncodeUrl:

    若有编码转换,仅清除编码转换后匹配的资源



113
114
115
# File 'lib/v20220106/models.rb', line 113

def EncodeUrl
  @EncodeUrl
end

#TargetsObject

  • purge_url:URL

  • purge_prefix:前缀

  • purge_host:Hostname

  • purge_all:全部缓存

1) Type = purge_host 时形如:www.example.com 或 foo.bar.example.com 2) Type = purge_prefix 时形如:www.example.com/example 3) Type = purge_url 时形如: 4)Type = purge_all 时Targets可为空,不需要填写若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)

Parameters:

  • ZoneId:

    Zone ID

  • Type:

    类型,当前支持的类型:

  • Targets:

    要刷新的资源列表,每个元素格式依据Type而定

  • EncodeUrl:

    若有编码转换,仅清除编码转换后匹配的资源



113
114
115
# File 'lib/v20220106/models.rb', line 113

def Targets
  @Targets
end

#TypeObject

  • purge_url:URL

  • purge_prefix:前缀

  • purge_host:Hostname

  • purge_all:全部缓存

1) Type = purge_host 时形如:www.example.com 或 foo.bar.example.com 2) Type = purge_prefix 时形如:www.example.com/example 3) Type = purge_url 时形如: 4)Type = purge_all 时Targets可为空,不需要填写若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)

Parameters:

  • ZoneId:

    Zone ID

  • Type:

    类型,当前支持的类型:

  • Targets:

    要刷新的资源列表,每个元素格式依据Type而定

  • EncodeUrl:

    若有编码转换,仅清除编码转换后匹配的资源



113
114
115
# File 'lib/v20220106/models.rb', line 113

def Type
  @Type
end

#ZoneIdObject

  • purge_url:URL

  • purge_prefix:前缀

  • purge_host:Hostname

  • purge_all:全部缓存

1) Type = purge_host 时形如:www.example.com 或 foo.bar.example.com 2) Type = purge_prefix 时形如:www.example.com/example 3) Type = purge_url 时形如: 4)Type = purge_all 时Targets可为空,不需要填写若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)

Parameters:

  • ZoneId:

    Zone ID

  • Type:

    类型,当前支持的类型:

  • Targets:

    要刷新的资源列表,每个元素格式依据Type而定

  • EncodeUrl:

    若有编码转换,仅清除编码转换后匹配的资源



113
114
115
# File 'lib/v20220106/models.rb', line 113

def ZoneId
  @ZoneId
end

Instance Method Details

#deserialize(params) ⇒ Object



122
123
124
125
126
127
# File 'lib/v20220106/models.rb', line 122

def deserialize(params)
  @ZoneId = params['ZoneId']
  @Type = params['Type']
  @Targets = params['Targets']
  @EncodeUrl = params['EncodeUrl']
end