public class CreatePurgeTaskRequest extends AbstractModel
Constructor and Description |
---|
CreatePurgeTaskRequest() |
CreatePurgeTaskRequest(CreatePurgeTaskRequest source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getEncodeUrl()
Get 若有编码转换,仅清除编码转换后匹配的资源。
若内容含有非 ASCII 字符集的字符,请开启此开关进行编码转换(编码规则遵循 RFC3986)。
|
String[] |
getTargets()
Get 要清除缓存的资源列表,每个元素格式依据Type而定:
1) Type = purge_host 时:
形如:www.example.com 或 foo.bar.example.com。
2) Type = purge_prefix 时:
形如:http://www.example.com/example。
3) Type = purge_url 时:
形如:https://www.example.com/example.jpg。
4)Type = purge_all 时:
Targets可为空,不需要填写。
5)Type = purge_cache_tag 时:
形如:tag1。
|
String |
getType()
Get 清除缓存类型,取值有:
purge_url:URL;
purge_prefix:前缀;
purge_host:Hostname;
purge_all:全部缓存;
purge_cache_tag:cache-tag刷新。
|
String |
getZoneId()
Get 站点ID。
|
void |
setEncodeUrl(Boolean EncodeUrl)
Set 若有编码转换,仅清除编码转换后匹配的资源。
若内容含有非 ASCII 字符集的字符,请开启此开关进行编码转换(编码规则遵循 RFC3986)。
|
void |
setTargets(String[] Targets)
Set 要清除缓存的资源列表,每个元素格式依据Type而定:
1) Type = purge_host 时:
形如:www.example.com 或 foo.bar.example.com。
2) Type = purge_prefix 时:
形如:http://www.example.com/example。
3) Type = purge_url 时:
形如:https://www.example.com/example.jpg。
4)Type = purge_all 时:
Targets可为空,不需要填写。
5)Type = purge_cache_tag 时:
形如:tag1。
|
void |
setType(String Type)
Set 清除缓存类型,取值有:
purge_url:URL;
purge_prefix:前缀;
purge_host:Hostname;
purge_all:全部缓存;
purge_cache_tag:cache-tag刷新。
|
void |
setZoneId(String ZoneId)
Set 站点ID。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public CreatePurgeTaskRequest()
public CreatePurgeTaskRequest(CreatePurgeTaskRequest source)
public String getZoneId()
public void setZoneId(String ZoneId)
ZoneId
- 站点ID。public String getType()
public void setType(String Type)
Type
- 清除缓存类型,取值有:
public String[] getTargets()
public void setTargets(String[] Targets)
Targets
- 要清除缓存的资源列表,每个元素格式依据Type而定:
1) Type = purge_host 时:
形如:www.example.com 或 foo.bar.example.com。
2) Type = purge_prefix 时:
形如:http://www.example.com/example。
3) Type = purge_url 时:
形如:https://www.example.com/example.jpg。
4)Type = purge_all 时:
Targets可为空,不需要填写。
5)Type = purge_cache_tag 时:
形如:tag1。public Boolean getEncodeUrl()
public void setEncodeUrl(Boolean EncodeUrl)
EncodeUrl
- 若有编码转换,仅清除编码转换后匹配的资源。
若内容含有非 ASCII 字符集的字符,请开启此开关进行编码转换(编码规则遵循 RFC3986)。Copyright © 2022. All rights reserved.