@huaweicloud/huaweicloud-sdk-cdn 3.1.36 → 3.1.38
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/v1/model/RefreshTaskRequestBody.d.ts +10 -2
- package/v1/model/RefreshTaskRequestBody.js +10 -1
- package/v2/model/BackSources.d.ts +15 -0
- package/v2/model/BackSources.js +53 -0
- package/v2/model/CommonRemoteAuth.d.ts +12 -0
- package/v2/model/CommonRemoteAuth.js +39 -0
- package/v2/model/Compress.d.ts +6 -2
- package/v2/model/Compress.js +16 -1
- package/v2/model/Configs.d.ts +31 -0
- package/v2/model/Configs.js +88 -0
- package/v2/model/ConfigsGetBody.d.ts +31 -0
- package/v2/model/ConfigsGetBody.js +88 -0
- package/v2/model/CustomArgs.d.ts +9 -0
- package/v2/model/CustomArgs.js +21 -0
- package/v2/model/FlexibleOrigins.d.ts +18 -0
- package/v2/model/FlexibleOrigins.js +58 -0
- package/v2/model/HttpGetBody.d.ts +12 -0
- package/v2/model/HttpGetBody.js +42 -0
- package/v2/model/HttpPutBody.d.ts +8 -0
- package/v2/model/HttpPutBody.js +28 -0
- package/v2/model/RemoteAuthRuleVo.d.ts +62 -0
- package/v2/model/RemoteAuthRuleVo.js +219 -0
- package/v2/model/RequestLimitRules.d.ts +15 -0
- package/v2/model/RequestLimitRules.js +47 -0
- package/v2/model/SourcesConfig.d.ts +4 -0
- package/v2/model/SourcesConfig.js +14 -0
- package/v2/model/UrlAuth.d.ts +23 -7
- package/v2/model/UrlAuth.js +72 -13
- package/v2/model/UrlAuthGetBody.d.ts +22 -4
- package/v2/model/UrlAuthGetBody.js +72 -12
- package/v2/model/UserAgentFilter.d.ts +4 -0
- package/v2/model/UserAgentFilter.js +14 -0
- package/v2/model/VideoSeek.d.ts +19 -0
- package/v2/model/VideoSeek.js +66 -0
- package/v2/model/WebSocketSeek.d.ts +7 -0
- package/v2/model/WebSocketSeek.js +19 -0
- package/v2/public-api.d.ts +8 -0
- package/v2/public-api.js +8 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@huaweicloud/huaweicloud-sdk-cdn",
|
3
|
-
"version": "3.1.
|
3
|
+
"version": "3.1.38",
|
4
4
|
"description": "Huaweicloud SDK for cdn",
|
5
5
|
"main": "huaweicloud-sdk-cdn.js",
|
6
6
|
"typings": "huaweicloud-sdk-cdn.d.ts",
|
@@ -14,6 +14,6 @@
|
|
14
14
|
"author": "HuaweiCloud_SDK",
|
15
15
|
"license": "Apache-2.0",
|
16
16
|
"dependencies": {
|
17
|
-
"@huaweicloud/huaweicloud-sdk-core": "^3.1.
|
17
|
+
"@huaweicloud/huaweicloud-sdk-core": "^3.1.38"
|
18
18
|
}
|
19
19
|
}
|
@@ -1,10 +1,10 @@
|
|
1
1
|
export declare class RefreshTaskRequestBody {
|
2
2
|
type?: RefreshTaskRequestBodyTypeEnum;
|
3
|
-
mode?:
|
3
|
+
mode?: RefreshTaskRequestBodyModeEnum;
|
4
4
|
urls: Array<string>;
|
5
5
|
constructor(urls?: any);
|
6
6
|
withType(type: RefreshTaskRequestBodyTypeEnum): RefreshTaskRequestBody;
|
7
|
-
withMode(mode:
|
7
|
+
withMode(mode: RefreshTaskRequestBodyModeEnum): RefreshTaskRequestBody;
|
8
8
|
withUrls(urls: Array<string>): RefreshTaskRequestBody;
|
9
9
|
}
|
10
10
|
/**
|
@@ -15,3 +15,11 @@ export declare enum RefreshTaskRequestBodyTypeEnum {
|
|
15
15
|
FILE = "file",
|
16
16
|
DIRECTORY = "directory"
|
17
17
|
}
|
18
|
+
/**
|
19
|
+
* @export
|
20
|
+
* @enum {string}
|
21
|
+
*/
|
22
|
+
export declare enum RefreshTaskRequestBodyModeEnum {
|
23
|
+
ALL = "all",
|
24
|
+
DETECT_MODIFY_REFRESH = "detect_modify_refresh"
|
25
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
exports.RefreshTaskRequestBodyTypeEnum = exports.RefreshTaskRequestBody = void 0;
|
3
|
+
exports.RefreshTaskRequestBodyModeEnum = exports.RefreshTaskRequestBodyTypeEnum = exports.RefreshTaskRequestBody = void 0;
|
4
4
|
var RefreshTaskRequestBody = /** @class */ (function () {
|
5
5
|
function RefreshTaskRequestBody(urls) {
|
6
6
|
this['urls'] = urls;
|
@@ -29,3 +29,12 @@ var RefreshTaskRequestBodyTypeEnum;
|
|
29
29
|
RefreshTaskRequestBodyTypeEnum["FILE"] = "file";
|
30
30
|
RefreshTaskRequestBodyTypeEnum["DIRECTORY"] = "directory";
|
31
31
|
})(RefreshTaskRequestBodyTypeEnum = exports.RefreshTaskRequestBodyTypeEnum || (exports.RefreshTaskRequestBodyTypeEnum = {}));
|
32
|
+
/**
|
33
|
+
* @export
|
34
|
+
* @enum {string}
|
35
|
+
*/
|
36
|
+
var RefreshTaskRequestBodyModeEnum;
|
37
|
+
(function (RefreshTaskRequestBodyModeEnum) {
|
38
|
+
RefreshTaskRequestBodyModeEnum["ALL"] = "all";
|
39
|
+
RefreshTaskRequestBodyModeEnum["DETECT_MODIFY_REFRESH"] = "detect_modify_refresh";
|
40
|
+
})(RefreshTaskRequestBodyModeEnum = exports.RefreshTaskRequestBodyModeEnum || (exports.RefreshTaskRequestBodyModeEnum = {}));
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare class BackSources {
|
2
|
+
private 'sources_type';
|
3
|
+
private 'ip_or_domain';
|
4
|
+
private 'obs_bucket_type'?;
|
5
|
+
constructor(sourcesType?: any, ipOrDomain?: any);
|
6
|
+
withSourcesType(sourcesType: string): BackSources;
|
7
|
+
set sourcesType(sourcesType: string | undefined);
|
8
|
+
get sourcesType(): string | undefined;
|
9
|
+
withIpOrDomain(ipOrDomain: string): BackSources;
|
10
|
+
set ipOrDomain(ipOrDomain: string | undefined);
|
11
|
+
get ipOrDomain(): string | undefined;
|
12
|
+
withObsBucketType(obsBucketType: string): BackSources;
|
13
|
+
set obsBucketType(obsBucketType: string | undefined);
|
14
|
+
get obsBucketType(): string | undefined;
|
15
|
+
}
|
@@ -0,0 +1,53 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.BackSources = void 0;
|
4
|
+
var BackSources = /** @class */ (function () {
|
5
|
+
function BackSources(sourcesType, ipOrDomain) {
|
6
|
+
this['sources_type'] = sourcesType;
|
7
|
+
this['ip_or_domain'] = ipOrDomain;
|
8
|
+
}
|
9
|
+
BackSources.prototype.withSourcesType = function (sourcesType) {
|
10
|
+
this['sources_type'] = sourcesType;
|
11
|
+
return this;
|
12
|
+
};
|
13
|
+
Object.defineProperty(BackSources.prototype, "sourcesType", {
|
14
|
+
get: function () {
|
15
|
+
return this['sources_type'];
|
16
|
+
},
|
17
|
+
set: function (sourcesType) {
|
18
|
+
this['sources_type'] = sourcesType;
|
19
|
+
},
|
20
|
+
enumerable: false,
|
21
|
+
configurable: true
|
22
|
+
});
|
23
|
+
BackSources.prototype.withIpOrDomain = function (ipOrDomain) {
|
24
|
+
this['ip_or_domain'] = ipOrDomain;
|
25
|
+
return this;
|
26
|
+
};
|
27
|
+
Object.defineProperty(BackSources.prototype, "ipOrDomain", {
|
28
|
+
get: function () {
|
29
|
+
return this['ip_or_domain'];
|
30
|
+
},
|
31
|
+
set: function (ipOrDomain) {
|
32
|
+
this['ip_or_domain'] = ipOrDomain;
|
33
|
+
},
|
34
|
+
enumerable: false,
|
35
|
+
configurable: true
|
36
|
+
});
|
37
|
+
BackSources.prototype.withObsBucketType = function (obsBucketType) {
|
38
|
+
this['obs_bucket_type'] = obsBucketType;
|
39
|
+
return this;
|
40
|
+
};
|
41
|
+
Object.defineProperty(BackSources.prototype, "obsBucketType", {
|
42
|
+
get: function () {
|
43
|
+
return this['obs_bucket_type'];
|
44
|
+
},
|
45
|
+
set: function (obsBucketType) {
|
46
|
+
this['obs_bucket_type'] = obsBucketType;
|
47
|
+
},
|
48
|
+
enumerable: false,
|
49
|
+
configurable: true
|
50
|
+
});
|
51
|
+
return BackSources;
|
52
|
+
}());
|
53
|
+
exports.BackSources = BackSources;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { RemoteAuthRuleVo } from './RemoteAuthRuleVo';
|
2
|
+
export declare class CommonRemoteAuth {
|
3
|
+
private 'remote_authentication';
|
4
|
+
private 'remote_auth_rules';
|
5
|
+
constructor(remoteAuthentication?: any, remoteAuthRules?: any);
|
6
|
+
withRemoteAuthentication(remoteAuthentication: string): CommonRemoteAuth;
|
7
|
+
set remoteAuthentication(remoteAuthentication: string | undefined);
|
8
|
+
get remoteAuthentication(): string | undefined;
|
9
|
+
withRemoteAuthRules(remoteAuthRules: RemoteAuthRuleVo): CommonRemoteAuth;
|
10
|
+
set remoteAuthRules(remoteAuthRules: RemoteAuthRuleVo | undefined);
|
11
|
+
get remoteAuthRules(): RemoteAuthRuleVo | undefined;
|
12
|
+
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CommonRemoteAuth = void 0;
|
4
|
+
var CommonRemoteAuth = /** @class */ (function () {
|
5
|
+
function CommonRemoteAuth(remoteAuthentication, remoteAuthRules) {
|
6
|
+
this['remote_authentication'] = remoteAuthentication;
|
7
|
+
this['remote_auth_rules'] = remoteAuthRules;
|
8
|
+
}
|
9
|
+
CommonRemoteAuth.prototype.withRemoteAuthentication = function (remoteAuthentication) {
|
10
|
+
this['remote_authentication'] = remoteAuthentication;
|
11
|
+
return this;
|
12
|
+
};
|
13
|
+
Object.defineProperty(CommonRemoteAuth.prototype, "remoteAuthentication", {
|
14
|
+
get: function () {
|
15
|
+
return this['remote_authentication'];
|
16
|
+
},
|
17
|
+
set: function (remoteAuthentication) {
|
18
|
+
this['remote_authentication'] = remoteAuthentication;
|
19
|
+
},
|
20
|
+
enumerable: false,
|
21
|
+
configurable: true
|
22
|
+
});
|
23
|
+
CommonRemoteAuth.prototype.withRemoteAuthRules = function (remoteAuthRules) {
|
24
|
+
this['remote_auth_rules'] = remoteAuthRules;
|
25
|
+
return this;
|
26
|
+
};
|
27
|
+
Object.defineProperty(CommonRemoteAuth.prototype, "remoteAuthRules", {
|
28
|
+
get: function () {
|
29
|
+
return this['remote_auth_rules'];
|
30
|
+
},
|
31
|
+
set: function (remoteAuthRules) {
|
32
|
+
this['remote_auth_rules'] = remoteAuthRules;
|
33
|
+
},
|
34
|
+
enumerable: false,
|
35
|
+
configurable: true
|
36
|
+
});
|
37
|
+
return CommonRemoteAuth;
|
38
|
+
}());
|
39
|
+
exports.CommonRemoteAuth = CommonRemoteAuth;
|
package/v2/model/Compress.d.ts
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
export declare class Compress {
|
2
2
|
status: string;
|
3
|
-
type
|
4
|
-
|
3
|
+
type: string;
|
4
|
+
private 'file_type'?;
|
5
|
+
constructor(status?: any, type?: any);
|
5
6
|
withStatus(status: string): Compress;
|
6
7
|
withType(type: string): Compress;
|
8
|
+
withFileType(fileType: string): Compress;
|
9
|
+
set fileType(fileType: string | undefined);
|
10
|
+
get fileType(): string | undefined;
|
7
11
|
}
|
package/v2/model/Compress.js
CHANGED
@@ -2,8 +2,9 @@
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.Compress = void 0;
|
4
4
|
var Compress = /** @class */ (function () {
|
5
|
-
function Compress(status) {
|
5
|
+
function Compress(status, type) {
|
6
6
|
this['status'] = status;
|
7
|
+
this['type'] = type;
|
7
8
|
}
|
8
9
|
Compress.prototype.withStatus = function (status) {
|
9
10
|
this['status'] = status;
|
@@ -13,6 +14,20 @@ var Compress = /** @class */ (function () {
|
|
13
14
|
this['type'] = type;
|
14
15
|
return this;
|
15
16
|
};
|
17
|
+
Compress.prototype.withFileType = function (fileType) {
|
18
|
+
this['file_type'] = fileType;
|
19
|
+
return this;
|
20
|
+
};
|
21
|
+
Object.defineProperty(Compress.prototype, "fileType", {
|
22
|
+
get: function () {
|
23
|
+
return this['file_type'];
|
24
|
+
},
|
25
|
+
set: function (fileType) {
|
26
|
+
this['file_type'] = fileType;
|
27
|
+
},
|
28
|
+
enumerable: false,
|
29
|
+
configurable: true
|
30
|
+
});
|
16
31
|
return Compress;
|
17
32
|
}());
|
18
33
|
exports.Compress = Compress;
|
package/v2/model/Configs.d.ts
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
import { CacheRules } from './CacheRules';
|
2
2
|
import { CacheUrlParameterFilter } from './CacheUrlParameterFilter';
|
3
|
+
import { CommonRemoteAuth } from './CommonRemoteAuth';
|
3
4
|
import { Compress } from './Compress';
|
4
5
|
import { ErrorCodeCache } from './ErrorCodeCache';
|
5
6
|
import { ErrorCodeRedirectRules } from './ErrorCodeRedirectRules';
|
7
|
+
import { FlexibleOrigins } from './FlexibleOrigins';
|
6
8
|
import { ForceRedirectConfig } from './ForceRedirectConfig';
|
7
9
|
import { HttpPutBody } from './HttpPutBody';
|
8
10
|
import { HttpResponseHeader } from './HttpResponseHeader';
|
@@ -10,9 +12,12 @@ import { IpFilter } from './IpFilter';
|
|
10
12
|
import { OriginRequestHeader } from './OriginRequestHeader';
|
11
13
|
import { OriginRequestUrlRewrite } from './OriginRequestUrlRewrite';
|
12
14
|
import { RefererConfig } from './RefererConfig';
|
15
|
+
import { RequestLimitRules } from './RequestLimitRules';
|
13
16
|
import { SourcesConfig } from './SourcesConfig';
|
14
17
|
import { UrlAuth } from './UrlAuth';
|
15
18
|
import { UserAgentFilter } from './UserAgentFilter';
|
19
|
+
import { VideoSeek } from './VideoSeek';
|
20
|
+
import { WebSocketSeek } from './WebSocketSeek';
|
16
21
|
export declare class Configs {
|
17
22
|
private 'origin_request_header'?;
|
18
23
|
private 'http_response_header'?;
|
@@ -32,6 +37,13 @@ export declare class Configs {
|
|
32
37
|
private 'origin_range_status'?;
|
33
38
|
private 'user_agent_filter'?;
|
34
39
|
private 'origin_request_url_rewrite'?;
|
40
|
+
private 'flexible_origin'?;
|
41
|
+
private 'slice_etag_status'?;
|
42
|
+
private 'origin_receive_timeout'?;
|
43
|
+
private 'remote_auth'?;
|
44
|
+
websocket?: WebSocketSeek;
|
45
|
+
private 'video_seek'?;
|
46
|
+
private 'request_limit_rules'?;
|
35
47
|
private 'error_code_redirect_rules'?;
|
36
48
|
constructor();
|
37
49
|
withOriginRequestHeader(originRequestHeader: Array<OriginRequestHeader>): Configs;
|
@@ -80,6 +92,25 @@ export declare class Configs {
|
|
80
92
|
withOriginRequestUrlRewrite(originRequestUrlRewrite: Array<OriginRequestUrlRewrite>): Configs;
|
81
93
|
set originRequestUrlRewrite(originRequestUrlRewrite: Array<OriginRequestUrlRewrite> | undefined);
|
82
94
|
get originRequestUrlRewrite(): Array<OriginRequestUrlRewrite> | undefined;
|
95
|
+
withFlexibleOrigin(flexibleOrigin: Array<FlexibleOrigins>): Configs;
|
96
|
+
set flexibleOrigin(flexibleOrigin: Array<FlexibleOrigins> | undefined);
|
97
|
+
get flexibleOrigin(): Array<FlexibleOrigins> | undefined;
|
98
|
+
withSliceEtagStatus(sliceEtagStatus: string): Configs;
|
99
|
+
set sliceEtagStatus(sliceEtagStatus: string | undefined);
|
100
|
+
get sliceEtagStatus(): string | undefined;
|
101
|
+
withOriginReceiveTimeout(originReceiveTimeout: number): Configs;
|
102
|
+
set originReceiveTimeout(originReceiveTimeout: number | undefined);
|
103
|
+
get originReceiveTimeout(): number | undefined;
|
104
|
+
withRemoteAuth(remoteAuth: CommonRemoteAuth): Configs;
|
105
|
+
set remoteAuth(remoteAuth: CommonRemoteAuth | undefined);
|
106
|
+
get remoteAuth(): CommonRemoteAuth | undefined;
|
107
|
+
withWebsocket(websocket: WebSocketSeek): Configs;
|
108
|
+
withVideoSeek(videoSeek: VideoSeek): Configs;
|
109
|
+
set videoSeek(videoSeek: VideoSeek | undefined);
|
110
|
+
get videoSeek(): VideoSeek | undefined;
|
111
|
+
withRequestLimitRules(requestLimitRules: Array<RequestLimitRules>): Configs;
|
112
|
+
set requestLimitRules(requestLimitRules: Array<RequestLimitRules> | undefined);
|
113
|
+
get requestLimitRules(): Array<RequestLimitRules> | undefined;
|
83
114
|
withErrorCodeRedirectRules(errorCodeRedirectRules: Array<ErrorCodeRedirectRules>): Configs;
|
84
115
|
set errorCodeRedirectRules(errorCodeRedirectRules: Array<ErrorCodeRedirectRules> | undefined);
|
85
116
|
get errorCodeRedirectRules(): Array<ErrorCodeRedirectRules> | undefined;
|
package/v2/model/Configs.js
CHANGED
@@ -216,6 +216,94 @@ var Configs = /** @class */ (function () {
|
|
216
216
|
enumerable: false,
|
217
217
|
configurable: true
|
218
218
|
});
|
219
|
+
Configs.prototype.withFlexibleOrigin = function (flexibleOrigin) {
|
220
|
+
this['flexible_origin'] = flexibleOrigin;
|
221
|
+
return this;
|
222
|
+
};
|
223
|
+
Object.defineProperty(Configs.prototype, "flexibleOrigin", {
|
224
|
+
get: function () {
|
225
|
+
return this['flexible_origin'];
|
226
|
+
},
|
227
|
+
set: function (flexibleOrigin) {
|
228
|
+
this['flexible_origin'] = flexibleOrigin;
|
229
|
+
},
|
230
|
+
enumerable: false,
|
231
|
+
configurable: true
|
232
|
+
});
|
233
|
+
Configs.prototype.withSliceEtagStatus = function (sliceEtagStatus) {
|
234
|
+
this['slice_etag_status'] = sliceEtagStatus;
|
235
|
+
return this;
|
236
|
+
};
|
237
|
+
Object.defineProperty(Configs.prototype, "sliceEtagStatus", {
|
238
|
+
get: function () {
|
239
|
+
return this['slice_etag_status'];
|
240
|
+
},
|
241
|
+
set: function (sliceEtagStatus) {
|
242
|
+
this['slice_etag_status'] = sliceEtagStatus;
|
243
|
+
},
|
244
|
+
enumerable: false,
|
245
|
+
configurable: true
|
246
|
+
});
|
247
|
+
Configs.prototype.withOriginReceiveTimeout = function (originReceiveTimeout) {
|
248
|
+
this['origin_receive_timeout'] = originReceiveTimeout;
|
249
|
+
return this;
|
250
|
+
};
|
251
|
+
Object.defineProperty(Configs.prototype, "originReceiveTimeout", {
|
252
|
+
get: function () {
|
253
|
+
return this['origin_receive_timeout'];
|
254
|
+
},
|
255
|
+
set: function (originReceiveTimeout) {
|
256
|
+
this['origin_receive_timeout'] = originReceiveTimeout;
|
257
|
+
},
|
258
|
+
enumerable: false,
|
259
|
+
configurable: true
|
260
|
+
});
|
261
|
+
Configs.prototype.withRemoteAuth = function (remoteAuth) {
|
262
|
+
this['remote_auth'] = remoteAuth;
|
263
|
+
return this;
|
264
|
+
};
|
265
|
+
Object.defineProperty(Configs.prototype, "remoteAuth", {
|
266
|
+
get: function () {
|
267
|
+
return this['remote_auth'];
|
268
|
+
},
|
269
|
+
set: function (remoteAuth) {
|
270
|
+
this['remote_auth'] = remoteAuth;
|
271
|
+
},
|
272
|
+
enumerable: false,
|
273
|
+
configurable: true
|
274
|
+
});
|
275
|
+
Configs.prototype.withWebsocket = function (websocket) {
|
276
|
+
this['websocket'] = websocket;
|
277
|
+
return this;
|
278
|
+
};
|
279
|
+
Configs.prototype.withVideoSeek = function (videoSeek) {
|
280
|
+
this['video_seek'] = videoSeek;
|
281
|
+
return this;
|
282
|
+
};
|
283
|
+
Object.defineProperty(Configs.prototype, "videoSeek", {
|
284
|
+
get: function () {
|
285
|
+
return this['video_seek'];
|
286
|
+
},
|
287
|
+
set: function (videoSeek) {
|
288
|
+
this['video_seek'] = videoSeek;
|
289
|
+
},
|
290
|
+
enumerable: false,
|
291
|
+
configurable: true
|
292
|
+
});
|
293
|
+
Configs.prototype.withRequestLimitRules = function (requestLimitRules) {
|
294
|
+
this['request_limit_rules'] = requestLimitRules;
|
295
|
+
return this;
|
296
|
+
};
|
297
|
+
Object.defineProperty(Configs.prototype, "requestLimitRules", {
|
298
|
+
get: function () {
|
299
|
+
return this['request_limit_rules'];
|
300
|
+
},
|
301
|
+
set: function (requestLimitRules) {
|
302
|
+
this['request_limit_rules'] = requestLimitRules;
|
303
|
+
},
|
304
|
+
enumerable: false,
|
305
|
+
configurable: true
|
306
|
+
});
|
219
307
|
Configs.prototype.withErrorCodeRedirectRules = function (errorCodeRedirectRules) {
|
220
308
|
this['error_code_redirect_rules'] = errorCodeRedirectRules;
|
221
309
|
return this;
|
@@ -1,8 +1,10 @@
|
|
1
1
|
import { CacheRules } from './CacheRules';
|
2
2
|
import { CacheUrlParameterFilter } from './CacheUrlParameterFilter';
|
3
|
+
import { CommonRemoteAuth } from './CommonRemoteAuth';
|
3
4
|
import { Compress } from './Compress';
|
4
5
|
import { ErrorCodeCache } from './ErrorCodeCache';
|
5
6
|
import { ErrorCodeRedirectRules } from './ErrorCodeRedirectRules';
|
7
|
+
import { FlexibleOrigins } from './FlexibleOrigins';
|
6
8
|
import { ForceRedirectConfig } from './ForceRedirectConfig';
|
7
9
|
import { HttpGetBody } from './HttpGetBody';
|
8
10
|
import { HttpResponseHeader } from './HttpResponseHeader';
|
@@ -10,9 +12,12 @@ import { IpFilter } from './IpFilter';
|
|
10
12
|
import { OriginRequestHeader } from './OriginRequestHeader';
|
11
13
|
import { OriginRequestUrlRewrite } from './OriginRequestUrlRewrite';
|
12
14
|
import { RefererConfig } from './RefererConfig';
|
15
|
+
import { RequestLimitRules } from './RequestLimitRules';
|
13
16
|
import { SourcesConfig } from './SourcesConfig';
|
14
17
|
import { UrlAuthGetBody } from './UrlAuthGetBody';
|
15
18
|
import { UserAgentFilter } from './UserAgentFilter';
|
19
|
+
import { VideoSeek } from './VideoSeek';
|
20
|
+
import { WebSocketSeek } from './WebSocketSeek';
|
16
21
|
export declare class ConfigsGetBody {
|
17
22
|
private 'origin_request_header'?;
|
18
23
|
private 'http_response_header'?;
|
@@ -32,6 +37,13 @@ export declare class ConfigsGetBody {
|
|
32
37
|
private 'origin_range_status'?;
|
33
38
|
private 'user_agent_filter'?;
|
34
39
|
private 'origin_request_url_rewrite'?;
|
40
|
+
private 'flexible_origin'?;
|
41
|
+
private 'slice_etag_status'?;
|
42
|
+
private 'origin_receive_timeout'?;
|
43
|
+
private 'remote_auth'?;
|
44
|
+
websocket?: WebSocketSeek;
|
45
|
+
private 'video_seek'?;
|
46
|
+
private 'request_limit_rules'?;
|
35
47
|
private 'error_code_redirect_rules'?;
|
36
48
|
constructor();
|
37
49
|
withOriginRequestHeader(originRequestHeader: Array<OriginRequestHeader>): ConfigsGetBody;
|
@@ -80,6 +92,25 @@ export declare class ConfigsGetBody {
|
|
80
92
|
withOriginRequestUrlRewrite(originRequestUrlRewrite: Array<OriginRequestUrlRewrite>): ConfigsGetBody;
|
81
93
|
set originRequestUrlRewrite(originRequestUrlRewrite: Array<OriginRequestUrlRewrite> | undefined);
|
82
94
|
get originRequestUrlRewrite(): Array<OriginRequestUrlRewrite> | undefined;
|
95
|
+
withFlexibleOrigin(flexibleOrigin: Array<FlexibleOrigins>): ConfigsGetBody;
|
96
|
+
set flexibleOrigin(flexibleOrigin: Array<FlexibleOrigins> | undefined);
|
97
|
+
get flexibleOrigin(): Array<FlexibleOrigins> | undefined;
|
98
|
+
withSliceEtagStatus(sliceEtagStatus: string): ConfigsGetBody;
|
99
|
+
set sliceEtagStatus(sliceEtagStatus: string | undefined);
|
100
|
+
get sliceEtagStatus(): string | undefined;
|
101
|
+
withOriginReceiveTimeout(originReceiveTimeout: number): ConfigsGetBody;
|
102
|
+
set originReceiveTimeout(originReceiveTimeout: number | undefined);
|
103
|
+
get originReceiveTimeout(): number | undefined;
|
104
|
+
withRemoteAuth(remoteAuth: CommonRemoteAuth): ConfigsGetBody;
|
105
|
+
set remoteAuth(remoteAuth: CommonRemoteAuth | undefined);
|
106
|
+
get remoteAuth(): CommonRemoteAuth | undefined;
|
107
|
+
withWebsocket(websocket: WebSocketSeek): ConfigsGetBody;
|
108
|
+
withVideoSeek(videoSeek: VideoSeek): ConfigsGetBody;
|
109
|
+
set videoSeek(videoSeek: VideoSeek | undefined);
|
110
|
+
get videoSeek(): VideoSeek | undefined;
|
111
|
+
withRequestLimitRules(requestLimitRules: Array<RequestLimitRules>): ConfigsGetBody;
|
112
|
+
set requestLimitRules(requestLimitRules: Array<RequestLimitRules> | undefined);
|
113
|
+
get requestLimitRules(): Array<RequestLimitRules> | undefined;
|
83
114
|
withErrorCodeRedirectRules(errorCodeRedirectRules: Array<ErrorCodeRedirectRules>): ConfigsGetBody;
|
84
115
|
set errorCodeRedirectRules(errorCodeRedirectRules: Array<ErrorCodeRedirectRules> | undefined);
|
85
116
|
get errorCodeRedirectRules(): Array<ErrorCodeRedirectRules> | undefined;
|
@@ -216,6 +216,94 @@ var ConfigsGetBody = /** @class */ (function () {
|
|
216
216
|
enumerable: false,
|
217
217
|
configurable: true
|
218
218
|
});
|
219
|
+
ConfigsGetBody.prototype.withFlexibleOrigin = function (flexibleOrigin) {
|
220
|
+
this['flexible_origin'] = flexibleOrigin;
|
221
|
+
return this;
|
222
|
+
};
|
223
|
+
Object.defineProperty(ConfigsGetBody.prototype, "flexibleOrigin", {
|
224
|
+
get: function () {
|
225
|
+
return this['flexible_origin'];
|
226
|
+
},
|
227
|
+
set: function (flexibleOrigin) {
|
228
|
+
this['flexible_origin'] = flexibleOrigin;
|
229
|
+
},
|
230
|
+
enumerable: false,
|
231
|
+
configurable: true
|
232
|
+
});
|
233
|
+
ConfigsGetBody.prototype.withSliceEtagStatus = function (sliceEtagStatus) {
|
234
|
+
this['slice_etag_status'] = sliceEtagStatus;
|
235
|
+
return this;
|
236
|
+
};
|
237
|
+
Object.defineProperty(ConfigsGetBody.prototype, "sliceEtagStatus", {
|
238
|
+
get: function () {
|
239
|
+
return this['slice_etag_status'];
|
240
|
+
},
|
241
|
+
set: function (sliceEtagStatus) {
|
242
|
+
this['slice_etag_status'] = sliceEtagStatus;
|
243
|
+
},
|
244
|
+
enumerable: false,
|
245
|
+
configurable: true
|
246
|
+
});
|
247
|
+
ConfigsGetBody.prototype.withOriginReceiveTimeout = function (originReceiveTimeout) {
|
248
|
+
this['origin_receive_timeout'] = originReceiveTimeout;
|
249
|
+
return this;
|
250
|
+
};
|
251
|
+
Object.defineProperty(ConfigsGetBody.prototype, "originReceiveTimeout", {
|
252
|
+
get: function () {
|
253
|
+
return this['origin_receive_timeout'];
|
254
|
+
},
|
255
|
+
set: function (originReceiveTimeout) {
|
256
|
+
this['origin_receive_timeout'] = originReceiveTimeout;
|
257
|
+
},
|
258
|
+
enumerable: false,
|
259
|
+
configurable: true
|
260
|
+
});
|
261
|
+
ConfigsGetBody.prototype.withRemoteAuth = function (remoteAuth) {
|
262
|
+
this['remote_auth'] = remoteAuth;
|
263
|
+
return this;
|
264
|
+
};
|
265
|
+
Object.defineProperty(ConfigsGetBody.prototype, "remoteAuth", {
|
266
|
+
get: function () {
|
267
|
+
return this['remote_auth'];
|
268
|
+
},
|
269
|
+
set: function (remoteAuth) {
|
270
|
+
this['remote_auth'] = remoteAuth;
|
271
|
+
},
|
272
|
+
enumerable: false,
|
273
|
+
configurable: true
|
274
|
+
});
|
275
|
+
ConfigsGetBody.prototype.withWebsocket = function (websocket) {
|
276
|
+
this['websocket'] = websocket;
|
277
|
+
return this;
|
278
|
+
};
|
279
|
+
ConfigsGetBody.prototype.withVideoSeek = function (videoSeek) {
|
280
|
+
this['video_seek'] = videoSeek;
|
281
|
+
return this;
|
282
|
+
};
|
283
|
+
Object.defineProperty(ConfigsGetBody.prototype, "videoSeek", {
|
284
|
+
get: function () {
|
285
|
+
return this['video_seek'];
|
286
|
+
},
|
287
|
+
set: function (videoSeek) {
|
288
|
+
this['video_seek'] = videoSeek;
|
289
|
+
},
|
290
|
+
enumerable: false,
|
291
|
+
configurable: true
|
292
|
+
});
|
293
|
+
ConfigsGetBody.prototype.withRequestLimitRules = function (requestLimitRules) {
|
294
|
+
this['request_limit_rules'] = requestLimitRules;
|
295
|
+
return this;
|
296
|
+
};
|
297
|
+
Object.defineProperty(ConfigsGetBody.prototype, "requestLimitRules", {
|
298
|
+
get: function () {
|
299
|
+
return this['request_limit_rules'];
|
300
|
+
},
|
301
|
+
set: function (requestLimitRules) {
|
302
|
+
this['request_limit_rules'] = requestLimitRules;
|
303
|
+
},
|
304
|
+
enumerable: false,
|
305
|
+
configurable: true
|
306
|
+
});
|
219
307
|
ConfigsGetBody.prototype.withErrorCodeRedirectRules = function (errorCodeRedirectRules) {
|
220
308
|
this['error_code_redirect_rules'] = errorCodeRedirectRules;
|
221
309
|
return this;
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.CustomArgs = void 0;
|
4
|
+
var CustomArgs = /** @class */ (function () {
|
5
|
+
function CustomArgs() {
|
6
|
+
}
|
7
|
+
CustomArgs.prototype.withType = function (type) {
|
8
|
+
this['type'] = type;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
CustomArgs.prototype.withKey = function (key) {
|
12
|
+
this['key'] = key;
|
13
|
+
return this;
|
14
|
+
};
|
15
|
+
CustomArgs.prototype.withValue = function (value) {
|
16
|
+
this['value'] = value;
|
17
|
+
return this;
|
18
|
+
};
|
19
|
+
return CustomArgs;
|
20
|
+
}());
|
21
|
+
exports.CustomArgs = CustomArgs;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { BackSources } from './BackSources';
|
2
|
+
export declare class FlexibleOrigins {
|
3
|
+
private 'match_type';
|
4
|
+
private 'match_pattern';
|
5
|
+
priority: number;
|
6
|
+
private 'back_sources'?;
|
7
|
+
constructor(matchType?: any, matchPattern?: any, priority?: any);
|
8
|
+
withMatchType(matchType: string): FlexibleOrigins;
|
9
|
+
set matchType(matchType: string | undefined);
|
10
|
+
get matchType(): string | undefined;
|
11
|
+
withMatchPattern(matchPattern: string): FlexibleOrigins;
|
12
|
+
set matchPattern(matchPattern: string | undefined);
|
13
|
+
get matchPattern(): string | undefined;
|
14
|
+
withPriority(priority: number): FlexibleOrigins;
|
15
|
+
withBackSources(backSources: Array<BackSources>): FlexibleOrigins;
|
16
|
+
set backSources(backSources: Array<BackSources> | undefined);
|
17
|
+
get backSources(): Array<BackSources> | undefined;
|
18
|
+
}
|
@@ -0,0 +1,58 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.FlexibleOrigins = void 0;
|
4
|
+
var FlexibleOrigins = /** @class */ (function () {
|
5
|
+
function FlexibleOrigins(matchType, matchPattern, priority) {
|
6
|
+
this['match_type'] = matchType;
|
7
|
+
this['match_pattern'] = matchPattern;
|
8
|
+
this['priority'] = priority;
|
9
|
+
}
|
10
|
+
FlexibleOrigins.prototype.withMatchType = function (matchType) {
|
11
|
+
this['match_type'] = matchType;
|
12
|
+
return this;
|
13
|
+
};
|
14
|
+
Object.defineProperty(FlexibleOrigins.prototype, "matchType", {
|
15
|
+
get: function () {
|
16
|
+
return this['match_type'];
|
17
|
+
},
|
18
|
+
set: function (matchType) {
|
19
|
+
this['match_type'] = matchType;
|
20
|
+
},
|
21
|
+
enumerable: false,
|
22
|
+
configurable: true
|
23
|
+
});
|
24
|
+
FlexibleOrigins.prototype.withMatchPattern = function (matchPattern) {
|
25
|
+
this['match_pattern'] = matchPattern;
|
26
|
+
return this;
|
27
|
+
};
|
28
|
+
Object.defineProperty(FlexibleOrigins.prototype, "matchPattern", {
|
29
|
+
get: function () {
|
30
|
+
return this['match_pattern'];
|
31
|
+
},
|
32
|
+
set: function (matchPattern) {
|
33
|
+
this['match_pattern'] = matchPattern;
|
34
|
+
},
|
35
|
+
enumerable: false,
|
36
|
+
configurable: true
|
37
|
+
});
|
38
|
+
FlexibleOrigins.prototype.withPriority = function (priority) {
|
39
|
+
this['priority'] = priority;
|
40
|
+
return this;
|
41
|
+
};
|
42
|
+
FlexibleOrigins.prototype.withBackSources = function (backSources) {
|
43
|
+
this['back_sources'] = backSources;
|
44
|
+
return this;
|
45
|
+
};
|
46
|
+
Object.defineProperty(FlexibleOrigins.prototype, "backSources", {
|
47
|
+
get: function () {
|
48
|
+
return this['back_sources'];
|
49
|
+
},
|
50
|
+
set: function (backSources) {
|
51
|
+
this['back_sources'] = backSources;
|
52
|
+
},
|
53
|
+
enumerable: false,
|
54
|
+
configurable: true
|
55
|
+
});
|
56
|
+
return FlexibleOrigins;
|
57
|
+
}());
|
58
|
+
exports.FlexibleOrigins = FlexibleOrigins;
|