tencentcloud-sdk-nodejs-vod 4.1.8 → 4.1.10

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.
@@ -3,6 +3,24 @@ export class Client extends TencentCloudCommon.AbstractClient {
3
3
  constructor(clientConfig) {
4
4
  super("vod.tencentcloudapi.com", "2024-07-18", clientConfig);
5
5
  }
6
+ async ModifyIncrementalMigrationStrategy(req, cb) {
7
+ return this.request("ModifyIncrementalMigrationStrategy", req, cb);
8
+ }
9
+ async DescribeIncrementalMigrationStrategyInfos(req, cb) {
10
+ return this.request("DescribeIncrementalMigrationStrategyInfos", req, cb);
11
+ }
12
+ async CreateStorage(req, cb) {
13
+ return this.request("CreateStorage", req, cb);
14
+ }
15
+ async CreateIncrementalMigrationStrategy(req, cb) {
16
+ return this.request("CreateIncrementalMigrationStrategy", req, cb);
17
+ }
18
+ async DeleteIncrementalMigrationStrategy(req, cb) {
19
+ return this.request("DeleteIncrementalMigrationStrategy", req, cb);
20
+ }
21
+ async DescribeStorage(req, cb) {
22
+ return this.request("DescribeStorage", req, cb);
23
+ }
6
24
  async CreateStorageCredentials(req, cb) {
7
25
  return this.request("CreateStorageCredentials", req, cb);
8
26
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-vod",
3
- "version": "4.1.8",
3
+ "version": "4.1.10",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -18652,6 +18652,10 @@ export interface CreateSubAppIdRequest {
18652
18652
  * 应用简介,长度限制: 300个字符。不填则应用简介默认为空。
18653
18653
  */
18654
18654
  Description?: string;
18655
+ /**
18656
+ * 应用类型, 取值有:<li>AllInOne:一体化;</li><li>Professional:专业版。</li>默认值为 AllInOne。
18657
+ */
18658
+ Type?: string;
18655
18659
  }
18656
18660
  /**
18657
18661
  * DescribeProcedureTemplates返回参数结构体
@@ -1,11 +1,43 @@
1
1
  import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
- import { CreateStorageCredentialsRequest, CreateStorageCredentialsResponse } from "./vod_models";
2
+ import { CreateIncrementalMigrationStrategyResponse, DeleteIncrementalMigrationStrategyRequest, CreateStorageCredentialsRequest, DescribeIncrementalMigrationStrategyInfosResponse, DescribeStorageRequest, DescribeIncrementalMigrationStrategyInfosRequest, ModifyIncrementalMigrationStrategyRequest, CreateStorageCredentialsResponse, DeleteIncrementalMigrationStrategyResponse, CreateStorageRequest, DescribeStorageResponse, ModifyIncrementalMigrationStrategyResponse, CreateStorageResponse, CreateIncrementalMigrationStrategyRequest } from "./vod_models";
3
3
  /**
4
4
  * vod client
5
5
  * @class
6
6
  */
7
7
  export declare class Client extends TencentCloudCommon.AbstractClient {
8
8
  constructor(clientConfig: TencentCloudCommon.ClientConfig);
9
+ /**
10
+ * 创建增量迁移策略。
11
+ */
12
+ ModifyIncrementalMigrationStrategy(req: ModifyIncrementalMigrationStrategyRequest, cb?: (error: string, rep: ModifyIncrementalMigrationStrategyResponse) => void): Promise<ModifyIncrementalMigrationStrategyResponse>;
13
+ /**
14
+ * 查询增量迁移策略信息。
15
+ */
16
+ DescribeIncrementalMigrationStrategyInfos(req: DescribeIncrementalMigrationStrategyInfosRequest, cb?: (error: string, rep: DescribeIncrementalMigrationStrategyInfosResponse) => void): Promise<DescribeIncrementalMigrationStrategyInfosResponse>;
17
+ /**
18
+ * 该接口用于为专业版应用创建存储桶。
19
+
20
+ 注:
21
+ - 本接口仅用于专业版应用;
22
+ - 客户创建点播专业版应用时,系统默认为客户开通了部分地域的存储,用户如果需要开通其它地域的存储,可以通过该接口进行开通;
23
+ - 通过 [DescribeStorageRegions](https://cloud.tencent.com/document/product/266/72480) 接口可以查询到所有存储地域及已经开通存储桶的地域。
24
+ */
25
+ CreateStorage(req: CreateStorageRequest, cb?: (error: string, rep: CreateStorageResponse) => void): Promise<CreateStorageResponse>;
26
+ /**
27
+ * 创建增量迁移策略。
28
+ */
29
+ CreateIncrementalMigrationStrategy(req: CreateIncrementalMigrationStrategyRequest, cb?: (error: string, rep: CreateIncrementalMigrationStrategyResponse) => void): Promise<CreateIncrementalMigrationStrategyResponse>;
30
+ /**
31
+ * 删除增量迁移策略。
32
+ */
33
+ DeleteIncrementalMigrationStrategy(req: DeleteIncrementalMigrationStrategyRequest, cb?: (error: string, rep: DeleteIncrementalMigrationStrategyResponse) => void): Promise<DeleteIncrementalMigrationStrategyResponse>;
34
+ /**
35
+ * 该接口用于查询专业版应用中的存储桶信息,同时支持分页查询。
36
+
37
+ 注:
38
+ - 本接口仅用于专业版应用。
39
+ */
40
+ DescribeStorage(req: DescribeStorageRequest, cb?: (error: string, rep: DescribeStorageResponse) => void): Promise<DescribeStorageResponse>;
9
41
  /**
10
42
  * 用于按指定策略,生成专业版应用的临时访问凭证,比如生成用于客户端上传的临时凭证。
11
43
  */
@@ -28,6 +28,50 @@ class Client extends TencentCloudCommon.AbstractClient {
28
28
  constructor(clientConfig) {
29
29
  super("vod.tencentcloudapi.com", "2024-07-18", clientConfig);
30
30
  }
31
+ /**
32
+ * 创建增量迁移策略。
33
+ */
34
+ async ModifyIncrementalMigrationStrategy(req, cb) {
35
+ return this.request("ModifyIncrementalMigrationStrategy", req, cb);
36
+ }
37
+ /**
38
+ * 查询增量迁移策略信息。
39
+ */
40
+ async DescribeIncrementalMigrationStrategyInfos(req, cb) {
41
+ return this.request("DescribeIncrementalMigrationStrategyInfos", req, cb);
42
+ }
43
+ /**
44
+ * 该接口用于为专业版应用创建存储桶。
45
+
46
+ 注:
47
+ - 本接口仅用于专业版应用;
48
+ - 客户创建点播专业版应用时,系统默认为客户开通了部分地域的存储,用户如果需要开通其它地域的存储,可以通过该接口进行开通;
49
+ - 通过 [DescribeStorageRegions](https://cloud.tencent.com/document/product/266/72480) 接口可以查询到所有存储地域及已经开通存储桶的地域。
50
+ */
51
+ async CreateStorage(req, cb) {
52
+ return this.request("CreateStorage", req, cb);
53
+ }
54
+ /**
55
+ * 创建增量迁移策略。
56
+ */
57
+ async CreateIncrementalMigrationStrategy(req, cb) {
58
+ return this.request("CreateIncrementalMigrationStrategy", req, cb);
59
+ }
60
+ /**
61
+ * 删除增量迁移策略。
62
+ */
63
+ async DeleteIncrementalMigrationStrategy(req, cb) {
64
+ return this.request("DeleteIncrementalMigrationStrategy", req, cb);
65
+ }
66
+ /**
67
+ * 该接口用于查询专业版应用中的存储桶信息,同时支持分页查询。
68
+
69
+ 注:
70
+ - 本接口仅用于专业版应用。
71
+ */
72
+ async DescribeStorage(req, cb) {
73
+ return this.request("DescribeStorage", req, cb);
74
+ }
31
75
  /**
32
76
  * 用于按指定策略,生成专业版应用的临时访问凭证,比如生成用于客户端上传的临时凭证。
33
77
  */
@@ -1,23 +1,74 @@
1
1
  /**
2
- * 临时访问凭证。
2
+ * CreateIncrementalMigrationStrategy返回参数结构体
3
3
  */
4
- export interface Credentials {
4
+ export interface CreateIncrementalMigrationStrategyResponse {
5
5
  /**
6
- * 访问凭证 ID。
6
+ * 增量迁移策略 ID。
7
7
  */
8
- AccessKeyId?: string;
8
+ StrategyId?: string;
9
9
  /**
10
- * 访问凭证 Key
10
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId
11
11
  */
12
- SecretAccessKey?: string;
12
+ RequestId?: string;
13
+ }
14
+ /**
15
+ * 增量迁移策略信息。
16
+ */
17
+ export interface IncrementalMigrationStrategyInfo {
13
18
  /**
14
- * 访问凭证 Token,长度和绑定的策略有关,最长不超过 4096 字节。
19
+ * 策略 ID。
15
20
  */
16
- SessionToken?: string;
21
+ StrategyId?: string;
17
22
  /**
18
- * 访问凭证的过期时间。
23
+ * 策略名称。
19
24
  */
20
- Expiration?: string;
25
+ StrategyName?: string;
26
+ /**
27
+ * <b>策略生效的点播专业版[应用](/document/product/266/14574) ID。</b>
28
+ */
29
+ SubAppId?: number;
30
+ /**
31
+ * 策略生效的存储桶 ID。
32
+ */
33
+ BucketId?: string;
34
+ /**
35
+ * 源站类型。取值有:<li>HTTP:HTTP 源。</li>
36
+ */
37
+ OriginType?: string;
38
+ /**
39
+ * 回源源站配置。
40
+ */
41
+ HttpOriginConfig?: IncrementalMigrationHttpOriginConfig;
42
+ }
43
+ /**
44
+ * DeleteIncrementalMigrationStrategy请求参数结构体
45
+ */
46
+ export interface DeleteIncrementalMigrationStrategyRequest {
47
+ /**
48
+ * <b>点播[专业版](/document/product/266/115396)[应用](/document/product/266/14574) ID。</b>
49
+ */
50
+ SubAppId: number;
51
+ /**
52
+ * 策略生效的存储桶 ID。
53
+ */
54
+ BucketId: string;
55
+ /**
56
+ * 增量迁移策略 ID。
57
+ */
58
+ StrategyId: string;
59
+ }
60
+ /**
61
+ * 增量迁移源站信息。
62
+ */
63
+ export interface IncrementalMigrationHttpOriginInfo {
64
+ /**
65
+ * 增量迁移源站地址信息。
66
+ */
67
+ EndpointInfo: IncrementalMigrationHttpEndpointInfo;
68
+ /**
69
+ * 增量迁移源站文件信息。
70
+ */
71
+ FileInfo?: IncrementalMigrationOriginFileInfo;
21
72
  }
22
73
  /**
23
74
  * CreateStorageCredentials请求参数结构体
@@ -42,6 +93,191 @@ export interface CreateStorageCredentialsRequest {
42
93
  */
43
94
  DurationSeconds?: number;
44
95
  }
96
+ /**
97
+ * 增量迁移源站地址信息。
98
+ */
99
+ export interface IncrementalMigrationHttpEndpointInfo {
100
+ /**
101
+ * 地址信息,支持域名或 IP 地址。
102
+ */
103
+ Endpoint: string;
104
+ /**
105
+ * 备份地址信息。
106
+ */
107
+ StandbyEndpointSet?: Array<string>;
108
+ }
109
+ /**
110
+ * 增量迁移源站地址前缀配置。
111
+ */
112
+ export interface IncrementalMigrationOriginPrefixConfig {
113
+ /**
114
+ * 源站地址前缀,如填充 `test/`,则回源地址为 `http(s)://<回源域名>/test/<文件名>`。
115
+ */
116
+ Prefix?: string;
117
+ }
118
+ /**
119
+ * DescribeIncrementalMigrationStrategyInfos返回参数结构体
120
+ */
121
+ export interface DescribeIncrementalMigrationStrategyInfosResponse {
122
+ /**
123
+ * 总数。
124
+ */
125
+ TotalCount?: number;
126
+ /**
127
+ * 策略信息集合。
128
+ */
129
+ StrategyInfoSet?: Array<IncrementalMigrationStrategyInfo>;
130
+ /**
131
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
132
+ */
133
+ RequestId?: string;
134
+ }
135
+ /**
136
+ * 增量迁移回源 HTTP Header。
137
+ */
138
+ export interface IncrementalMigrationHttpHeader {
139
+ /**
140
+ * Header 键。
141
+ */
142
+ Key: string;
143
+ /**
144
+ * Header 值。
145
+ */
146
+ Value: string;
147
+ }
148
+ /**
149
+ * 专业版应用的存储信息。
150
+ */
151
+ export interface StorageInfo {
152
+ /**
153
+ * 存储桶 ID。
154
+ */
155
+ BucketId?: string;
156
+ /**
157
+ * 存储名称。
158
+ */
159
+ StorageName?: string;
160
+ /**
161
+ * 存储所在区域。
162
+ */
163
+ StorageRegion?: string;
164
+ /**
165
+ * 存储公网源站访问域名的状态,取值有:
166
+ <li>ONLINE:已生效;</li>
167
+ <li>DEPLOYING: 部署中。</li>
168
+ */
169
+ InternetAccessDomainStatus?: string;
170
+ /**
171
+ * 存储公网源站访问域名。
172
+ */
173
+ InternetAccessDomain?: string;
174
+ /**
175
+ * 存储的创建时间。
176
+ */
177
+ CreateTime?: string;
178
+ }
179
+ /**
180
+ * DescribeStorage请求参数结构体
181
+ */
182
+ export interface DescribeStorageRequest {
183
+ /**
184
+ * <b>点播专业版[应用](/document/product/266/14574) ID。</b>
185
+ */
186
+ SubAppId: number;
187
+ /**
188
+ * 过滤条件,Filters.Values 的上限为 20;若 Filters 长度为 0 则分页查询子应用 SubAppId 下的存储信息。 详细的过滤条件如下:
189
+ <li>BucketId<br>   按照【<strong>存储桶 ID</strong>】进行过滤。<br>   类型:String<br>   必选:否</li>
190
+ <li>StorageName<br>   按照【<strong>存储名称</strong>】进行过滤。<br>   类型:String<br>   必选:否</li>
191
+ */
192
+ Filters?: Array<Filter>;
193
+ /**
194
+ * 返回结果的排序。 SortBy.Field 取值有:
195
+ <li>CreateTime:创建时间。</li>若不填,SortBy.Field 默认值为 CreateTime,SortBy.Order 默认值为 Asc。
196
+ */
197
+ SortBy?: SortBy;
198
+ /**
199
+ * 分页返回的起始偏移量,默认值为 0。
200
+ */
201
+ Offset?: number;
202
+ /**
203
+ * 分页返回的记录条数,默认值为 20,最大值为 1000。
204
+ */
205
+ Limit?: number;
206
+ }
207
+ /**
208
+ * DescribeIncrementalMigrationStrategyInfos请求参数结构体
209
+ */
210
+ export interface DescribeIncrementalMigrationStrategyInfosRequest {
211
+ /**
212
+ * <b>点播[专业版](/document/product/266/115396)[应用](/document/product/266/14574) ID。</b>
213
+ */
214
+ SubAppId: number;
215
+ /**
216
+ * 过滤条件,Filters.Values 的上限为 `20`;若 Filters 长度为 `0` 则查询时无过滤条件限制。 详细的过滤条件如下: <li>BucketId<br>   按照【<strong>存储桶 ID</strong>】进行过滤<br>   类型:String<br>   必选:否<br></li><li>StrategyId<br>   按照【<strong>策略 ID</strong>】进行过滤。<br>   类型:String<br>   必选:否</li>
217
+ */
218
+ Filters?: Array<Filter>;
219
+ /**
220
+ * 返回结果的排序。 SortBy.Field 取值有:<li>UpdateTime:创建时间。</li>若不填,SortBy.Field 默认值为 `UpdateTime`,SortBy.Order 默认值为 `Desc`。
221
+ */
222
+ SortBy?: SortBy;
223
+ /**
224
+ * 分页返回的起始偏移量,默认值为 `0`。
225
+ */
226
+ Offset?: number;
227
+ /**
228
+ * 分页返回的记录条数,默认值为 `20`,最大值为 `100`。
229
+ */
230
+ Limit?: number;
231
+ }
232
+ /**
233
+ * 增量迁移回源 HTTP Header 信息。
234
+ */
235
+ export interface IncrementalMigrationHttpHeaderInfo {
236
+ /**
237
+ * Http Header 透传模式。取值有:
238
+ <li>FOLLOW_ALL:透传所有头部信息;</li>
239
+ <li>FOLLOW_PART:透传部分头部信息;</li>
240
+ <li>IGNORE_PART:忽略部分头部信息。</li>参数必填。
241
+ */
242
+ HeaderFollowMode: string;
243
+ /**
244
+ * 需透传 Header Key 集合,仅当 HeaderFollowMode 取值 `FOLLOW_PART` 时需要填充。
245
+ */
246
+ FollowHttpHeaderKeySet?: Array<string>;
247
+ /**
248
+ * 新增 Header 键值对集合。
249
+ */
250
+ NewHttpHeaderSet?: Array<IncrementalMigrationHttpHeader>;
251
+ }
252
+ /**
253
+ * ModifyIncrementalMigrationStrategy请求参数结构体
254
+ */
255
+ export interface ModifyIncrementalMigrationStrategyRequest {
256
+ /**
257
+ * <b>点播[专业版](/document/product/266/115396)[应用](/document/product/266/14574) ID。</b>
258
+ */
259
+ SubAppId: number;
260
+ /**
261
+ * 策略生效的存储桶 ID。
262
+ */
263
+ BucketId: string;
264
+ /**
265
+ * 增量迁移策略 ID。
266
+ */
267
+ StrategyId: string;
268
+ /**
269
+ * 策略名称。若不填充或填充空字符串,则不修改。
270
+ */
271
+ StrategyName?: string;
272
+ /**
273
+ * 源站类型。取值有:<li>HTTP:HTTP 源。</li>若不填或填充空字符串,则不修改。
274
+ */
275
+ OriginType?: string;
276
+ /**
277
+ * HTTP 回源源站配置,若不填则默认不修改。
278
+ */
279
+ HttpOriginConfig?: IncrementalMigrationHttpOriginConfig;
280
+ }
45
281
  /**
46
282
  * CreateStorageCredentials返回参数结构体
47
283
  */
@@ -55,3 +291,254 @@ export interface CreateStorageCredentialsResponse {
55
291
  */
56
292
  RequestId?: string;
57
293
  }
294
+ /**
295
+ * 增量迁移源站固定文件路径配置。
296
+ */
297
+ export interface IncrementalMigrationOriginFixedFileConfig {
298
+ /**
299
+ * 固定文件路径;如填充 `example/test.png`,则回源地址为: `http(s)://<回源域名>/example/test.png`。
300
+ */
301
+ FixedFilePath?: string;
302
+ }
303
+ /**
304
+ * 键值对过滤器,用于条件过滤查询。例如过滤 ID、名称或状态等。
305
+ 若存在多个 Filter 时,Filter 间的关系为逻辑与(AND)关系。
306
+ 若同一个 Filter 存在多个 Values,同一 Filter 下 Values 间的关系为逻辑或(OR)关系。
307
+
308
+ 过滤器筛选字段均为精确匹配。
309
+ */
310
+ export interface Filter {
311
+ /**
312
+ * 需要过滤的字段。
313
+ */
314
+ Name: string;
315
+ /**
316
+ * 字段的过滤值。
317
+ */
318
+ Values: Array<string>;
319
+ }
320
+ /**
321
+ * DeleteIncrementalMigrationStrategy返回参数结构体
322
+ */
323
+ export interface DeleteIncrementalMigrationStrategyResponse {
324
+ /**
325
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
326
+ */
327
+ RequestId?: string;
328
+ }
329
+ /**
330
+ * 增量迁移源站文件信息。
331
+ */
332
+ export interface IncrementalMigrationOriginFileInfo {
333
+ /**
334
+ * 文件前缀配置。
335
+ */
336
+ PrefixConfig?: IncrementalMigrationOriginPrefixConfig;
337
+ /**
338
+ * 文件后缀配置。
339
+ */
340
+ SuffixConfig?: IncrementalMigrationOriginSuffixConfig;
341
+ /**
342
+ * 固定文件配置。
343
+ */
344
+ FixedFileConfig?: IncrementalMigrationOriginFixedFileConfig;
345
+ }
346
+ /**
347
+ * 临时访问凭证。
348
+ */
349
+ export interface Credentials {
350
+ /**
351
+ * 访问凭证 ID。
352
+ */
353
+ AccessKeyId?: string;
354
+ /**
355
+ * 访问凭证 Key。
356
+ */
357
+ SecretAccessKey?: string;
358
+ /**
359
+ * 访问凭证 Token,长度和绑定的策略有关,最长不超过 4096 字节。
360
+ */
361
+ SessionToken?: string;
362
+ /**
363
+ * 访问凭证的过期时间。
364
+ */
365
+ Expiration?: string;
366
+ }
367
+ /**
368
+ * CreateStorage请求参数结构体
369
+ */
370
+ export interface CreateStorageRequest {
371
+ /**
372
+ * <b>点播专业版[应用](/document/product/266/14574) ID。</b>
373
+ */
374
+ SubAppId: number;
375
+ /**
376
+ * 存储地域,必须是系统支持地域。
377
+ 通过 [DescribeStorageRegions](https://cloud.tencent.com/document/product/266/72480) 接口可以查询到所有存储地域及已经开通存储桶的地域。
378
+ */
379
+ StorageRegion: string;
380
+ /**
381
+ * 存储名称。
382
+ <li>仅支持小写英文字母、数字、中划线 “-” 及其组合;</li>
383
+ <li>存储命名不能以 “-” 开头或结尾;</li>
384
+ <li>存储命名最大长度为 64 字符。</li>
385
+ */
386
+ StorageName: string;
387
+ }
388
+ /**
389
+ * DescribeStorage返回参数结构体
390
+ */
391
+ export interface DescribeStorageResponse {
392
+ /**
393
+ * 符合条件的存储数量。
394
+ */
395
+ TotalCount?: number;
396
+ /**
397
+ * 符合条件的存储信息列表。
398
+ */
399
+ StorageInfoSet?: Array<StorageInfo>;
400
+ /**
401
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
402
+ */
403
+ RequestId?: string;
404
+ }
405
+ /**
406
+ * ModifyIncrementalMigrationStrategy返回参数结构体
407
+ */
408
+ export interface ModifyIncrementalMigrationStrategyResponse {
409
+ /**
410
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
411
+ */
412
+ RequestId?: string;
413
+ }
414
+ /**
415
+ * 增量迁移回源条件。
416
+ */
417
+ export interface IncrementalMigrationHttpOriginCondition {
418
+ /**
419
+ * 触发回源条件的 HTTP Code。若不填充,默认取值 `404`。
420
+ */
421
+ HttpStatusCode?: number;
422
+ /**
423
+ * 触发回源条件的对象键前缀。
424
+ */
425
+ Prefix?: string;
426
+ }
427
+ /**
428
+ * CreateStorage返回参数结构体
429
+ */
430
+ export interface CreateStorageResponse {
431
+ /**
432
+ * 存储桶 ID。
433
+ */
434
+ BucketId?: string;
435
+ /**
436
+ * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
437
+ */
438
+ RequestId?: string;
439
+ }
440
+ /**
441
+ * 增量迁移回源参数。
442
+ */
443
+ export interface IncrementalMigrationHttpOriginParameter {
444
+ /**
445
+ * HTTP 头部透传信息。
446
+ */
447
+ HttpHeaderInfo: IncrementalMigrationHttpHeaderInfo;
448
+ /**
449
+ * 回源协议。取值有:
450
+ <li>HTTP:强制 HTTP;</li>
451
+ <li>HTTPS:强制 HTTPS;</li>
452
+ <li>FOLLOW:跟随请求协议。</li>若不填,默认取值 `FOLLOW`。
453
+ */
454
+ Protocol?: string;
455
+ /**
456
+ * 请求参数透传模式。取值有:
457
+ <li>FOLLOW:全部透传;</li>
458
+ <li>IGNORE:忽略,全部不透传。</li> 默认取值 `FOLLOW`。
459
+ */
460
+ QueryStringFollowMode?: string;
461
+ /**
462
+ * 重定向的 HTTP Code,目前仅支持 `301`,`302` 和 `307`。默认取值 `302`。
463
+ */
464
+ HttpRedirectCode?: number;
465
+ /**
466
+ * 源站重定向跟随模式。取值有:
467
+ <li>FOLLOW:跟随源站重定向;</li>
468
+ <li>IGNORE:忽略源站重定向。</li> 默认取值 `FOLLOW` 跟随源站重定向,即源站返回 `3xx` 时,会默认跟随至对应源站拉取数据。
469
+ */
470
+ OriginRedirectionFollowMode?: string;
471
+ }
472
+ /**
473
+ * 增量迁移源站文件后缀配置。
474
+ */
475
+ export interface IncrementalMigrationOriginSuffixConfig {
476
+ /**
477
+ * 文件后缀;如填充 `.ts` ,则回源地址为:`http(s)://<回源域名>/<文件名>.ts`。
478
+ */
479
+ Suffix?: string;
480
+ }
481
+ /**
482
+ * 增量迁移回源源站配置。
483
+ */
484
+ export interface IncrementalMigrationHttpOriginConfig {
485
+ /**
486
+ * 回源源站信息。
487
+ */
488
+ OriginInfo: IncrementalMigrationHttpOriginInfo;
489
+ /**
490
+ * 回源参数。
491
+ */
492
+ OriginParameter: IncrementalMigrationHttpOriginParameter;
493
+ /**
494
+ * 回源模式。取值有:
495
+ <li>SYNC:同步回源;</li>
496
+ <li>ASYNC:异步回源。</li>若不填,默认取 `SYNC` 同步回源。
497
+ */
498
+ Mode?: string;
499
+ /**
500
+ * 回源条件。
501
+ */
502
+ OriginCondition?: IncrementalMigrationHttpOriginCondition;
503
+ }
504
+ /**
505
+ * 排序依据。
506
+ */
507
+ export interface SortBy {
508
+ /**
509
+ * 排序字段。
510
+ */
511
+ Field: string;
512
+ /**
513
+ * 排序方式,可选值有:
514
+ <li>Asc: 升序;</li>
515
+ <li>Desc: 降序。</li>
516
+ */
517
+ Order: string;
518
+ }
519
+ /**
520
+ * CreateIncrementalMigrationStrategy请求参数结构体
521
+ */
522
+ export interface CreateIncrementalMigrationStrategyRequest {
523
+ /**
524
+ * <b>点播[专业版](/document/product/266/115396)[应用](/document/product/266/14574) ID。</b>
525
+ */
526
+ SubAppId: number;
527
+ /**
528
+ * 策略生效的存储桶 ID。
529
+ */
530
+ BucketId: string;
531
+ /**
532
+ * 增量迁移策略名称,名称长度不超过100个字符,允许的字符为:`中文、英文、0-9、_、-`。
533
+ */
534
+ StrategyName: string;
535
+ /**
536
+ * 源站类型。取值有:
537
+ <li>HTTP:HTTP 源。</li>
538
+ */
539
+ OriginType: string;
540
+ /**
541
+ * 增量迁移 HTTP 回源源站配置,当 OriginType 取值 `HTTP` 时必填。
542
+ */
543
+ HttpOriginConfig?: IncrementalMigrationHttpOriginConfig;
544
+ }