@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
@@ -2,9 +2,12 @@ export declare class HttpGetBody {
|
|
2
2
|
private 'https_status'?;
|
3
3
|
private 'certificate_name'?;
|
4
4
|
private 'certificate_value'?;
|
5
|
+
private 'expire_time'?;
|
5
6
|
private 'certificate_source'?;
|
7
|
+
private 'certificate_type'?;
|
6
8
|
private 'http2_status'?;
|
7
9
|
private 'tls_version'?;
|
10
|
+
private 'ocsp_stapling_status'?;
|
8
11
|
constructor();
|
9
12
|
withHttpsStatus(httpsStatus: string): HttpGetBody;
|
10
13
|
set httpsStatus(httpsStatus: string | undefined);
|
@@ -15,13 +18,22 @@ export declare class HttpGetBody {
|
|
15
18
|
withCertificateValue(certificateValue: string): HttpGetBody;
|
16
19
|
set certificateValue(certificateValue: string | undefined);
|
17
20
|
get certificateValue(): string | undefined;
|
21
|
+
withExpireTime(expireTime: number): HttpGetBody;
|
22
|
+
set expireTime(expireTime: number | undefined);
|
23
|
+
get expireTime(): number | undefined;
|
18
24
|
withCertificateSource(certificateSource: number): HttpGetBody;
|
19
25
|
set certificateSource(certificateSource: number | undefined);
|
20
26
|
get certificateSource(): number | undefined;
|
27
|
+
withCertificateType(certificateType: string): HttpGetBody;
|
28
|
+
set certificateType(certificateType: string | undefined);
|
29
|
+
get certificateType(): string | undefined;
|
21
30
|
withHttp2Status(http2Status: string): HttpGetBody;
|
22
31
|
set http2Status(http2Status: string | undefined);
|
23
32
|
get http2Status(): string | undefined;
|
24
33
|
withTlsVersion(tlsVersion: string): HttpGetBody;
|
25
34
|
set tlsVersion(tlsVersion: string | undefined);
|
26
35
|
get tlsVersion(): string | undefined;
|
36
|
+
withOcspStaplingStatus(ocspStaplingStatus: string): HttpGetBody;
|
37
|
+
set ocspStaplingStatus(ocspStaplingStatus: string | undefined);
|
38
|
+
get ocspStaplingStatus(): string | undefined;
|
27
39
|
}
|
package/v2/model/HttpGetBody.js
CHANGED
@@ -46,6 +46,20 @@ var HttpGetBody = /** @class */ (function () {
|
|
46
46
|
enumerable: false,
|
47
47
|
configurable: true
|
48
48
|
});
|
49
|
+
HttpGetBody.prototype.withExpireTime = function (expireTime) {
|
50
|
+
this['expire_time'] = expireTime;
|
51
|
+
return this;
|
52
|
+
};
|
53
|
+
Object.defineProperty(HttpGetBody.prototype, "expireTime", {
|
54
|
+
get: function () {
|
55
|
+
return this['expire_time'];
|
56
|
+
},
|
57
|
+
set: function (expireTime) {
|
58
|
+
this['expire_time'] = expireTime;
|
59
|
+
},
|
60
|
+
enumerable: false,
|
61
|
+
configurable: true
|
62
|
+
});
|
49
63
|
HttpGetBody.prototype.withCertificateSource = function (certificateSource) {
|
50
64
|
this['certificate_source'] = certificateSource;
|
51
65
|
return this;
|
@@ -60,6 +74,20 @@ var HttpGetBody = /** @class */ (function () {
|
|
60
74
|
enumerable: false,
|
61
75
|
configurable: true
|
62
76
|
});
|
77
|
+
HttpGetBody.prototype.withCertificateType = function (certificateType) {
|
78
|
+
this['certificate_type'] = certificateType;
|
79
|
+
return this;
|
80
|
+
};
|
81
|
+
Object.defineProperty(HttpGetBody.prototype, "certificateType", {
|
82
|
+
get: function () {
|
83
|
+
return this['certificate_type'];
|
84
|
+
},
|
85
|
+
set: function (certificateType) {
|
86
|
+
this['certificate_type'] = certificateType;
|
87
|
+
},
|
88
|
+
enumerable: false,
|
89
|
+
configurable: true
|
90
|
+
});
|
63
91
|
HttpGetBody.prototype.withHttp2Status = function (http2Status) {
|
64
92
|
this['http2_status'] = http2Status;
|
65
93
|
return this;
|
@@ -88,6 +116,20 @@ var HttpGetBody = /** @class */ (function () {
|
|
88
116
|
enumerable: false,
|
89
117
|
configurable: true
|
90
118
|
});
|
119
|
+
HttpGetBody.prototype.withOcspStaplingStatus = function (ocspStaplingStatus) {
|
120
|
+
this['ocsp_stapling_status'] = ocspStaplingStatus;
|
121
|
+
return this;
|
122
|
+
};
|
123
|
+
Object.defineProperty(HttpGetBody.prototype, "ocspStaplingStatus", {
|
124
|
+
get: function () {
|
125
|
+
return this['ocsp_stapling_status'];
|
126
|
+
},
|
127
|
+
set: function (ocspStaplingStatus) {
|
128
|
+
this['ocsp_stapling_status'] = ocspStaplingStatus;
|
129
|
+
},
|
130
|
+
enumerable: false,
|
131
|
+
configurable: true
|
132
|
+
});
|
91
133
|
return HttpGetBody;
|
92
134
|
}());
|
93
135
|
exports.HttpGetBody = HttpGetBody;
|
@@ -4,8 +4,10 @@ export declare class HttpPutBody {
|
|
4
4
|
private 'certificate_value'?;
|
5
5
|
private 'private_key'?;
|
6
6
|
private 'certificate_source'?;
|
7
|
+
private 'certificate_type'?;
|
7
8
|
private 'http2_status'?;
|
8
9
|
private 'tls_version'?;
|
10
|
+
private 'ocsp_stapling_status'?;
|
9
11
|
constructor();
|
10
12
|
withHttpsStatus(httpsStatus: string): HttpPutBody;
|
11
13
|
set httpsStatus(httpsStatus: string | undefined);
|
@@ -22,10 +24,16 @@ export declare class HttpPutBody {
|
|
22
24
|
withCertificateSource(certificateSource: number): HttpPutBody;
|
23
25
|
set certificateSource(certificateSource: number | undefined);
|
24
26
|
get certificateSource(): number | undefined;
|
27
|
+
withCertificateType(certificateType: string): HttpPutBody;
|
28
|
+
set certificateType(certificateType: string | undefined);
|
29
|
+
get certificateType(): string | undefined;
|
25
30
|
withHttp2Status(http2Status: string): HttpPutBody;
|
26
31
|
set http2Status(http2Status: string | undefined);
|
27
32
|
get http2Status(): string | undefined;
|
28
33
|
withTlsVersion(tlsVersion: string): HttpPutBody;
|
29
34
|
set tlsVersion(tlsVersion: string | undefined);
|
30
35
|
get tlsVersion(): string | undefined;
|
36
|
+
withOcspStaplingStatus(ocspStaplingStatus: string): HttpPutBody;
|
37
|
+
set ocspStaplingStatus(ocspStaplingStatus: string | undefined);
|
38
|
+
get ocspStaplingStatus(): string | undefined;
|
31
39
|
}
|
package/v2/model/HttpPutBody.js
CHANGED
@@ -74,6 +74,20 @@ var HttpPutBody = /** @class */ (function () {
|
|
74
74
|
enumerable: false,
|
75
75
|
configurable: true
|
76
76
|
});
|
77
|
+
HttpPutBody.prototype.withCertificateType = function (certificateType) {
|
78
|
+
this['certificate_type'] = certificateType;
|
79
|
+
return this;
|
80
|
+
};
|
81
|
+
Object.defineProperty(HttpPutBody.prototype, "certificateType", {
|
82
|
+
get: function () {
|
83
|
+
return this['certificate_type'];
|
84
|
+
},
|
85
|
+
set: function (certificateType) {
|
86
|
+
this['certificate_type'] = certificateType;
|
87
|
+
},
|
88
|
+
enumerable: false,
|
89
|
+
configurable: true
|
90
|
+
});
|
77
91
|
HttpPutBody.prototype.withHttp2Status = function (http2Status) {
|
78
92
|
this['http2_status'] = http2Status;
|
79
93
|
return this;
|
@@ -102,6 +116,20 @@ var HttpPutBody = /** @class */ (function () {
|
|
102
116
|
enumerable: false,
|
103
117
|
configurable: true
|
104
118
|
});
|
119
|
+
HttpPutBody.prototype.withOcspStaplingStatus = function (ocspStaplingStatus) {
|
120
|
+
this['ocsp_stapling_status'] = ocspStaplingStatus;
|
121
|
+
return this;
|
122
|
+
};
|
123
|
+
Object.defineProperty(HttpPutBody.prototype, "ocspStaplingStatus", {
|
124
|
+
get: function () {
|
125
|
+
return this['ocsp_stapling_status'];
|
126
|
+
},
|
127
|
+
set: function (ocspStaplingStatus) {
|
128
|
+
this['ocsp_stapling_status'] = ocspStaplingStatus;
|
129
|
+
},
|
130
|
+
enumerable: false,
|
131
|
+
configurable: true
|
132
|
+
});
|
105
133
|
return HttpPutBody;
|
106
134
|
}());
|
107
135
|
exports.HttpPutBody = HttpPutBody;
|
@@ -0,0 +1,62 @@
|
|
1
|
+
import { CustomArgs } from './CustomArgs';
|
2
|
+
export declare class RemoteAuthRuleVo {
|
3
|
+
private 'auth_server';
|
4
|
+
private 'request_method';
|
5
|
+
private 'file_type_setting';
|
6
|
+
private 'specified_file_type'?;
|
7
|
+
private 'reserve_args_setting';
|
8
|
+
private 'reserve_args'?;
|
9
|
+
private 'add_custom_args_rules'?;
|
10
|
+
private 'reserve_headers_setting';
|
11
|
+
private 'add_custom_headers_rules'?;
|
12
|
+
private 'auth_success_status';
|
13
|
+
private 'auth_failed_status';
|
14
|
+
private 'response_status';
|
15
|
+
timeout: number;
|
16
|
+
private 'timeout_action';
|
17
|
+
private 'reserve_headers'?;
|
18
|
+
constructor(authServer?: any, requestMethod?: any, fileTypeSetting?: any, reserveArgsSetting?: any, reserveHeadersSetting?: any, authSuccessStatus?: any, authFailedStatus?: any, responseStatus?: any, timeout?: any, timeoutAction?: any);
|
19
|
+
withAuthServer(authServer: string): RemoteAuthRuleVo;
|
20
|
+
set authServer(authServer: string | undefined);
|
21
|
+
get authServer(): string | undefined;
|
22
|
+
withRequestMethod(requestMethod: string): RemoteAuthRuleVo;
|
23
|
+
set requestMethod(requestMethod: string | undefined);
|
24
|
+
get requestMethod(): string | undefined;
|
25
|
+
withFileTypeSetting(fileTypeSetting: string): RemoteAuthRuleVo;
|
26
|
+
set fileTypeSetting(fileTypeSetting: string | undefined);
|
27
|
+
get fileTypeSetting(): string | undefined;
|
28
|
+
withSpecifiedFileType(specifiedFileType: string): RemoteAuthRuleVo;
|
29
|
+
set specifiedFileType(specifiedFileType: string | undefined);
|
30
|
+
get specifiedFileType(): string | undefined;
|
31
|
+
withReserveArgsSetting(reserveArgsSetting: string): RemoteAuthRuleVo;
|
32
|
+
set reserveArgsSetting(reserveArgsSetting: string | undefined);
|
33
|
+
get reserveArgsSetting(): string | undefined;
|
34
|
+
withReserveArgs(reserveArgs: string): RemoteAuthRuleVo;
|
35
|
+
set reserveArgs(reserveArgs: string | undefined);
|
36
|
+
get reserveArgs(): string | undefined;
|
37
|
+
withAddCustomArgsRules(addCustomArgsRules: Array<CustomArgs>): RemoteAuthRuleVo;
|
38
|
+
set addCustomArgsRules(addCustomArgsRules: Array<CustomArgs> | undefined);
|
39
|
+
get addCustomArgsRules(): Array<CustomArgs> | undefined;
|
40
|
+
withReserveHeadersSetting(reserveHeadersSetting: string): RemoteAuthRuleVo;
|
41
|
+
set reserveHeadersSetting(reserveHeadersSetting: string | undefined);
|
42
|
+
get reserveHeadersSetting(): string | undefined;
|
43
|
+
withAddCustomHeadersRules(addCustomHeadersRules: Array<CustomArgs>): RemoteAuthRuleVo;
|
44
|
+
set addCustomHeadersRules(addCustomHeadersRules: Array<CustomArgs> | undefined);
|
45
|
+
get addCustomHeadersRules(): Array<CustomArgs> | undefined;
|
46
|
+
withAuthSuccessStatus(authSuccessStatus: string): RemoteAuthRuleVo;
|
47
|
+
set authSuccessStatus(authSuccessStatus: string | undefined);
|
48
|
+
get authSuccessStatus(): string | undefined;
|
49
|
+
withAuthFailedStatus(authFailedStatus: string): RemoteAuthRuleVo;
|
50
|
+
set authFailedStatus(authFailedStatus: string | undefined);
|
51
|
+
get authFailedStatus(): string | undefined;
|
52
|
+
withResponseStatus(responseStatus: string): RemoteAuthRuleVo;
|
53
|
+
set responseStatus(responseStatus: string | undefined);
|
54
|
+
get responseStatus(): string | undefined;
|
55
|
+
withTimeout(timeout: number): RemoteAuthRuleVo;
|
56
|
+
withTimeoutAction(timeoutAction: string): RemoteAuthRuleVo;
|
57
|
+
set timeoutAction(timeoutAction: string | undefined);
|
58
|
+
get timeoutAction(): string | undefined;
|
59
|
+
withReserveHeaders(reserveHeaders: string): RemoteAuthRuleVo;
|
60
|
+
set reserveHeaders(reserveHeaders: string | undefined);
|
61
|
+
get reserveHeaders(): string | undefined;
|
62
|
+
}
|
@@ -0,0 +1,219 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RemoteAuthRuleVo = void 0;
|
4
|
+
var RemoteAuthRuleVo = /** @class */ (function () {
|
5
|
+
function RemoteAuthRuleVo(authServer, requestMethod, fileTypeSetting, reserveArgsSetting, reserveHeadersSetting, authSuccessStatus, authFailedStatus, responseStatus, timeout, timeoutAction) {
|
6
|
+
this['auth_server'] = authServer;
|
7
|
+
this['request_method'] = requestMethod;
|
8
|
+
this['file_type_setting'] = fileTypeSetting;
|
9
|
+
this['reserve_args_setting'] = reserveArgsSetting;
|
10
|
+
this['reserve_headers_setting'] = reserveHeadersSetting;
|
11
|
+
this['auth_success_status'] = authSuccessStatus;
|
12
|
+
this['auth_failed_status'] = authFailedStatus;
|
13
|
+
this['response_status'] = responseStatus;
|
14
|
+
this['timeout'] = timeout;
|
15
|
+
this['timeout_action'] = timeoutAction;
|
16
|
+
}
|
17
|
+
RemoteAuthRuleVo.prototype.withAuthServer = function (authServer) {
|
18
|
+
this['auth_server'] = authServer;
|
19
|
+
return this;
|
20
|
+
};
|
21
|
+
Object.defineProperty(RemoteAuthRuleVo.prototype, "authServer", {
|
22
|
+
get: function () {
|
23
|
+
return this['auth_server'];
|
24
|
+
},
|
25
|
+
set: function (authServer) {
|
26
|
+
this['auth_server'] = authServer;
|
27
|
+
},
|
28
|
+
enumerable: false,
|
29
|
+
configurable: true
|
30
|
+
});
|
31
|
+
RemoteAuthRuleVo.prototype.withRequestMethod = function (requestMethod) {
|
32
|
+
this['request_method'] = requestMethod;
|
33
|
+
return this;
|
34
|
+
};
|
35
|
+
Object.defineProperty(RemoteAuthRuleVo.prototype, "requestMethod", {
|
36
|
+
get: function () {
|
37
|
+
return this['request_method'];
|
38
|
+
},
|
39
|
+
set: function (requestMethod) {
|
40
|
+
this['request_method'] = requestMethod;
|
41
|
+
},
|
42
|
+
enumerable: false,
|
43
|
+
configurable: true
|
44
|
+
});
|
45
|
+
RemoteAuthRuleVo.prototype.withFileTypeSetting = function (fileTypeSetting) {
|
46
|
+
this['file_type_setting'] = fileTypeSetting;
|
47
|
+
return this;
|
48
|
+
};
|
49
|
+
Object.defineProperty(RemoteAuthRuleVo.prototype, "fileTypeSetting", {
|
50
|
+
get: function () {
|
51
|
+
return this['file_type_setting'];
|
52
|
+
},
|
53
|
+
set: function (fileTypeSetting) {
|
54
|
+
this['file_type_setting'] = fileTypeSetting;
|
55
|
+
},
|
56
|
+
enumerable: false,
|
57
|
+
configurable: true
|
58
|
+
});
|
59
|
+
RemoteAuthRuleVo.prototype.withSpecifiedFileType = function (specifiedFileType) {
|
60
|
+
this['specified_file_type'] = specifiedFileType;
|
61
|
+
return this;
|
62
|
+
};
|
63
|
+
Object.defineProperty(RemoteAuthRuleVo.prototype, "specifiedFileType", {
|
64
|
+
get: function () {
|
65
|
+
return this['specified_file_type'];
|
66
|
+
},
|
67
|
+
set: function (specifiedFileType) {
|
68
|
+
this['specified_file_type'] = specifiedFileType;
|
69
|
+
},
|
70
|
+
enumerable: false,
|
71
|
+
configurable: true
|
72
|
+
});
|
73
|
+
RemoteAuthRuleVo.prototype.withReserveArgsSetting = function (reserveArgsSetting) {
|
74
|
+
this['reserve_args_setting'] = reserveArgsSetting;
|
75
|
+
return this;
|
76
|
+
};
|
77
|
+
Object.defineProperty(RemoteAuthRuleVo.prototype, "reserveArgsSetting", {
|
78
|
+
get: function () {
|
79
|
+
return this['reserve_args_setting'];
|
80
|
+
},
|
81
|
+
set: function (reserveArgsSetting) {
|
82
|
+
this['reserve_args_setting'] = reserveArgsSetting;
|
83
|
+
},
|
84
|
+
enumerable: false,
|
85
|
+
configurable: true
|
86
|
+
});
|
87
|
+
RemoteAuthRuleVo.prototype.withReserveArgs = function (reserveArgs) {
|
88
|
+
this['reserve_args'] = reserveArgs;
|
89
|
+
return this;
|
90
|
+
};
|
91
|
+
Object.defineProperty(RemoteAuthRuleVo.prototype, "reserveArgs", {
|
92
|
+
get: function () {
|
93
|
+
return this['reserve_args'];
|
94
|
+
},
|
95
|
+
set: function (reserveArgs) {
|
96
|
+
this['reserve_args'] = reserveArgs;
|
97
|
+
},
|
98
|
+
enumerable: false,
|
99
|
+
configurable: true
|
100
|
+
});
|
101
|
+
RemoteAuthRuleVo.prototype.withAddCustomArgsRules = function (addCustomArgsRules) {
|
102
|
+
this['add_custom_args_rules'] = addCustomArgsRules;
|
103
|
+
return this;
|
104
|
+
};
|
105
|
+
Object.defineProperty(RemoteAuthRuleVo.prototype, "addCustomArgsRules", {
|
106
|
+
get: function () {
|
107
|
+
return this['add_custom_args_rules'];
|
108
|
+
},
|
109
|
+
set: function (addCustomArgsRules) {
|
110
|
+
this['add_custom_args_rules'] = addCustomArgsRules;
|
111
|
+
},
|
112
|
+
enumerable: false,
|
113
|
+
configurable: true
|
114
|
+
});
|
115
|
+
RemoteAuthRuleVo.prototype.withReserveHeadersSetting = function (reserveHeadersSetting) {
|
116
|
+
this['reserve_headers_setting'] = reserveHeadersSetting;
|
117
|
+
return this;
|
118
|
+
};
|
119
|
+
Object.defineProperty(RemoteAuthRuleVo.prototype, "reserveHeadersSetting", {
|
120
|
+
get: function () {
|
121
|
+
return this['reserve_headers_setting'];
|
122
|
+
},
|
123
|
+
set: function (reserveHeadersSetting) {
|
124
|
+
this['reserve_headers_setting'] = reserveHeadersSetting;
|
125
|
+
},
|
126
|
+
enumerable: false,
|
127
|
+
configurable: true
|
128
|
+
});
|
129
|
+
RemoteAuthRuleVo.prototype.withAddCustomHeadersRules = function (addCustomHeadersRules) {
|
130
|
+
this['add_custom_headers_rules'] = addCustomHeadersRules;
|
131
|
+
return this;
|
132
|
+
};
|
133
|
+
Object.defineProperty(RemoteAuthRuleVo.prototype, "addCustomHeadersRules", {
|
134
|
+
get: function () {
|
135
|
+
return this['add_custom_headers_rules'];
|
136
|
+
},
|
137
|
+
set: function (addCustomHeadersRules) {
|
138
|
+
this['add_custom_headers_rules'] = addCustomHeadersRules;
|
139
|
+
},
|
140
|
+
enumerable: false,
|
141
|
+
configurable: true
|
142
|
+
});
|
143
|
+
RemoteAuthRuleVo.prototype.withAuthSuccessStatus = function (authSuccessStatus) {
|
144
|
+
this['auth_success_status'] = authSuccessStatus;
|
145
|
+
return this;
|
146
|
+
};
|
147
|
+
Object.defineProperty(RemoteAuthRuleVo.prototype, "authSuccessStatus", {
|
148
|
+
get: function () {
|
149
|
+
return this['auth_success_status'];
|
150
|
+
},
|
151
|
+
set: function (authSuccessStatus) {
|
152
|
+
this['auth_success_status'] = authSuccessStatus;
|
153
|
+
},
|
154
|
+
enumerable: false,
|
155
|
+
configurable: true
|
156
|
+
});
|
157
|
+
RemoteAuthRuleVo.prototype.withAuthFailedStatus = function (authFailedStatus) {
|
158
|
+
this['auth_failed_status'] = authFailedStatus;
|
159
|
+
return this;
|
160
|
+
};
|
161
|
+
Object.defineProperty(RemoteAuthRuleVo.prototype, "authFailedStatus", {
|
162
|
+
get: function () {
|
163
|
+
return this['auth_failed_status'];
|
164
|
+
},
|
165
|
+
set: function (authFailedStatus) {
|
166
|
+
this['auth_failed_status'] = authFailedStatus;
|
167
|
+
},
|
168
|
+
enumerable: false,
|
169
|
+
configurable: true
|
170
|
+
});
|
171
|
+
RemoteAuthRuleVo.prototype.withResponseStatus = function (responseStatus) {
|
172
|
+
this['response_status'] = responseStatus;
|
173
|
+
return this;
|
174
|
+
};
|
175
|
+
Object.defineProperty(RemoteAuthRuleVo.prototype, "responseStatus", {
|
176
|
+
get: function () {
|
177
|
+
return this['response_status'];
|
178
|
+
},
|
179
|
+
set: function (responseStatus) {
|
180
|
+
this['response_status'] = responseStatus;
|
181
|
+
},
|
182
|
+
enumerable: false,
|
183
|
+
configurable: true
|
184
|
+
});
|
185
|
+
RemoteAuthRuleVo.prototype.withTimeout = function (timeout) {
|
186
|
+
this['timeout'] = timeout;
|
187
|
+
return this;
|
188
|
+
};
|
189
|
+
RemoteAuthRuleVo.prototype.withTimeoutAction = function (timeoutAction) {
|
190
|
+
this['timeout_action'] = timeoutAction;
|
191
|
+
return this;
|
192
|
+
};
|
193
|
+
Object.defineProperty(RemoteAuthRuleVo.prototype, "timeoutAction", {
|
194
|
+
get: function () {
|
195
|
+
return this['timeout_action'];
|
196
|
+
},
|
197
|
+
set: function (timeoutAction) {
|
198
|
+
this['timeout_action'] = timeoutAction;
|
199
|
+
},
|
200
|
+
enumerable: false,
|
201
|
+
configurable: true
|
202
|
+
});
|
203
|
+
RemoteAuthRuleVo.prototype.withReserveHeaders = function (reserveHeaders) {
|
204
|
+
this['reserve_headers'] = reserveHeaders;
|
205
|
+
return this;
|
206
|
+
};
|
207
|
+
Object.defineProperty(RemoteAuthRuleVo.prototype, "reserveHeaders", {
|
208
|
+
get: function () {
|
209
|
+
return this['reserve_headers'];
|
210
|
+
},
|
211
|
+
set: function (reserveHeaders) {
|
212
|
+
this['reserve_headers'] = reserveHeaders;
|
213
|
+
},
|
214
|
+
enumerable: false,
|
215
|
+
configurable: true
|
216
|
+
});
|
217
|
+
return RemoteAuthRuleVo;
|
218
|
+
}());
|
219
|
+
exports.RemoteAuthRuleVo = RemoteAuthRuleVo;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare class RequestLimitRules {
|
2
|
+
status: string;
|
3
|
+
type: string;
|
4
|
+
private 'limit_rate_after'?;
|
5
|
+
private 'limit_rate_value'?;
|
6
|
+
constructor(status?: any, type?: any);
|
7
|
+
withStatus(status: string): RequestLimitRules;
|
8
|
+
withType(type: string): RequestLimitRules;
|
9
|
+
withLimitRateAfter(limitRateAfter: number): RequestLimitRules;
|
10
|
+
set limitRateAfter(limitRateAfter: number | undefined);
|
11
|
+
get limitRateAfter(): number | undefined;
|
12
|
+
withLimitRateValue(limitRateValue: number): RequestLimitRules;
|
13
|
+
set limitRateValue(limitRateValue: number | undefined);
|
14
|
+
get limitRateValue(): number | undefined;
|
15
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RequestLimitRules = void 0;
|
4
|
+
var RequestLimitRules = /** @class */ (function () {
|
5
|
+
function RequestLimitRules(status, type) {
|
6
|
+
this['status'] = status;
|
7
|
+
this['type'] = type;
|
8
|
+
}
|
9
|
+
RequestLimitRules.prototype.withStatus = function (status) {
|
10
|
+
this['status'] = status;
|
11
|
+
return this;
|
12
|
+
};
|
13
|
+
RequestLimitRules.prototype.withType = function (type) {
|
14
|
+
this['type'] = type;
|
15
|
+
return this;
|
16
|
+
};
|
17
|
+
RequestLimitRules.prototype.withLimitRateAfter = function (limitRateAfter) {
|
18
|
+
this['limit_rate_after'] = limitRateAfter;
|
19
|
+
return this;
|
20
|
+
};
|
21
|
+
Object.defineProperty(RequestLimitRules.prototype, "limitRateAfter", {
|
22
|
+
get: function () {
|
23
|
+
return this['limit_rate_after'];
|
24
|
+
},
|
25
|
+
set: function (limitRateAfter) {
|
26
|
+
this['limit_rate_after'] = limitRateAfter;
|
27
|
+
},
|
28
|
+
enumerable: false,
|
29
|
+
configurable: true
|
30
|
+
});
|
31
|
+
RequestLimitRules.prototype.withLimitRateValue = function (limitRateValue) {
|
32
|
+
this['limit_rate_value'] = limitRateValue;
|
33
|
+
return this;
|
34
|
+
};
|
35
|
+
Object.defineProperty(RequestLimitRules.prototype, "limitRateValue", {
|
36
|
+
get: function () {
|
37
|
+
return this['limit_rate_value'];
|
38
|
+
},
|
39
|
+
set: function (limitRateValue) {
|
40
|
+
this['limit_rate_value'] = limitRateValue;
|
41
|
+
},
|
42
|
+
enumerable: false,
|
43
|
+
configurable: true
|
44
|
+
});
|
45
|
+
return RequestLimitRules;
|
46
|
+
}());
|
47
|
+
exports.RequestLimitRules = RequestLimitRules;
|
@@ -6,6 +6,7 @@ export declare class SourcesConfig {
|
|
6
6
|
private 'http_port'?;
|
7
7
|
private 'https_port'?;
|
8
8
|
private 'host_name'?;
|
9
|
+
private 'obs_bucket_type'?;
|
9
10
|
constructor(originAddr?: any, originType?: any, priority?: any);
|
10
11
|
withOriginAddr(originAddr: string): SourcesConfig;
|
11
12
|
set originAddr(originAddr: string | undefined);
|
@@ -26,4 +27,7 @@ export declare class SourcesConfig {
|
|
26
27
|
withHostName(hostName: string): SourcesConfig;
|
27
28
|
set hostName(hostName: string | undefined);
|
28
29
|
get hostName(): string | undefined;
|
30
|
+
withObsBucketType(obsBucketType: string): SourcesConfig;
|
31
|
+
set obsBucketType(obsBucketType: string | undefined);
|
32
|
+
get obsBucketType(): string | undefined;
|
29
33
|
}
|
@@ -95,6 +95,20 @@ var SourcesConfig = /** @class */ (function () {
|
|
95
95
|
enumerable: false,
|
96
96
|
configurable: true
|
97
97
|
});
|
98
|
+
SourcesConfig.prototype.withObsBucketType = function (obsBucketType) {
|
99
|
+
this['obs_bucket_type'] = obsBucketType;
|
100
|
+
return this;
|
101
|
+
};
|
102
|
+
Object.defineProperty(SourcesConfig.prototype, "obsBucketType", {
|
103
|
+
get: function () {
|
104
|
+
return this['obs_bucket_type'];
|
105
|
+
},
|
106
|
+
set: function (obsBucketType) {
|
107
|
+
this['obs_bucket_type'] = obsBucketType;
|
108
|
+
},
|
109
|
+
enumerable: false,
|
110
|
+
configurable: true
|
111
|
+
});
|
98
112
|
return SourcesConfig;
|
99
113
|
}());
|
100
114
|
exports.SourcesConfig = SourcesConfig;
|
package/v2/model/UrlAuth.d.ts
CHANGED
@@ -1,17 +1,33 @@
|
|
1
1
|
export declare class UrlAuth {
|
2
2
|
status: string;
|
3
|
-
type
|
3
|
+
type: string;
|
4
|
+
private 'expire_time';
|
5
|
+
private 'sign_method'?;
|
6
|
+
private 'match_type'?;
|
4
7
|
key?: string;
|
5
|
-
private '
|
6
|
-
private '
|
7
|
-
|
8
|
+
private 'backup_key'?;
|
9
|
+
private 'sign_arg'?;
|
10
|
+
private 'time_format';
|
11
|
+
constructor(status?: any, type?: any, expireTime?: any, timeFormat?: any);
|
8
12
|
withStatus(status: string): UrlAuth;
|
9
13
|
withType(type: string): UrlAuth;
|
14
|
+
withExpireTime(expireTime: number): UrlAuth;
|
15
|
+
set expireTime(expireTime: number | undefined);
|
16
|
+
get expireTime(): number | undefined;
|
17
|
+
withSignMethod(signMethod: string): UrlAuth;
|
18
|
+
set signMethod(signMethod: string | undefined);
|
19
|
+
get signMethod(): string | undefined;
|
20
|
+
withMatchType(matchType: string): UrlAuth;
|
21
|
+
set matchType(matchType: string | undefined);
|
22
|
+
get matchType(): string | undefined;
|
10
23
|
withKey(key: string): UrlAuth;
|
24
|
+
withBackupKey(backupKey: string): UrlAuth;
|
25
|
+
set backupKey(backupKey: string | undefined);
|
26
|
+
get backupKey(): string | undefined;
|
27
|
+
withSignArg(signArg: string): UrlAuth;
|
28
|
+
set signArg(signArg: string | undefined);
|
29
|
+
get signArg(): string | undefined;
|
11
30
|
withTimeFormat(timeFormat: string): UrlAuth;
|
12
31
|
set timeFormat(timeFormat: string | undefined);
|
13
32
|
get timeFormat(): string | undefined;
|
14
|
-
withExpireTime(expireTime: number): UrlAuth;
|
15
|
-
set expireTime(expireTime: number | undefined);
|
16
|
-
get expireTime(): number | undefined;
|
17
33
|
}
|