@huaweicloud/huaweicloud-sdk-cdn 3.1.29 → 3.1.30
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 +2 -0
- package/v1/CdnClient.js +14 -0
- package/v1/model/Domains.d.ts +3 -0
- package/v1/model/Domains.js +4 -0
- package/v1/model/EpResourceTag.d.ts +7 -0
- package/v1/model/EpResourceTag.js +19 -0
- package/v1/model/ListDomainsRequest.d.ts +8 -0
- package/v1/model/ListDomainsRequest.js +28 -0
- package/v1/public-api.d.ts +1 -0
- package/v1/public-api.js +1 -0
- package/v2/CdnClient.d.ts +63 -0
- package/v2/CdnClient.js +164 -0
- package/v2/model/DomainOriginHost.d.ts +15 -0
- package/v2/model/DomainOriginHost.js +52 -0
- package/v2/model/Domains.d.ts +87 -0
- package/v2/model/Domains.js +253 -0
- package/v2/model/DomainsWithPort.d.ts +59 -0
- package/v2/model/DomainsWithPort.js +165 -0
- package/v2/model/EpResourceTag.d.ts +7 -0
- package/v2/model/EpResourceTag.js +19 -0
- package/v2/model/ListDomainsRequest.d.ts +39 -0
- package/v2/model/ListDomainsRequest.js +135 -0
- package/v2/model/ListDomainsResponse.d.ts +9 -0
- package/v2/model/ListDomainsResponse.js +35 -0
- package/v2/model/ShowDomainDetailByNameRequest.d.ts +11 -0
- package/v2/model/ShowDomainDetailByNameRequest.js +38 -0
- package/v2/model/ShowDomainDetailByNameResponse.d.ts +7 -0
- package/v2/model/ShowDomainDetailByNameResponse.js +31 -0
- package/v2/model/Sources.d.ts +32 -0
- package/v2/model/Sources.js +92 -0
- package/v2/model/SourcesConfig.d.ts +29 -0
- package/v2/model/SourcesConfig.js +100 -0
- package/v2/public-api.d.ts +10 -0
- package/v2/public-api.js +10 -0
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@huaweicloud/huaweicloud-sdk-cdn",
|
3
|
-
"version": "3.1.
|
3
|
+
"version": "3.1.30",
|
4
4
|
"description": "Huaweicloud SDK for cdn",
|
5
5
|
"main": "huaweicloud-sdk-cdn.js",
|
6
6
|
"typings": "huaweicloud-sdk-cdn.d.ts",
|
@@ -14,6 +14,6 @@
|
|
14
14
|
"author": "HuaweiCloud_SDK",
|
15
15
|
"license": "Apache-2.0",
|
16
16
|
"dependencies": {
|
17
|
-
"@huaweicloud/huaweicloud-sdk-core": "^3.1.
|
17
|
+
"@huaweicloud/huaweicloud-sdk-core": "^3.1.30"
|
18
18
|
}
|
19
19
|
}
|
package/v1/CdnClient.d.ts
CHANGED
@@ -193,6 +193,8 @@ export declare class CdnClient {
|
|
193
193
|
* @param {'mainland_china' | 'outside_mainland_china' | 'global'} [serviceArea] 华为云CDN提供的加速服务范围,包含: - mainland_china 中国大陆 - outside_mainland_china 中国大陆境外 - global 全球。
|
194
194
|
* @param {number} [pageSize] 每页的数量,取值范围1-10000,不设值时默认值为30。
|
195
195
|
* @param {number} [pageNumber] 查询的页码。取值范围1-65535,不设值时默认值为1。
|
196
|
+
* @param {boolean} [showTags] 展示标签标识 true:不展示 false:展示。
|
197
|
+
* @param {boolean} [exactMatch] 精准匹配 on:开启 off:关闭。
|
196
198
|
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
197
199
|
* @param {*} [options] Override http request option.
|
198
200
|
* @throws {RequiredError}
|
package/v1/CdnClient.js
CHANGED
@@ -213,6 +213,8 @@ var CdnClient = /** @class */ (function () {
|
|
213
213
|
* @param {'mainland_china' | 'outside_mainland_china' | 'global'} [serviceArea] 华为云CDN提供的加速服务范围,包含: - mainland_china 中国大陆 - outside_mainland_china 中国大陆境外 - global 全球。
|
214
214
|
* @param {number} [pageSize] 每页的数量,取值范围1-10000,不设值时默认值为30。
|
215
215
|
* @param {number} [pageNumber] 查询的页码。取值范围1-65535,不设值时默认值为1。
|
216
|
+
* @param {boolean} [showTags] 展示标签标识 true:不展示 false:展示。
|
217
|
+
* @param {boolean} [exactMatch] 精准匹配 on:开启 off:关闭。
|
216
218
|
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
217
219
|
* @param {*} [options] Override http request option.
|
218
220
|
* @throws {RequiredError}
|
@@ -1232,6 +1234,8 @@ var ParamCreater = function () {
|
|
1232
1234
|
var serviceArea;
|
1233
1235
|
var pageSize;
|
1234
1236
|
var pageNumber;
|
1237
|
+
var showTags;
|
1238
|
+
var exactMatch;
|
1235
1239
|
var enterpriseProjectId;
|
1236
1240
|
if (listDomainsRequest !== null && listDomainsRequest !== undefined) {
|
1237
1241
|
if (listDomainsRequest instanceof ListDomainsRequest_1.ListDomainsRequest) {
|
@@ -1241,6 +1245,8 @@ var ParamCreater = function () {
|
|
1241
1245
|
serviceArea = listDomainsRequest.serviceArea;
|
1242
1246
|
pageSize = listDomainsRequest.pageSize;
|
1243
1247
|
pageNumber = listDomainsRequest.pageNumber;
|
1248
|
+
showTags = listDomainsRequest.showTags;
|
1249
|
+
exactMatch = listDomainsRequest.exactMatch;
|
1244
1250
|
enterpriseProjectId = listDomainsRequest.enterpriseProjectId;
|
1245
1251
|
}
|
1246
1252
|
else {
|
@@ -1250,6 +1256,8 @@ var ParamCreater = function () {
|
|
1250
1256
|
serviceArea = listDomainsRequest['service_area'];
|
1251
1257
|
pageSize = listDomainsRequest['page_size'];
|
1252
1258
|
pageNumber = listDomainsRequest['page_number'];
|
1259
|
+
showTags = listDomainsRequest['show_tags'];
|
1260
|
+
exactMatch = listDomainsRequest['exact_match'];
|
1253
1261
|
enterpriseProjectId = listDomainsRequest['enterprise_project_id'];
|
1254
1262
|
}
|
1255
1263
|
}
|
@@ -1271,6 +1279,12 @@ var ParamCreater = function () {
|
|
1271
1279
|
if (pageNumber !== null && pageNumber !== undefined) {
|
1272
1280
|
localVarQueryParameter['page_number'] = pageNumber;
|
1273
1281
|
}
|
1282
|
+
if (showTags !== null && showTags !== undefined) {
|
1283
|
+
localVarQueryParameter['show_tags'] = showTags;
|
1284
|
+
}
|
1285
|
+
if (exactMatch !== null && exactMatch !== undefined) {
|
1286
|
+
localVarQueryParameter['exact_match'] = exactMatch;
|
1287
|
+
}
|
1274
1288
|
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
1275
1289
|
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
1276
1290
|
}
|
package/v1/model/Domains.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import { DomainOriginHost } from './DomainOriginHost';
|
2
|
+
import { EpResourceTag } from './EpResourceTag';
|
2
3
|
import { Sources } from './Sources';
|
3
4
|
export declare class Domains {
|
4
5
|
id?: string;
|
@@ -22,6 +23,7 @@ export declare class Domains {
|
|
22
23
|
private 'banned_reason'?;
|
23
24
|
private 'locked_reason'?;
|
24
25
|
private 'enterprise_project_id'?;
|
26
|
+
tags?: Array<EpResourceTag>;
|
25
27
|
constructor();
|
26
28
|
withId(id: string): Domains;
|
27
29
|
withDomainName(domainName: string): Domains;
|
@@ -76,6 +78,7 @@ export declare class Domains {
|
|
76
78
|
withEnterpriseProjectId(enterpriseProjectId: string): Domains;
|
77
79
|
set enterpriseProjectId(enterpriseProjectId: string | undefined);
|
78
80
|
get enterpriseProjectId(): string | undefined;
|
81
|
+
withTags(tags: Array<EpResourceTag>): Domains;
|
79
82
|
}
|
80
83
|
/**
|
81
84
|
* @export
|
package/v1/model/Domains.js
CHANGED
@@ -248,6 +248,10 @@ var Domains = /** @class */ (function () {
|
|
248
248
|
enumerable: false,
|
249
249
|
configurable: true
|
250
250
|
});
|
251
|
+
Domains.prototype.withTags = function (tags) {
|
252
|
+
this['tags'] = tags;
|
253
|
+
return this;
|
254
|
+
};
|
251
255
|
return Domains;
|
252
256
|
}());
|
253
257
|
exports.Domains = Domains;
|
@@ -0,0 +1,19 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EpResourceTag = void 0;
|
4
|
+
var EpResourceTag = /** @class */ (function () {
|
5
|
+
function EpResourceTag(key, value) {
|
6
|
+
this['key'] = key;
|
7
|
+
this['value'] = value;
|
8
|
+
}
|
9
|
+
EpResourceTag.prototype.withKey = function (key) {
|
10
|
+
this['key'] = key;
|
11
|
+
return this;
|
12
|
+
};
|
13
|
+
EpResourceTag.prototype.withValue = function (value) {
|
14
|
+
this['value'] = value;
|
15
|
+
return this;
|
16
|
+
};
|
17
|
+
return EpResourceTag;
|
18
|
+
}());
|
19
|
+
exports.EpResourceTag = EpResourceTag;
|
@@ -5,6 +5,8 @@ export declare class ListDomainsRequest {
|
|
5
5
|
private 'service_area'?;
|
6
6
|
private 'page_size'?;
|
7
7
|
private 'page_number'?;
|
8
|
+
private 'show_tags'?;
|
9
|
+
private 'exact_match'?;
|
8
10
|
private 'enterprise_project_id'?;
|
9
11
|
constructor();
|
10
12
|
withDomainName(domainName: string): ListDomainsRequest;
|
@@ -25,6 +27,12 @@ export declare class ListDomainsRequest {
|
|
25
27
|
withPageNumber(pageNumber: number): ListDomainsRequest;
|
26
28
|
set pageNumber(pageNumber: number | undefined);
|
27
29
|
get pageNumber(): number | undefined;
|
30
|
+
withShowTags(showTags: boolean): ListDomainsRequest;
|
31
|
+
set showTags(showTags: boolean | undefined);
|
32
|
+
get showTags(): boolean | undefined;
|
33
|
+
withExactMatch(exactMatch: boolean): ListDomainsRequest;
|
34
|
+
set exactMatch(exactMatch: boolean | undefined);
|
35
|
+
get exactMatch(): boolean | undefined;
|
28
36
|
withEnterpriseProjectId(enterpriseProjectId: string): ListDomainsRequest;
|
29
37
|
set enterpriseProjectId(enterpriseProjectId: string | undefined);
|
30
38
|
get enterpriseProjectId(): string | undefined;
|
@@ -88,6 +88,34 @@ var ListDomainsRequest = /** @class */ (function () {
|
|
88
88
|
enumerable: false,
|
89
89
|
configurable: true
|
90
90
|
});
|
91
|
+
ListDomainsRequest.prototype.withShowTags = function (showTags) {
|
92
|
+
this['show_tags'] = showTags;
|
93
|
+
return this;
|
94
|
+
};
|
95
|
+
Object.defineProperty(ListDomainsRequest.prototype, "showTags", {
|
96
|
+
get: function () {
|
97
|
+
return this['show_tags'];
|
98
|
+
},
|
99
|
+
set: function (showTags) {
|
100
|
+
this['show_tags'] = showTags;
|
101
|
+
},
|
102
|
+
enumerable: false,
|
103
|
+
configurable: true
|
104
|
+
});
|
105
|
+
ListDomainsRequest.prototype.withExactMatch = function (exactMatch) {
|
106
|
+
this['exact_match'] = exactMatch;
|
107
|
+
return this;
|
108
|
+
};
|
109
|
+
Object.defineProperty(ListDomainsRequest.prototype, "exactMatch", {
|
110
|
+
get: function () {
|
111
|
+
return this['exact_match'];
|
112
|
+
},
|
113
|
+
set: function (exactMatch) {
|
114
|
+
this['exact_match'] = exactMatch;
|
115
|
+
},
|
116
|
+
enumerable: false,
|
117
|
+
configurable: true
|
118
|
+
});
|
91
119
|
ListDomainsRequest.prototype.withEnterpriseProjectId = function (enterpriseProjectId) {
|
92
120
|
this['enterprise_project_id'] = enterpriseProjectId;
|
93
121
|
return this;
|
package/v1/public-api.d.ts
CHANGED
@@ -38,6 +38,7 @@ export * from './model/Domains';
|
|
38
38
|
export * from './model/DomainsWithPort';
|
39
39
|
export * from './model/EnableDomainRequest';
|
40
40
|
export * from './model/EnableDomainResponse';
|
41
|
+
export * from './model/EpResourceTag';
|
41
42
|
export * from './model/ErrorCodeCache';
|
42
43
|
export * from './model/ErrorCodeRedirectRules';
|
43
44
|
export * from './model/Follow302StatusBody';
|
package/v1/public-api.js
CHANGED
@@ -54,6 +54,7 @@ __exportStar(require("./model/Domains"), exports);
|
|
54
54
|
__exportStar(require("./model/DomainsWithPort"), exports);
|
55
55
|
__exportStar(require("./model/EnableDomainRequest"), exports);
|
56
56
|
__exportStar(require("./model/EnableDomainResponse"), exports);
|
57
|
+
__exportStar(require("./model/EpResourceTag"), exports);
|
57
58
|
__exportStar(require("./model/ErrorCodeCache"), exports);
|
58
59
|
__exportStar(require("./model/ErrorCodeRedirectRules"), exports);
|
59
60
|
__exportStar(require("./model/Follow302StatusBody"), exports);
|
package/v2/CdnClient.d.ts
CHANGED
@@ -6,12 +6,16 @@ import { DownloadRegionCarrierExcelRequest } from './model/DownloadRegionCarrier
|
|
6
6
|
import { DownloadRegionCarrierExcelResponse } from './model/DownloadRegionCarrierExcelResponse';
|
7
7
|
import { DownloadStatisticsExcelRequest } from './model/DownloadStatisticsExcelRequest';
|
8
8
|
import { DownloadStatisticsExcelResponse } from './model/DownloadStatisticsExcelResponse';
|
9
|
+
import { ListDomainsRequest } from './model/ListDomainsRequest';
|
10
|
+
import { ListDomainsResponse } from './model/ListDomainsResponse';
|
9
11
|
import { SetChargeModesRequest } from './model/SetChargeModesRequest';
|
10
12
|
import { SetChargeModesResponse } from './model/SetChargeModesResponse';
|
11
13
|
import { ShowBandwidthCalcRequest } from './model/ShowBandwidthCalcRequest';
|
12
14
|
import { ShowBandwidthCalcResponse } from './model/ShowBandwidthCalcResponse';
|
13
15
|
import { ShowChargeModesRequest } from './model/ShowChargeModesRequest';
|
14
16
|
import { ShowChargeModesResponse } from './model/ShowChargeModesResponse';
|
17
|
+
import { ShowDomainDetailByNameRequest } from './model/ShowDomainDetailByNameRequest';
|
18
|
+
import { ShowDomainDetailByNameResponse } from './model/ShowDomainDetailByNameResponse';
|
15
19
|
import { ShowDomainLocationStatsRequest } from './model/ShowDomainLocationStatsRequest';
|
16
20
|
import { ShowDomainLocationStatsResponse } from './model/ShowDomainLocationStatsResponse';
|
17
21
|
import { ShowDomainStatsRequest } from './model/ShowDomainStatsRequest';
|
@@ -94,6 +98,25 @@ export declare class CdnClient {
|
|
94
98
|
* @throws {RequiredError}
|
95
99
|
*/
|
96
100
|
downloadStatisticsExcel(downloadStatisticsExcelRequest?: DownloadStatisticsExcelRequest): Promise<DownloadStatisticsExcelResponse>;
|
101
|
+
/**
|
102
|
+
* 查询加速域名
|
103
|
+
*
|
104
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
105
|
+
*
|
106
|
+
* @summary 查询加速域名
|
107
|
+
* @param {string} [domainName] 加速域名,采用模糊匹配的方式。(长度限制为1-255字符)。
|
108
|
+
* @param {string} [businessType] 加速域名的业务类型。取值: - web(网站加速) - download(文件下载加速) - video(点播加速) - wholeSite(全站加速)
|
109
|
+
* @param {string} [domainStatus] 加速域名状态。取值意义: - online表示“已开启” - offline表示“已停用” - configuring表示“配置中” - configure_failed表示“配置失败” - checking表示“审核中” - check_failed表示“审核未通过” - deleting表示“删除中”。
|
110
|
+
* @param {string} [serviceArea] 华为云CDN提供的加速服务范围,包含: - mainland_china 中国大陆 - outside_mainland_china 中国大陆境外 - global 全球。
|
111
|
+
* @param {number} [pageSize] 每页的数量,取值范围1-10000,不设值时默认值为30。
|
112
|
+
* @param {number} [pageNumber] 查询的页码。取值范围1-65535,不设值时默认值为1。
|
113
|
+
* @param {boolean} [showTags] 展示标签标识 true:不展示 false:展示。
|
114
|
+
* @param {boolean} [exactMatch] 精准匹配 true:开启 false:关闭。
|
115
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
116
|
+
* @param {*} [options] Override http request option.
|
117
|
+
* @throws {RequiredError}
|
118
|
+
*/
|
119
|
+
listDomains(listDomainsRequest?: ListDomainsRequest): Promise<ListDomainsResponse>;
|
97
120
|
/**
|
98
121
|
* - 设置用户计费模式。
|
99
122
|
*
|
@@ -162,6 +185,18 @@ export declare class CdnClient {
|
|
162
185
|
* @throws {RequiredError}
|
163
186
|
*/
|
164
187
|
showChargeModes(showChargeModesRequest?: ShowChargeModesRequest): Promise<ShowChargeModesResponse>;
|
188
|
+
/**
|
189
|
+
* 加速域名详情信息接口
|
190
|
+
*
|
191
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
192
|
+
*
|
193
|
+
* @summary 查询加速域名详情
|
194
|
+
* @param {string} domainName 加速域名名称,获取方法请参见查询加速域名。
|
195
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
196
|
+
* @param {*} [options] Override http request option.
|
197
|
+
* @throws {RequiredError}
|
198
|
+
*/
|
199
|
+
showDomainDetailByName(showDomainDetailByNameRequest?: ShowDomainDetailByNameRequest): Promise<ShowDomainDetailByNameResponse>;
|
165
200
|
/**
|
166
201
|
* - 支持查询90天内的数据。
|
167
202
|
*
|
@@ -346,6 +381,20 @@ export declare const ParamCreater: () => {
|
|
346
381
|
headers: {};
|
347
382
|
data: {};
|
348
383
|
};
|
384
|
+
/**
|
385
|
+
* 查询加速域名
|
386
|
+
*
|
387
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
388
|
+
*/
|
389
|
+
listDomains(listDomainsRequest?: ListDomainsRequest): {
|
390
|
+
method: string;
|
391
|
+
url: string;
|
392
|
+
contentType: string;
|
393
|
+
queryParams: {};
|
394
|
+
pathParams: {};
|
395
|
+
headers: {};
|
396
|
+
data: {};
|
397
|
+
};
|
349
398
|
/**
|
350
399
|
* - 设置用户计费模式。
|
351
400
|
*
|
@@ -416,6 +465,20 @@ export declare const ParamCreater: () => {
|
|
416
465
|
headers: {};
|
417
466
|
data: {};
|
418
467
|
};
|
468
|
+
/**
|
469
|
+
* 加速域名详情信息接口
|
470
|
+
*
|
471
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
472
|
+
*/
|
473
|
+
showDomainDetailByName(showDomainDetailByNameRequest?: ShowDomainDetailByNameRequest): {
|
474
|
+
method: string;
|
475
|
+
url: string;
|
476
|
+
contentType: string;
|
477
|
+
queryParams: {};
|
478
|
+
pathParams: {};
|
479
|
+
headers: {};
|
480
|
+
data: {};
|
481
|
+
};
|
419
482
|
/**
|
420
483
|
* - 支持查询90天内的数据。
|
421
484
|
*
|
package/v2/CdnClient.js
CHANGED
@@ -20,9 +20,11 @@ var ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder")
|
|
20
20
|
var BatchCopyDomainRequest_1 = require("./model/BatchCopyDomainRequest");
|
21
21
|
var DownloadRegionCarrierExcelRequest_1 = require("./model/DownloadRegionCarrierExcelRequest");
|
22
22
|
var DownloadStatisticsExcelRequest_1 = require("./model/DownloadStatisticsExcelRequest");
|
23
|
+
var ListDomainsRequest_1 = require("./model/ListDomainsRequest");
|
23
24
|
var SetChargeModesRequest_1 = require("./model/SetChargeModesRequest");
|
24
25
|
var ShowBandwidthCalcRequest_1 = require("./model/ShowBandwidthCalcRequest");
|
25
26
|
var ShowChargeModesRequest_1 = require("./model/ShowChargeModesRequest");
|
27
|
+
var ShowDomainDetailByNameRequest_1 = require("./model/ShowDomainDetailByNameRequest");
|
26
28
|
var ShowDomainLocationStatsRequest_1 = require("./model/ShowDomainLocationStatsRequest");
|
27
29
|
var ShowDomainStatsRequest_1 = require("./model/ShowDomainStatsRequest");
|
28
30
|
var ShowTopDomainNamesRequest_1 = require("./model/ShowTopDomainNamesRequest");
|
@@ -121,6 +123,30 @@ var CdnClient = /** @class */ (function () {
|
|
121
123
|
options['responseHeaders'] = [''];
|
122
124
|
return this.hcClient.sendRequest(options);
|
123
125
|
};
|
126
|
+
/**
|
127
|
+
* 查询加速域名
|
128
|
+
*
|
129
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
130
|
+
*
|
131
|
+
* @summary 查询加速域名
|
132
|
+
* @param {string} [domainName] 加速域名,采用模糊匹配的方式。(长度限制为1-255字符)。
|
133
|
+
* @param {string} [businessType] 加速域名的业务类型。取值: - web(网站加速) - download(文件下载加速) - video(点播加速) - wholeSite(全站加速)
|
134
|
+
* @param {string} [domainStatus] 加速域名状态。取值意义: - online表示“已开启” - offline表示“已停用” - configuring表示“配置中” - configure_failed表示“配置失败” - checking表示“审核中” - check_failed表示“审核未通过” - deleting表示“删除中”。
|
135
|
+
* @param {string} [serviceArea] 华为云CDN提供的加速服务范围,包含: - mainland_china 中国大陆 - outside_mainland_china 中国大陆境外 - global 全球。
|
136
|
+
* @param {number} [pageSize] 每页的数量,取值范围1-10000,不设值时默认值为30。
|
137
|
+
* @param {number} [pageNumber] 查询的页码。取值范围1-65535,不设值时默认值为1。
|
138
|
+
* @param {boolean} [showTags] 展示标签标识 true:不展示 false:展示。
|
139
|
+
* @param {boolean} [exactMatch] 精准匹配 true:开启 false:关闭。
|
140
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
141
|
+
* @param {*} [options] Override http request option.
|
142
|
+
* @throws {RequiredError}
|
143
|
+
*/
|
144
|
+
CdnClient.prototype.listDomains = function (listDomainsRequest) {
|
145
|
+
var options = (0, exports.ParamCreater)().listDomains(listDomainsRequest);
|
146
|
+
// @ts-ignore
|
147
|
+
options['responseHeaders'] = [''];
|
148
|
+
return this.hcClient.sendRequest(options);
|
149
|
+
};
|
124
150
|
/**
|
125
151
|
* - 设置用户计费模式。
|
126
152
|
*
|
@@ -204,6 +230,23 @@ var CdnClient = /** @class */ (function () {
|
|
204
230
|
options['responseHeaders'] = [''];
|
205
231
|
return this.hcClient.sendRequest(options);
|
206
232
|
};
|
233
|
+
/**
|
234
|
+
* 加速域名详情信息接口
|
235
|
+
*
|
236
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
237
|
+
*
|
238
|
+
* @summary 查询加速域名详情
|
239
|
+
* @param {string} domainName 加速域名名称,获取方法请参见查询加速域名。
|
240
|
+
* @param {string} [enterpriseProjectId] 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用帐号调用接口时,该参数必传。 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。
|
241
|
+
* @param {*} [options] Override http request option.
|
242
|
+
* @throws {RequiredError}
|
243
|
+
*/
|
244
|
+
CdnClient.prototype.showDomainDetailByName = function (showDomainDetailByNameRequest) {
|
245
|
+
var options = (0, exports.ParamCreater)().showDomainDetailByName(showDomainDetailByNameRequest);
|
246
|
+
// @ts-ignore
|
247
|
+
options['responseHeaders'] = [''];
|
248
|
+
return this.hcClient.sendRequest(options);
|
249
|
+
};
|
207
250
|
/**
|
208
251
|
* - 支持查询90天内的数据。
|
209
252
|
*
|
@@ -588,6 +631,87 @@ var ParamCreater = function () {
|
|
588
631
|
options.headers = localVarHeaderParameter;
|
589
632
|
return options;
|
590
633
|
},
|
634
|
+
/**
|
635
|
+
* 查询加速域名
|
636
|
+
*
|
637
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
638
|
+
*/
|
639
|
+
listDomains: function (listDomainsRequest) {
|
640
|
+
var options = {
|
641
|
+
method: "GET",
|
642
|
+
url: "/v1.0/cdn/domains",
|
643
|
+
contentType: "application/json",
|
644
|
+
queryParams: {},
|
645
|
+
pathParams: {},
|
646
|
+
headers: {},
|
647
|
+
data: {}
|
648
|
+
};
|
649
|
+
var localVarHeaderParameter = {};
|
650
|
+
var localVarQueryParameter = {};
|
651
|
+
var domainName;
|
652
|
+
var businessType;
|
653
|
+
var domainStatus;
|
654
|
+
var serviceArea;
|
655
|
+
var pageSize;
|
656
|
+
var pageNumber;
|
657
|
+
var showTags;
|
658
|
+
var exactMatch;
|
659
|
+
var enterpriseProjectId;
|
660
|
+
if (listDomainsRequest !== null && listDomainsRequest !== undefined) {
|
661
|
+
if (listDomainsRequest instanceof ListDomainsRequest_1.ListDomainsRequest) {
|
662
|
+
domainName = listDomainsRequest.domainName;
|
663
|
+
businessType = listDomainsRequest.businessType;
|
664
|
+
domainStatus = listDomainsRequest.domainStatus;
|
665
|
+
serviceArea = listDomainsRequest.serviceArea;
|
666
|
+
pageSize = listDomainsRequest.pageSize;
|
667
|
+
pageNumber = listDomainsRequest.pageNumber;
|
668
|
+
showTags = listDomainsRequest.showTags;
|
669
|
+
exactMatch = listDomainsRequest.exactMatch;
|
670
|
+
enterpriseProjectId = listDomainsRequest.enterpriseProjectId;
|
671
|
+
}
|
672
|
+
else {
|
673
|
+
domainName = listDomainsRequest['domain_name'];
|
674
|
+
businessType = listDomainsRequest['business_type'];
|
675
|
+
domainStatus = listDomainsRequest['domain_status'];
|
676
|
+
serviceArea = listDomainsRequest['service_area'];
|
677
|
+
pageSize = listDomainsRequest['page_size'];
|
678
|
+
pageNumber = listDomainsRequest['page_number'];
|
679
|
+
showTags = listDomainsRequest['show_tags'];
|
680
|
+
exactMatch = listDomainsRequest['exact_match'];
|
681
|
+
enterpriseProjectId = listDomainsRequest['enterprise_project_id'];
|
682
|
+
}
|
683
|
+
}
|
684
|
+
if (domainName !== null && domainName !== undefined) {
|
685
|
+
localVarQueryParameter['domain_name'] = domainName;
|
686
|
+
}
|
687
|
+
if (businessType !== null && businessType !== undefined) {
|
688
|
+
localVarQueryParameter['business_type'] = businessType;
|
689
|
+
}
|
690
|
+
if (domainStatus !== null && domainStatus !== undefined) {
|
691
|
+
localVarQueryParameter['domain_status'] = domainStatus;
|
692
|
+
}
|
693
|
+
if (serviceArea !== null && serviceArea !== undefined) {
|
694
|
+
localVarQueryParameter['service_area'] = serviceArea;
|
695
|
+
}
|
696
|
+
if (pageSize !== null && pageSize !== undefined) {
|
697
|
+
localVarQueryParameter['page_size'] = pageSize;
|
698
|
+
}
|
699
|
+
if (pageNumber !== null && pageNumber !== undefined) {
|
700
|
+
localVarQueryParameter['page_number'] = pageNumber;
|
701
|
+
}
|
702
|
+
if (showTags !== null && showTags !== undefined) {
|
703
|
+
localVarQueryParameter['show_tags'] = showTags;
|
704
|
+
}
|
705
|
+
if (exactMatch !== null && exactMatch !== undefined) {
|
706
|
+
localVarQueryParameter['exact_match'] = exactMatch;
|
707
|
+
}
|
708
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
709
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
710
|
+
}
|
711
|
+
options.queryParams = localVarQueryParameter;
|
712
|
+
options.headers = localVarHeaderParameter;
|
713
|
+
return options;
|
714
|
+
},
|
591
715
|
/**
|
592
716
|
* - 设置用户计费模式。
|
593
717
|
*
|
@@ -772,6 +896,46 @@ var ParamCreater = function () {
|
|
772
896
|
options.headers = localVarHeaderParameter;
|
773
897
|
return options;
|
774
898
|
},
|
899
|
+
/**
|
900
|
+
* 加速域名详情信息接口
|
901
|
+
*
|
902
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
903
|
+
*/
|
904
|
+
showDomainDetailByName: function (showDomainDetailByNameRequest) {
|
905
|
+
var options = {
|
906
|
+
method: "GET",
|
907
|
+
url: "/v1.0/cdn/configuration/domains/{domain_name}",
|
908
|
+
contentType: "application/json",
|
909
|
+
queryParams: {},
|
910
|
+
pathParams: {},
|
911
|
+
headers: {},
|
912
|
+
data: {}
|
913
|
+
};
|
914
|
+
var localVarHeaderParameter = {};
|
915
|
+
var localVarQueryParameter = {};
|
916
|
+
var domainName;
|
917
|
+
var enterpriseProjectId;
|
918
|
+
if (showDomainDetailByNameRequest !== null && showDomainDetailByNameRequest !== undefined) {
|
919
|
+
if (showDomainDetailByNameRequest instanceof ShowDomainDetailByNameRequest_1.ShowDomainDetailByNameRequest) {
|
920
|
+
domainName = showDomainDetailByNameRequest.domainName;
|
921
|
+
enterpriseProjectId = showDomainDetailByNameRequest.enterpriseProjectId;
|
922
|
+
}
|
923
|
+
else {
|
924
|
+
domainName = showDomainDetailByNameRequest['domain_name'];
|
925
|
+
enterpriseProjectId = showDomainDetailByNameRequest['enterprise_project_id'];
|
926
|
+
}
|
927
|
+
}
|
928
|
+
if (domainName === null || domainName === undefined) {
|
929
|
+
throw new RequiredError('domainName', 'Required parameter domainName was null or undefined when calling showDomainDetailByName.');
|
930
|
+
}
|
931
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
932
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
933
|
+
}
|
934
|
+
options.queryParams = localVarQueryParameter;
|
935
|
+
options.pathParams = { 'domain_name': domainName, };
|
936
|
+
options.headers = localVarHeaderParameter;
|
937
|
+
return options;
|
938
|
+
},
|
775
939
|
/**
|
776
940
|
* - 支持查询90天内的数据。
|
777
941
|
*
|
@@ -0,0 +1,15 @@
|
|
1
|
+
export declare class DomainOriginHost {
|
2
|
+
private 'domain_id'?;
|
3
|
+
private 'origin_host_type';
|
4
|
+
private 'customize_domain'?;
|
5
|
+
constructor(originHostType?: any);
|
6
|
+
withDomainId(domainId: string): DomainOriginHost;
|
7
|
+
set domainId(domainId: string | undefined);
|
8
|
+
get domainId(): string | undefined;
|
9
|
+
withOriginHostType(originHostType: string): DomainOriginHost;
|
10
|
+
set originHostType(originHostType: string | undefined);
|
11
|
+
get originHostType(): string | undefined;
|
12
|
+
withCustomizeDomain(customizeDomain: string): DomainOriginHost;
|
13
|
+
set customizeDomain(customizeDomain: string | undefined);
|
14
|
+
get customizeDomain(): string | undefined;
|
15
|
+
}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.DomainOriginHost = void 0;
|
4
|
+
var DomainOriginHost = /** @class */ (function () {
|
5
|
+
function DomainOriginHost(originHostType) {
|
6
|
+
this['origin_host_type'] = originHostType;
|
7
|
+
}
|
8
|
+
DomainOriginHost.prototype.withDomainId = function (domainId) {
|
9
|
+
this['domain_id'] = domainId;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
Object.defineProperty(DomainOriginHost.prototype, "domainId", {
|
13
|
+
get: function () {
|
14
|
+
return this['domain_id'];
|
15
|
+
},
|
16
|
+
set: function (domainId) {
|
17
|
+
this['domain_id'] = domainId;
|
18
|
+
},
|
19
|
+
enumerable: false,
|
20
|
+
configurable: true
|
21
|
+
});
|
22
|
+
DomainOriginHost.prototype.withOriginHostType = function (originHostType) {
|
23
|
+
this['origin_host_type'] = originHostType;
|
24
|
+
return this;
|
25
|
+
};
|
26
|
+
Object.defineProperty(DomainOriginHost.prototype, "originHostType", {
|
27
|
+
get: function () {
|
28
|
+
return this['origin_host_type'];
|
29
|
+
},
|
30
|
+
set: function (originHostType) {
|
31
|
+
this['origin_host_type'] = originHostType;
|
32
|
+
},
|
33
|
+
enumerable: false,
|
34
|
+
configurable: true
|
35
|
+
});
|
36
|
+
DomainOriginHost.prototype.withCustomizeDomain = function (customizeDomain) {
|
37
|
+
this['customize_domain'] = customizeDomain;
|
38
|
+
return this;
|
39
|
+
};
|
40
|
+
Object.defineProperty(DomainOriginHost.prototype, "customizeDomain", {
|
41
|
+
get: function () {
|
42
|
+
return this['customize_domain'];
|
43
|
+
},
|
44
|
+
set: function (customizeDomain) {
|
45
|
+
this['customize_domain'] = customizeDomain;
|
46
|
+
},
|
47
|
+
enumerable: false,
|
48
|
+
configurable: true
|
49
|
+
});
|
50
|
+
return DomainOriginHost;
|
51
|
+
}());
|
52
|
+
exports.DomainOriginHost = DomainOriginHost;
|