@huaweicloud/huaweicloud-sdk-cdn 3.1.34 → 3.1.36
Sign up to get free protection for your applications and to get access to all the features.
- package/package.json +2 -2
- package/v1/CdnClient.d.ts +0 -25
- package/v1/CdnClient.js +25 -50
- 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 +55 -9
- package/v2/CdnClient.js +131 -20
- 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 +86 -0
- package/v2/model/ConfigsGetBody.js +235 -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,235 @@
|
|
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.withIpv6Accelerate = function (ipv6Accelerate) {
|
150
|
+
this['ipv6_accelerate'] = ipv6Accelerate;
|
151
|
+
return this;
|
152
|
+
};
|
153
|
+
Object.defineProperty(ConfigsGetBody.prototype, "ipv6Accelerate", {
|
154
|
+
get: function () {
|
155
|
+
return this['ipv6_accelerate'];
|
156
|
+
},
|
157
|
+
set: function (ipv6Accelerate) {
|
158
|
+
this['ipv6_accelerate'] = ipv6Accelerate;
|
159
|
+
},
|
160
|
+
enumerable: false,
|
161
|
+
configurable: true
|
162
|
+
});
|
163
|
+
ConfigsGetBody.prototype.withErrorCodeCache = function (errorCodeCache) {
|
164
|
+
this['error_code_cache'] = errorCodeCache;
|
165
|
+
return this;
|
166
|
+
};
|
167
|
+
Object.defineProperty(ConfigsGetBody.prototype, "errorCodeCache", {
|
168
|
+
get: function () {
|
169
|
+
return this['error_code_cache'];
|
170
|
+
},
|
171
|
+
set: function (errorCodeCache) {
|
172
|
+
this['error_code_cache'] = errorCodeCache;
|
173
|
+
},
|
174
|
+
enumerable: false,
|
175
|
+
configurable: true
|
176
|
+
});
|
177
|
+
ConfigsGetBody.prototype.withOriginRangeStatus = function (originRangeStatus) {
|
178
|
+
this['origin_range_status'] = originRangeStatus;
|
179
|
+
return this;
|
180
|
+
};
|
181
|
+
Object.defineProperty(ConfigsGetBody.prototype, "originRangeStatus", {
|
182
|
+
get: function () {
|
183
|
+
return this['origin_range_status'];
|
184
|
+
},
|
185
|
+
set: function (originRangeStatus) {
|
186
|
+
this['origin_range_status'] = originRangeStatus;
|
187
|
+
},
|
188
|
+
enumerable: false,
|
189
|
+
configurable: true
|
190
|
+
});
|
191
|
+
ConfigsGetBody.prototype.withUserAgentFilter = function (userAgentFilter) {
|
192
|
+
this['user_agent_filter'] = userAgentFilter;
|
193
|
+
return this;
|
194
|
+
};
|
195
|
+
Object.defineProperty(ConfigsGetBody.prototype, "userAgentFilter", {
|
196
|
+
get: function () {
|
197
|
+
return this['user_agent_filter'];
|
198
|
+
},
|
199
|
+
set: function (userAgentFilter) {
|
200
|
+
this['user_agent_filter'] = userAgentFilter;
|
201
|
+
},
|
202
|
+
enumerable: false,
|
203
|
+
configurable: true
|
204
|
+
});
|
205
|
+
ConfigsGetBody.prototype.withOriginRequestUrlRewrite = function (originRequestUrlRewrite) {
|
206
|
+
this['origin_request_url_rewrite'] = originRequestUrlRewrite;
|
207
|
+
return this;
|
208
|
+
};
|
209
|
+
Object.defineProperty(ConfigsGetBody.prototype, "originRequestUrlRewrite", {
|
210
|
+
get: function () {
|
211
|
+
return this['origin_request_url_rewrite'];
|
212
|
+
},
|
213
|
+
set: function (originRequestUrlRewrite) {
|
214
|
+
this['origin_request_url_rewrite'] = originRequestUrlRewrite;
|
215
|
+
},
|
216
|
+
enumerable: false,
|
217
|
+
configurable: true
|
218
|
+
});
|
219
|
+
ConfigsGetBody.prototype.withErrorCodeRedirectRules = function (errorCodeRedirectRules) {
|
220
|
+
this['error_code_redirect_rules'] = errorCodeRedirectRules;
|
221
|
+
return this;
|
222
|
+
};
|
223
|
+
Object.defineProperty(ConfigsGetBody.prototype, "errorCodeRedirectRules", {
|
224
|
+
get: function () {
|
225
|
+
return this['error_code_redirect_rules'];
|
226
|
+
},
|
227
|
+
set: function (errorCodeRedirectRules) {
|
228
|
+
this['error_code_redirect_rules'] = errorCodeRedirectRules;
|
229
|
+
},
|
230
|
+
enumerable: false,
|
231
|
+
configurable: true
|
232
|
+
});
|
233
|
+
return ConfigsGetBody;
|
234
|
+
}());
|
235
|
+
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
|
+
}
|
@@ -0,0 +1,107 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.HttpPutBody = void 0;
|
4
|
+
var HttpPutBody = /** @class */ (function () {
|
5
|
+
function HttpPutBody() {
|
6
|
+
}
|
7
|
+
HttpPutBody.prototype.withHttpsStatus = function (httpsStatus) {
|
8
|
+
this['https_status'] = httpsStatus;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
Object.defineProperty(HttpPutBody.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
|
+
HttpPutBody.prototype.withCertificateName = function (certificateName) {
|
22
|
+
this['certificate_name'] = certificateName;
|
23
|
+
return this;
|
24
|
+
};
|
25
|
+
Object.defineProperty(HttpPutBody.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
|
+
HttpPutBody.prototype.withCertificateValue = function (certificateValue) {
|
36
|
+
this['certificate_value'] = certificateValue;
|
37
|
+
return this;
|
38
|
+
};
|
39
|
+
Object.defineProperty(HttpPutBody.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
|
+
HttpPutBody.prototype.withPrivateKey = function (privateKey) {
|
50
|
+
this['private_key'] = privateKey;
|
51
|
+
return this;
|
52
|
+
};
|
53
|
+
Object.defineProperty(HttpPutBody.prototype, "privateKey", {
|
54
|
+
get: function () {
|
55
|
+
return this['private_key'];
|
56
|
+
},
|
57
|
+
set: function (privateKey) {
|
58
|
+
this['private_key'] = privateKey;
|
59
|
+
},
|
60
|
+
enumerable: false,
|
61
|
+
configurable: true
|
62
|
+
});
|
63
|
+
HttpPutBody.prototype.withCertificateSource = function (certificateSource) {
|
64
|
+
this['certificate_source'] = certificateSource;
|
65
|
+
return this;
|
66
|
+
};
|
67
|
+
Object.defineProperty(HttpPutBody.prototype, "certificateSource", {
|
68
|
+
get: function () {
|
69
|
+
return this['certificate_source'];
|
70
|
+
},
|
71
|
+
set: function (certificateSource) {
|
72
|
+
this['certificate_source'] = certificateSource;
|
73
|
+
},
|
74
|
+
enumerable: false,
|
75
|
+
configurable: true
|
76
|
+
});
|
77
|
+
HttpPutBody.prototype.withHttp2Status = function (http2Status) {
|
78
|
+
this['http2_status'] = http2Status;
|
79
|
+
return this;
|
80
|
+
};
|
81
|
+
Object.defineProperty(HttpPutBody.prototype, "http2Status", {
|
82
|
+
get: function () {
|
83
|
+
return this['http2_status'];
|
84
|
+
},
|
85
|
+
set: function (http2Status) {
|
86
|
+
this['http2_status'] = http2Status;
|
87
|
+
},
|
88
|
+
enumerable: false,
|
89
|
+
configurable: true
|
90
|
+
});
|
91
|
+
HttpPutBody.prototype.withTlsVersion = function (tlsVersion) {
|
92
|
+
this['tls_version'] = tlsVersion;
|
93
|
+
return this;
|
94
|
+
};
|
95
|
+
Object.defineProperty(HttpPutBody.prototype, "tlsVersion", {
|
96
|
+
get: function () {
|
97
|
+
return this['tls_version'];
|
98
|
+
},
|
99
|
+
set: function (tlsVersion) {
|
100
|
+
this['tls_version'] = tlsVersion;
|
101
|
+
},
|
102
|
+
enumerable: false,
|
103
|
+
configurable: true
|
104
|
+
});
|
105
|
+
return HttpPutBody;
|
106
|
+
}());
|
107
|
+
exports.HttpPutBody = HttpPutBody;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export declare class HttpResponseHeader {
|
2
|
+
name: string;
|
3
|
+
value?: string;
|
4
|
+
action: string;
|
5
|
+
constructor(name?: any, action?: any);
|
6
|
+
withName(name: string): HttpResponseHeader;
|
7
|
+
withValue(value: string): HttpResponseHeader;
|
8
|
+
withAction(action: string): HttpResponseHeader;
|
9
|
+
}
|