tencentcloud-sdk-nodejs-teo 4.0.1053 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -4
- package/es/index.js +1 -0
- package/es/services/index.js +1 -0
- package/es/services/teo/index.js +6 -0
- package/es/services/teo/v20220106/index.js +6 -0
- package/es/services/teo/v20220106/teo_client.js +21 -0
- package/es/services/teo/v20220106/teo_models.js +0 -0
- package/es/services/teo/v20220901/index.js +6 -0
- package/es/services/teo/v20220901/teo_client.js +429 -0
- package/es/services/teo/v20220901/teo_models.js +0 -0
- package/package.json +24 -8
- package/tencentcloud/services/teo/v20220106/index.js +2 -1
- package/tencentcloud/services/teo/v20220106/teo_client.js +2 -1
- package/tencentcloud/services/teo/v20220901/index.js +2 -1
- package/tencentcloud/services/teo/v20220901/teo_client.d.ts +5 -1
- package/tencentcloud/services/teo/v20220901/teo_client.js +8 -1
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +354 -94
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/prettier.config.js +0 -38
- package/src/index.ts +0 -1
- package/src/services/index.ts +0 -1
- package/src/services/teo/index.ts +0 -7
- package/src/services/teo/v20220106/index.ts +0 -6
- package/src/services/teo/v20220106/teo_client.ts +0 -98
- package/src/services/teo/v20220106/teo_models.ts +0 -516
- package/src/services/teo/v20220901/index.ts +0 -6
- package/src/services/teo/v20220901/teo_client.ts +0 -1994
- package/src/services/teo/v20220901/teo_models.ts +0 -12822
- package/tsconfig.json +0 -33
- package/typings/index.d.ts +0 -2
package/prettier.config.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
// prettier.config.js
|
|
2
|
-
module.exports = {
|
|
3
|
-
// 一行最多 100 字符
|
|
4
|
-
printWidth: 100,
|
|
5
|
-
// 使用 4 个空格缩进
|
|
6
|
-
tabWidth: 2,
|
|
7
|
-
// 不使用缩进符,而使用空格
|
|
8
|
-
useTabs: false,
|
|
9
|
-
// 行尾需要有分号
|
|
10
|
-
semi: false,
|
|
11
|
-
// 使用单引号
|
|
12
|
-
singleQuote: false,
|
|
13
|
-
// 对象的 key 仅在必要时用引号
|
|
14
|
-
quoteProps: "as-needed",
|
|
15
|
-
// jsx 不使用单引号,而使用双引号
|
|
16
|
-
jsxSingleQuote: false,
|
|
17
|
-
// 末尾不需要逗号
|
|
18
|
-
trailingComma: "es5",
|
|
19
|
-
// 大括号内的首尾需要空格
|
|
20
|
-
bracketSpacing: true,
|
|
21
|
-
// jsx 标签的反尖括号需要换行
|
|
22
|
-
jsxBracketSameLine: false,
|
|
23
|
-
// 箭头函数,只有一个参数的时候,也需要括号
|
|
24
|
-
arrowParens: "always",
|
|
25
|
-
// 每个文件格式化的范围是文件的全部内容
|
|
26
|
-
rangeStart: 0,
|
|
27
|
-
rangeEnd: Infinity,
|
|
28
|
-
// 不需要写文件开头的 @prettier
|
|
29
|
-
requirePragma: false,
|
|
30
|
-
// 不需要自动在文件开头插入 @prettier
|
|
31
|
-
insertPragma: false,
|
|
32
|
-
// 使用默认的折行标准
|
|
33
|
-
proseWrap: "preserve",
|
|
34
|
-
// 根据显示样式决定 html 要不要折行
|
|
35
|
-
htmlWhitespaceSensitivity: "css",
|
|
36
|
-
// 换行符使用 lf
|
|
37
|
-
endOfLine: "lf",
|
|
38
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./services"
|
package/src/services/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { teo } from "./teo"
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
-
* you may not use this file except in compliance with the License.
|
|
7
|
-
* You may obtain a copy of the License at
|
|
8
|
-
*
|
|
9
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
-
*
|
|
11
|
-
* Unless required by applicable law or agreed to in writing,
|
|
12
|
-
* software distributed under the License is distributed on an
|
|
13
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
-
* KIND, either express or implied. See the License for the
|
|
15
|
-
* specific language governing permissions and limitations
|
|
16
|
-
* under the License.
|
|
17
|
-
*/
|
|
18
|
-
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
|
|
19
|
-
import {
|
|
20
|
-
CreatePurgeTaskResponse,
|
|
21
|
-
CreatePurgeTaskRequest,
|
|
22
|
-
DescribePurgeTasksRequest,
|
|
23
|
-
CreatePrefetchTaskResponse,
|
|
24
|
-
Zone,
|
|
25
|
-
DescribePrefetchTasksResponse,
|
|
26
|
-
Sv,
|
|
27
|
-
DescribeZonesRequest,
|
|
28
|
-
DescribeZonesResponse,
|
|
29
|
-
Header,
|
|
30
|
-
FailReason,
|
|
31
|
-
Tag,
|
|
32
|
-
CreatePrefetchTaskRequest,
|
|
33
|
-
DescribePurgeTasksResponse,
|
|
34
|
-
DescribePrefetchTasksRequest,
|
|
35
|
-
Resource,
|
|
36
|
-
ZoneFilter,
|
|
37
|
-
Task,
|
|
38
|
-
} from "./teo_models"
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* teo client
|
|
42
|
-
* @class
|
|
43
|
-
*/
|
|
44
|
-
export class Client extends TencentCloudCommon.AbstractClient {
|
|
45
|
-
constructor(clientConfig: TencentCloudCommon.ClientConfig) {
|
|
46
|
-
super("teo.tencentcloudapi.com", "2022-01-06", clientConfig)
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* 创建清除缓存任务
|
|
51
|
-
*/
|
|
52
|
-
async CreatePurgeTask(
|
|
53
|
-
req: CreatePurgeTaskRequest,
|
|
54
|
-
cb?: (error: string, rep: CreatePurgeTaskResponse) => void
|
|
55
|
-
): Promise<CreatePurgeTaskResponse> {
|
|
56
|
-
return this.request("CreatePurgeTask", req, cb)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* 查询清除缓存历史记录
|
|
61
|
-
*/
|
|
62
|
-
async DescribePurgeTasks(
|
|
63
|
-
req: DescribePurgeTasksRequest,
|
|
64
|
-
cb?: (error: string, rep: DescribePurgeTasksResponse) => void
|
|
65
|
-
): Promise<DescribePurgeTasksResponse> {
|
|
66
|
-
return this.request("DescribePurgeTasks", req, cb)
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* 创建预热任务
|
|
71
|
-
*/
|
|
72
|
-
async CreatePrefetchTask(
|
|
73
|
-
req: CreatePrefetchTaskRequest,
|
|
74
|
-
cb?: (error: string, rep: CreatePrefetchTaskResponse) => void
|
|
75
|
-
): Promise<CreatePrefetchTaskResponse> {
|
|
76
|
-
return this.request("CreatePrefetchTask", req, cb)
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* 查询预热任务状态
|
|
81
|
-
*/
|
|
82
|
-
async DescribePrefetchTasks(
|
|
83
|
-
req: DescribePrefetchTasksRequest,
|
|
84
|
-
cb?: (error: string, rep: DescribePrefetchTasksResponse) => void
|
|
85
|
-
): Promise<DescribePrefetchTasksResponse> {
|
|
86
|
-
return this.request("DescribePrefetchTasks", req, cb)
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* 用户查询用户站点信息列表,支持分页
|
|
91
|
-
*/
|
|
92
|
-
async DescribeZones(
|
|
93
|
-
req: DescribeZonesRequest,
|
|
94
|
-
cb?: (error: string, rep: DescribeZonesResponse) => void
|
|
95
|
-
): Promise<DescribeZonesResponse> {
|
|
96
|
-
return this.request("DescribeZones", req, cb)
|
|
97
|
-
}
|
|
98
|
-
}
|
|
@@ -1,516 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing,
|
|
11
|
-
* software distributed under the License is distributed on an
|
|
12
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
-
* KIND, either express or implied. See the License for the
|
|
14
|
-
* specific language governing permissions and limitations
|
|
15
|
-
* under the License.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* CreatePurgeTask返回参数结构体
|
|
20
|
-
*/
|
|
21
|
-
export interface CreatePurgeTaskResponse {
|
|
22
|
-
/**
|
|
23
|
-
* 任务ID
|
|
24
|
-
*/
|
|
25
|
-
JobId: string
|
|
26
|
-
/**
|
|
27
|
-
* 失败的任务列表及原因
|
|
28
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
29
|
-
*/
|
|
30
|
-
FailedList: Array<FailReason>
|
|
31
|
-
/**
|
|
32
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
33
|
-
*/
|
|
34
|
-
RequestId?: string
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* CreatePurgeTask请求参数结构体
|
|
39
|
-
*/
|
|
40
|
-
export interface CreatePurgeTaskRequest {
|
|
41
|
-
/**
|
|
42
|
-
* Zone ID
|
|
43
|
-
*/
|
|
44
|
-
ZoneId: string
|
|
45
|
-
/**
|
|
46
|
-
* 类型,当前支持的类型:
|
|
47
|
-
- purge_url:URL
|
|
48
|
-
- purge_prefix:前缀
|
|
49
|
-
- purge_host:Hostname
|
|
50
|
-
- purge_all:全部缓存
|
|
51
|
-
*/
|
|
52
|
-
Type: string
|
|
53
|
-
/**
|
|
54
|
-
* 要刷新的资源列表,每个元素格式依据Type而定
|
|
55
|
-
1) Type = purge_host 时
|
|
56
|
-
形如:www.example.com 或 foo.bar.example.com
|
|
57
|
-
2) Type = purge_prefix 时
|
|
58
|
-
形如:http://www.example.com/example
|
|
59
|
-
3) Type = purge_url 时
|
|
60
|
-
形如:https://www.example.com/example.jpg
|
|
61
|
-
4)Type = purge_all 时
|
|
62
|
-
Targets可为空,不需要填写
|
|
63
|
-
*/
|
|
64
|
-
Targets?: Array<string>
|
|
65
|
-
/**
|
|
66
|
-
* 若有编码转换,仅清除编码转换后匹配的资源
|
|
67
|
-
若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)
|
|
68
|
-
*/
|
|
69
|
-
EncodeUrl?: boolean
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
/**
|
|
73
|
-
* DescribePurgeTasks请求参数结构体
|
|
74
|
-
*/
|
|
75
|
-
export interface DescribePurgeTasksRequest {
|
|
76
|
-
/**
|
|
77
|
-
* 任务ID
|
|
78
|
-
*/
|
|
79
|
-
JobId?: string
|
|
80
|
-
/**
|
|
81
|
-
* 类型
|
|
82
|
-
*/
|
|
83
|
-
Type?: string
|
|
84
|
-
/**
|
|
85
|
-
* 查询起始时间
|
|
86
|
-
*/
|
|
87
|
-
StartTime?: string
|
|
88
|
-
/**
|
|
89
|
-
* 查询结束时间
|
|
90
|
-
*/
|
|
91
|
-
EndTime?: string
|
|
92
|
-
/**
|
|
93
|
-
* 查询起始偏移量
|
|
94
|
-
*/
|
|
95
|
-
Offset?: number
|
|
96
|
-
/**
|
|
97
|
-
* 查询最大返回的结果条数
|
|
98
|
-
*/
|
|
99
|
-
Limit?: number
|
|
100
|
-
/**
|
|
101
|
-
* 查询的状态
|
|
102
|
-
允许的值为:processing、success、failed、timeout、invalid
|
|
103
|
-
*/
|
|
104
|
-
Statuses?: Array<string>
|
|
105
|
-
/**
|
|
106
|
-
* zone id
|
|
107
|
-
*/
|
|
108
|
-
ZoneId?: string
|
|
109
|
-
/**
|
|
110
|
-
* 查询的域名列表
|
|
111
|
-
*/
|
|
112
|
-
Domains?: Array<string>
|
|
113
|
-
/**
|
|
114
|
-
* 查询内容
|
|
115
|
-
*/
|
|
116
|
-
Target?: string
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
/**
|
|
120
|
-
* CreatePrefetchTask返回参数结构体
|
|
121
|
-
*/
|
|
122
|
-
export interface CreatePrefetchTaskResponse {
|
|
123
|
-
/**
|
|
124
|
-
* 任务ID
|
|
125
|
-
*/
|
|
126
|
-
JobId: string
|
|
127
|
-
/**
|
|
128
|
-
* 失败的任务列表
|
|
129
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
130
|
-
*/
|
|
131
|
-
FailedList: Array<FailReason>
|
|
132
|
-
/**
|
|
133
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
134
|
-
*/
|
|
135
|
-
RequestId?: string
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* 站点信息
|
|
140
|
-
*/
|
|
141
|
-
export interface Zone {
|
|
142
|
-
/**
|
|
143
|
-
* 站点ID。
|
|
144
|
-
*/
|
|
145
|
-
Id: string
|
|
146
|
-
/**
|
|
147
|
-
* 站点名称。
|
|
148
|
-
*/
|
|
149
|
-
Name: string
|
|
150
|
-
/**
|
|
151
|
-
* 站点当前使用的 NS 列表。
|
|
152
|
-
*/
|
|
153
|
-
OriginalNameServers: Array<string>
|
|
154
|
-
/**
|
|
155
|
-
* 腾讯云分配的 NS 列表。
|
|
156
|
-
*/
|
|
157
|
-
NameServers: Array<string>
|
|
158
|
-
/**
|
|
159
|
-
* 站点状态,取值有:
|
|
160
|
-
<li> active:NS 已切换; </li>
|
|
161
|
-
<li> pending:NS 未切换;</li>
|
|
162
|
-
<li> moved:NS 已切走;</li>
|
|
163
|
-
<li> deactivated:被封禁。 </li>
|
|
164
|
-
*/
|
|
165
|
-
Status: string
|
|
166
|
-
/**
|
|
167
|
-
* 站点接入方式,取值有
|
|
168
|
-
<li> full:NS 接入; </li>
|
|
169
|
-
<li> partial:CNAME 接入。</li>
|
|
170
|
-
*/
|
|
171
|
-
Type: string
|
|
172
|
-
/**
|
|
173
|
-
* 站点是否关闭。
|
|
174
|
-
*/
|
|
175
|
-
Paused: boolean
|
|
176
|
-
/**
|
|
177
|
-
* 是否开启cname加速,取值有:
|
|
178
|
-
<li> enabled:开启;</li>
|
|
179
|
-
<li> disabled:关闭。</li>
|
|
180
|
-
*/
|
|
181
|
-
CnameSpeedUp: string
|
|
182
|
-
/**
|
|
183
|
-
* cname 接入状态,取值有:
|
|
184
|
-
<li> finished:站点已验证;</li>
|
|
185
|
-
<li> pending:站点验证中。</li>
|
|
186
|
-
*/
|
|
187
|
-
CnameStatus: string
|
|
188
|
-
/**
|
|
189
|
-
* 资源标签列表。
|
|
190
|
-
*/
|
|
191
|
-
Tags: Array<Tag>
|
|
192
|
-
/**
|
|
193
|
-
* 计费资源列表。
|
|
194
|
-
*/
|
|
195
|
-
Resources: Array<Resource>
|
|
196
|
-
/**
|
|
197
|
-
* 站点创建时间。
|
|
198
|
-
*/
|
|
199
|
-
CreatedOn: string
|
|
200
|
-
/**
|
|
201
|
-
* 站点修改时间。
|
|
202
|
-
*/
|
|
203
|
-
ModifiedOn: string
|
|
204
|
-
/**
|
|
205
|
-
* 站点接入地域,取值为:
|
|
206
|
-
<li> global:全球;</li>
|
|
207
|
-
<li> mainland:中国大陆;</li>
|
|
208
|
-
<li> overseas:境外区域。</li>
|
|
209
|
-
*/
|
|
210
|
-
Area: string
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* DescribePrefetchTasks返回参数结构体
|
|
215
|
-
*/
|
|
216
|
-
export interface DescribePrefetchTasksResponse {
|
|
217
|
-
/**
|
|
218
|
-
* 该查询条件总共条目数
|
|
219
|
-
*/
|
|
220
|
-
TotalCount: number
|
|
221
|
-
/**
|
|
222
|
-
* 任务结果列表
|
|
223
|
-
*/
|
|
224
|
-
Tasks: Array<Task>
|
|
225
|
-
/**
|
|
226
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
227
|
-
*/
|
|
228
|
-
RequestId?: string
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
/**
|
|
232
|
-
* 询价参数
|
|
233
|
-
*/
|
|
234
|
-
export interface Sv {
|
|
235
|
-
/**
|
|
236
|
-
* 询价参数键。
|
|
237
|
-
*/
|
|
238
|
-
Key: string
|
|
239
|
-
/**
|
|
240
|
-
* 询价参数值。
|
|
241
|
-
*/
|
|
242
|
-
Value: string
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/**
|
|
246
|
-
* DescribeZones请求参数结构体
|
|
247
|
-
*/
|
|
248
|
-
export interface DescribeZonesRequest {
|
|
249
|
-
/**
|
|
250
|
-
* 分页查询偏移量。默认值:0,最小值:0。
|
|
251
|
-
*/
|
|
252
|
-
Offset?: number
|
|
253
|
-
/**
|
|
254
|
-
* 分页查询限制数目。默认值:1000,最大值:1000。
|
|
255
|
-
*/
|
|
256
|
-
Limit?: number
|
|
257
|
-
/**
|
|
258
|
-
* 查询条件过滤器,复杂类型。
|
|
259
|
-
*/
|
|
260
|
-
Filters?: Array<ZoneFilter>
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* DescribeZones返回参数结构体
|
|
265
|
-
*/
|
|
266
|
-
export interface DescribeZonesResponse {
|
|
267
|
-
/**
|
|
268
|
-
* 符合条件的站点个数。
|
|
269
|
-
*/
|
|
270
|
-
TotalCount: number
|
|
271
|
-
/**
|
|
272
|
-
* 站点详细信息列表。
|
|
273
|
-
*/
|
|
274
|
-
Zones: Array<Zone>
|
|
275
|
-
/**
|
|
276
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
277
|
-
*/
|
|
278
|
-
RequestId?: string
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
/**
|
|
282
|
-
* 刷新预热附带的头部信息
|
|
283
|
-
*/
|
|
284
|
-
export interface Header {
|
|
285
|
-
/**
|
|
286
|
-
* HTTP头部
|
|
287
|
-
*/
|
|
288
|
-
Name: string
|
|
289
|
-
/**
|
|
290
|
-
* HTTP头部值
|
|
291
|
-
*/
|
|
292
|
-
Value: string
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
/**
|
|
296
|
-
* 失败原因
|
|
297
|
-
*/
|
|
298
|
-
export interface FailReason {
|
|
299
|
-
/**
|
|
300
|
-
* 失败原因
|
|
301
|
-
*/
|
|
302
|
-
Reason: string
|
|
303
|
-
/**
|
|
304
|
-
* 处理失败的资源列表。
|
|
305
|
-
该列表元素来源于输入参数中的Targets,因此格式和入参中的Targets保持一致
|
|
306
|
-
*/
|
|
307
|
-
Targets: Array<string>
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* 标签配置
|
|
312
|
-
*/
|
|
313
|
-
export interface Tag {
|
|
314
|
-
/**
|
|
315
|
-
* 标签键
|
|
316
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
317
|
-
*/
|
|
318
|
-
TagKey: string
|
|
319
|
-
/**
|
|
320
|
-
* 标签值
|
|
321
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
322
|
-
*/
|
|
323
|
-
TagValue: string
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
/**
|
|
327
|
-
* CreatePrefetchTask请求参数结构体
|
|
328
|
-
*/
|
|
329
|
-
export interface CreatePrefetchTaskRequest {
|
|
330
|
-
/**
|
|
331
|
-
* Zone ID
|
|
332
|
-
*/
|
|
333
|
-
ZoneId: string
|
|
334
|
-
/**
|
|
335
|
-
* 要预热的资源列表,每个元素格式类似如下:
|
|
336
|
-
http://www.example.com/example.txt
|
|
337
|
-
*/
|
|
338
|
-
Targets?: Array<string>
|
|
339
|
-
/**
|
|
340
|
-
* 是否对url进行encode
|
|
341
|
-
若内容含有非 ASCII 字符集的字符,请开启此开关,编码转换(编码规则遵循 RFC3986)
|
|
342
|
-
*/
|
|
343
|
-
EncodeUrl?: boolean
|
|
344
|
-
/**
|
|
345
|
-
* 附带的http头部信息
|
|
346
|
-
*/
|
|
347
|
-
Headers?: Array<Header>
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
/**
|
|
351
|
-
* DescribePurgeTasks返回参数结构体
|
|
352
|
-
*/
|
|
353
|
-
export interface DescribePurgeTasksResponse {
|
|
354
|
-
/**
|
|
355
|
-
* 该查询条件总共条目数
|
|
356
|
-
*/
|
|
357
|
-
TotalCount: number
|
|
358
|
-
/**
|
|
359
|
-
* 任务结果列表
|
|
360
|
-
*/
|
|
361
|
-
Tasks: Array<Task>
|
|
362
|
-
/**
|
|
363
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
364
|
-
*/
|
|
365
|
-
RequestId?: string
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
/**
|
|
369
|
-
* DescribePrefetchTasks请求参数结构体
|
|
370
|
-
*/
|
|
371
|
-
export interface DescribePrefetchTasksRequest {
|
|
372
|
-
/**
|
|
373
|
-
* 任务ID
|
|
374
|
-
*/
|
|
375
|
-
JobId?: string
|
|
376
|
-
/**
|
|
377
|
-
* 查询起始时间
|
|
378
|
-
*/
|
|
379
|
-
StartTime?: string
|
|
380
|
-
/**
|
|
381
|
-
* 查询结束时间
|
|
382
|
-
*/
|
|
383
|
-
EndTime?: string
|
|
384
|
-
/**
|
|
385
|
-
* 查询起始偏移量
|
|
386
|
-
*/
|
|
387
|
-
Offset?: number
|
|
388
|
-
/**
|
|
389
|
-
* 查询最大返回的结果条数
|
|
390
|
-
*/
|
|
391
|
-
Limit?: number
|
|
392
|
-
/**
|
|
393
|
-
* 查询的状态
|
|
394
|
-
允许的值为:processing、success、failed、timeout、invalid
|
|
395
|
-
*/
|
|
396
|
-
Statuses?: Array<string>
|
|
397
|
-
/**
|
|
398
|
-
* zone id
|
|
399
|
-
*/
|
|
400
|
-
ZoneId?: string
|
|
401
|
-
/**
|
|
402
|
-
* 查询的域名列表
|
|
403
|
-
*/
|
|
404
|
-
Domains?: Array<string>
|
|
405
|
-
/**
|
|
406
|
-
* 查询的资源
|
|
407
|
-
*/
|
|
408
|
-
Target?: string
|
|
409
|
-
}
|
|
410
|
-
|
|
411
|
-
/**
|
|
412
|
-
* 计费资源
|
|
413
|
-
*/
|
|
414
|
-
export interface Resource {
|
|
415
|
-
/**
|
|
416
|
-
* 资源 ID。
|
|
417
|
-
*/
|
|
418
|
-
Id: string
|
|
419
|
-
/**
|
|
420
|
-
* 付费模式,取值有:
|
|
421
|
-
<li>0:后付费。</li>
|
|
422
|
-
*/
|
|
423
|
-
PayMode: number
|
|
424
|
-
/**
|
|
425
|
-
* 创建时间。
|
|
426
|
-
*/
|
|
427
|
-
CreateTime: string
|
|
428
|
-
/**
|
|
429
|
-
* 生效时间。
|
|
430
|
-
*/
|
|
431
|
-
EnableTime: string
|
|
432
|
-
/**
|
|
433
|
-
* 失效时间。
|
|
434
|
-
*/
|
|
435
|
-
ExpireTime: string
|
|
436
|
-
/**
|
|
437
|
-
* 套餐状态,取值有:
|
|
438
|
-
<li>normal:正常;</li>
|
|
439
|
-
<li>isolated:隔离;</li>
|
|
440
|
-
<li>destroyed:销毁。</li>
|
|
441
|
-
*/
|
|
442
|
-
Status: string
|
|
443
|
-
/**
|
|
444
|
-
* 询价参数。
|
|
445
|
-
*/
|
|
446
|
-
Sv: Array<Sv>
|
|
447
|
-
/**
|
|
448
|
-
* 是否自动续费,取值有:
|
|
449
|
-
<li>0:默认状态;</li>
|
|
450
|
-
<li>1:自动续费;</li>
|
|
451
|
-
<li>2:不自动续费。</li>
|
|
452
|
-
*/
|
|
453
|
-
AutoRenewFlag: number
|
|
454
|
-
/**
|
|
455
|
-
* 套餐关联资源 ID。
|
|
456
|
-
*/
|
|
457
|
-
PlanId: string
|
|
458
|
-
/**
|
|
459
|
-
* 地域,取值有:
|
|
460
|
-
<li>mainland:国内;</li>
|
|
461
|
-
<li>overseas:海外。</li>
|
|
462
|
-
*/
|
|
463
|
-
Area: string
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
/**
|
|
467
|
-
* 站点查询过滤条件
|
|
468
|
-
*/
|
|
469
|
-
export interface ZoneFilter {
|
|
470
|
-
/**
|
|
471
|
-
* 过滤字段名,支持的列表如下:
|
|
472
|
-
<li> name:站点名;</li>
|
|
473
|
-
<li> status:站点状态;</li>
|
|
474
|
-
<li> tagKey:标签键;</li>
|
|
475
|
-
<li> tagValue: 标签值。</li>
|
|
476
|
-
*/
|
|
477
|
-
Name: string
|
|
478
|
-
/**
|
|
479
|
-
* 过滤字段值。
|
|
480
|
-
*/
|
|
481
|
-
Values: Array<string>
|
|
482
|
-
/**
|
|
483
|
-
* 是否启用模糊查询,仅支持过滤字段名为name。模糊查询时,Values长度最大为1。默认为false。
|
|
484
|
-
*/
|
|
485
|
-
Fuzzy?: boolean
|
|
486
|
-
}
|
|
487
|
-
|
|
488
|
-
/**
|
|
489
|
-
* 内容管理任务结果
|
|
490
|
-
*/
|
|
491
|
-
export interface Task {
|
|
492
|
-
/**
|
|
493
|
-
* 任务ID
|
|
494
|
-
*/
|
|
495
|
-
JobId: string
|
|
496
|
-
/**
|
|
497
|
-
* 状态
|
|
498
|
-
*/
|
|
499
|
-
Status: string
|
|
500
|
-
/**
|
|
501
|
-
* 资源
|
|
502
|
-
*/
|
|
503
|
-
Target: string
|
|
504
|
-
/**
|
|
505
|
-
* 任务类型
|
|
506
|
-
*/
|
|
507
|
-
Type: string
|
|
508
|
-
/**
|
|
509
|
-
* 任务创建时间
|
|
510
|
-
*/
|
|
511
|
-
CreateTime: string
|
|
512
|
-
/**
|
|
513
|
-
* 任务完成时间
|
|
514
|
-
*/
|
|
515
|
-
UpdateTime: string
|
|
516
|
-
}
|