@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
@@ -1,3 +1,4 @@
|
|
1
|
+
import { CacheRules } from './CacheRules';
|
1
2
|
import { CacheUrlParameterFilter } from './CacheUrlParameterFilter';
|
2
3
|
import { Compress } from './Compress';
|
3
4
|
import { ErrorCodeCache } from './ErrorCodeCache';
|
@@ -5,8 +6,10 @@ import { ErrorCodeRedirectRules } from './ErrorCodeRedirectRules';
|
|
5
6
|
import { ForceRedirectConfig } from './ForceRedirectConfig';
|
6
7
|
import { HttpGetBody } from './HttpGetBody';
|
7
8
|
import { HttpResponseHeader } from './HttpResponseHeader';
|
9
|
+
import { IpFilter } from './IpFilter';
|
8
10
|
import { OriginRequestHeader } from './OriginRequestHeader';
|
9
11
|
import { OriginRequestUrlRewrite } from './OriginRequestUrlRewrite';
|
12
|
+
import { RefererConfig } from './RefererConfig';
|
10
13
|
import { SourcesConfig } from './SourcesConfig';
|
11
14
|
import { UrlAuthGetBody } from './UrlAuthGetBody';
|
12
15
|
import { UserAgentFilter } from './UserAgentFilter';
|
@@ -16,6 +19,10 @@ export declare class ConfigsGetBody {
|
|
16
19
|
private 'url_auth'?;
|
17
20
|
https?: HttpGetBody;
|
18
21
|
sources?: Array<SourcesConfig>;
|
22
|
+
private 'origin_follow302_status'?;
|
23
|
+
private 'cache_rules'?;
|
24
|
+
private 'ip_filter'?;
|
25
|
+
referer?: RefererConfig;
|
19
26
|
private 'origin_protocol'?;
|
20
27
|
private 'force_redirect'?;
|
21
28
|
compress?: Compress;
|
@@ -38,6 +45,16 @@ export declare class ConfigsGetBody {
|
|
38
45
|
get urlAuth(): UrlAuthGetBody | undefined;
|
39
46
|
withHttps(https: HttpGetBody): ConfigsGetBody;
|
40
47
|
withSources(sources: Array<SourcesConfig>): ConfigsGetBody;
|
48
|
+
withOriginFollow302Status(originFollow302Status: string): ConfigsGetBody;
|
49
|
+
set originFollow302Status(originFollow302Status: string | undefined);
|
50
|
+
get originFollow302Status(): string | undefined;
|
51
|
+
withCacheRules(cacheRules: Array<CacheRules>): ConfigsGetBody;
|
52
|
+
set cacheRules(cacheRules: Array<CacheRules> | undefined);
|
53
|
+
get cacheRules(): Array<CacheRules> | undefined;
|
54
|
+
withIpFilter(ipFilter: IpFilter): ConfigsGetBody;
|
55
|
+
set ipFilter(ipFilter: IpFilter | undefined);
|
56
|
+
get ipFilter(): IpFilter | undefined;
|
57
|
+
withReferer(referer: RefererConfig): ConfigsGetBody;
|
41
58
|
withOriginProtocol(originProtocol: string): ConfigsGetBody;
|
42
59
|
set originProtocol(originProtocol: string | undefined);
|
43
60
|
get originProtocol(): string | undefined;
|
@@ -54,6 +54,52 @@ var ConfigsGetBody = /** @class */ (function () {
|
|
54
54
|
this['sources'] = sources;
|
55
55
|
return this;
|
56
56
|
};
|
57
|
+
ConfigsGetBody.prototype.withOriginFollow302Status = function (originFollow302Status) {
|
58
|
+
this['origin_follow302_status'] = originFollow302Status;
|
59
|
+
return this;
|
60
|
+
};
|
61
|
+
Object.defineProperty(ConfigsGetBody.prototype, "originFollow302Status", {
|
62
|
+
get: function () {
|
63
|
+
return this['origin_follow302_status'];
|
64
|
+
},
|
65
|
+
set: function (originFollow302Status) {
|
66
|
+
this['origin_follow302_status'] = originFollow302Status;
|
67
|
+
},
|
68
|
+
enumerable: false,
|
69
|
+
configurable: true
|
70
|
+
});
|
71
|
+
ConfigsGetBody.prototype.withCacheRules = function (cacheRules) {
|
72
|
+
this['cache_rules'] = cacheRules;
|
73
|
+
return this;
|
74
|
+
};
|
75
|
+
Object.defineProperty(ConfigsGetBody.prototype, "cacheRules", {
|
76
|
+
get: function () {
|
77
|
+
return this['cache_rules'];
|
78
|
+
},
|
79
|
+
set: function (cacheRules) {
|
80
|
+
this['cache_rules'] = cacheRules;
|
81
|
+
},
|
82
|
+
enumerable: false,
|
83
|
+
configurable: true
|
84
|
+
});
|
85
|
+
ConfigsGetBody.prototype.withIpFilter = function (ipFilter) {
|
86
|
+
this['ip_filter'] = ipFilter;
|
87
|
+
return this;
|
88
|
+
};
|
89
|
+
Object.defineProperty(ConfigsGetBody.prototype, "ipFilter", {
|
90
|
+
get: function () {
|
91
|
+
return this['ip_filter'];
|
92
|
+
},
|
93
|
+
set: function (ipFilter) {
|
94
|
+
this['ip_filter'] = ipFilter;
|
95
|
+
},
|
96
|
+
enumerable: false,
|
97
|
+
configurable: true
|
98
|
+
});
|
99
|
+
ConfigsGetBody.prototype.withReferer = function (referer) {
|
100
|
+
this['referer'] = referer;
|
101
|
+
return this;
|
102
|
+
};
|
57
103
|
ConfigsGetBody.prototype.withOriginProtocol = function (originProtocol) {
|
58
104
|
this['origin_protocol'] = originProtocol;
|
59
105
|
return this;
|
@@ -1,7 +1,11 @@
|
|
1
1
|
export declare class ForceRedirectConfig {
|
2
2
|
status: string;
|
3
3
|
type?: string;
|
4
|
+
private 'redirect_code'?;
|
4
5
|
constructor(status?: any);
|
5
6
|
withStatus(status: string): ForceRedirectConfig;
|
6
7
|
withType(type: string): ForceRedirectConfig;
|
8
|
+
withRedirectCode(redirectCode: number): ForceRedirectConfig;
|
9
|
+
set redirectCode(redirectCode: number | undefined);
|
10
|
+
get redirectCode(): number | undefined;
|
7
11
|
}
|
@@ -13,6 +13,20 @@ var ForceRedirectConfig = /** @class */ (function () {
|
|
13
13
|
this['type'] = type;
|
14
14
|
return this;
|
15
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
|
+
});
|
16
30
|
return ForceRedirectConfig;
|
17
31
|
}());
|
18
32
|
exports.ForceRedirectConfig = ForceRedirectConfig;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.IpFilter = void 0;
|
4
|
+
var IpFilter = /** @class */ (function () {
|
5
|
+
function IpFilter(type) {
|
6
|
+
this['type'] = type;
|
7
|
+
}
|
8
|
+
IpFilter.prototype.withType = function (type) {
|
9
|
+
this['type'] = type;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
IpFilter.prototype.withValue = function (value) {
|
13
|
+
this['value'] = value;
|
14
|
+
return this;
|
15
|
+
};
|
16
|
+
return IpFilter;
|
17
|
+
}());
|
18
|
+
exports.IpFilter = IpFilter;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare class RefererConfig {
|
2
|
+
type: string;
|
3
|
+
value?: string;
|
4
|
+
private 'include_empty'?;
|
5
|
+
constructor(type?: any);
|
6
|
+
withType(type: string): RefererConfig;
|
7
|
+
withValue(value: string): RefererConfig;
|
8
|
+
withIncludeEmpty(includeEmpty: boolean): RefererConfig;
|
9
|
+
set includeEmpty(includeEmpty: boolean | undefined);
|
10
|
+
get includeEmpty(): boolean | undefined;
|
11
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.RefererConfig = void 0;
|
4
|
+
var RefererConfig = /** @class */ (function () {
|
5
|
+
function RefererConfig(type) {
|
6
|
+
this['type'] = type;
|
7
|
+
}
|
8
|
+
RefererConfig.prototype.withType = function (type) {
|
9
|
+
this['type'] = type;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
RefererConfig.prototype.withValue = function (value) {
|
13
|
+
this['value'] = value;
|
14
|
+
return this;
|
15
|
+
};
|
16
|
+
RefererConfig.prototype.withIncludeEmpty = function (includeEmpty) {
|
17
|
+
this['include_empty'] = includeEmpty;
|
18
|
+
return this;
|
19
|
+
};
|
20
|
+
Object.defineProperty(RefererConfig.prototype, "includeEmpty", {
|
21
|
+
get: function () {
|
22
|
+
return this['include_empty'];
|
23
|
+
},
|
24
|
+
set: function (includeEmpty) {
|
25
|
+
this['include_empty'] = includeEmpty;
|
26
|
+
},
|
27
|
+
enumerable: false,
|
28
|
+
configurable: true
|
29
|
+
});
|
30
|
+
return RefererConfig;
|
31
|
+
}());
|
32
|
+
exports.RefererConfig = RefererConfig;
|
package/v1/public-api.d.ts
CHANGED
@@ -5,6 +5,7 @@ export * from './model/BlackWhiteListBody';
|
|
5
5
|
export * from './model/CacheConfig';
|
6
6
|
export * from './model/CacheConfigRequest';
|
7
7
|
export * from './model/CacheConfigRequestBody';
|
8
|
+
export * from './model/CacheRules';
|
8
9
|
export * from './model/CacheUrlParameterFilter';
|
9
10
|
export * from './model/CdnIps';
|
10
11
|
export * from './model/Compress';
|
@@ -54,6 +55,7 @@ export * from './model/HttpInfoResponseBody';
|
|
54
55
|
export * from './model/HttpPutBody';
|
55
56
|
export * from './model/HttpResponseHeader';
|
56
57
|
export * from './model/HttpsDetail';
|
58
|
+
export * from './model/IpFilter';
|
57
59
|
export * from './model/ListDomainsRequest';
|
58
60
|
export * from './model/ListDomainsResponse';
|
59
61
|
export * from './model/LogObject';
|
@@ -71,6 +73,7 @@ export * from './model/Quotas';
|
|
71
73
|
export * from './model/RangeStatusRequest';
|
72
74
|
export * from './model/Referer';
|
73
75
|
export * from './model/RefererBody';
|
76
|
+
export * from './model/RefererConfig';
|
74
77
|
export * from './model/RefererRsp';
|
75
78
|
export * from './model/RefreshTaskRequest';
|
76
79
|
export * from './model/RefreshTaskRequestBody';
|
package/v1/public-api.js
CHANGED
@@ -21,6 +21,7 @@ __exportStar(require("./model/BlackWhiteListBody"), exports);
|
|
21
21
|
__exportStar(require("./model/CacheConfig"), exports);
|
22
22
|
__exportStar(require("./model/CacheConfigRequest"), exports);
|
23
23
|
__exportStar(require("./model/CacheConfigRequestBody"), exports);
|
24
|
+
__exportStar(require("./model/CacheRules"), exports);
|
24
25
|
__exportStar(require("./model/CacheUrlParameterFilter"), exports);
|
25
26
|
__exportStar(require("./model/CdnIps"), exports);
|
26
27
|
__exportStar(require("./model/Compress"), exports);
|
@@ -70,6 +71,7 @@ __exportStar(require("./model/HttpInfoResponseBody"), exports);
|
|
70
71
|
__exportStar(require("./model/HttpPutBody"), exports);
|
71
72
|
__exportStar(require("./model/HttpResponseHeader"), exports);
|
72
73
|
__exportStar(require("./model/HttpsDetail"), exports);
|
74
|
+
__exportStar(require("./model/IpFilter"), exports);
|
73
75
|
__exportStar(require("./model/ListDomainsRequest"), exports);
|
74
76
|
__exportStar(require("./model/ListDomainsResponse"), exports);
|
75
77
|
__exportStar(require("./model/LogObject"), exports);
|
@@ -87,6 +89,7 @@ __exportStar(require("./model/Quotas"), exports);
|
|
87
89
|
__exportStar(require("./model/RangeStatusRequest"), exports);
|
88
90
|
__exportStar(require("./model/Referer"), exports);
|
89
91
|
__exportStar(require("./model/RefererBody"), exports);
|
92
|
+
__exportStar(require("./model/RefererConfig"), exports);
|
90
93
|
__exportStar(require("./model/RefererRsp"), exports);
|
91
94
|
__exportStar(require("./model/RefreshTaskRequest"), exports);
|
92
95
|
__exportStar(require("./model/RefreshTaskRequestBody"), exports);
|
package/v2/CdnClient.d.ts
CHANGED
@@ -16,6 +16,8 @@ import { ShowChargeModesRequest } from './model/ShowChargeModesRequest';
|
|
16
16
|
import { ShowChargeModesResponse } from './model/ShowChargeModesResponse';
|
17
17
|
import { ShowDomainDetailByNameRequest } from './model/ShowDomainDetailByNameRequest';
|
18
18
|
import { ShowDomainDetailByNameResponse } from './model/ShowDomainDetailByNameResponse';
|
19
|
+
import { ShowDomainFullConfigRequest } from './model/ShowDomainFullConfigRequest';
|
20
|
+
import { ShowDomainFullConfigResponse } from './model/ShowDomainFullConfigResponse';
|
19
21
|
import { ShowDomainLocationStatsRequest } from './model/ShowDomainLocationStatsRequest';
|
20
22
|
import { ShowDomainLocationStatsResponse } from './model/ShowDomainLocationStatsResponse';
|
21
23
|
import { ShowDomainStatsRequest } from './model/ShowDomainStatsRequest';
|
@@ -24,6 +26,8 @@ import { ShowTopDomainNamesRequest } from './model/ShowTopDomainNamesRequest';
|
|
24
26
|
import { ShowTopDomainNamesResponse } from './model/ShowTopDomainNamesResponse';
|
25
27
|
import { ShowTopUrlRequest } from './model/ShowTopUrlRequest';
|
26
28
|
import { ShowTopUrlResponse } from './model/ShowTopUrlResponse';
|
29
|
+
import { UpdateDomainFullConfigRequest } from './model/UpdateDomainFullConfigRequest';
|
30
|
+
import { UpdateDomainFullConfigResponse } from './model/UpdateDomainFullConfigResponse';
|
27
31
|
export declare class CdnClient {
|
28
32
|
static newBuilder(): ClientBuilder<CdnClient>;
|
29
33
|
private hcClient;
|
@@ -197,6 +201,18 @@ export declare class CdnClient {
|
|
197
201
|
* @throws {RequiredError}
|
198
202
|
*/
|
199
203
|
showDomainDetailByName(showDomainDetailByNameRequest?: ShowDomainDetailByNameRequest): Promise<ShowDomainDetailByNameResponse>;
|
204
|
+
/**
|
205
|
+
* 查询域名配置接口,支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
|
206
|
+
*
|
207
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
208
|
+
*
|
209
|
+
* @summary 查询域名配置接口
|
210
|
+
* @param {string} domainName 加速域名
|
211
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
212
|
+
* @param {*} [options] Override http request option.
|
213
|
+
* @throws {RequiredError}
|
214
|
+
*/
|
215
|
+
showDomainFullConfig(showDomainFullConfigRequest?: ShowDomainFullConfigRequest): Promise<ShowDomainFullConfigResponse>;
|
200
216
|
/**
|
201
217
|
* - 支持查询90天内的数据。
|
202
218
|
*
|
@@ -317,6 +333,19 @@ export declare class CdnClient {
|
|
317
333
|
* @throws {RequiredError}
|
318
334
|
*/
|
319
335
|
showTopUrl(showTopUrlRequest?: ShowTopUrlRequest): Promise<ShowTopUrlResponse>;
|
336
|
+
/**
|
337
|
+
* 修改域名全量配置接口,支持配置回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
|
338
|
+
*
|
339
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
340
|
+
*
|
341
|
+
* @summary 修改域名全量配置接口
|
342
|
+
* @param {string} domainName 加速域名
|
343
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
344
|
+
* @param {ModifyDomainConfigRequestBody} [modifyDomainConfigRequestBody] 域名配置
|
345
|
+
* @param {*} [options] Override http request option.
|
346
|
+
* @throws {RequiredError}
|
347
|
+
*/
|
348
|
+
updateDomainFullConfig(updateDomainFullConfigRequest?: UpdateDomainFullConfigRequest): Promise<UpdateDomainFullConfigResponse>;
|
320
349
|
}
|
321
350
|
export declare const ParamCreater: () => {
|
322
351
|
/**
|
@@ -355,7 +384,6 @@ export declare const ParamCreater: () => {
|
|
355
384
|
queryParams: {};
|
356
385
|
pathParams: {};
|
357
386
|
headers: {};
|
358
|
-
data: {};
|
359
387
|
};
|
360
388
|
/**
|
361
389
|
* - 下载统计指标数据表格文件。
|
@@ -379,7 +407,6 @@ export declare const ParamCreater: () => {
|
|
379
407
|
queryParams: {};
|
380
408
|
pathParams: {};
|
381
409
|
headers: {};
|
382
|
-
data: {};
|
383
410
|
};
|
384
411
|
/**
|
385
412
|
* 查询加速域名
|
@@ -393,7 +420,6 @@ export declare const ParamCreater: () => {
|
|
393
420
|
queryParams: {};
|
394
421
|
pathParams: {};
|
395
422
|
headers: {};
|
396
|
-
data: {};
|
397
423
|
};
|
398
424
|
/**
|
399
425
|
* - 设置用户计费模式。
|
@@ -441,7 +467,6 @@ export declare const ParamCreater: () => {
|
|
441
467
|
queryParams: {};
|
442
468
|
pathParams: {};
|
443
469
|
headers: {};
|
444
|
-
data: {};
|
445
470
|
};
|
446
471
|
/**
|
447
472
|
* - 查询用户计费模式。
|
@@ -463,7 +488,6 @@ export declare const ParamCreater: () => {
|
|
463
488
|
queryParams: {};
|
464
489
|
pathParams: {};
|
465
490
|
headers: {};
|
466
|
-
data: {};
|
467
491
|
};
|
468
492
|
/**
|
469
493
|
* 加速域名详情信息接口
|
@@ -477,7 +501,19 @@ export declare const ParamCreater: () => {
|
|
477
501
|
queryParams: {};
|
478
502
|
pathParams: {};
|
479
503
|
headers: {};
|
480
|
-
|
504
|
+
};
|
505
|
+
/**
|
506
|
+
* 查询域名配置接口,支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
|
507
|
+
*
|
508
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
509
|
+
*/
|
510
|
+
showDomainFullConfig(showDomainFullConfigRequest?: ShowDomainFullConfigRequest): {
|
511
|
+
method: string;
|
512
|
+
url: string;
|
513
|
+
contentType: string;
|
514
|
+
queryParams: {};
|
515
|
+
pathParams: {};
|
516
|
+
headers: {};
|
481
517
|
};
|
482
518
|
/**
|
483
519
|
* - 支持查询90天内的数据。
|
@@ -503,7 +539,6 @@ export declare const ParamCreater: () => {
|
|
503
539
|
queryParams: {};
|
504
540
|
pathParams: {};
|
505
541
|
headers: {};
|
506
|
-
data: {};
|
507
542
|
};
|
508
543
|
/**
|
509
544
|
* - 支持查询90天内的数据。
|
@@ -529,7 +564,6 @@ export declare const ParamCreater: () => {
|
|
529
564
|
queryParams: {};
|
530
565
|
pathParams: {};
|
531
566
|
headers: {};
|
532
|
-
data: {};
|
533
567
|
};
|
534
568
|
/**
|
535
569
|
* - 查询TOP域名。
|
@@ -555,7 +589,6 @@ export declare const ParamCreater: () => {
|
|
555
589
|
queryParams: {};
|
556
590
|
pathParams: {};
|
557
591
|
headers: {};
|
558
|
-
data: {};
|
559
592
|
};
|
560
593
|
/**
|
561
594
|
* - 查询TOP100 URL明细。
|
@@ -581,6 +614,19 @@ export declare const ParamCreater: () => {
|
|
581
614
|
queryParams: {};
|
582
615
|
pathParams: {};
|
583
616
|
headers: {};
|
617
|
+
};
|
618
|
+
/**
|
619
|
+
* 修改域名全量配置接口,支持配置回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
|
620
|
+
*
|
621
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
622
|
+
*/
|
623
|
+
updateDomainFullConfig(updateDomainFullConfigRequest?: UpdateDomainFullConfigRequest): {
|
624
|
+
method: string;
|
625
|
+
url: string;
|
626
|
+
contentType: string;
|
627
|
+
queryParams: {};
|
628
|
+
pathParams: {};
|
629
|
+
headers: {};
|
584
630
|
data: {};
|
585
631
|
};
|
586
632
|
};
|
package/v2/CdnClient.js
CHANGED
@@ -25,10 +25,12 @@ var SetChargeModesRequest_1 = require("./model/SetChargeModesRequest");
|
|
25
25
|
var ShowBandwidthCalcRequest_1 = require("./model/ShowBandwidthCalcRequest");
|
26
26
|
var ShowChargeModesRequest_1 = require("./model/ShowChargeModesRequest");
|
27
27
|
var ShowDomainDetailByNameRequest_1 = require("./model/ShowDomainDetailByNameRequest");
|
28
|
+
var ShowDomainFullConfigRequest_1 = require("./model/ShowDomainFullConfigRequest");
|
28
29
|
var ShowDomainLocationStatsRequest_1 = require("./model/ShowDomainLocationStatsRequest");
|
29
30
|
var ShowDomainStatsRequest_1 = require("./model/ShowDomainStatsRequest");
|
30
31
|
var ShowTopDomainNamesRequest_1 = require("./model/ShowTopDomainNamesRequest");
|
31
32
|
var ShowTopUrlRequest_1 = require("./model/ShowTopUrlRequest");
|
33
|
+
var UpdateDomainFullConfigRequest_1 = require("./model/UpdateDomainFullConfigRequest");
|
32
34
|
var CdnClient = /** @class */ (function () {
|
33
35
|
function CdnClient(client) {
|
34
36
|
this.hcClient = client;
|
@@ -247,6 +249,23 @@ var CdnClient = /** @class */ (function () {
|
|
247
249
|
options['responseHeaders'] = [''];
|
248
250
|
return this.hcClient.sendRequest(options);
|
249
251
|
};
|
252
|
+
/**
|
253
|
+
* 查询域名配置接口,支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
|
254
|
+
*
|
255
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
256
|
+
*
|
257
|
+
* @summary 查询域名配置接口
|
258
|
+
* @param {string} domainName 加速域名
|
259
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
260
|
+
* @param {*} [options] Override http request option.
|
261
|
+
* @throws {RequiredError}
|
262
|
+
*/
|
263
|
+
CdnClient.prototype.showDomainFullConfig = function (showDomainFullConfigRequest) {
|
264
|
+
var options = (0, exports.ParamCreater)().showDomainFullConfig(showDomainFullConfigRequest);
|
265
|
+
// @ts-ignore
|
266
|
+
options['responseHeaders'] = [''];
|
267
|
+
return this.hcClient.sendRequest(options);
|
268
|
+
};
|
250
269
|
/**
|
251
270
|
* - 支持查询90天内的数据。
|
252
271
|
*
|
@@ -387,6 +406,24 @@ var CdnClient = /** @class */ (function () {
|
|
387
406
|
options['responseHeaders'] = [''];
|
388
407
|
return this.hcClient.sendRequest(options);
|
389
408
|
};
|
409
|
+
/**
|
410
|
+
* 修改域名全量配置接口,支持配置回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
|
411
|
+
*
|
412
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
413
|
+
*
|
414
|
+
* @summary 修改域名全量配置接口
|
415
|
+
* @param {string} domainName 加速域名
|
416
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示修改当前企业项目下加速域名的配置,\"all\"代表所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
417
|
+
* @param {ModifyDomainConfigRequestBody} [modifyDomainConfigRequestBody] 域名配置
|
418
|
+
* @param {*} [options] Override http request option.
|
419
|
+
* @throws {RequiredError}
|
420
|
+
*/
|
421
|
+
CdnClient.prototype.updateDomainFullConfig = function (updateDomainFullConfigRequest) {
|
422
|
+
var options = (0, exports.ParamCreater)().updateDomainFullConfig(updateDomainFullConfigRequest);
|
423
|
+
// @ts-ignore
|
424
|
+
options['responseHeaders'] = [''];
|
425
|
+
return this.hcClient.sendRequest(options);
|
426
|
+
};
|
390
427
|
return CdnClient;
|
391
428
|
}());
|
392
429
|
exports.CdnClient = CdnClient;
|
@@ -447,8 +484,7 @@ var ParamCreater = function () {
|
|
447
484
|
contentType: "application/json",
|
448
485
|
queryParams: {},
|
449
486
|
pathParams: {},
|
450
|
-
headers: {}
|
451
|
-
data: {}
|
487
|
+
headers: {}
|
452
488
|
};
|
453
489
|
var localVarHeaderParameter = {};
|
454
490
|
var localVarQueryParameter = {};
|
@@ -556,8 +592,7 @@ var ParamCreater = function () {
|
|
556
592
|
contentType: "application/json",
|
557
593
|
queryParams: {},
|
558
594
|
pathParams: {},
|
559
|
-
headers: {}
|
560
|
-
data: {}
|
595
|
+
headers: {}
|
561
596
|
};
|
562
597
|
var localVarHeaderParameter = {};
|
563
598
|
var localVarQueryParameter = {};
|
@@ -643,8 +678,7 @@ var ParamCreater = function () {
|
|
643
678
|
contentType: "application/json",
|
644
679
|
queryParams: {},
|
645
680
|
pathParams: {},
|
646
|
-
headers: {}
|
647
|
-
data: {}
|
681
|
+
headers: {}
|
648
682
|
};
|
649
683
|
var localVarHeaderParameter = {};
|
650
684
|
var localVarQueryParameter = {};
|
@@ -777,8 +811,7 @@ var ParamCreater = function () {
|
|
777
811
|
contentType: "application/json",
|
778
812
|
queryParams: {},
|
779
813
|
pathParams: {},
|
780
|
-
headers: {}
|
781
|
-
data: {}
|
814
|
+
headers: {}
|
782
815
|
};
|
783
816
|
var localVarHeaderParameter = {};
|
784
817
|
var localVarQueryParameter = {};
|
@@ -860,8 +893,7 @@ var ParamCreater = function () {
|
|
860
893
|
contentType: "application/json",
|
861
894
|
queryParams: {},
|
862
895
|
pathParams: {},
|
863
|
-
headers: {}
|
864
|
-
data: {}
|
896
|
+
headers: {}
|
865
897
|
};
|
866
898
|
var localVarHeaderParameter = {};
|
867
899
|
var localVarQueryParameter = {};
|
@@ -908,8 +940,7 @@ var ParamCreater = function () {
|
|
908
940
|
contentType: "application/json",
|
909
941
|
queryParams: {},
|
910
942
|
pathParams: {},
|
911
|
-
headers: {}
|
912
|
-
data: {}
|
943
|
+
headers: {}
|
913
944
|
};
|
914
945
|
var localVarHeaderParameter = {};
|
915
946
|
var localVarQueryParameter = {};
|
@@ -936,6 +967,45 @@ var ParamCreater = function () {
|
|
936
967
|
options.headers = localVarHeaderParameter;
|
937
968
|
return options;
|
938
969
|
},
|
970
|
+
/**
|
971
|
+
* 查询域名配置接口,支持查询回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6开关、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
|
972
|
+
*
|
973
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
974
|
+
*/
|
975
|
+
showDomainFullConfig: function (showDomainFullConfigRequest) {
|
976
|
+
var options = {
|
977
|
+
method: "GET",
|
978
|
+
url: "/v1.1/cdn/configuration/domains/{domain_name}/configs",
|
979
|
+
contentType: "application/json",
|
980
|
+
queryParams: {},
|
981
|
+
pathParams: {},
|
982
|
+
headers: {}
|
983
|
+
};
|
984
|
+
var localVarHeaderParameter = {};
|
985
|
+
var localVarQueryParameter = {};
|
986
|
+
var domainName;
|
987
|
+
var enterpriseProjectId;
|
988
|
+
if (showDomainFullConfigRequest !== null && showDomainFullConfigRequest !== undefined) {
|
989
|
+
if (showDomainFullConfigRequest instanceof ShowDomainFullConfigRequest_1.ShowDomainFullConfigRequest) {
|
990
|
+
domainName = showDomainFullConfigRequest.domainName;
|
991
|
+
enterpriseProjectId = showDomainFullConfigRequest.enterpriseProjectId;
|
992
|
+
}
|
993
|
+
else {
|
994
|
+
domainName = showDomainFullConfigRequest['domain_name'];
|
995
|
+
enterpriseProjectId = showDomainFullConfigRequest['enterprise_project_id'];
|
996
|
+
}
|
997
|
+
}
|
998
|
+
if (domainName === null || domainName === undefined) {
|
999
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showDomainFullConfig.');
|
1000
|
+
}
|
1001
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1002
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1003
|
+
}
|
1004
|
+
options.queryParams = localVarQueryParameter;
|
1005
|
+
options.pathParams = { 'domain_name': domainName, };
|
1006
|
+
options.headers = localVarHeaderParameter;
|
1007
|
+
return options;
|
1008
|
+
},
|
939
1009
|
/**
|
940
1010
|
* - 支持查询90天内的数据。
|
941
1011
|
*
|
@@ -960,8 +1030,7 @@ var ParamCreater = function () {
|
|
960
1030
|
contentType: "application/json",
|
961
1031
|
queryParams: {},
|
962
1032
|
pathParams: {},
|
963
|
-
headers: {}
|
964
|
-
data: {}
|
1033
|
+
headers: {}
|
965
1034
|
};
|
966
1035
|
var localVarHeaderParameter = {};
|
967
1036
|
var localVarQueryParameter = {};
|
@@ -1080,8 +1149,7 @@ var ParamCreater = function () {
|
|
1080
1149
|
contentType: "application/json",
|
1081
1150
|
queryParams: {},
|
1082
1151
|
pathParams: {},
|
1083
|
-
headers: {}
|
1084
|
-
data: {}
|
1152
|
+
headers: {}
|
1085
1153
|
};
|
1086
1154
|
var localVarHeaderParameter = {};
|
1087
1155
|
var localVarQueryParameter = {};
|
@@ -1188,8 +1256,7 @@ var ParamCreater = function () {
|
|
1188
1256
|
contentType: "application/json",
|
1189
1257
|
queryParams: {},
|
1190
1258
|
pathParams: {},
|
1191
|
-
headers: {}
|
1192
|
-
data: {}
|
1259
|
+
headers: {}
|
1193
1260
|
};
|
1194
1261
|
var localVarHeaderParameter = {};
|
1195
1262
|
var localVarQueryParameter = {};
|
@@ -1272,8 +1339,7 @@ var ParamCreater = function () {
|
|
1272
1339
|
contentType: "application/json",
|
1273
1340
|
queryParams: {},
|
1274
1341
|
pathParams: {},
|
1275
|
-
headers: {}
|
1276
|
-
data: {}
|
1342
|
+
headers: {}
|
1277
1343
|
};
|
1278
1344
|
var localVarHeaderParameter = {};
|
1279
1345
|
var localVarQueryParameter = {};
|
@@ -1335,6 +1401,51 @@ var ParamCreater = function () {
|
|
1335
1401
|
options.headers = localVarHeaderParameter;
|
1336
1402
|
return options;
|
1337
1403
|
},
|
1404
|
+
/**
|
1405
|
+
* 修改域名全量配置接口,支持配置回源请求头、HTTP header配置、URL鉴权、证书、源站、回源协议、强制重定向、智能压缩、缓存URL参数、IPv6、状态码缓存时间、Range回源、User-Agent黑白名单、改写回源URL、自定义错误页面
|
1406
|
+
*
|
1407
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
1408
|
+
*/
|
1409
|
+
updateDomainFullConfig: function (updateDomainFullConfigRequest) {
|
1410
|
+
var options = {
|
1411
|
+
method: "PUT",
|
1412
|
+
url: "/v1.1/cdn/configuration/domains/{domain_name}/configs",
|
1413
|
+
contentType: "application/json",
|
1414
|
+
queryParams: {},
|
1415
|
+
pathParams: {},
|
1416
|
+
headers: {},
|
1417
|
+
data: {}
|
1418
|
+
};
|
1419
|
+
var localVarHeaderParameter = {};
|
1420
|
+
var localVarQueryParameter = {};
|
1421
|
+
var body;
|
1422
|
+
var domainName;
|
1423
|
+
var enterpriseProjectId;
|
1424
|
+
if (updateDomainFullConfigRequest !== null && updateDomainFullConfigRequest !== undefined) {
|
1425
|
+
if (updateDomainFullConfigRequest instanceof UpdateDomainFullConfigRequest_1.UpdateDomainFullConfigRequest) {
|
1426
|
+
domainName = updateDomainFullConfigRequest.domainName;
|
1427
|
+
enterpriseProjectId = updateDomainFullConfigRequest.enterpriseProjectId;
|
1428
|
+
body = updateDomainFullConfigRequest.body;
|
1429
|
+
}
|
1430
|
+
else {
|
1431
|
+
domainName = updateDomainFullConfigRequest['domain_name'];
|
1432
|
+
enterpriseProjectId = updateDomainFullConfigRequest['enterprise_project_id'];
|
1433
|
+
body = updateDomainFullConfigRequest['body'];
|
1434
|
+
}
|
1435
|
+
}
|
1436
|
+
if (domainName === null || domainName === undefined) {
|
1437
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling updateDomainFullConfig.');
|
1438
|
+
}
|
1439
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1440
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1441
|
+
}
|
1442
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
1443
|
+
options.data = body !== undefined ? body : {};
|
1444
|
+
options.queryParams = localVarQueryParameter;
|
1445
|
+
options.pathParams = { 'domain_name': domainName, };
|
1446
|
+
options.headers = localVarHeaderParameter;
|
1447
|
+
return options;
|
1448
|
+
},
|
1338
1449
|
};
|
1339
1450
|
};
|
1340
1451
|
exports.ParamCreater = ParamCreater;
|