@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.
Files changed (39) hide show
  1. package/package.json +2 -2
  2. package/v1/model/RefreshTaskRequestBody.d.ts +10 -2
  3. package/v1/model/RefreshTaskRequestBody.js +10 -1
  4. package/v2/model/BackSources.d.ts +15 -0
  5. package/v2/model/BackSources.js +53 -0
  6. package/v2/model/CommonRemoteAuth.d.ts +12 -0
  7. package/v2/model/CommonRemoteAuth.js +39 -0
  8. package/v2/model/Compress.d.ts +6 -2
  9. package/v2/model/Compress.js +16 -1
  10. package/v2/model/Configs.d.ts +31 -0
  11. package/v2/model/Configs.js +88 -0
  12. package/v2/model/ConfigsGetBody.d.ts +31 -0
  13. package/v2/model/ConfigsGetBody.js +88 -0
  14. package/v2/model/CustomArgs.d.ts +9 -0
  15. package/v2/model/CustomArgs.js +21 -0
  16. package/v2/model/FlexibleOrigins.d.ts +18 -0
  17. package/v2/model/FlexibleOrigins.js +58 -0
  18. package/v2/model/HttpGetBody.d.ts +12 -0
  19. package/v2/model/HttpGetBody.js +42 -0
  20. package/v2/model/HttpPutBody.d.ts +8 -0
  21. package/v2/model/HttpPutBody.js +28 -0
  22. package/v2/model/RemoteAuthRuleVo.d.ts +62 -0
  23. package/v2/model/RemoteAuthRuleVo.js +219 -0
  24. package/v2/model/RequestLimitRules.d.ts +15 -0
  25. package/v2/model/RequestLimitRules.js +47 -0
  26. package/v2/model/SourcesConfig.d.ts +4 -0
  27. package/v2/model/SourcesConfig.js +14 -0
  28. package/v2/model/UrlAuth.d.ts +23 -7
  29. package/v2/model/UrlAuth.js +72 -13
  30. package/v2/model/UrlAuthGetBody.d.ts +22 -4
  31. package/v2/model/UrlAuthGetBody.js +72 -12
  32. package/v2/model/UserAgentFilter.d.ts +4 -0
  33. package/v2/model/UserAgentFilter.js +14 -0
  34. package/v2/model/VideoSeek.d.ts +19 -0
  35. package/v2/model/VideoSeek.js +66 -0
  36. package/v2/model/WebSocketSeek.d.ts +7 -0
  37. package/v2/model/WebSocketSeek.js +19 -0
  38. package/v2/public-api.d.ts +8 -0
  39. package/v2/public-api.js +8 -0
