@huaweicloud/huaweicloud-sdk-cdn 3.1.28 → 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
@@ -0,0 +1,135 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ListDomainsRequest = void 0;
|
4
|
+
var ListDomainsRequest = /** @class */ (function () {
|
5
|
+
function ListDomainsRequest() {
|
6
|
+
}
|
7
|
+
ListDomainsRequest.prototype.withDomainName = function (domainName) {
|
8
|
+
this['domain_name'] = domainName;
|
9
|
+
return this;
|
10
|
+
};
|
11
|
+
Object.defineProperty(ListDomainsRequest.prototype, "domainName", {
|
12
|
+
get: function () {
|
13
|
+
return this['domain_name'];
|
14
|
+
},
|
15
|
+
set: function (domainName) {
|
16
|
+
this['domain_name'] = domainName;
|
17
|
+
},
|
18
|
+
enumerable: false,
|
19
|
+
configurable: true
|
20
|
+
});
|
21
|
+
ListDomainsRequest.prototype.withBusinessType = function (businessType) {
|
22
|
+
this['business_type'] = businessType;
|
23
|
+
return this;
|
24
|
+
};
|
25
|
+
Object.defineProperty(ListDomainsRequest.prototype, "businessType", {
|
26
|
+
get: function () {
|
27
|
+
return this['business_type'];
|
28
|
+
},
|
29
|
+
set: function (businessType) {
|
30
|
+
this['business_type'] = businessType;
|
31
|
+
},
|
32
|
+
enumerable: false,
|
33
|
+
configurable: true
|
34
|
+
});
|
35
|
+
ListDomainsRequest.prototype.withDomainStatus = function (domainStatus) {
|
36
|
+
this['domain_status'] = domainStatus;
|
37
|
+
return this;
|
38
|
+
};
|
39
|
+
Object.defineProperty(ListDomainsRequest.prototype, "domainStatus", {
|
40
|
+
get: function () {
|
41
|
+
return this['domain_status'];
|
42
|
+
},
|
43
|
+
set: function (domainStatus) {
|
44
|
+
this['domain_status'] = domainStatus;
|
45
|
+
},
|
46
|
+
enumerable: false,
|
47
|
+
configurable: true
|
48
|
+
});
|
49
|
+
ListDomainsRequest.prototype.withServiceArea = function (serviceArea) {
|
50
|
+
this['service_area'] = serviceArea;
|
51
|
+
return this;
|
52
|
+
};
|
53
|
+
Object.defineProperty(ListDomainsRequest.prototype, "serviceArea", {
|
54
|
+
get: function () {
|
55
|
+
return this['service_area'];
|
56
|
+
},
|
57
|
+
set: function (serviceArea) {
|
58
|
+
this['service_area'] = serviceArea;
|
59
|
+
},
|
60
|
+
enumerable: false,
|
61
|
+
configurable: true
|
62
|
+
});
|
63
|
+
ListDomainsRequest.prototype.withPageSize = function (pageSize) {
|
64
|
+
this['page_size'] = pageSize;
|
65
|
+
return this;
|
66
|
+
};
|
67
|
+
Object.defineProperty(ListDomainsRequest.prototype, "pageSize", {
|
68
|
+
get: function () {
|
69
|
+
return this['page_size'];
|
70
|
+
},
|
71
|
+
set: function (pageSize) {
|
72
|
+
this['page_size'] = pageSize;
|
73
|
+
},
|
74
|
+
enumerable: false,
|
75
|
+
configurable: true
|
76
|
+
});
|
77
|
+
ListDomainsRequest.prototype.withPageNumber = function (pageNumber) {
|
78
|
+
this['page_number'] = pageNumber;
|
79
|
+
return this;
|
80
|
+
};
|
81
|
+
Object.defineProperty(ListDomainsRequest.prototype, "pageNumber", {
|
82
|
+
get: function () {
|
83
|
+
return this['page_number'];
|
84
|
+
},
|
85
|
+
set: function (pageNumber) {
|
86
|
+
this['page_number'] = pageNumber;
|
87
|
+
},
|
88
|
+
enumerable: false,
|
89
|
+
configurable: true
|
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
|
+
});
|
119
|
+
ListDomainsRequest.prototype.withEnterpriseProjectId = function (enterpriseProjectId) {
|
120
|
+
this['enterprise_project_id'] = enterpriseProjectId;
|
121
|
+
return this;
|
122
|
+
};
|
123
|
+
Object.defineProperty(ListDomainsRequest.prototype, "enterpriseProjectId", {
|
124
|
+
get: function () {
|
125
|
+
return this['enterprise_project_id'];
|
126
|
+
},
|
127
|
+
set: function (enterpriseProjectId) {
|
128
|
+
this['enterprise_project_id'] = enterpriseProjectId;
|
129
|
+
},
|
130
|
+
enumerable: false,
|
131
|
+
configurable: true
|
132
|
+
});
|
133
|
+
return ListDomainsRequest;
|
134
|
+
}());
|
135
|
+
exports.ListDomainsRequest = ListDomainsRequest;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Domains } from './Domains';
|
2
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
3
|
+
export declare class ListDomainsResponse extends SdkResponse {
|
4
|
+
total?: number;
|
5
|
+
domains?: Array<Domains>;
|
6
|
+
constructor();
|
7
|
+
withTotal(total: number): ListDomainsResponse;
|
8
|
+
withDomains(domains: Array<Domains>): ListDomainsResponse;
|
9
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.ListDomainsResponse = void 0;
|
19
|
+
var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
|
20
|
+
var ListDomainsResponse = /** @class */ (function (_super) {
|
21
|
+
__extends(ListDomainsResponse, _super);
|
22
|
+
function ListDomainsResponse() {
|
23
|
+
return _super.call(this) || this;
|
24
|
+
}
|
25
|
+
ListDomainsResponse.prototype.withTotal = function (total) {
|
26
|
+
this['total'] = total;
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
ListDomainsResponse.prototype.withDomains = function (domains) {
|
30
|
+
this['domains'] = domains;
|
31
|
+
return this;
|
32
|
+
};
|
33
|
+
return ListDomainsResponse;
|
34
|
+
}(SdkResponse_1.SdkResponse));
|
35
|
+
exports.ListDomainsResponse = ListDomainsResponse;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
export declare class ShowDomainDetailByNameRequest {
|
2
|
+
private 'domain_name';
|
3
|
+
private 'enterprise_project_id'?;
|
4
|
+
constructor(domainName?: any);
|
5
|
+
withDomainName(domainName: string): ShowDomainDetailByNameRequest;
|
6
|
+
set domainName(domainName: string | undefined);
|
7
|
+
get domainName(): string | undefined;
|
8
|
+
withEnterpriseProjectId(enterpriseProjectId: string): ShowDomainDetailByNameRequest;
|
9
|
+
set enterpriseProjectId(enterpriseProjectId: string | undefined);
|
10
|
+
get enterpriseProjectId(): string | undefined;
|
11
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.ShowDomainDetailByNameRequest = void 0;
|
4
|
+
var ShowDomainDetailByNameRequest = /** @class */ (function () {
|
5
|
+
function ShowDomainDetailByNameRequest(domainName) {
|
6
|
+
this['domain_name'] = domainName;
|
7
|
+
}
|
8
|
+
ShowDomainDetailByNameRequest.prototype.withDomainName = function (domainName) {
|
9
|
+
this['domain_name'] = domainName;
|
10
|
+
return this;
|
11
|
+
};
|
12
|
+
Object.defineProperty(ShowDomainDetailByNameRequest.prototype, "domainName", {
|
13
|
+
get: function () {
|
14
|
+
return this['domain_name'];
|
15
|
+
},
|
16
|
+
set: function (domainName) {
|
17
|
+
this['domain_name'] = domainName;
|
18
|
+
},
|
19
|
+
enumerable: false,
|
20
|
+
configurable: true
|
21
|
+
});
|
22
|
+
ShowDomainDetailByNameRequest.prototype.withEnterpriseProjectId = function (enterpriseProjectId) {
|
23
|
+
this['enterprise_project_id'] = enterpriseProjectId;
|
24
|
+
return this;
|
25
|
+
};
|
26
|
+
Object.defineProperty(ShowDomainDetailByNameRequest.prototype, "enterpriseProjectId", {
|
27
|
+
get: function () {
|
28
|
+
return this['enterprise_project_id'];
|
29
|
+
},
|
30
|
+
set: function (enterpriseProjectId) {
|
31
|
+
this['enterprise_project_id'] = enterpriseProjectId;
|
32
|
+
},
|
33
|
+
enumerable: false,
|
34
|
+
configurable: true
|
35
|
+
});
|
36
|
+
return ShowDomainDetailByNameRequest;
|
37
|
+
}());
|
38
|
+
exports.ShowDomainDetailByNameRequest = ShowDomainDetailByNameRequest;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { DomainsWithPort } from './DomainsWithPort';
|
2
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
3
|
+
export declare class ShowDomainDetailByNameResponse extends SdkResponse {
|
4
|
+
domain?: DomainsWithPort;
|
5
|
+
constructor();
|
6
|
+
withDomain(domain: DomainsWithPort): ShowDomainDetailByNameResponse;
|
7
|
+
}
|
@@ -0,0 +1,31 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __extends = (this && this.__extends) || (function () {
|
3
|
+
var extendStatics = function (d, b) {
|
4
|
+
extendStatics = Object.setPrototypeOf ||
|
5
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
7
|
+
return extendStatics(d, b);
|
8
|
+
};
|
9
|
+
return function (d, b) {
|
10
|
+
if (typeof b !== "function" && b !== null)
|
11
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
12
|
+
extendStatics(d, b);
|
13
|
+
function __() { this.constructor = d; }
|
14
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
15
|
+
};
|
16
|
+
})();
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
18
|
+
exports.ShowDomainDetailByNameResponse = void 0;
|
19
|
+
var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
|
20
|
+
var ShowDomainDetailByNameResponse = /** @class */ (function (_super) {
|
21
|
+
__extends(ShowDomainDetailByNameResponse, _super);
|
22
|
+
function ShowDomainDetailByNameResponse() {
|
23
|
+
return _super.call(this) || this;
|
24
|
+
}
|
25
|
+
ShowDomainDetailByNameResponse.prototype.withDomain = function (domain) {
|
26
|
+
this['domain'] = domain;
|
27
|
+
return this;
|
28
|
+
};
|
29
|
+
return ShowDomainDetailByNameResponse;
|
30
|
+
}(SdkResponse_1.SdkResponse));
|
31
|
+
exports.ShowDomainDetailByNameResponse = ShowDomainDetailByNameResponse;
|
@@ -0,0 +1,32 @@
|
|
1
|
+
export declare class Sources {
|
2
|
+
private 'domain_id'?;
|
3
|
+
private 'ip_or_domain';
|
4
|
+
private 'origin_type';
|
5
|
+
private 'active_standby';
|
6
|
+
private 'enable_obs_web_hosting'?;
|
7
|
+
constructor(ipOrDomain?: any, originType?: any, activeStandby?: any);
|
8
|
+
withDomainId(domainId: string): Sources;
|
9
|
+
set domainId(domainId: string | undefined);
|
10
|
+
get domainId(): string | undefined;
|
11
|
+
withIpOrDomain(ipOrDomain: string): Sources;
|
12
|
+
set ipOrDomain(ipOrDomain: string | undefined);
|
13
|
+
get ipOrDomain(): string | undefined;
|
14
|
+
withOriginType(originType: SourcesOriginTypeEnum): Sources;
|
15
|
+
set originType(originType: SourcesOriginTypeEnum | undefined);
|
16
|
+
get originType(): SourcesOriginTypeEnum | undefined;
|
17
|
+
withActiveStandby(activeStandby: number): Sources;
|
18
|
+
set activeStandby(activeStandby: number | undefined);
|
19
|
+
get activeStandby(): number | undefined;
|
20
|
+
withEnableObsWebHosting(enableObsWebHosting: number): Sources;
|
21
|
+
set enableObsWebHosting(enableObsWebHosting: number | undefined);
|
22
|
+
get enableObsWebHosting(): number | undefined;
|
23
|
+
}
|
24
|
+
/**
|
25
|
+
* @export
|
26
|
+
* @enum {string}
|
27
|
+
*/
|
28
|
+
export declare enum SourcesOriginTypeEnum {
|
29
|
+
IPADDR = "ipaddr",
|
30
|
+
DOMAIN = "domain",
|
31
|
+
OBS_BUCKET = "obs_bucket"
|
32
|
+
}
|
@@ -0,0 +1,92 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SourcesOriginTypeEnum = exports.Sources = void 0;
|
4
|
+
var Sources = /** @class */ (function () {
|
5
|
+
function Sources(ipOrDomain, originType, activeStandby) {
|
6
|
+
this['ip_or_domain'] = ipOrDomain;
|
7
|
+
this['origin_type'] = originType;
|
8
|
+
this['active_standby'] = activeStandby;
|
9
|
+
}
|
10
|
+
Sources.prototype.withDomainId = function (domainId) {
|
11
|
+
this['domain_id'] = domainId;
|
12
|
+
return this;
|
13
|
+
};
|
14
|
+
Object.defineProperty(Sources.prototype, "domainId", {
|
15
|
+
get: function () {
|
16
|
+
return this['domain_id'];
|
17
|
+
},
|
18
|
+
set: function (domainId) {
|
19
|
+
this['domain_id'] = domainId;
|
20
|
+
},
|
21
|
+
enumerable: false,
|
22
|
+
configurable: true
|
23
|
+
});
|
24
|
+
Sources.prototype.withIpOrDomain = function (ipOrDomain) {
|
25
|
+
this['ip_or_domain'] = ipOrDomain;
|
26
|
+
return this;
|
27
|
+
};
|
28
|
+
Object.defineProperty(Sources.prototype, "ipOrDomain", {
|
29
|
+
get: function () {
|
30
|
+
return this['ip_or_domain'];
|
31
|
+
},
|
32
|
+
set: function (ipOrDomain) {
|
33
|
+
this['ip_or_domain'] = ipOrDomain;
|
34
|
+
},
|
35
|
+
enumerable: false,
|
36
|
+
configurable: true
|
37
|
+
});
|
38
|
+
Sources.prototype.withOriginType = function (originType) {
|
39
|
+
this['origin_type'] = originType;
|
40
|
+
return this;
|
41
|
+
};
|
42
|
+
Object.defineProperty(Sources.prototype, "originType", {
|
43
|
+
get: function () {
|
44
|
+
return this['origin_type'];
|
45
|
+
},
|
46
|
+
set: function (originType) {
|
47
|
+
this['origin_type'] = originType;
|
48
|
+
},
|
49
|
+
enumerable: false,
|
50
|
+
configurable: true
|
51
|
+
});
|
52
|
+
Sources.prototype.withActiveStandby = function (activeStandby) {
|
53
|
+
this['active_standby'] = activeStandby;
|
54
|
+
return this;
|
55
|
+
};
|
56
|
+
Object.defineProperty(Sources.prototype, "activeStandby", {
|
57
|
+
get: function () {
|
58
|
+
return this['active_standby'];
|
59
|
+
},
|
60
|
+
set: function (activeStandby) {
|
61
|
+
this['active_standby'] = activeStandby;
|
62
|
+
},
|
63
|
+
enumerable: false,
|
64
|
+
configurable: true
|
65
|
+
});
|
66
|
+
Sources.prototype.withEnableObsWebHosting = function (enableObsWebHosting) {
|
67
|
+
this['enable_obs_web_hosting'] = enableObsWebHosting;
|
68
|
+
return this;
|
69
|
+
};
|
70
|
+
Object.defineProperty(Sources.prototype, "enableObsWebHosting", {
|
71
|
+
get: function () {
|
72
|
+
return this['enable_obs_web_hosting'];
|
73
|
+
},
|
74
|
+
set: function (enableObsWebHosting) {
|
75
|
+
this['enable_obs_web_hosting'] = enableObsWebHosting;
|
76
|
+
},
|
77
|
+
enumerable: false,
|
78
|
+
configurable: true
|
79
|
+
});
|
80
|
+
return Sources;
|
81
|
+
}());
|
82
|
+
exports.Sources = Sources;
|
83
|
+
/**
|
84
|
+
* @export
|
85
|
+
* @enum {string}
|
86
|
+
*/
|
87
|
+
var SourcesOriginTypeEnum;
|
88
|
+
(function (SourcesOriginTypeEnum) {
|
89
|
+
SourcesOriginTypeEnum["IPADDR"] = "ipaddr";
|
90
|
+
SourcesOriginTypeEnum["DOMAIN"] = "domain";
|
91
|
+
SourcesOriginTypeEnum["OBS_BUCKET"] = "obs_bucket";
|
92
|
+
})(SourcesOriginTypeEnum = exports.SourcesOriginTypeEnum || (exports.SourcesOriginTypeEnum = {}));
|
@@ -0,0 +1,29 @@
|
|
1
|
+
export declare class SourcesConfig {
|
2
|
+
private 'origin_addr';
|
3
|
+
private 'origin_type';
|
4
|
+
priority: number;
|
5
|
+
private 'obs_web_hosting_status'?;
|
6
|
+
private 'http_port'?;
|
7
|
+
private 'https_port'?;
|
8
|
+
private 'host_name'?;
|
9
|
+
constructor(originAddr?: any, originType?: any, priority?: any);
|
10
|
+
withOriginAddr(originAddr: string): SourcesConfig;
|
11
|
+
set originAddr(originAddr: string | undefined);
|
12
|
+
get originAddr(): string | undefined;
|
13
|
+
withOriginType(originType: string): SourcesConfig;
|
14
|
+
set originType(originType: string | undefined);
|
15
|
+
get originType(): string | undefined;
|
16
|
+
withPriority(priority: number): SourcesConfig;
|
17
|
+
withObsWebHostingStatus(obsWebHostingStatus: string): SourcesConfig;
|
18
|
+
set obsWebHostingStatus(obsWebHostingStatus: string | undefined);
|
19
|
+
get obsWebHostingStatus(): string | undefined;
|
20
|
+
withHttpPort(httpPort: number): SourcesConfig;
|
21
|
+
set httpPort(httpPort: number | undefined);
|
22
|
+
get httpPort(): number | undefined;
|
23
|
+
withHttpsPort(httpsPort: number): SourcesConfig;
|
24
|
+
set httpsPort(httpsPort: number | undefined);
|
25
|
+
get httpsPort(): number | undefined;
|
26
|
+
withHostName(hostName: string): SourcesConfig;
|
27
|
+
set hostName(hostName: string | undefined);
|
28
|
+
get hostName(): string | undefined;
|
29
|
+
}
|
@@ -0,0 +1,100 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.SourcesConfig = void 0;
|
4
|
+
var SourcesConfig = /** @class */ (function () {
|
5
|
+
function SourcesConfig(originAddr, originType, priority) {
|
6
|
+
this['origin_addr'] = originAddr;
|
7
|
+
this['origin_type'] = originType;
|
8
|
+
this['priority'] = priority;
|
9
|
+
}
|
10
|
+
SourcesConfig.prototype.withOriginAddr = function (originAddr) {
|
11
|
+
this['origin_addr'] = originAddr;
|
12
|
+
return this;
|
13
|
+
};
|
14
|
+
Object.defineProperty(SourcesConfig.prototype, "originAddr", {
|
15
|
+
get: function () {
|
16
|
+
return this['origin_addr'];
|
17
|
+
},
|
18
|
+
set: function (originAddr) {
|
19
|
+
this['origin_addr'] = originAddr;
|
20
|
+
},
|
21
|
+
enumerable: false,
|
22
|
+
configurable: true
|
23
|
+
});
|
24
|
+
SourcesConfig.prototype.withOriginType = function (originType) {
|
25
|
+
this['origin_type'] = originType;
|
26
|
+
return this;
|
27
|
+
};
|
28
|
+
Object.defineProperty(SourcesConfig.prototype, "originType", {
|
29
|
+
get: function () {
|
30
|
+
return this['origin_type'];
|
31
|
+
},
|
32
|
+
set: function (originType) {
|
33
|
+
this['origin_type'] = originType;
|
34
|
+
},
|
35
|
+
enumerable: false,
|
36
|
+
configurable: true
|
37
|
+
});
|
38
|
+
SourcesConfig.prototype.withPriority = function (priority) {
|
39
|
+
this['priority'] = priority;
|
40
|
+
return this;
|
41
|
+
};
|
42
|
+
SourcesConfig.prototype.withObsWebHostingStatus = function (obsWebHostingStatus) {
|
43
|
+
this['obs_web_hosting_status'] = obsWebHostingStatus;
|
44
|
+
return this;
|
45
|
+
};
|
46
|
+
Object.defineProperty(SourcesConfig.prototype, "obsWebHostingStatus", {
|
47
|
+
get: function () {
|
48
|
+
return this['obs_web_hosting_status'];
|
49
|
+
},
|
50
|
+
set: function (obsWebHostingStatus) {
|
51
|
+
this['obs_web_hosting_status'] = obsWebHostingStatus;
|
52
|
+
},
|
53
|
+
enumerable: false,
|
54
|
+
configurable: true
|
55
|
+
});
|
56
|
+
SourcesConfig.prototype.withHttpPort = function (httpPort) {
|
57
|
+
this['http_port'] = httpPort;
|
58
|
+
return this;
|
59
|
+
};
|
60
|
+
Object.defineProperty(SourcesConfig.prototype, "httpPort", {
|
61
|
+
get: function () {
|
62
|
+
return this['http_port'];
|
63
|
+
},
|
64
|
+
set: function (httpPort) {
|
65
|
+
this['http_port'] = httpPort;
|
66
|
+
},
|
67
|
+
enumerable: false,
|
68
|
+
configurable: true
|
69
|
+
});
|
70
|
+
SourcesConfig.prototype.withHttpsPort = function (httpsPort) {
|
71
|
+
this['https_port'] = httpsPort;
|
72
|
+
return this;
|
73
|
+
};
|
74
|
+
Object.defineProperty(SourcesConfig.prototype, "httpsPort", {
|
75
|
+
get: function () {
|
76
|
+
return this['https_port'];
|
77
|
+
},
|
78
|
+
set: function (httpsPort) {
|
79
|
+
this['https_port'] = httpsPort;
|
80
|
+
},
|
81
|
+
enumerable: false,
|
82
|
+
configurable: true
|
83
|
+
});
|
84
|
+
SourcesConfig.prototype.withHostName = function (hostName) {
|
85
|
+
this['host_name'] = hostName;
|
86
|
+
return this;
|
87
|
+
};
|
88
|
+
Object.defineProperty(SourcesConfig.prototype, "hostName", {
|
89
|
+
get: function () {
|
90
|
+
return this['host_name'];
|
91
|
+
},
|
92
|
+
set: function (hostName) {
|
93
|
+
this['host_name'] = hostName;
|
94
|
+
},
|
95
|
+
enumerable: false,
|
96
|
+
configurable: true
|
97
|
+
});
|
98
|
+
return SourcesConfig;
|
99
|
+
}());
|
100
|
+
exports.SourcesConfig = SourcesConfig;
|
package/v2/public-api.d.ts
CHANGED
@@ -6,12 +6,18 @@ export * from './model/BatchCopyDomainResponse';
|
|
6
6
|
export * from './model/BatchCopyErrorRsp';
|
7
7
|
export * from './model/BatchCopyErrorRspError';
|
8
8
|
export * from './model/BatchCopyResultVo';
|
9
|
+
export * from './model/DomainOriginHost';
|
10
|
+
export * from './model/Domains';
|
11
|
+
export * from './model/DomainsWithPort';
|
9
12
|
export * from './model/DownloadRegionCarrierExcelRequest';
|
10
13
|
export * from './model/DownloadRegionCarrierExcelResponse';
|
11
14
|
export * from './model/DownloadStatisticsExcelRequest';
|
12
15
|
export * from './model/DownloadStatisticsExcelResponse';
|
16
|
+
export * from './model/EpResourceTag';
|
13
17
|
export * from './model/ErrMsg';
|
14
18
|
export * from './model/ErrRsp';
|
19
|
+
export * from './model/ListDomainsRequest';
|
20
|
+
export * from './model/ListDomainsResponse';
|
15
21
|
export * from './model/SetChargeModesBody';
|
16
22
|
export * from './model/SetChargeModesRequest';
|
17
23
|
export * from './model/SetChargeModesResponse';
|
@@ -19,6 +25,8 @@ export * from './model/ShowBandwidthCalcRequest';
|
|
19
25
|
export * from './model/ShowBandwidthCalcResponse';
|
20
26
|
export * from './model/ShowChargeModesRequest';
|
21
27
|
export * from './model/ShowChargeModesResponse';
|
28
|
+
export * from './model/ShowDomainDetailByNameRequest';
|
29
|
+
export * from './model/ShowDomainDetailByNameResponse';
|
22
30
|
export * from './model/ShowDomainLocationStatsRequest';
|
23
31
|
export * from './model/ShowDomainLocationStatsResponse';
|
24
32
|
export * from './model/ShowDomainStatsRequest';
|
@@ -27,5 +35,7 @@ export * from './model/ShowTopDomainNamesRequest';
|
|
27
35
|
export * from './model/ShowTopDomainNamesResponse';
|
28
36
|
export * from './model/ShowTopUrlRequest';
|
29
37
|
export * from './model/ShowTopUrlResponse';
|
38
|
+
export * from './model/Sources';
|
39
|
+
export * from './model/SourcesConfig';
|
30
40
|
export * from './model/TopUrlSummary';
|
31
41
|
export * from './CdnRegion';
|
package/v2/public-api.js
CHANGED
@@ -22,12 +22,18 @@ __exportStar(require("./model/BatchCopyDomainResponse"), exports);
|
|
22
22
|
__exportStar(require("./model/BatchCopyErrorRsp"), exports);
|
23
23
|
__exportStar(require("./model/BatchCopyErrorRspError"), exports);
|
24
24
|
__exportStar(require("./model/BatchCopyResultVo"), exports);
|
25
|
+
__exportStar(require("./model/DomainOriginHost"), exports);
|
26
|
+
__exportStar(require("./model/Domains"), exports);
|
27
|
+
__exportStar(require("./model/DomainsWithPort"), exports);
|
25
28
|
__exportStar(require("./model/DownloadRegionCarrierExcelRequest"), exports);
|
26
29
|
__exportStar(require("./model/DownloadRegionCarrierExcelResponse"), exports);
|
27
30
|
__exportStar(require("./model/DownloadStatisticsExcelRequest"), exports);
|
28
31
|
__exportStar(require("./model/DownloadStatisticsExcelResponse"), exports);
|
32
|
+
__exportStar(require("./model/EpResourceTag"), exports);
|
29
33
|
__exportStar(require("./model/ErrMsg"), exports);
|
30
34
|
__exportStar(require("./model/ErrRsp"), exports);
|
35
|
+
__exportStar(require("./model/ListDomainsRequest"), exports);
|
36
|
+
__exportStar(require("./model/ListDomainsResponse"), exports);
|
31
37
|
__exportStar(require("./model/SetChargeModesBody"), exports);
|
32
38
|
__exportStar(require("./model/SetChargeModesRequest"), exports);
|
33
39
|
__exportStar(require("./model/SetChargeModesResponse"), exports);
|
@@ -35,6 +41,8 @@ __exportStar(require("./model/ShowBandwidthCalcRequest"), exports);
|
|
35
41
|
__exportStar(require("./model/ShowBandwidthCalcResponse"), exports);
|
36
42
|
__exportStar(require("./model/ShowChargeModesRequest"), exports);
|
37
43
|
__exportStar(require("./model/ShowChargeModesResponse"), exports);
|
44
|
+
__exportStar(require("./model/ShowDomainDetailByNameRequest"), exports);
|
45
|
+
__exportStar(require("./model/ShowDomainDetailByNameResponse"), exports);
|
38
46
|
__exportStar(require("./model/ShowDomainLocationStatsRequest"), exports);
|
39
47
|
__exportStar(require("./model/ShowDomainLocationStatsResponse"), exports);
|
40
48
|
__exportStar(require("./model/ShowDomainStatsRequest"), exports);
|
@@ -43,5 +51,7 @@ __exportStar(require("./model/ShowTopDomainNamesRequest"), exports);
|
|
43
51
|
__exportStar(require("./model/ShowTopDomainNamesResponse"), exports);
|
44
52
|
__exportStar(require("./model/ShowTopUrlRequest"), exports);
|
45
53
|
__exportStar(require("./model/ShowTopUrlResponse"), exports);
|
54
|
+
__exportStar(require("./model/Sources"), exports);
|
55
|
+
__exportStar(require("./model/SourcesConfig"), exports);
|
46
56
|
__exportStar(require("./model/TopUrlSummary"), exports);
|
47
57
|
__exportStar(require("./CdnRegion"), exports);
|