@huaweicloud/huaweicloud-sdk-cdn 3.1.34 → 3.1.35
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/CacheRules.d.ts +31 -0
- package/v1/model/CacheRules.js +107 -0
- package/v1/model/Configs.d.ts +17 -0
- package/v1/model/Configs.js +46 -0
- package/v1/model/ConfigsGetBody.d.ts +17 -0
- package/v1/model/ConfigsGetBody.js +46 -0
- package/v1/model/ForceRedirectConfig.d.ts +4 -0
- package/v1/model/ForceRedirectConfig.js +14 -0
- package/v1/model/IpFilter.d.ts +7 -0
- package/v1/model/IpFilter.js +18 -0
- package/v1/model/RefererConfig.d.ts +11 -0
- package/v1/model/RefererConfig.js +32 -0
- package/v1/public-api.d.ts +3 -0
- package/v1/public-api.js +3 -0
- package/v2/CdnClient.d.ts +57 -0
- package/v2/CdnClient.js +122 -0
- package/v2/model/CacheRules.d.ts +31 -0
- package/v2/model/CacheRules.js +107 -0
- package/v2/model/CacheUrlParameterFilter.d.ts +7 -0
- package/v2/model/CacheUrlParameterFilter.js +17 -0
- package/v2/model/Compress.d.ts +7 -0
- package/v2/model/Compress.js +18 -0
- package/v2/model/Configs.d.ts +86 -0
- package/v2/model/Configs.js +235 -0
- package/v2/model/ConfigsGetBody.d.ts +78 -0
- package/v2/model/ConfigsGetBody.js +207 -0
- package/v2/model/ErrorCodeCache.d.ts +23 -0
- package/v2/model/ErrorCodeCache.js +34 -0
- package/v2/model/ErrorCodeRedirectRules.d.ts +15 -0
- package/v2/model/ErrorCodeRedirectRules.js +54 -0
- package/v2/model/ForceRedirectConfig.d.ts +11 -0
- package/v2/model/ForceRedirectConfig.js +32 -0
- package/v2/model/HttpGetBody.d.ts +27 -0
- package/v2/model/HttpGetBody.js +93 -0
- package/v2/model/HttpPutBody.d.ts +31 -0
- package/v2/model/HttpPutBody.js +107 -0
- package/v2/model/HttpResponseHeader.d.ts +9 -0
- package/v2/model/HttpResponseHeader.js +23 -0
- package/v2/model/IpFilter.d.ts +7 -0
- package/v2/model/IpFilter.js +18 -0
- package/v2/model/ModifyDomainConfigRequestBody.d.ts +6 -0
- package/v2/model/ModifyDomainConfigRequestBody.js +13 -0
- package/v2/model/OriginRequestHeader.d.ts +9 -0
- package/v2/model/OriginRequestHeader.js +23 -0
- package/v2/model/OriginRequestUrlRewrite.d.ts +17 -0
- package/v2/model/OriginRequestUrlRewrite.js +58 -0
- package/v2/model/RefererConfig.d.ts +11 -0
- package/v2/model/RefererConfig.js +32 -0
- package/v2/model/ShowDomainFullConfigRequest.d.ts +11 -0
- package/v2/model/ShowDomainFullConfigRequest.js +38 -0
- package/v2/model/ShowDomainFullConfigResponse.d.ts +7 -0
- package/v2/model/ShowDomainFullConfigResponse.js +31 -0
- package/v2/model/UpdateDomainFullConfigRequest.d.ts +14 -0
- package/v2/model/UpdateDomainFullConfigRequest.js +42 -0
- package/v2/model/UpdateDomainFullConfigResponse.d.ts +4 -0
- package/v2/model/UpdateDomainFullConfigResponse.js +27 -0
- package/v2/model/UrlAuth.d.ts +17 -0
- package/v2/model/UrlAuth.js +50 -0
- package/v2/model/UrlAuthGetBody.d.ts +15 -0
- package/v2/model/UrlAuthGetBody.js +46 -0
- package/v2/model/UserAgentFilter.d.ts +7 -0
- package/v2/model/UserAgentFilter.js +18 -0
- package/v2/public-api.d.ts +23 -0
- package/v2/public-api.js +23 -0
@@ -0,0 +1,78 @@
|
|
1
|
+
import { CacheRules } from './CacheRules';
|
2
|
+
import { CacheUrlParameterFilter } from './CacheUrlParameterFilter';
|
3
|
+
import { Compress } from './Compress';
|
4
|
+
import { ErrorCodeCache } from './ErrorCodeCache';
|
5
|
+
import { ErrorCodeRedirectRules } from './ErrorCodeRedirectRules';
|
6
|
+
import { ForceRedirectConfig } from './ForceRedirectConfig';
|
7
|
+
import { HttpGetBody } from './HttpGetBody';
|
8
|
+
import { HttpResponseHeader } from './HttpResponseHeader';
|
9
|
+
import { IpFilter } from './IpFilter';
|
10
|
+
import { OriginRequestHeader } from './OriginRequestHeader';
|
11
|
+
import { OriginRequestUrlRewrite } from './OriginRequestUrlRewrite';
|
12
|
+
import { RefererConfig } from './RefererConfig';
|
13
|
+
import { SourcesConfig } from './SourcesConfig';
|
14
|
+
import { UrlAuthGetBody } from './UrlAuthGetBody';
|
15
|
+
import { UserAgentFilter } from './UserAgentFilter';
|
16
|
+
export declare class ConfigsGetBody {
|
17
|
+
private 'origin_request_header'?;
|
18
|
+
private 'http_response_header'?;
|
19
|
+
private 'url_auth'?;
|
20
|
+
https?: HttpGetBody;
|
21
|
+
sources?: Array<SourcesConfig>;
|
22
|
+
private 'origin_protocol'?;
|
23
|
+
private 'origin_follow302_status'?;
|
24
|
+
private 'cache_rules'?;
|
25
|
+
private 'ip_filter'?;
|
26
|
+
referer?: RefererConfig;
|
27
|
+
private 'force_redirect'?;
|
28
|
+
compress?: Compress;
|
29
|
+
private 'cache_url_parameter_filter'?;
|
30
|
+
private 'error_code_cache'?;
|
31
|
+
private 'user_agent_filter'?;
|
32
|
+
private 'origin_request_url_rewrite'?;
|
33
|
+
private 'error_code_redirect_rules'?;
|
34
|
+
constructor();
|
35
|
+
withOriginRequestHeader(originRequestHeader: Array<OriginRequestHeader>): ConfigsGetBody;
|
36
|
+
set originRequestHeader(originRequestHeader: Array<OriginRequestHeader> | undefined);
|
37
|
+
get originRequestHeader(): Array<OriginRequestHeader> | undefined;
|
38
|
+
withHttpResponseHeader(httpResponseHeader: Array<HttpResponseHeader>): ConfigsGetBody;
|
39
|
+
set httpResponseHeader(httpResponseHeader: Array<HttpResponseHeader> | undefined);
|
40
|
+
get httpResponseHeader(): Array<HttpResponseHeader> | undefined;
|
41
|
+
withUrlAuth(urlAuth: UrlAuthGetBody): ConfigsGetBody;
|
42
|
+
set urlAuth(urlAuth: UrlAuthGetBody | undefined);
|
43
|
+
get urlAuth(): UrlAuthGetBody | undefined;
|
44
|
+
withHttps(https: HttpGetBody): ConfigsGetBody;
|
45
|
+
withSources(sources: Array<SourcesConfig>): ConfigsGetBody;
|
46
|
+
withOriginProtocol(originProtocol: string): ConfigsGetBody;
|
47
|
+
set originProtocol(originProtocol: string | undefined);
|
48
|
+
get originProtocol(): string | undefined;
|
49
|
+
withOriginFollow302Status(originFollow302Status: string): ConfigsGetBody;
|
50
|
+
set originFollow302Status(originFollow302Status: string | undefined);
|
51
|
+
get originFollow302Status(): string | undefined;
|
52
|
+
withCacheRules(cacheRules: Array<CacheRules>): ConfigsGetBody;
|
53
|
+
set cacheRules(cacheRules: Array<CacheRules> | undefined);
|
54
|
+
get cacheRules(): Array<CacheRules> | undefined;
|
55
|
+
withIpFilter(ipFilter: IpFilter): ConfigsGetBody;
|
56
|
+
set ipFilter(ipFilter: IpFilter | undefined);
|
57
|
+
get ipFilter(): IpFilter | undefined;
|
58
|
+
withReferer(referer: RefererConfig): ConfigsGetBody;
|
59
|
+
withForceRedirect(forceRedirect: ForceRedirectConfig): ConfigsGetBody;
|
60
|
+
set forceRedirect(forceRedirect: ForceRedirectConfig | undefined);
|
61
|
+
get forceRedirect(): ForceRedirectConfig | undefined;
|
62
|
+
withCompress(compress: Compress): ConfigsGetBody;
|
63
|
+
withCacheUrlParameterFilter(cacheUrlParameterFilter: CacheUrlParameterFilter): ConfigsGetBody;
|
64
|
+
set cacheUrlParameterFilter(cacheUrlParameterFilter: CacheUrlParameterFilter | undefined);
|
65
|
+
get cacheUrlParameterFilter(): CacheUrlParameterFilter | undefined;
|
66
|
+
withErrorCodeCache(errorCodeCache: Array<ErrorCodeCache>): ConfigsGetBody;
|
67
|
+
set errorCodeCache(errorCodeCache: Array<ErrorCodeCache> | undefined);
|
68
|
+
get errorCodeCache(): Array<ErrorCodeCache> | undefined;
|
69
|
+
withUserAgentFilter(userAgentFilter: UserAgentFilter): ConfigsGetBody;
|
70
|
+
set userAgentFilter(userAgentFilter: UserAgentFilter | undefined);
|
71
|
+
get userAgentFilter(): UserAgentFilter | undefined;
|
72
|
+
withOriginRequestUrlRewrite(originRequestUrlRewrite: Array<OriginRequestUrlRewrite>): ConfigsGetBody;
|
73
|
+
set originRequestUrlRewrite(originRequestUrlRewrite: Array<OriginRequestUrlRewrite> | undefined);
|
74
|
+
get originRequestUrlRewrite(): Array<OriginRequestUrlRewrite> | undefined;
|
75
|
+
withErrorCodeRedirectRules(errorCodeRedirectRules: Array<ErrorCodeRedirectRules>): ConfigsGetBody;
|
76
|
+
set errorCodeRedirectRules(errorCodeRedirectRules: Array<ErrorCodeRedirectRules> | undefined);
|
77
|
+
get errorCodeRedirectRules(): Array<ErrorCodeRedirectRules> | undefined;
|
78
|
+
}
|
@@ -0,0 +1,207 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ConfigsGetBody = void 0;
|
4
|
+
var ConfigsGetBody = /** @class */ (function () {
|
5
|
+
function ConfigsGetBody() {
|
6
|
+
}
|
7
|
+
ConfigsGetBody.prototype.withOriginRequestHeader = function (originRequestHeader) {
|
8
|
+
this['origin_request_header'] = originRequestHeader;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
Object.defineProperty(ConfigsGetBody.prototype, "originRequestHeader", {
|
12
|
+
get: function () {
|
13
|
+
return this['origin_request_header'];
|
14
|
+
},
|
15
|
+
set: function (originRequestHeader) {
|
16
|
+
this['origin_request_header'] = originRequestHeader;
|
17
|
+
},
|
18
|
+
enumerable: false,
|
19
|
+
configurable: true
|
20
|
+
});
|
21
|
+
ConfigsGetBody.prototype.withHttpResponseHeader = function (httpResponseHeader) {
|
22
|
+
this['http_response_header'] = httpResponseHeader;
|
23
|
+
return this;
|
24
|
+
};
|
25
|
+
Object.defineProperty(ConfigsGetBody.prototype, "httpResponseHeader", {
|
26
|
+
get: function () {
|
27
|
+
return this['http_response_header'];
|
28
|
+
},
|
29
|
+
set: function (httpResponseHeader) {
|
30
|
+
this['http_response_header'] = httpResponseHeader;
|
31
|
+
},
|
32
|
+
enumerable: false,
|
33
|
+
configurable: true
|
34
|
+
});
|
35
|
+
ConfigsGetBody.prototype.withUrlAuth = function (urlAuth) {
|
36
|
+
this['url_auth'] = urlAuth;
|
37
|
+
return this;
|
38
|
+
};
|
39
|
+
Object.defineProperty(ConfigsGetBody.prototype, "urlAuth", {
|
40
|
+
get: function () {
|
41
|
+
return this['url_auth'];
|
42
|
+
},
|
43
|
+
set: function (urlAuth) {
|
44
|
+
this['url_auth'] = urlAuth;
|
45
|
+
},
|
46
|
+
enumerable: false,
|
47
|
+
configurable: true
|
48
|
+
});
|
49
|
+
ConfigsGetBody.prototype.withHttps = function (https) {
|
50
|
+
this['https'] = https;
|
51
|
+
return this;
|
52
|
+
};
|
53
|
+
ConfigsGetBody.prototype.withSources = function (sources) {
|
54
|
+
this['sources'] = sources;
|
55
|
+
return this;
|
56
|
+
};
|
57
|
+
ConfigsGetBody.prototype.withOriginProtocol = function (originProtocol) {
|
58
|
+
this['origin_protocol'] = originProtocol;
|
59
|
+
return this;
|
60
|
+
};
|
61
|
+
Object.defineProperty(ConfigsGetBody.prototype, "originProtocol", {
|
62
|
+
get: function () {
|
63
|
+
return this['origin_protocol'];
|
64
|
+
},
|
65
|
+
set: function (originProtocol) {
|
66
|
+
this['origin_protocol'] = originProtocol;
|
67
|
+
},
|
68
|
+
enumerable: false,
|
69
|
+
configurable: true
|
70
|
+
});
|
71
|
+
ConfigsGetBody.prototype.withOriginFollow302Status = function (originFollow302Status) {
|
72
|
+
this['origin_follow302_status'] = originFollow302Status;
|
73
|
+
return this;
|
74
|
+
};
|
75
|
+
Object.defineProperty(ConfigsGetBody.prototype, "originFollow302Status", {
|
76
|
+
get: function () {
|
77
|
+
return this['origin_follow302_status'];
|
78
|
+
},
|
79
|
+
set: function (originFollow302Status) {
|
80
|
+
this['origin_follow302_status'] = originFollow302Status;
|
81
|
+
},
|
82
|
+
enumerable: false,
|
83
|
+
configurable: true
|
84
|
+
});
|
85
|
+
ConfigsGetBody.prototype.withCacheRules = function (cacheRules) {
|
86
|
+
this['cache_rules'] = cacheRules;
|
87
|
+
return this;
|
88
|
+
};
|
89
|
+
Object.defineProperty(ConfigsGetBody.prototype, "cacheRules", {
|
90
|
+
get: function () {
|
91
|
+
return this['cache_rules'];
|
92
|
+
},
|
93
|
+
set: function (cacheRules) {
|
94
|
+
this['cache_rules'] = cacheRules;
|
95
|
+
},
|
96
|
+
enumerable: false,
|
97
|
+
configurable: true
|
98
|
+
});
|
99
|
+
ConfigsGetBody.prototype.withIpFilter = function (ipFilter) {
|
100
|
+
this['ip_filter'] = ipFilter;
|
101
|
+
return this;
|
102
|
+
};
|
103
|
+
Object.defineProperty(ConfigsGetBody.prototype, "ipFilter", {
|
104
|
+
get: function () {
|
105
|
+
return this['ip_filter'];
|
106
|
+
},
|
107
|
+
set: function (ipFilter) {
|
108
|
+
this['ip_filter'] = ipFilter;
|
109
|
+
},
|
110
|
+
enumerable: false,
|
111
|
+
configurable: true
|
112
|
+
});
|
113
|
+
ConfigsGetBody.prototype.withReferer = function (referer) {
|
114
|
+
this['referer'] = referer;
|
115
|
+
return this;
|
116
|
+
};
|
117
|
+
ConfigsGetBody.prototype.withForceRedirect = function (forceRedirect) {
|
118
|
+
this['force_redirect'] = forceRedirect;
|
119
|
+
return this;
|
120
|
+
};
|
121
|
+
Object.defineProperty(ConfigsGetBody.prototype, "forceRedirect", {
|
122
|
+
get: function () {
|
123
|
+
return this['force_redirect'];
|
124
|
+
},
|
125
|
+
set: function (forceRedirect) {
|
126
|
+
this['force_redirect'] = forceRedirect;
|
127
|
+
},
|
128
|
+
enumerable: false,
|
129
|
+
configurable: true
|
130
|
+
});
|
131
|
+
ConfigsGetBody.prototype.withCompress = function (compress) {
|
132
|
+
this['compress'] = compress;
|
133
|
+
return this;
|
134
|
+
};
|
135
|
+
ConfigsGetBody.prototype.withCacheUrlParameterFilter = function (cacheUrlParameterFilter) {
|
136
|
+
this['cache_url_parameter_filter'] = cacheUrlParameterFilter;
|
137
|
+
return this;
|
138
|
+
};
|
139
|
+
Object.defineProperty(ConfigsGetBody.prototype, "cacheUrlParameterFilter", {
|
140
|
+
get: function () {
|
141
|
+
return this['cache_url_parameter_filter'];
|
142
|
+
},
|
143
|
+
set: function (cacheUrlParameterFilter) {
|
144
|
+
this['cache_url_parameter_filter'] = cacheUrlParameterFilter;
|
145
|
+
},
|
146
|
+
enumerable: false,
|
147
|
+
configurable: true
|
148
|
+
});
|
149
|
+
ConfigsGetBody.prototype.withErrorCodeCache = function (errorCodeCache) {
|
150
|
+
this['error_code_cache'] = errorCodeCache;
|
151
|
+
return this;
|
152
|
+
};
|
153
|
+
Object.defineProperty(ConfigsGetBody.prototype, "errorCodeCache", {
|
154
|
+
get: function () {
|
155
|
+
return this['error_code_cache'];
|
156
|
+
},
|
157
|
+
set: function (errorCodeCache) {
|
158
|
+
this['error_code_cache'] = errorCodeCache;
|
159
|
+
},
|
160
|
+
enumerable: false,
|
161
|
+
configurable: true
|
162
|
+
});
|
163
|
+
ConfigsGetBody.prototype.withUserAgentFilter = function (userAgentFilter) {
|
164
|
+
this['user_agent_filter'] = userAgentFilter;
|
165
|
+
return this;
|
166
|
+
};
|
167
|
+
Object.defineProperty(ConfigsGetBody.prototype, "userAgentFilter", {
|
168
|
+
get: function () {
|
169
|
+
return this['user_agent_filter'];
|
170
|
+
},
|
171
|
+
set: function (userAgentFilter) {
|
172
|
+
this['user_agent_filter'] = userAgentFilter;
|
173
|
+
},
|
174
|
+
enumerable: false,
|
175
|
+
configurable: true
|
176
|
+
});
|
177
|
+
ConfigsGetBody.prototype.withOriginRequestUrlRewrite = function (originRequestUrlRewrite) {
|
178
|
+
this['origin_request_url_rewrite'] = originRequestUrlRewrite;
|
179
|
+
return this;
|
180
|
+
};
|
181
|
+
Object.defineProperty(ConfigsGetBody.prototype, "originRequestUrlRewrite", {
|
182
|
+
get: function () {
|
183
|
+
return this['origin_request_url_rewrite'];
|
184
|
+
},
|
185
|
+
set: function (originRequestUrlRewrite) {
|
186
|
+
this['origin_request_url_rewrite'] = originRequestUrlRewrite;
|
187
|
+
},
|
188
|
+
enumerable: false,
|
189
|
+
configurable: true
|
190
|
+
});
|
191
|
+
ConfigsGetBody.prototype.withErrorCodeRedirectRules = function (errorCodeRedirectRules) {
|
192
|
+
this['error_code_redirect_rules'] = errorCodeRedirectRules;
|
193
|
+
return this;
|
194
|
+
};
|
195
|
+
Object.defineProperty(ConfigsGetBody.prototype, "errorCodeRedirectRules", {
|
196
|
+
get: function () {
|
197
|
+
return this['error_code_redirect_rules'];
|
198
|
+
},
|
199
|
+
set: function (errorCodeRedirectRules) {
|
200
|
+
this['error_code_redirect_rules'] = errorCodeRedirectRules;
|
201
|
+
},
|
202
|
+
enumerable: false,
|
203
|
+
configurable: true
|
204
|
+
});
|
205
|
+
return ConfigsGetBody;
|
206
|
+
}());
|
207
|
+
exports.ConfigsGetBody = ConfigsGetBody;
|
@@ -0,0 +1,23 @@
|
|
1
|
+
export declare class ErrorCodeCache {
|
2
|
+
code?: ErrorCodeCacheCodeEnum;
|
3
|
+
ttl?: number;
|
4
|
+
constructor();
|
5
|
+
withCode(code: ErrorCodeCacheCodeEnum): ErrorCodeCache;
|
6
|
+
withTtl(ttl: number): ErrorCodeCache;
|
7
|
+
}
|
8
|
+
/**
|
9
|
+
* @export
|
10
|
+
* @enum {string}
|
11
|
+
*/
|
12
|
+
export declare enum ErrorCodeCacheCodeEnum {
|
13
|
+
NUMBER_400 = 400,
|
14
|
+
NUMBER_403 = 403,
|
15
|
+
NUMBER_404 = 404,
|
16
|
+
NUMBER_405 = 405,
|
17
|
+
NUMBER_414 = 414,
|
18
|
+
NUMBER_500 = 500,
|
19
|
+
NUMBER_501 = 501,
|
20
|
+
NUMBER_502 = 502,
|
21
|
+
NUMBER_503 = 503,
|
22
|
+
NUMBER_504 = 504
|
23
|
+
}
|
@@ -0,0 +1,34 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ErrorCodeCacheCodeEnum = exports.ErrorCodeCache = void 0;
|
4
|
+
var ErrorCodeCache = /** @class */ (function () {
|
5
|
+
function ErrorCodeCache() {
|
6
|
+
}
|
7
|
+
ErrorCodeCache.prototype.withCode = function (code) {
|
8
|
+
this['code'] = code;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
ErrorCodeCache.prototype.withTtl = function (ttl) {
|
12
|
+
this['ttl'] = ttl;
|
13
|
+
return this;
|
14
|
+
};
|
15
|
+
return ErrorCodeCache;
|
16
|
+
}());
|
17
|
+
exports.ErrorCodeCache = ErrorCodeCache;
|
18
|
+
/**
|
19
|
+
* @export
|
20
|
+
* @enum {string}
|
21
|
+
*/
|
22
|
+
var ErrorCodeCacheCodeEnum;
|
23
|
+
(function (ErrorCodeCacheCodeEnum) {
|
24
|
+
ErrorCodeCacheCodeEnum[ErrorCodeCacheCodeEnum["NUMBER_400"] = 400] = "NUMBER_400";
|
25
|
+
ErrorCodeCacheCodeEnum[ErrorCodeCacheCodeEnum["NUMBER_403"] = 403] = "NUMBER_403";
|
26
|
+
ErrorCodeCacheCodeEnum[ErrorCodeCacheCodeEnum["NUMBER_404"] = 404] = "NUMBER_404";
|
27
|
+
ErrorCodeCacheCodeEnum[ErrorCodeCacheCodeEnum["NUMBER_405"] = 405] = "NUMBER_405";
|
28
|
+
ErrorCodeCacheCodeEnum[ErrorCodeCacheCodeEnum["NUMBER_414"] = 414] = "NUMBER_414";
|
29
|
+
ErrorCodeCacheCodeEnum[ErrorCodeCacheCodeEnum["NUMBER_500"] = 500] = "NUMBER_500";
|
30
|
+
ErrorCodeCacheCodeEnum[ErrorCodeCacheCodeEnum["NUMBER_501"] = 501] = "NUMBER_501";
|
31
|
+
ErrorCodeCacheCodeEnum[ErrorCodeCacheCodeEnum["NUMBER_502"] = 502] = "NUMBER_502";
|
32
|
+
ErrorCodeCacheCodeEnum[ErrorCodeCacheCodeEnum["NUMBER_503"] = 503] = "NUMBER_503";
|
33
|
+
ErrorCodeCacheCodeEnum[ErrorCodeCacheCodeEnum["NUMBER_504"] = 504] = "NUMBER_504";
|
34
|
+
})(ErrorCodeCacheCodeEnum = exports.ErrorCodeCacheCodeEnum || (exports.ErrorCodeCacheCodeEnum = {}));
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare class ErrorCodeRedirectRules {
|
2
|
+
private 'error_code';
|
3
|
+
private 'target_code';
|
4
|
+
private 'target_link';
|
5
|
+
constructor(errorCode?: any, targetCode?: any, targetLink?: any);
|
6
|
+
withErrorCode(errorCode: number): ErrorCodeRedirectRules;
|
7
|
+
set errorCode(errorCode: number | undefined);
|
8
|
+
get errorCode(): number | undefined;
|
9
|
+
withTargetCode(targetCode: number): ErrorCodeRedirectRules;
|
10
|
+
set targetCode(targetCode: number | undefined);
|
11
|
+
get targetCode(): number | undefined;
|
12
|
+
withTargetLink(targetLink: string): ErrorCodeRedirectRules;
|
13
|
+
set targetLink(targetLink: string | undefined);
|
14
|
+
get targetLink(): string | undefined;
|
15
|
+
}
|
@@ -0,0 +1,54 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ErrorCodeRedirectRules = void 0;
|
4
|
+
var ErrorCodeRedirectRules = /** @class */ (function () {
|
5
|
+
function ErrorCodeRedirectRules(errorCode, targetCode, targetLink) {
|
6
|
+
this['error_code'] = errorCode;
|
7
|
+
this['target_code'] = targetCode;
|
8
|
+
this['target_link'] = targetLink;
|
9
|
+
}
|
10
|
+
ErrorCodeRedirectRules.prototype.withErrorCode = function (errorCode) {
|
11
|
+
this['error_code'] = errorCode;
|
12
|
+
return this;
|
13
|
+
};
|
14
|
+
Object.defineProperty(ErrorCodeRedirectRules.prototype, "errorCode", {
|
15
|
+
get: function () {
|
16
|
+
return this['error_code'];
|
17
|
+
},
|
18
|
+
set: function (errorCode) {
|
19
|
+
this['error_code'] = errorCode;
|
20
|
+
},
|
21
|
+
enumerable: false,
|
22
|
+
configurable: true
|
23
|
+
});
|
24
|
+
ErrorCodeRedirectRules.prototype.withTargetCode = function (targetCode) {
|
25
|
+
this['target_code'] = targetCode;
|
26
|
+
return this;
|
27
|
+
};
|
28
|
+
Object.defineProperty(ErrorCodeRedirectRules.prototype, "targetCode", {
|
29
|
+
get: function () {
|
30
|
+
return this['target_code'];
|
31
|
+
},
|
32
|
+
set: function (targetCode) {
|
33
|
+
this['target_code'] = targetCode;
|
34
|
+
},
|
35
|
+
enumerable: false,
|
36
|
+
configurable: true
|
37
|
+
});
|
38
|
+
ErrorCodeRedirectRules.prototype.withTargetLink = function (targetLink) {
|
39
|
+
this['target_link'] = targetLink;
|
40
|
+
return this;
|
41
|
+
};
|
42
|
+
Object.defineProperty(ErrorCodeRedirectRules.prototype, "targetLink", {
|
43
|
+
get: function () {
|
44
|
+
return this['target_link'];
|
45
|
+
},
|
46
|
+
set: function (targetLink) {
|
47
|
+
this['target_link'] = targetLink;
|
48
|
+
},
|
49
|
+
enumerable: false,
|
50
|
+
configurable: true
|
51
|
+
});
|
52
|
+
return ErrorCodeRedirectRules;
|
53
|
+
}());
|
54
|
+
exports.ErrorCodeRedirectRules = ErrorCodeRedirectRules;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare class ForceRedirectConfig {
|
2
|
+
status: string;
|
3
|
+
type?: string;
|
4
|
+
private 'redirect_code'?;
|
5
|
+
constructor(status?: any);
|
6
|
+
withStatus(status: string): ForceRedirectConfig;
|
7
|
+
withType(type: string): ForceRedirectConfig;
|
8
|
+
withRedirectCode(redirectCode: number): ForceRedirectConfig;
|
9
|
+
set redirectCode(redirectCode: number | undefined);
|
10
|
+
get redirectCode(): number | undefined;
|
11
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ForceRedirectConfig = void 0;
|
4
|
+
var ForceRedirectConfig = /** @class */ (function () {
|
5
|
+
function ForceRedirectConfig(status) {
|
6
|
+
this['status'] = status;
|
7
|
+
}
|
8
|
+
ForceRedirectConfig.prototype.withStatus = function (status) {
|
9
|
+
this['status'] = status;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
ForceRedirectConfig.prototype.withType = function (type) {
|
13
|
+
this['type'] = type;
|
14
|
+
return this;
|
15
|
+
};
|
16
|
+
ForceRedirectConfig.prototype.withRedirectCode = function (redirectCode) {
|
17
|
+
this['redirect_code'] = redirectCode;
|
18
|
+
return this;
|
19
|
+
};
|
20
|
+
Object.defineProperty(ForceRedirectConfig.prototype, "redirectCode", {
|
21
|
+
get: function () {
|
22
|
+
return this['redirect_code'];
|
23
|
+
},
|
24
|
+
set: function (redirectCode) {
|
25
|
+
this['redirect_code'] = redirectCode;
|
26
|
+
},
|
27
|
+
enumerable: false,
|
28
|
+
configurable: true
|
29
|
+
});
|
30
|
+
return ForceRedirectConfig;
|
31
|
+
}());
|
32
|
+
exports.ForceRedirectConfig = ForceRedirectConfig;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
export declare class HttpGetBody {
|
2
|
+
private 'https_status'?;
|
3
|
+
private 'certificate_name'?;
|
4
|
+
private 'certificate_value'?;
|
5
|
+
private 'certificate_source'?;
|
6
|
+
private 'http2_status'?;
|
7
|
+
private 'tls_version'?;
|
8
|
+
constructor();
|
9
|
+
withHttpsStatus(httpsStatus: string): HttpGetBody;
|
10
|
+
set httpsStatus(httpsStatus: string | undefined);
|
11
|
+
get httpsStatus(): string | undefined;
|
12
|
+
withCertificateName(certificateName: string): HttpGetBody;
|
13
|
+
set certificateName(certificateName: string | undefined);
|
14
|
+
get certificateName(): string | undefined;
|
15
|
+
withCertificateValue(certificateValue: string): HttpGetBody;
|
16
|
+
set certificateValue(certificateValue: string | undefined);
|
17
|
+
get certificateValue(): string | undefined;
|
18
|
+
withCertificateSource(certificateSource: number): HttpGetBody;
|
19
|
+
set certificateSource(certificateSource: number | undefined);
|
20
|
+
get certificateSource(): number | undefined;
|
21
|
+
withHttp2Status(http2Status: string): HttpGetBody;
|
22
|
+
set http2Status(http2Status: string | undefined);
|
23
|
+
get http2Status(): string | undefined;
|
24
|
+
withTlsVersion(tlsVersion: string): HttpGetBody;
|
25
|
+
set tlsVersion(tlsVersion: string | undefined);
|
26
|
+
get tlsVersion(): string | undefined;
|
27
|
+
}
|
@@ -0,0 +1,93 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.HttpGetBody = void 0;
|
4
|
+
var HttpGetBody = /** @class */ (function () {
|
5
|
+
function HttpGetBody() {
|
6
|
+
}
|
7
|
+
HttpGetBody.prototype.withHttpsStatus = function (httpsStatus) {
|
8
|
+
this['https_status'] = httpsStatus;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
Object.defineProperty(HttpGetBody.prototype, "httpsStatus", {
|
12
|
+
get: function () {
|
13
|
+
return this['https_status'];
|
14
|
+
},
|
15
|
+
set: function (httpsStatus) {
|
16
|
+
this['https_status'] = httpsStatus;
|
17
|
+
},
|
18
|
+
enumerable: false,
|
19
|
+
configurable: true
|
20
|
+
});
|
21
|
+
HttpGetBody.prototype.withCertificateName = function (certificateName) {
|
22
|
+
this['certificate_name'] = certificateName;
|
23
|
+
return this;
|
24
|
+
};
|
25
|
+
Object.defineProperty(HttpGetBody.prototype, "certificateName", {
|
26
|
+
get: function () {
|
27
|
+
return this['certificate_name'];
|
28
|
+
},
|
29
|
+
set: function (certificateName) {
|
30
|
+
this['certificate_name'] = certificateName;
|
31
|
+
},
|
32
|
+
enumerable: false,
|
33
|
+
configurable: true
|
34
|
+
});
|
35
|
+
HttpGetBody.prototype.withCertificateValue = function (certificateValue) {
|
36
|
+
this['certificate_value'] = certificateValue;
|
37
|
+
return this;
|
38
|
+
};
|
39
|
+
Object.defineProperty(HttpGetBody.prototype, "certificateValue", {
|
40
|
+
get: function () {
|
41
|
+
return this['certificate_value'];
|
42
|
+
},
|
43
|
+
set: function (certificateValue) {
|
44
|
+
this['certificate_value'] = certificateValue;
|
45
|
+
},
|
46
|
+
enumerable: false,
|
47
|
+
configurable: true
|
48
|
+
});
|
49
|
+
HttpGetBody.prototype.withCertificateSource = function (certificateSource) {
|
50
|
+
this['certificate_source'] = certificateSource;
|
51
|
+
return this;
|
52
|
+
};
|
53
|
+
Object.defineProperty(HttpGetBody.prototype, "certificateSource", {
|
54
|
+
get: function () {
|
55
|
+
return this['certificate_source'];
|
56
|
+
},
|
57
|
+
set: function (certificateSource) {
|
58
|
+
this['certificate_source'] = certificateSource;
|
59
|
+
},
|
60
|
+
enumerable: false,
|
61
|
+
configurable: true
|
62
|
+
});
|
63
|
+
HttpGetBody.prototype.withHttp2Status = function (http2Status) {
|
64
|
+
this['http2_status'] = http2Status;
|
65
|
+
return this;
|
66
|
+
};
|
67
|
+
Object.defineProperty(HttpGetBody.prototype, "http2Status", {
|
68
|
+
get: function () {
|
69
|
+
return this['http2_status'];
|
70
|
+
},
|
71
|
+
set: function (http2Status) {
|
72
|
+
this['http2_status'] = http2Status;
|
73
|
+
},
|
74
|
+
enumerable: false,
|
75
|
+
configurable: true
|
76
|
+
});
|
77
|
+
HttpGetBody.prototype.withTlsVersion = function (tlsVersion) {
|
78
|
+
this['tls_version'] = tlsVersion;
|
79
|
+
return this;
|
80
|
+
};
|
81
|
+
Object.defineProperty(HttpGetBody.prototype, "tlsVersion", {
|
82
|
+
get: function () {
|
83
|
+
return this['tls_version'];
|
84
|
+
},
|
85
|
+
set: function (tlsVersion) {
|
86
|
+
this['tls_version'] = tlsVersion;
|
87
|
+
},
|
88
|
+
enumerable: false,
|
89
|
+
configurable: true
|
90
|
+
});
|
91
|
+
return HttpGetBody;
|
92
|
+
}());
|
93
|
+
exports.HttpGetBody = HttpGetBody;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
export declare class HttpPutBody {
|
2
|
+
private 'https_status'?;
|
3
|
+
private 'certificate_name'?;
|
4
|
+
private 'certificate_value'?;
|
5
|
+
private 'private_key'?;
|
6
|
+
private 'certificate_source'?;
|
7
|
+
private 'http2_status'?;
|
8
|
+
private 'tls_version'?;
|
9
|
+
constructor();
|
10
|
+
withHttpsStatus(httpsStatus: string): HttpPutBody;
|
11
|
+
set httpsStatus(httpsStatus: string | undefined);
|
12
|
+
get httpsStatus(): string | undefined;
|
13
|
+
withCertificateName(certificateName: string): HttpPutBody;
|
14
|
+
set certificateName(certificateName: string | undefined);
|
15
|
+
get certificateName(): string | undefined;
|
16
|
+
withCertificateValue(certificateValue: string): HttpPutBody;
|
17
|
+
set certificateValue(certificateValue: string | undefined);
|
18
|
+
get certificateValue(): string | undefined;
|
19
|
+
withPrivateKey(privateKey: string): HttpPutBody;
|
20
|
+
set privateKey(privateKey: string | undefined);
|
21
|
+
get privateKey(): string | undefined;
|
22
|
+
withCertificateSource(certificateSource: number): HttpPutBody;
|
23
|
+
set certificateSource(certificateSource: number | undefined);
|
24
|
+
get certificateSource(): number | undefined;
|
25
|
+
withHttp2Status(http2Status: string): HttpPutBody;
|
26
|
+
set http2Status(http2Status: string | undefined);
|
27
|
+
get http2Status(): string | undefined;
|
28
|
+
withTlsVersion(tlsVersion: string): HttpPutBody;
|
29
|
+
set tlsVersion(tlsVersion: string | undefined);
|
30
|
+
get tlsVersion(): string | undefined;
|
31
|
+
}
|