Class: TencentCloud::Teo::V20220106::CreatePurgeTaskRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Teo::V20220106::CreatePurgeTaskRequest
- Defined in:
- lib/v20220106/models.rb
Overview
CreatePurgeTask请求参数结构体
Instance Attribute Summary collapse
-
#EncodeUrl ⇒ Object
-
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).
-
-
#Targets ⇒ Object
-
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).
-
-
#Type ⇒ Object
-
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).
-
-
#ZoneId ⇒ Object
-
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).
-
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(zoneid = nil, type = nil, targets = nil, encodeurl = nil) ⇒ CreatePurgeTaskRequest
constructor
A new instance of CreatePurgeTaskRequest.
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
#EncodeUrl ⇒ Object
-
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)
113 114 115 |
# File 'lib/v20220106/models.rb', line 113 def EncodeUrl @EncodeUrl end |
#Targets ⇒ Object
-
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)
113 114 115 |
# File 'lib/v20220106/models.rb', line 113 def Targets @Targets end |
#Type ⇒ Object
-
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)
113 114 115 |
# File 'lib/v20220106/models.rb', line 113 def Type @Type end |
#ZoneId ⇒ Object
-
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)
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 |