@@ -2,8 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.UrlAuth = void 0;
4
4
  var UrlAuth = /** @class */ (function () {
5
- function UrlAuth(status) {
5
+ function UrlAuth(status, type, expireTime, timeFormat) {
6
6
  this['status'] = status;
7
+ this['type'] = type;
8
+ this['expire_time'] = expireTime;
9
+ this['time_format'] = timeFormat;
7
10
  }
8
11
  UrlAuth.prototype.withStatus = function (status) {
9
12
  this['status'] = status;
@@ -13,34 +16,90 @@ var UrlAuth = /** @class */ (function () {
13
16
  this['type'] = type;
14
17
  return this;
15
18
  };
19
+ UrlAuth.prototype.withExpireTime = function (expireTime) {
20
+ this['expire_time'] = expireTime;
21
+ return this;
22
+ };
23
+ Object.defineProperty(UrlAuth.prototype, "expireTime", {
24
+ get: function () {
25
+ return this['expire_time'];
26
+ },
27
+ set: function (expireTime) {
28
+ this['expire_time'] = expireTime;
29
+ },
30
+ enumerable: false,
31
+ configurable: true
32
+ });
33
+ UrlAuth.prototype.withSignMethod = function (signMethod) {
34
+ this['sign_method'] = signMethod;
35
+ return this;
36
+ };
37
+ Object.defineProperty(UrlAuth.prototype, "signMethod", {
38
+ get: function () {
39
+ return this['sign_method'];
40
+ },
41
+ set: function (signMethod) {
42
+ this['sign_method'] = signMethod;
43
+ },
44
+ enumerable: false,
45
+ configurable: true
46
+ });
47
+ UrlAuth.prototype.withMatchType = function (matchType) {
48
+ this['match_type'] = matchType;
49
+ return this;
50
+ };
51
+ Object.defineProperty(UrlAuth.prototype, "matchType", {
52
+ get: function () {
53
+ return this['match_type'];
54
+ },
55
+ set: function (matchType) {
56
+ this['match_type'] = matchType;
57
+ },
58
+ enumerable: false,
59
+ configurable: true
60
+ });
16
61
  UrlAuth.prototype.withKey = function (key) {
17
62
  this['key'] = key;
18
63
  return this;
19
64
  };
20
- UrlAuth.prototype.withTimeFormat = function (timeFormat) {
21
- this['time_format'] = timeFormat;
65
+ UrlAuth.prototype.withBackupKey = function (backupKey) {
66
+ this['backup_key'] = backupKey;
22
67
  return this;
23
68
  };
24
- Object.defineProperty(UrlAuth.prototype, "timeFormat", {
69
+ Object.defineProperty(UrlAuth.prototype, "backupKey", {
25
70
  get: function () {
26
- return this['time_format'];
71
+ return this['backup_key'];
27
72
  },
28
- set: function (timeFormat) {
29
- this['time_format'] = timeFormat;
73
+ set: function (backupKey) {
74
+ this['backup_key'] = backupKey;
30
75
  },
31
76
  enumerable: false,
32
77
  configurable: true
33
78
  });
34
- UrlAuth.prototype.withExpireTime = function (expireTime) {
35
- this['expire_time'] = expireTime;
79
+ UrlAuth.prototype.withSignArg = function (signArg) {
80
+ this['sign_arg'] = signArg;
36
81
  return this;
37
82
  };
38
- Object.defineProperty(UrlAuth.prototype, "expireTime", {
83
+ Object.defineProperty(UrlAuth.prototype, "signArg", {
39
84
  get: function () {
40
- return this['expire_time'];
85
+ return this['sign_arg'];
41
86
  },
42
- set: function (expireTime) {
43
- this['expire_time'] = expireTime;
87
+ set: function (signArg) {
88
+ this['sign_arg'] = signArg;
89
+ },
90
+ enumerable: false,
91
+ configurable: true
92
+ });
93
+ UrlAuth.prototype.withTimeFormat = function (timeFormat) {
94
+ this['time_format'] = timeFormat;
95
+ return this;
96
+ };
97
+ Object.defineProperty(UrlAuth.prototype, "timeFormat", {
98
+ get: function () {
99
+ return this['time_format'];
100
+ },
101
+ set: function (timeFormat) {
102
+ this['time_format'] = timeFormat;
44
103
  },
45
104
  enumerable: false,
46
105
  configurable: true
@@ -1,15 +1,33 @@
1
1
  export declare class UrlAuthGetBody {
2
2
  status: string;
3
3
  type?: string;
4
- private 'time_format'?;
5
4
  private 'expire_time'?;
5
+ private 'sign_method'?;
6
+ private 'match_type'?;
7
+ key?: string;
8
+ private 'backup_key'?;
9
+ private 'sign_arg'?;
10
+ private 'time_format'?;
6
11
  constructor(status?: any);
7
12
  withStatus(status: string): UrlAuthGetBody;
8
13
  withType(type: string): UrlAuthGetBody;
9
- withTimeFormat(timeFormat: string): UrlAuthGetBody;
10
- set timeFormat(timeFormat: string | undefined);
11
- get timeFormat(): string | undefined;
12
14
  withExpireTime(expireTime: number): UrlAuthGetBody;
13
15
  set expireTime(expireTime: number | undefined);
14
16
  get expireTime(): number | undefined;
17
+ withSignMethod(signMethod: string): UrlAuthGetBody;
18
+ set signMethod(signMethod: string | undefined);
19
+ get signMethod(): string | undefined;
20
+ withMatchType(matchType: string): UrlAuthGetBody;
21
+ set matchType(matchType: string | undefined);
22
+ get matchType(): string | undefined;
23
+ withKey(key: string): UrlAuthGetBody;
24
+ withBackupKey(backupKey: string): UrlAuthGetBody;
25
+ set backupKey(backupKey: string | undefined);
26
+ get backupKey(): string | undefined;
27
+ withSignArg(signArg: string): UrlAuthGetBody;
28
+ set signArg(signArg: string | undefined);
29
+ get signArg(): string | undefined;
30
+ withTimeFormat(timeFormat: string): UrlAuthGetBody;
31
+ set timeFormat(timeFormat: string | undefined);
32
+ get timeFormat(): string | undefined;
15
33
  }
@@ -13,30 +13,90 @@ var UrlAuthGetBody = /** @class */ (function () {
13
13
  this['type'] = type;
14
14
  return this;
15
15
  };
16
- UrlAuthGetBody.prototype.withTimeFormat = function (timeFormat) {
17
- this['time_format'] = timeFormat;
16
+ UrlAuthGetBody.prototype.withExpireTime = function (expireTime) {
17
+ this['expire_time'] = expireTime;
18
18
  return this;
19
19
  };
20
- Object.defineProperty(UrlAuthGetBody.prototype, "timeFormat", {
20
+ Object.defineProperty(UrlAuthGetBody.prototype, "expireTime", {
21
21
  get: function () {
22
- return this['time_format'];
22
+ return this['expire_time'];
23
23
  },
24
- set: function (timeFormat) {
25
- this['time_format'] = timeFormat;
24
+ set: function (expireTime) {
25
+ this['expire_time'] = expireTime;
26
26
  },
27
27
  enumerable: false,
28
28
  configurable: true
29
29
  });
30
- UrlAuthGetBody.prototype.withExpireTime = function (expireTime) {
31
- this['expire_time'] = expireTime;
30
+ UrlAuthGetBody.prototype.withSignMethod = function (signMethod) {
31
+ this['sign_method'] = signMethod;
32
32
  return this;
33
33
  };
34
- Object.defineProperty(UrlAuthGetBody.prototype, "expireTime", {
34
+ Object.defineProperty(UrlAuthGetBody.prototype, "signMethod", {
35
35
  get: function () {
36
- return this['expire_time'];
36
+ return this['sign_method'];
37
37
  },
38
- set: function (expireTime) {
39
- this['expire_time'] = expireTime;
38
+ set: function (signMethod) {
39
+ this['sign_method'] = signMethod;
40
+ },
41
+ enumerable: false,
42
+ configurable: true
43
+ });
44
+ UrlAuthGetBody.prototype.withMatchType = function (matchType) {
45
+ this['match_type'] = matchType;
46
+ return this;
47
+ };
48
+ Object.defineProperty(UrlAuthGetBody.prototype, "matchType", {
49
+ get: function () {
50
+ return this['match_type'];
51
+ },
52
+ set: function (matchType) {
53
+ this['match_type'] = matchType;
54
+ },
55
+ enumerable: false,
56
+ configurable: true
57
+ });
58
+ UrlAuthGetBody.prototype.withKey = function (key) {
59
+ this['key'] = key;
60
+ return this;
61
+ };
62
+ UrlAuthGetBody.prototype.withBackupKey = function (backupKey) {
63
+ this['backup_key'] = backupKey;
64
+ return this;
65
+ };
66
+ Object.defineProperty(UrlAuthGetBody.prototype, "backupKey", {
67
+ get: function () {
68
+ return this['backup_key'];
69
+ },
70
+ set: function (backupKey) {
71
+ this['backup_key'] = backupKey;
72
+ },
73
+ enumerable: false,
74
+ configurable: true
75
+ });
76
+ UrlAuthGetBody.prototype.withSignArg = function (signArg) {
77
+ this['sign_arg'] = signArg;
78
+ return this;
79
+ };
80
+ Object.defineProperty(UrlAuthGetBody.prototype, "signArg", {
81
+ get: function () {
82
+ return this['sign_arg'];
83
+ },
84
+ set: function (signArg) {
85
+ this['sign_arg'] = signArg;
86
+ },
87
+ enumerable: false,
88
+ configurable: true
89
+ });
90
+ UrlAuthGetBody.prototype.withTimeFormat = function (timeFormat) {
91
+ this['time_format'] = timeFormat;
92
+ return this;
93
+ };
94
+ Object.defineProperty(UrlAuthGetBody.prototype, "timeFormat", {
95
+ get: function () {
96
+ return this['time_format'];
97
+ },
98
+ set: function (timeFormat) {
99
+ this['time_format'] = timeFormat;
40
100
  },
41
101
  enumerable: false,
42
102
  configurable: true
@@ -1,7 +1,11 @@
1
1
  export declare class UserAgentFilter {
2
2
  type: string;
3
3
  value?: string;
4
+ private 'ua_list'?;
4
5
  constructor(type?: any);
5
6
  withType(type: string): UserAgentFilter;
6
7
  withValue(value: string): UserAgentFilter;
8
+ withUaList(uaList: Array<string>): UserAgentFilter;
9
+ set uaList(uaList: Array<string> | undefined);
10
+ get uaList(): Array<string> | undefined;
7
11
  }
@@ -13,6 +13,20 @@ var UserAgentFilter = /** @class */ (function () {
13
13
  this['value'] = value;
14
14
  return this;
15
15
  };
16
+ UserAgentFilter.prototype.withUaList = function (uaList) {
17
+ this['ua_list'] = uaList;
18
+ return this;
19
+ };
20
+ Object.defineProperty(UserAgentFilter.prototype, "uaList", {
21
+ get: function () {
22
+ return this['ua_list'];
23
+ },
24
+ set: function (uaList) {
25
+ this['ua_list'] = uaList;
26
+ },
27
+ enumerable: false,
28
+ configurable: true
29
+ });
16
30
  return UserAgentFilter;
17
31
  }());
18
32
  exports.UserAgentFilter = UserAgentFilter;
@@ -0,0 +1,19 @@
1
+ export declare class VideoSeek {
2
+ private 'enable_video_seek';
3
+ private 'enable_flv_by_time_seek'?;
4
+ private 'start_parameter'?;
5
+ private 'end_parameter'?;
6
+ constructor(enableVideoSeek?: any);
7
+ withEnableVideoSeek(enableVideoSeek: boolean): VideoSeek;
8
+ set enableVideoSeek(enableVideoSeek: boolean | undefined);
9
+ get enableVideoSeek(): boolean | undefined;
10
+ withEnableFlvByTimeSeek(enableFlvByTimeSeek: boolean): VideoSeek;
11
+ set enableFlvByTimeSeek(enableFlvByTimeSeek: boolean | undefined);
12
+ get enableFlvByTimeSeek(): boolean | undefined;
13
+ withStartParameter(startParameter: string): VideoSeek;
14
+ set startParameter(startParameter: string | undefined);
15
+ get startParameter(): string | undefined;
16
+ withEndParameter(endParameter: string): VideoSeek;
17
+ set endParameter(endParameter: string | undefined);
18
+ get endParameter(): string | undefined;
19
+ }
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VideoSeek = void 0;
4
+ var VideoSeek = /** @class */ (function () {
5
+ function VideoSeek(enableVideoSeek) {
6
+ this['enable_video_seek'] = enableVideoSeek;
7
+ }
8
+ VideoSeek.prototype.withEnableVideoSeek = function (enableVideoSeek) {
9
+ this['enable_video_seek'] = enableVideoSeek;
10
+ return this;
11
+ };
12
+ Object.defineProperty(VideoSeek.prototype, "enableVideoSeek", {
13
+ get: function () {
14
+ return this['enable_video_seek'];
15
+ },
16
+ set: function (enableVideoSeek) {
17
+ this['enable_video_seek'] = enableVideoSeek;
18
+ },
19
+ enumerable: false,
20
+ configurable: true
21
+ });
22
+ VideoSeek.prototype.withEnableFlvByTimeSeek = function (enableFlvByTimeSeek) {
23
+ this['enable_flv_by_time_seek'] = enableFlvByTimeSeek;
24
+ return this;
25
+ };
26
+ Object.defineProperty(VideoSeek.prototype, "enableFlvByTimeSeek", {
27
+ get: function () {
28
+ return this['enable_flv_by_time_seek'];
29
+ },
30
+ set: function (enableFlvByTimeSeek) {
31
+ this['enable_flv_by_time_seek'] = enableFlvByTimeSeek;
32
+ },
33
+ enumerable: false,
34
+ configurable: true
35
+ });
36
+ VideoSeek.prototype.withStartParameter = function (startParameter) {
37
+ this['start_parameter'] = startParameter;
38
+ return this;
39
+ };
40
+ Object.defineProperty(VideoSeek.prototype, "startParameter", {
41
+ get: function () {
42
+ return this['start_parameter'];
43
+ },
44
+ set: function (startParameter) {
45
+ this['start_parameter'] = startParameter;
46
+ },
47
+ enumerable: false,
48
+ configurable: true
49
+ });
50
+ VideoSeek.prototype.withEndParameter = function (endParameter) {
51
+ this['end_parameter'] = endParameter;
52
+ return this;
53
+ };
54
+ Object.defineProperty(VideoSeek.prototype, "endParameter", {
55
+ get: function () {
56
+ return this['end_parameter'];
57
+ },
58
+ set: function (endParameter) {
59
+ this['end_parameter'] = endParameter;
60
+ },
61
+ enumerable: false,
62
+ configurable: true
63
+ });
64
+ return VideoSeek;
65
+ }());
66
+ exports.VideoSeek = VideoSeek;
@@ -0,0 +1,7 @@
1
+ export declare class WebSocketSeek {
2
+ status: string;
3
+ timeout: number;
4
+ constructor(status?: any, timeout?: any);
5
+ withStatus(status: string): WebSocketSeek;
6
+ withTimeout(timeout: number): WebSocketSeek;
7
+ }
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WebSocketSeek = void 0;
4
+ var WebSocketSeek = /** @class */ (function () {
5
+ function WebSocketSeek(status, timeout) {
6
+ this['status'] = status;
7
+ this['timeout'] = timeout;
8
+ }
9
+ WebSocketSeek.prototype.withStatus = function (status) {
10
+ this['status'] = status;
11
+ return this;
12
+ };
13
+ WebSocketSeek.prototype.withTimeout = function (timeout) {
14
+ this['timeout'] = timeout;
15
+ return this;
16
+ };
17
+ return WebSocketSeek;
18
+ }());
19
+ exports.WebSocketSeek = WebSocketSeek;
@@ -1,4 +1,5 @@
1
1
  export * from './CdnClient';
2
+ export * from './model/BackSources';
2
3
  export * from './model/BatchCopyConfigs';
3
4
  export * from './model/BatchCopyDRequestBody';
4
5
  export * from './model/BatchCopyDomainRequest';
@@ -8,9 +9,11 @@ export * from './model/BatchCopyErrorRspError';
8
9
  export * from './model/BatchCopyResultVo';
9
10
  export * from './model/CacheRules';
10
11
  export * from './model/CacheUrlParameterFilter';
12
+ export * from './model/CommonRemoteAuth';
11
13
  export * from './model/Compress';
12
14
  export * from './model/Configs';
13
15
  export * from './model/ConfigsGetBody';
16
+ export * from './model/CustomArgs';
14
17
  export * from './model/DomainOriginHost';
15
18
  export * from './model/Domains';
16
19
  export * from './model/DomainsWithPort';
@@ -23,6 +26,7 @@ export * from './model/ErrMsg';
23
26
  export * from './model/ErrRsp';
24
27
  export * from './model/ErrorCodeCache';
25
28
  export * from './model/ErrorCodeRedirectRules';
29
+ export * from './model/FlexibleOrigins';
26
30
  export * from './model/ForceRedirectConfig';
27
31
  export * from './model/HttpGetBody';
28
32
  export * from './model/HttpPutBody';
@@ -34,6 +38,8 @@ export * from './model/ModifyDomainConfigRequestBody';
34
38
  export * from './model/OriginRequestHeader';
35
39
  export * from './model/OriginRequestUrlRewrite';
36
40
  export * from './model/RefererConfig';
41
+ export * from './model/RemoteAuthRuleVo';
42
+ export * from './model/RequestLimitRules';
37
43
  export * from './model/SetChargeModesBody';
38
44
  export * from './model/SetChargeModesRequest';
39
45
  export * from './model/SetChargeModesResponse';
@@ -61,4 +67,6 @@ export * from './model/UpdateDomainFullConfigResponse';
61
67
  export * from './model/UrlAuth';
62
68
  export * from './model/UrlAuthGetBody';
63
69
  export * from './model/UserAgentFilter';
70
+ export * from './model/VideoSeek';
71
+ export * from './model/WebSocketSeek';
64
72
  export * from './CdnRegion';
package/v2/public-api.js CHANGED
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./CdnClient"), exports);
18
+ __exportStar(require("./model/BackSources"), exports);
18
19
  __exportStar(require("./model/BatchCopyConfigs"), exports);
19
20
  __exportStar(require("./model/BatchCopyDRequestBody"), exports);
20
21
  __exportStar(require("./model/BatchCopyDomainRequest"), exports);
@@ -24,9 +25,11 @@ __exportStar(require("./model/BatchCopyErrorRspError"), exports);
24
25
  __exportStar(require("./model/BatchCopyResultVo"), exports);
25
26
  __exportStar(require("./model/CacheRules"), exports);
26
27
  __exportStar(require("./model/CacheUrlParameterFilter"), exports);
28
+ __exportStar(require("./model/CommonRemoteAuth"), exports);
27
29
  __exportStar(require("./model/Compress"), exports);
28
30
  __exportStar(require("./model/Configs"), exports);
29
31
  __exportStar(require("./model/ConfigsGetBody"), exports);
32
+ __exportStar(require("./model/CustomArgs"), exports);
30
33
  __exportStar(require("./model/DomainOriginHost"), exports);
31
34
  __exportStar(require("./model/Domains"), exports);
32
35
  __exportStar(require("./model/DomainsWithPort"), exports);
@@ -39,6 +42,7 @@ __exportStar(require("./model/ErrMsg"), exports);
39
42
  __exportStar(require("./model/ErrRsp"), exports);
40
43
  __exportStar(require("./model/ErrorCodeCache"), exports);
41
44
  __exportStar(require("./model/ErrorCodeRedirectRules"), exports);
45
+ __exportStar(require("./model/FlexibleOrigins"), exports);
42
46
  __exportStar(require("./model/ForceRedirectConfig"), exports);
43
47
  __exportStar(require("./model/HttpGetBody"), exports);
44
48
  __exportStar(require("./model/HttpPutBody"), exports);
@@ -50,6 +54,8 @@ __exportStar(require("./model/ModifyDomainConfigRequestBody"), exports);
50
54
  __exportStar(require("./model/OriginRequestHeader"), exports);
51
55
  __exportStar(require("./model/OriginRequestUrlRewrite"), exports);
52
56
  __exportStar(require("./model/RefererConfig"), exports);
57
+ __exportStar(require("./model/RemoteAuthRuleVo"), exports);
58
+ __exportStar(require("./model/RequestLimitRules"), exports);
53
59
  __exportStar(require("./model/SetChargeModesBody"), exports);
54
60
  __exportStar(require("./model/SetChargeModesRequest"), exports);
55
61
  __exportStar(require("./model/SetChargeModesResponse"), exports);
@@ -77,4 +83,6 @@ __exportStar(require("./model/UpdateDomainFullConfigResponse"), exports);
77
83
  __exportStar(require("./model/UrlAuth"), exports);
78
84
  __exportStar(require("./model/UrlAuthGetBody"), exports);
79
85
  __exportStar(require("./model/UserAgentFilter"), exports);
86
+ __exportStar(require("./model/VideoSeek"), exports);
87
+ __exportStar(require("./model/WebSocketSeek"), exports);
80
88
  __exportStar(require("./CdnRegion"), exports);