@huaweicloud/huaweicloud-sdk-eip 3.1.14 → 3.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +2 -2
- package/v2/EipClient.d.ts +81 -0
- package/v2/EipClient.js +149 -0
- package/v2/EipRegion.d.ts +1 -0
- package/v2/EipRegion.js +2 -0
- package/v2/model/BwChangeToPeriodReq.d.ts +9 -0
- package/v2/model/BwChangeToPeriodReq.js +29 -0
- package/v2/model/ChangeBandwidthToPeriodRequest.d.ts +6 -0
- package/v2/model/ChangeBandwidthToPeriodRequest.js +13 -0
- package/v2/model/ChangeBandwidthToPeriodResponse.d.ts +16 -0
- package/v2/model/ChangeBandwidthToPeriodResponse.js +69 -0
- package/v2/model/ChangePublicipToPeriodRequest.d.ts +6 -0
- package/v2/model/ChangePublicipToPeriodRequest.js +13 -0
- package/v2/model/ChangePublicipToPeriodResponse.d.ts +16 -0
- package/v2/model/ChangePublicipToPeriodResponse.js +69 -0
- package/v2/model/ChangeToPeriodReq.d.ts +9 -0
- package/v2/model/ChangeToPeriodReq.js +29 -0
- package/v2/model/ShowResourcesJobDetailRequest.d.ts +7 -0
- package/v2/model/ShowResourcesJobDetailRequest.js +24 -0
- package/v2/model/ShowResourcesJobDetailResponse.d.ts +33 -0
- package/v2/model/ShowResourcesJobDetailResponse.js +119 -0
- package/v2/model/SubJobs.d.ts +31 -0
- package/v2/model/SubJobs.js +101 -0
- package/v2/public-api.d.ts +9 -0
- package/v2/public-api.js +9 -0
- package/v3/EipRegion.d.ts +1 -0
- package/v3/EipRegion.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huaweicloud/huaweicloud-sdk-eip",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.16",
|
|
4
4
|
"description": "Huaweicloud SDK for eip",
|
|
5
5
|
"main": "huaweicloud-sdk-eip.js",
|
|
6
6
|
"typings": "huaweicloud-sdk-eip.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.16"
|
|
18
18
|
}
|
|
19
19
|
}
|
package/v2/EipClient.d.ts
CHANGED
|
@@ -12,6 +12,10 @@ import { BatchDeletePublicIpResponse } from './model/BatchDeletePublicIpResponse
|
|
|
12
12
|
import { BatchDeletePublicipTagsRequest } from './model/BatchDeletePublicipTagsRequest';
|
|
13
13
|
import { BatchDisassociatePublicipsRequest } from './model/BatchDisassociatePublicipsRequest';
|
|
14
14
|
import { BatchDisassociatePublicipsResponse } from './model/BatchDisassociatePublicipsResponse';
|
|
15
|
+
import { ChangeBandwidthToPeriodRequest } from './model/ChangeBandwidthToPeriodRequest';
|
|
16
|
+
import { ChangeBandwidthToPeriodResponse } from './model/ChangeBandwidthToPeriodResponse';
|
|
17
|
+
import { ChangePublicipToPeriodRequest } from './model/ChangePublicipToPeriodRequest';
|
|
18
|
+
import { ChangePublicipToPeriodResponse } from './model/ChangePublicipToPeriodResponse';
|
|
15
19
|
import { CountPublicIpResponse } from './model/CountPublicIpResponse';
|
|
16
20
|
import { CreatePrePaidPublicipRequest } from './model/CreatePrePaidPublicipRequest';
|
|
17
21
|
import { CreatePrePaidPublicipResponse } from './model/CreatePrePaidPublicipResponse';
|
|
@@ -49,6 +53,8 @@ import { ShowPublicipRequest } from './model/ShowPublicipRequest';
|
|
|
49
53
|
import { ShowPublicipResponse } from './model/ShowPublicipResponse';
|
|
50
54
|
import { ShowPublicipTagsRequest } from './model/ShowPublicipTagsRequest';
|
|
51
55
|
import { ShowPublicipTagsResponse } from './model/ShowPublicipTagsResponse';
|
|
56
|
+
import { ShowResourcesJobDetailRequest } from './model/ShowResourcesJobDetailRequest';
|
|
57
|
+
import { ShowResourcesJobDetailResponse } from './model/ShowResourcesJobDetailResponse';
|
|
52
58
|
import { UpdateBandwidthRequest } from './model/UpdateBandwidthRequest';
|
|
53
59
|
import { UpdateBandwidthResponse } from './model/UpdateBandwidthResponse';
|
|
54
60
|
import { UpdatePrePaidBandwidthRequest } from './model/UpdatePrePaidBandwidthRequest';
|
|
@@ -83,6 +89,17 @@ export declare class EipClient {
|
|
|
83
89
|
* @throws {RequiredError}
|
|
84
90
|
*/
|
|
85
91
|
batchCreateSharedBandwidths(batchCreateSharedBandwidthsRequest?: BatchCreateSharedBandwidthsRequest): Promise<BatchCreateSharedBandwidthsResponse>;
|
|
92
|
+
/**
|
|
93
|
+
* 租户按需转包接口。
|
|
94
|
+
*
|
|
95
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
96
|
+
*
|
|
97
|
+
* @summary 按需转包API
|
|
98
|
+
* @param {BwChangeToPeriodReq} ipChangeToPeriodRequestBody This is a auto create Body Object
|
|
99
|
+
* @param {*} [options] Override http request option.
|
|
100
|
+
* @throws {RequiredError}
|
|
101
|
+
*/
|
|
102
|
+
changeBandwidthToPeriod(changeBandwidthToPeriodRequest?: ChangeBandwidthToPeriodRequest): Promise<ChangeBandwidthToPeriodResponse>;
|
|
86
103
|
/**
|
|
87
104
|
* 创建共享带宽。
|
|
88
105
|
*
|
|
@@ -244,6 +261,17 @@ export declare class EipClient {
|
|
|
244
261
|
* @throws {RequiredError}
|
|
245
262
|
*/
|
|
246
263
|
batchDisassociatePublicips(batchDisassociatePublicipsRequest?: BatchDisassociatePublicipsRequest): Promise<BatchDisassociatePublicipsResponse>;
|
|
264
|
+
/**
|
|
265
|
+
* 租户按需转包接口。
|
|
266
|
+
*
|
|
267
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
268
|
+
*
|
|
269
|
+
* @summary 按需转包接口
|
|
270
|
+
* @param {ChangeToPeriodReq} ipChangeToPeriodRequestBody This is a auto create Body Object
|
|
271
|
+
* @param {*} [options] Override http request option.
|
|
272
|
+
* @throws {RequiredError}
|
|
273
|
+
*/
|
|
274
|
+
changePublicipToPeriod(changePublicipToPeriodRequest?: ChangePublicipToPeriodRequest): Promise<ChangePublicipToPeriodResponse>;
|
|
247
275
|
/**
|
|
248
276
|
* 查询PublicIp数量
|
|
249
277
|
*
|
|
@@ -406,6 +434,17 @@ export declare class EipClient {
|
|
|
406
434
|
* @throws {RequiredError}
|
|
407
435
|
*/
|
|
408
436
|
updatePublicip(updatePublicipRequest?: UpdatePublicipRequest): Promise<UpdatePublicipResponse>;
|
|
437
|
+
/**
|
|
438
|
+
* 查询Job状态接口
|
|
439
|
+
*
|
|
440
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
441
|
+
*
|
|
442
|
+
* @summary 查询Job状态接口
|
|
443
|
+
* @param {string} jobId 批量操作返回的JOB ID
|
|
444
|
+
* @param {*} [options] Override http request option.
|
|
445
|
+
* @throws {RequiredError}
|
|
446
|
+
*/
|
|
447
|
+
showResourcesJobDetail(showResourcesJobDetailRequest?: ShowResourcesJobDetailRequest): Promise<ShowResourcesJobDetailResponse>;
|
|
409
448
|
/**
|
|
410
449
|
* 创建浮动IP的外部网络UUID,请使用GET /v2.0/networks?router:external=True或neutron net-external-list方式获取。
|
|
411
450
|
*
|
|
@@ -503,6 +542,20 @@ export declare const ParamCreater: () => {
|
|
|
503
542
|
headers: {};
|
|
504
543
|
data: {};
|
|
505
544
|
};
|
|
545
|
+
/**
|
|
546
|
+
* 租户按需转包接口。
|
|
547
|
+
*
|
|
548
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
549
|
+
*/
|
|
550
|
+
changeBandwidthToPeriod(changeBandwidthToPeriodRequest?: ChangeBandwidthToPeriodRequest): {
|
|
551
|
+
method: string;
|
|
552
|
+
url: string;
|
|
553
|
+
contentType: string;
|
|
554
|
+
queryParams: {};
|
|
555
|
+
pathParams: {};
|
|
556
|
+
headers: {};
|
|
557
|
+
data: {};
|
|
558
|
+
};
|
|
506
559
|
/**
|
|
507
560
|
* 创建共享带宽。
|
|
508
561
|
*
|
|
@@ -699,6 +752,20 @@ export declare const ParamCreater: () => {
|
|
|
699
752
|
headers: {};
|
|
700
753
|
data: {};
|
|
701
754
|
};
|
|
755
|
+
/**
|
|
756
|
+
* 租户按需转包接口。
|
|
757
|
+
*
|
|
758
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
759
|
+
*/
|
|
760
|
+
changePublicipToPeriod(changePublicipToPeriodRequest?: ChangePublicipToPeriodRequest): {
|
|
761
|
+
method: string;
|
|
762
|
+
url: string;
|
|
763
|
+
contentType: string;
|
|
764
|
+
queryParams: {};
|
|
765
|
+
pathParams: {};
|
|
766
|
+
headers: {};
|
|
767
|
+
data: {};
|
|
768
|
+
};
|
|
702
769
|
/**
|
|
703
770
|
* 查询PublicIp数量
|
|
704
771
|
*
|
|
@@ -896,6 +963,20 @@ export declare const ParamCreater: () => {
|
|
|
896
963
|
headers: {};
|
|
897
964
|
data: {};
|
|
898
965
|
};
|
|
966
|
+
/**
|
|
967
|
+
* 查询Job状态接口
|
|
968
|
+
*
|
|
969
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
970
|
+
*/
|
|
971
|
+
showResourcesJobDetail(showResourcesJobDetailRequest?: ShowResourcesJobDetailRequest): {
|
|
972
|
+
method: string;
|
|
973
|
+
url: string;
|
|
974
|
+
contentType: string;
|
|
975
|
+
queryParams: {};
|
|
976
|
+
pathParams: {};
|
|
977
|
+
headers: {};
|
|
978
|
+
data: {};
|
|
979
|
+
};
|
|
899
980
|
/**
|
|
900
981
|
* 创建浮动IP的外部网络UUID,请使用GET /v2.0/networks?router:external=True或neutron net-external-list方式获取。
|
|
901
982
|
*
|
package/v2/EipClient.js
CHANGED
|
@@ -24,6 +24,8 @@ var BatchCreateSharedBandwidthsRequest_1 = require("./model/BatchCreateSharedBan
|
|
|
24
24
|
var BatchDeletePublicIpRequest_1 = require("./model/BatchDeletePublicIpRequest");
|
|
25
25
|
var BatchDeletePublicipTagsRequest_1 = require("./model/BatchDeletePublicipTagsRequest");
|
|
26
26
|
var BatchDisassociatePublicipsRequest_1 = require("./model/BatchDisassociatePublicipsRequest");
|
|
27
|
+
var ChangeBandwidthToPeriodRequest_1 = require("./model/ChangeBandwidthToPeriodRequest");
|
|
28
|
+
var ChangePublicipToPeriodRequest_1 = require("./model/ChangePublicipToPeriodRequest");
|
|
27
29
|
var CreatePrePaidPublicipRequest_1 = require("./model/CreatePrePaidPublicipRequest");
|
|
28
30
|
var CreatePublicipRequest_1 = require("./model/CreatePublicipRequest");
|
|
29
31
|
var CreatePublicipTagRequest_1 = require("./model/CreatePublicipTagRequest");
|
|
@@ -44,6 +46,7 @@ var RemovePublicipsFromSharedBandwidthRequest_1 = require("./model/RemovePublici
|
|
|
44
46
|
var ShowBandwidthRequest_1 = require("./model/ShowBandwidthRequest");
|
|
45
47
|
var ShowPublicipRequest_1 = require("./model/ShowPublicipRequest");
|
|
46
48
|
var ShowPublicipTagsRequest_1 = require("./model/ShowPublicipTagsRequest");
|
|
49
|
+
var ShowResourcesJobDetailRequest_1 = require("./model/ShowResourcesJobDetailRequest");
|
|
47
50
|
var UpdateBandwidthRequest_1 = require("./model/UpdateBandwidthRequest");
|
|
48
51
|
var UpdatePrePaidBandwidthRequest_1 = require("./model/UpdatePrePaidBandwidthRequest");
|
|
49
52
|
var UpdatePublicipRequest_1 = require("./model/UpdatePublicipRequest");
|
|
@@ -90,6 +93,22 @@ var EipClient = /** @class */ (function () {
|
|
|
90
93
|
// @ts-ignore
|
|
91
94
|
return this.hcClient.sendRequest(options);
|
|
92
95
|
};
|
|
96
|
+
/**
|
|
97
|
+
* 租户按需转包接口。
|
|
98
|
+
*
|
|
99
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
100
|
+
*
|
|
101
|
+
* @summary 按需转包API
|
|
102
|
+
* @param {BwChangeToPeriodReq} ipChangeToPeriodRequestBody This is a auto create Body Object
|
|
103
|
+
* @param {*} [options] Override http request option.
|
|
104
|
+
* @throws {RequiredError}
|
|
105
|
+
*/
|
|
106
|
+
EipClient.prototype.changeBandwidthToPeriod = function (changeBandwidthToPeriodRequest) {
|
|
107
|
+
var options = (0, exports.ParamCreater)().changeBandwidthToPeriod(changeBandwidthToPeriodRequest);
|
|
108
|
+
options['responseHeaders'] = [''];
|
|
109
|
+
// @ts-ignore
|
|
110
|
+
return this.hcClient.sendRequest(options);
|
|
111
|
+
};
|
|
93
112
|
/**
|
|
94
113
|
* 创建共享带宽。
|
|
95
114
|
*
|
|
@@ -321,6 +340,22 @@ var EipClient = /** @class */ (function () {
|
|
|
321
340
|
// @ts-ignore
|
|
322
341
|
return this.hcClient.sendRequest(options);
|
|
323
342
|
};
|
|
343
|
+
/**
|
|
344
|
+
* 租户按需转包接口。
|
|
345
|
+
*
|
|
346
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
347
|
+
*
|
|
348
|
+
* @summary 按需转包接口
|
|
349
|
+
* @param {ChangeToPeriodReq} ipChangeToPeriodRequestBody This is a auto create Body Object
|
|
350
|
+
* @param {*} [options] Override http request option.
|
|
351
|
+
* @throws {RequiredError}
|
|
352
|
+
*/
|
|
353
|
+
EipClient.prototype.changePublicipToPeriod = function (changePublicipToPeriodRequest) {
|
|
354
|
+
var options = (0, exports.ParamCreater)().changePublicipToPeriod(changePublicipToPeriodRequest);
|
|
355
|
+
options['responseHeaders'] = [''];
|
|
356
|
+
// @ts-ignore
|
|
357
|
+
return this.hcClient.sendRequest(options);
|
|
358
|
+
};
|
|
324
359
|
/**
|
|
325
360
|
* 查询PublicIp数量
|
|
326
361
|
*
|
|
@@ -553,6 +588,22 @@ var EipClient = /** @class */ (function () {
|
|
|
553
588
|
// @ts-ignore
|
|
554
589
|
return this.hcClient.sendRequest(options);
|
|
555
590
|
};
|
|
591
|
+
/**
|
|
592
|
+
* 查询Job状态接口
|
|
593
|
+
*
|
|
594
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
595
|
+
*
|
|
596
|
+
* @summary 查询Job状态接口
|
|
597
|
+
* @param {string} jobId 批量操作返回的JOB ID
|
|
598
|
+
* @param {*} [options] Override http request option.
|
|
599
|
+
* @throws {RequiredError}
|
|
600
|
+
*/
|
|
601
|
+
EipClient.prototype.showResourcesJobDetail = function (showResourcesJobDetailRequest) {
|
|
602
|
+
var options = (0, exports.ParamCreater)().showResourcesJobDetail(showResourcesJobDetailRequest);
|
|
603
|
+
options['responseHeaders'] = [''];
|
|
604
|
+
// @ts-ignore
|
|
605
|
+
return this.hcClient.sendRequest(options);
|
|
606
|
+
};
|
|
556
607
|
/**
|
|
557
608
|
* 创建浮动IP的外部网络UUID,请使用GET /v2.0/networks?router:external=True或neutron net-external-list方式获取。
|
|
558
609
|
*
|
|
@@ -723,6 +774,39 @@ var ParamCreater = function () {
|
|
|
723
774
|
options.headers = localVarHeaderParameter;
|
|
724
775
|
return options;
|
|
725
776
|
},
|
|
777
|
+
/**
|
|
778
|
+
* 租户按需转包接口。
|
|
779
|
+
*
|
|
780
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
781
|
+
*/
|
|
782
|
+
changeBandwidthToPeriod: function (changeBandwidthToPeriodRequest) {
|
|
783
|
+
var options = {
|
|
784
|
+
method: "POST",
|
|
785
|
+
url: "/v2.0/{project_id}/bandwidths/change-to-period",
|
|
786
|
+
contentType: "application/json;charset=UTF-8",
|
|
787
|
+
queryParams: {},
|
|
788
|
+
pathParams: {},
|
|
789
|
+
headers: {},
|
|
790
|
+
data: {}
|
|
791
|
+
};
|
|
792
|
+
var localVarHeaderParameter = {};
|
|
793
|
+
var body;
|
|
794
|
+
if (changeBandwidthToPeriodRequest !== null && changeBandwidthToPeriodRequest !== undefined) {
|
|
795
|
+
if (changeBandwidthToPeriodRequest instanceof ChangeBandwidthToPeriodRequest_1.ChangeBandwidthToPeriodRequest) {
|
|
796
|
+
body = changeBandwidthToPeriodRequest.body;
|
|
797
|
+
}
|
|
798
|
+
else {
|
|
799
|
+
body = changeBandwidthToPeriodRequest['body'];
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
if (body === null || body === undefined) {
|
|
803
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
804
|
+
}
|
|
805
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
806
|
+
options.data = body !== undefined ? body : {};
|
|
807
|
+
options.headers = localVarHeaderParameter;
|
|
808
|
+
return options;
|
|
809
|
+
},
|
|
726
810
|
/**
|
|
727
811
|
* 创建共享带宽。
|
|
728
812
|
*
|
|
@@ -1222,6 +1306,39 @@ var ParamCreater = function () {
|
|
|
1222
1306
|
options.headers = localVarHeaderParameter;
|
|
1223
1307
|
return options;
|
|
1224
1308
|
},
|
|
1309
|
+
/**
|
|
1310
|
+
* 租户按需转包接口。
|
|
1311
|
+
*
|
|
1312
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1313
|
+
*/
|
|
1314
|
+
changePublicipToPeriod: function (changePublicipToPeriodRequest) {
|
|
1315
|
+
var options = {
|
|
1316
|
+
method: "POST",
|
|
1317
|
+
url: "/v2.0/{project_id}/publicips/change-to-period",
|
|
1318
|
+
contentType: "application/json;charset=UTF-8",
|
|
1319
|
+
queryParams: {},
|
|
1320
|
+
pathParams: {},
|
|
1321
|
+
headers: {},
|
|
1322
|
+
data: {}
|
|
1323
|
+
};
|
|
1324
|
+
var localVarHeaderParameter = {};
|
|
1325
|
+
var body;
|
|
1326
|
+
if (changePublicipToPeriodRequest !== null && changePublicipToPeriodRequest !== undefined) {
|
|
1327
|
+
if (changePublicipToPeriodRequest instanceof ChangePublicipToPeriodRequest_1.ChangePublicipToPeriodRequest) {
|
|
1328
|
+
body = changePublicipToPeriodRequest.body;
|
|
1329
|
+
}
|
|
1330
|
+
else {
|
|
1331
|
+
body = changePublicipToPeriodRequest['body'];
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
if (body === null || body === undefined) {
|
|
1335
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
1336
|
+
}
|
|
1337
|
+
localVarHeaderParameter['Content-Type'] = 'application/json;charset=UTF-8';
|
|
1338
|
+
options.data = body !== undefined ? body : {};
|
|
1339
|
+
options.headers = localVarHeaderParameter;
|
|
1340
|
+
return options;
|
|
1341
|
+
},
|
|
1225
1342
|
/**
|
|
1226
1343
|
* 查询PublicIp数量
|
|
1227
1344
|
*
|
|
@@ -1693,6 +1810,38 @@ var ParamCreater = function () {
|
|
|
1693
1810
|
options.headers = localVarHeaderParameter;
|
|
1694
1811
|
return options;
|
|
1695
1812
|
},
|
|
1813
|
+
/**
|
|
1814
|
+
* 查询Job状态接口
|
|
1815
|
+
*
|
|
1816
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1817
|
+
*/
|
|
1818
|
+
showResourcesJobDetail: function (showResourcesJobDetailRequest) {
|
|
1819
|
+
var options = {
|
|
1820
|
+
method: "GET",
|
|
1821
|
+
url: "/v1/{project_id}/jobs/{job_id}",
|
|
1822
|
+
contentType: "application/json",
|
|
1823
|
+
queryParams: {},
|
|
1824
|
+
pathParams: {},
|
|
1825
|
+
headers: {},
|
|
1826
|
+
data: {}
|
|
1827
|
+
};
|
|
1828
|
+
var localVarHeaderParameter = {};
|
|
1829
|
+
var jobId;
|
|
1830
|
+
if (showResourcesJobDetailRequest !== null && showResourcesJobDetailRequest !== undefined) {
|
|
1831
|
+
if (showResourcesJobDetailRequest instanceof ShowResourcesJobDetailRequest_1.ShowResourcesJobDetailRequest) {
|
|
1832
|
+
jobId = showResourcesJobDetailRequest.jobId;
|
|
1833
|
+
}
|
|
1834
|
+
else {
|
|
1835
|
+
jobId = showResourcesJobDetailRequest['job_id'];
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
if (jobId === null || jobId === undefined) {
|
|
1839
|
+
throw new RequiredError('jobId', 'Required parameter jobId was null or undefined when calling showResourcesJobDetail.');
|
|
1840
|
+
}
|
|
1841
|
+
options.pathParams = { 'job_id': jobId, };
|
|
1842
|
+
options.headers = localVarHeaderParameter;
|
|
1843
|
+
return options;
|
|
1844
|
+
},
|
|
1696
1845
|
/**
|
|
1697
1846
|
* 创建浮动IP的外部网络UUID,请使用GET /v2.0/networks?router:external=True或neutron net-external-list方式获取。
|
|
1698
1847
|
*
|
package/v2/EipRegion.d.ts
CHANGED
package/v2/EipRegion.js
CHANGED
|
@@ -23,6 +23,7 @@ var EipRegion = /** @class */ (function () {
|
|
|
23
23
|
map.set("cn-north-2", EipRegion.CN_NORTH_2);
|
|
24
24
|
map.set("la-south-2", EipRegion.LA_SOUTH_2);
|
|
25
25
|
map.set("na-mexico-1", EipRegion.NA_MEXICO_1);
|
|
26
|
+
map.set("ap-southeast-4", EipRegion.AP_SOUTHEAST_4);
|
|
26
27
|
return map;
|
|
27
28
|
};
|
|
28
29
|
EipRegion.valueOf = function (regionId) {
|
|
@@ -51,6 +52,7 @@ var EipRegion = /** @class */ (function () {
|
|
|
51
52
|
EipRegion.CN_NORTH_2 = new region_1.Region("cn-north-2", "https://vpc.cn-north-2.myhuaweicloud.com");
|
|
52
53
|
EipRegion.LA_SOUTH_2 = new region_1.Region("la-south-2", "https://vpc.la-south-2.myhuaweicloud.com");
|
|
53
54
|
EipRegion.NA_MEXICO_1 = new region_1.Region("na-mexico-1", "https://vpc.na-mexico-1.myhuaweicloud.com");
|
|
55
|
+
EipRegion.AP_SOUTHEAST_4 = new region_1.Region("ap-southeast-4", "https://vpc.ap-southeast-4.myhuaweicloud.com");
|
|
54
56
|
EipRegion.STATIC_FIELDS = EipRegion.createStaticFields();
|
|
55
57
|
return EipRegion;
|
|
56
58
|
}());
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class BwChangeToPeriodReq {
|
|
2
|
+
private 'bandwidth_ids';
|
|
3
|
+
extendParam: object;
|
|
4
|
+
constructor(bandwidthIds?: any, extendParam?: any);
|
|
5
|
+
withBandwidthIds(bandwidthIds: Array<string>): BwChangeToPeriodReq;
|
|
6
|
+
set bandwidthIds(bandwidthIds: Array<string> | undefined);
|
|
7
|
+
get bandwidthIds(): Array<string> | undefined;
|
|
8
|
+
withExtendParam(extendParam: object): BwChangeToPeriodReq;
|
|
9
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BwChangeToPeriodReq = void 0;
|
|
4
|
+
var BwChangeToPeriodReq = /** @class */ (function () {
|
|
5
|
+
function BwChangeToPeriodReq(bandwidthIds, extendParam) {
|
|
6
|
+
this['bandwidth_ids'] = bandwidthIds;
|
|
7
|
+
this['extendParam'] = extendParam;
|
|
8
|
+
}
|
|
9
|
+
BwChangeToPeriodReq.prototype.withBandwidthIds = function (bandwidthIds) {
|
|
10
|
+
this['bandwidth_ids'] = bandwidthIds;
|
|
11
|
+
return this;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(BwChangeToPeriodReq.prototype, "bandwidthIds", {
|
|
14
|
+
get: function () {
|
|
15
|
+
return this['bandwidth_ids'];
|
|
16
|
+
},
|
|
17
|
+
set: function (bandwidthIds) {
|
|
18
|
+
this['bandwidth_ids'] = bandwidthIds;
|
|
19
|
+
},
|
|
20
|
+
enumerable: false,
|
|
21
|
+
configurable: true
|
|
22
|
+
});
|
|
23
|
+
BwChangeToPeriodReq.prototype.withExtendParam = function (extendParam) {
|
|
24
|
+
this['extendParam'] = extendParam;
|
|
25
|
+
return this;
|
|
26
|
+
};
|
|
27
|
+
return BwChangeToPeriodReq;
|
|
28
|
+
}());
|
|
29
|
+
exports.BwChangeToPeriodReq = BwChangeToPeriodReq;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChangeBandwidthToPeriodRequest = void 0;
|
|
4
|
+
var ChangeBandwidthToPeriodRequest = /** @class */ (function () {
|
|
5
|
+
function ChangeBandwidthToPeriodRequest() {
|
|
6
|
+
}
|
|
7
|
+
ChangeBandwidthToPeriodRequest.prototype.withBody = function (body) {
|
|
8
|
+
this['body'] = body;
|
|
9
|
+
return this;
|
|
10
|
+
};
|
|
11
|
+
return ChangeBandwidthToPeriodRequest;
|
|
12
|
+
}());
|
|
13
|
+
exports.ChangeBandwidthToPeriodRequest = ChangeBandwidthToPeriodRequest;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
|
2
|
+
export declare class ChangeBandwidthToPeriodResponse extends SdkResponse {
|
|
3
|
+
private 'bandwidth_ids'?;
|
|
4
|
+
private 'order_id'?;
|
|
5
|
+
private 'request_id'?;
|
|
6
|
+
constructor();
|
|
7
|
+
withBandwidthIds(bandwidthIds: Array<string>): ChangeBandwidthToPeriodResponse;
|
|
8
|
+
set bandwidthIds(bandwidthIds: Array<string> | undefined);
|
|
9
|
+
get bandwidthIds(): Array<string> | undefined;
|
|
10
|
+
withOrderId(orderId: string): ChangeBandwidthToPeriodResponse;
|
|
11
|
+
set orderId(orderId: string | undefined);
|
|
12
|
+
get orderId(): string | undefined;
|
|
13
|
+
withRequestId(requestId: string): ChangeBandwidthToPeriodResponse;
|
|
14
|
+
set requestId(requestId: string | undefined);
|
|
15
|
+
get requestId(): string | undefined;
|
|
16
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.ChangeBandwidthToPeriodResponse = void 0;
|
|
19
|
+
var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
|
|
20
|
+
var ChangeBandwidthToPeriodResponse = /** @class */ (function (_super) {
|
|
21
|
+
__extends(ChangeBandwidthToPeriodResponse, _super);
|
|
22
|
+
function ChangeBandwidthToPeriodResponse() {
|
|
23
|
+
return _super.call(this) || this;
|
|
24
|
+
}
|
|
25
|
+
ChangeBandwidthToPeriodResponse.prototype.withBandwidthIds = function (bandwidthIds) {
|
|
26
|
+
this['bandwidth_ids'] = bandwidthIds;
|
|
27
|
+
return this;
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(ChangeBandwidthToPeriodResponse.prototype, "bandwidthIds", {
|
|
30
|
+
get: function () {
|
|
31
|
+
return this['bandwidth_ids'];
|
|
32
|
+
},
|
|
33
|
+
set: function (bandwidthIds) {
|
|
34
|
+
this['bandwidth_ids'] = bandwidthIds;
|
|
35
|
+
},
|
|
36
|
+
enumerable: false,
|
|
37
|
+
configurable: true
|
|
38
|
+
});
|
|
39
|
+
ChangeBandwidthToPeriodResponse.prototype.withOrderId = function (orderId) {
|
|
40
|
+
this['order_id'] = orderId;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
Object.defineProperty(ChangeBandwidthToPeriodResponse.prototype, "orderId", {
|
|
44
|
+
get: function () {
|
|
45
|
+
return this['order_id'];
|
|
46
|
+
},
|
|
47
|
+
set: function (orderId) {
|
|
48
|
+
this['order_id'] = orderId;
|
|
49
|
+
},
|
|
50
|
+
enumerable: false,
|
|
51
|
+
configurable: true
|
|
52
|
+
});
|
|
53
|
+
ChangeBandwidthToPeriodResponse.prototype.withRequestId = function (requestId) {
|
|
54
|
+
this['request_id'] = requestId;
|
|
55
|
+
return this;
|
|
56
|
+
};
|
|
57
|
+
Object.defineProperty(ChangeBandwidthToPeriodResponse.prototype, "requestId", {
|
|
58
|
+
get: function () {
|
|
59
|
+
return this['request_id'];
|
|
60
|
+
},
|
|
61
|
+
set: function (requestId) {
|
|
62
|
+
this['request_id'] = requestId;
|
|
63
|
+
},
|
|
64
|
+
enumerable: false,
|
|
65
|
+
configurable: true
|
|
66
|
+
});
|
|
67
|
+
return ChangeBandwidthToPeriodResponse;
|
|
68
|
+
}(SdkResponse_1.SdkResponse));
|
|
69
|
+
exports.ChangeBandwidthToPeriodResponse = ChangeBandwidthToPeriodResponse;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChangePublicipToPeriodRequest = void 0;
|
|
4
|
+
var ChangePublicipToPeriodRequest = /** @class */ (function () {
|
|
5
|
+
function ChangePublicipToPeriodRequest() {
|
|
6
|
+
}
|
|
7
|
+
ChangePublicipToPeriodRequest.prototype.withBody = function (body) {
|
|
8
|
+
this['body'] = body;
|
|
9
|
+
return this;
|
|
10
|
+
};
|
|
11
|
+
return ChangePublicipToPeriodRequest;
|
|
12
|
+
}());
|
|
13
|
+
exports.ChangePublicipToPeriodRequest = ChangePublicipToPeriodRequest;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
|
2
|
+
export declare class ChangePublicipToPeriodResponse extends SdkResponse {
|
|
3
|
+
private 'publicip_ids'?;
|
|
4
|
+
private 'order_id'?;
|
|
5
|
+
private 'request_id'?;
|
|
6
|
+
constructor();
|
|
7
|
+
withPublicipIds(publicipIds: Array<string>): ChangePublicipToPeriodResponse;
|
|
8
|
+
set publicipIds(publicipIds: Array<string> | undefined);
|
|
9
|
+
get publicipIds(): Array<string> | undefined;
|
|
10
|
+
withOrderId(orderId: string): ChangePublicipToPeriodResponse;
|
|
11
|
+
set orderId(orderId: string | undefined);
|
|
12
|
+
get orderId(): string | undefined;
|
|
13
|
+
withRequestId(requestId: string): ChangePublicipToPeriodResponse;
|
|
14
|
+
set requestId(requestId: string | undefined);
|
|
15
|
+
get requestId(): string | undefined;
|
|
16
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
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.ChangePublicipToPeriodResponse = void 0;
|
|
19
|
+
var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
|
|
20
|
+
var ChangePublicipToPeriodResponse = /** @class */ (function (_super) {
|
|
21
|
+
__extends(ChangePublicipToPeriodResponse, _super);
|
|
22
|
+
function ChangePublicipToPeriodResponse() {
|
|
23
|
+
return _super.call(this) || this;
|
|
24
|
+
}
|
|
25
|
+
ChangePublicipToPeriodResponse.prototype.withPublicipIds = function (publicipIds) {
|
|
26
|
+
this['publicip_ids'] = publicipIds;
|
|
27
|
+
return this;
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(ChangePublicipToPeriodResponse.prototype, "publicipIds", {
|
|
30
|
+
get: function () {
|
|
31
|
+
return this['publicip_ids'];
|
|
32
|
+
},
|
|
33
|
+
set: function (publicipIds) {
|
|
34
|
+
this['publicip_ids'] = publicipIds;
|
|
35
|
+
},
|
|
36
|
+
enumerable: false,
|
|
37
|
+
configurable: true
|
|
38
|
+
});
|
|
39
|
+
ChangePublicipToPeriodResponse.prototype.withOrderId = function (orderId) {
|
|
40
|
+
this['order_id'] = orderId;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
Object.defineProperty(ChangePublicipToPeriodResponse.prototype, "orderId", {
|
|
44
|
+
get: function () {
|
|
45
|
+
return this['order_id'];
|
|
46
|
+
},
|
|
47
|
+
set: function (orderId) {
|
|
48
|
+
this['order_id'] = orderId;
|
|
49
|
+
},
|
|
50
|
+
enumerable: false,
|
|
51
|
+
configurable: true
|
|
52
|
+
});
|
|
53
|
+
ChangePublicipToPeriodResponse.prototype.withRequestId = function (requestId) {
|
|
54
|
+
this['request_id'] = requestId;
|
|
55
|
+
return this;
|
|
56
|
+
};
|
|
57
|
+
Object.defineProperty(ChangePublicipToPeriodResponse.prototype, "requestId", {
|
|
58
|
+
get: function () {
|
|
59
|
+
return this['request_id'];
|
|
60
|
+
},
|
|
61
|
+
set: function (requestId) {
|
|
62
|
+
this['request_id'] = requestId;
|
|
63
|
+
},
|
|
64
|
+
enumerable: false,
|
|
65
|
+
configurable: true
|
|
66
|
+
});
|
|
67
|
+
return ChangePublicipToPeriodResponse;
|
|
68
|
+
}(SdkResponse_1.SdkResponse));
|
|
69
|
+
exports.ChangePublicipToPeriodResponse = ChangePublicipToPeriodResponse;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare class ChangeToPeriodReq {
|
|
2
|
+
private 'publicip_ids';
|
|
3
|
+
extendParam: object;
|
|
4
|
+
constructor(publicipIds?: any, extendParam?: any);
|
|
5
|
+
withPublicipIds(publicipIds: Array<string>): ChangeToPeriodReq;
|
|
6
|
+
set publicipIds(publicipIds: Array<string> | undefined);
|
|
7
|
+
get publicipIds(): Array<string> | undefined;
|
|
8
|
+
withExtendParam(extendParam: object): ChangeToPeriodReq;
|
|
9
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ChangeToPeriodReq = void 0;
|
|
4
|
+
var ChangeToPeriodReq = /** @class */ (function () {
|
|
5
|
+
function ChangeToPeriodReq(publicipIds, extendParam) {
|
|
6
|
+
this['publicip_ids'] = publicipIds;
|
|
7
|
+
this['extendParam'] = extendParam;
|
|
8
|
+
}
|
|
9
|
+
ChangeToPeriodReq.prototype.withPublicipIds = function (publicipIds) {
|
|
10
|
+
this['publicip_ids'] = publicipIds;
|
|
11
|
+
return this;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(ChangeToPeriodReq.prototype, "publicipIds", {
|
|
14
|
+
get: function () {
|
|
15
|
+
return this['publicip_ids'];
|
|
16
|
+
},
|
|
17
|
+
set: function (publicipIds) {
|
|
18
|
+
this['publicip_ids'] = publicipIds;
|
|
19
|
+
},
|
|
20
|
+
enumerable: false,
|
|
21
|
+
configurable: true
|
|
22
|
+
});
|
|
23
|
+
ChangeToPeriodReq.prototype.withExtendParam = function (extendParam) {
|
|
24
|
+
this['extendParam'] = extendParam;
|
|
25
|
+
return this;
|
|
26
|
+
};
|
|
27
|
+
return ChangeToPeriodReq;
|
|
28
|
+
}());
|
|
29
|
+
exports.ChangeToPeriodReq = ChangeToPeriodReq;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ShowResourcesJobDetailRequest = void 0;
|
|
4
|
+
var ShowResourcesJobDetailRequest = /** @class */ (function () {
|
|
5
|
+
function ShowResourcesJobDetailRequest(jobId) {
|
|
6
|
+
this['job_id'] = jobId;
|
|
7
|
+
}
|
|
8
|
+
ShowResourcesJobDetailRequest.prototype.withJobId = function (jobId) {
|
|
9
|
+
this['job_id'] = jobId;
|
|
10
|
+
return this;
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(ShowResourcesJobDetailRequest.prototype, "jobId", {
|
|
13
|
+
get: function () {
|
|
14
|
+
return this['job_id'];
|
|
15
|
+
},
|
|
16
|
+
set: function (jobId) {
|
|
17
|
+
this['job_id'] = jobId;
|
|
18
|
+
},
|
|
19
|
+
enumerable: false,
|
|
20
|
+
configurable: true
|
|
21
|
+
});
|
|
22
|
+
return ShowResourcesJobDetailRequest;
|
|
23
|
+
}());
|
|
24
|
+
exports.ShowResourcesJobDetailRequest = ShowResourcesJobDetailRequest;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { SubJobs } from './SubJobs';
|
|
2
|
+
import { SdkResponse } from "@huaweicloud/huaweicloud-sdk-core/SdkResponse";
|
|
3
|
+
export declare class ShowResourcesJobDetailResponse extends SdkResponse {
|
|
4
|
+
private 'job_id'?;
|
|
5
|
+
private 'job_type'?;
|
|
6
|
+
private 'begin_time'?;
|
|
7
|
+
private 'end_time'?;
|
|
8
|
+
status?: string;
|
|
9
|
+
private 'error_code'?;
|
|
10
|
+
private 'fail_reason'?;
|
|
11
|
+
entities?: SubJobs;
|
|
12
|
+
constructor();
|
|
13
|
+
withJobId(jobId: string): ShowResourcesJobDetailResponse;
|
|
14
|
+
set jobId(jobId: string | undefined);
|
|
15
|
+
get jobId(): string | undefined;
|
|
16
|
+
withJobType(jobType: string): ShowResourcesJobDetailResponse;
|
|
17
|
+
set jobType(jobType: string | undefined);
|
|
18
|
+
get jobType(): string | undefined;
|
|
19
|
+
withBeginTime(beginTime: string): ShowResourcesJobDetailResponse;
|
|
20
|
+
set beginTime(beginTime: string | undefined);
|
|
21
|
+
get beginTime(): string | undefined;
|
|
22
|
+
withEndTime(endTime: string): ShowResourcesJobDetailResponse;
|
|
23
|
+
set endTime(endTime: string | undefined);
|
|
24
|
+
get endTime(): string | undefined;
|
|
25
|
+
withStatus(status: string): ShowResourcesJobDetailResponse;
|
|
26
|
+
withErrorCode(errorCode: string): ShowResourcesJobDetailResponse;
|
|
27
|
+
set errorCode(errorCode: string | undefined);
|
|
28
|
+
get errorCode(): string | undefined;
|
|
29
|
+
withFailReason(failReason: string): ShowResourcesJobDetailResponse;
|
|
30
|
+
set failReason(failReason: string | undefined);
|
|
31
|
+
get failReason(): string | undefined;
|
|
32
|
+
withEntities(entities: SubJobs): ShowResourcesJobDetailResponse;
|
|
33
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
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.ShowResourcesJobDetailResponse = void 0;
|
|
19
|
+
var SdkResponse_1 = require("@huaweicloud/huaweicloud-sdk-core/SdkResponse");
|
|
20
|
+
var ShowResourcesJobDetailResponse = /** @class */ (function (_super) {
|
|
21
|
+
__extends(ShowResourcesJobDetailResponse, _super);
|
|
22
|
+
function ShowResourcesJobDetailResponse() {
|
|
23
|
+
return _super.call(this) || this;
|
|
24
|
+
}
|
|
25
|
+
ShowResourcesJobDetailResponse.prototype.withJobId = function (jobId) {
|
|
26
|
+
this['job_id'] = jobId;
|
|
27
|
+
return this;
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(ShowResourcesJobDetailResponse.prototype, "jobId", {
|
|
30
|
+
get: function () {
|
|
31
|
+
return this['job_id'];
|
|
32
|
+
},
|
|
33
|
+
set: function (jobId) {
|
|
34
|
+
this['job_id'] = jobId;
|
|
35
|
+
},
|
|
36
|
+
enumerable: false,
|
|
37
|
+
configurable: true
|
|
38
|
+
});
|
|
39
|
+
ShowResourcesJobDetailResponse.prototype.withJobType = function (jobType) {
|
|
40
|
+
this['job_type'] = jobType;
|
|
41
|
+
return this;
|
|
42
|
+
};
|
|
43
|
+
Object.defineProperty(ShowResourcesJobDetailResponse.prototype, "jobType", {
|
|
44
|
+
get: function () {
|
|
45
|
+
return this['job_type'];
|
|
46
|
+
},
|
|
47
|
+
set: function (jobType) {
|
|
48
|
+
this['job_type'] = jobType;
|
|
49
|
+
},
|
|
50
|
+
enumerable: false,
|
|
51
|
+
configurable: true
|
|
52
|
+
});
|
|
53
|
+
ShowResourcesJobDetailResponse.prototype.withBeginTime = function (beginTime) {
|
|
54
|
+
this['begin_time'] = beginTime;
|
|
55
|
+
return this;
|
|
56
|
+
};
|
|
57
|
+
Object.defineProperty(ShowResourcesJobDetailResponse.prototype, "beginTime", {
|
|
58
|
+
get: function () {
|
|
59
|
+
return this['begin_time'];
|
|
60
|
+
},
|
|
61
|
+
set: function (beginTime) {
|
|
62
|
+
this['begin_time'] = beginTime;
|
|
63
|
+
},
|
|
64
|
+
enumerable: false,
|
|
65
|
+
configurable: true
|
|
66
|
+
});
|
|
67
|
+
ShowResourcesJobDetailResponse.prototype.withEndTime = function (endTime) {
|
|
68
|
+
this['end_time'] = endTime;
|
|
69
|
+
return this;
|
|
70
|
+
};
|
|
71
|
+
Object.defineProperty(ShowResourcesJobDetailResponse.prototype, "endTime", {
|
|
72
|
+
get: function () {
|
|
73
|
+
return this['end_time'];
|
|
74
|
+
},
|
|
75
|
+
set: function (endTime) {
|
|
76
|
+
this['end_time'] = endTime;
|
|
77
|
+
},
|
|
78
|
+
enumerable: false,
|
|
79
|
+
configurable: true
|
|
80
|
+
});
|
|
81
|
+
ShowResourcesJobDetailResponse.prototype.withStatus = function (status) {
|
|
82
|
+
this['status'] = status;
|
|
83
|
+
return this;
|
|
84
|
+
};
|
|
85
|
+
ShowResourcesJobDetailResponse.prototype.withErrorCode = function (errorCode) {
|
|
86
|
+
this['error_code'] = errorCode;
|
|
87
|
+
return this;
|
|
88
|
+
};
|
|
89
|
+
Object.defineProperty(ShowResourcesJobDetailResponse.prototype, "errorCode", {
|
|
90
|
+
get: function () {
|
|
91
|
+
return this['error_code'];
|
|
92
|
+
},
|
|
93
|
+
set: function (errorCode) {
|
|
94
|
+
this['error_code'] = errorCode;
|
|
95
|
+
},
|
|
96
|
+
enumerable: false,
|
|
97
|
+
configurable: true
|
|
98
|
+
});
|
|
99
|
+
ShowResourcesJobDetailResponse.prototype.withFailReason = function (failReason) {
|
|
100
|
+
this['fail_reason'] = failReason;
|
|
101
|
+
return this;
|
|
102
|
+
};
|
|
103
|
+
Object.defineProperty(ShowResourcesJobDetailResponse.prototype, "failReason", {
|
|
104
|
+
get: function () {
|
|
105
|
+
return this['fail_reason'];
|
|
106
|
+
},
|
|
107
|
+
set: function (failReason) {
|
|
108
|
+
this['fail_reason'] = failReason;
|
|
109
|
+
},
|
|
110
|
+
enumerable: false,
|
|
111
|
+
configurable: true
|
|
112
|
+
});
|
|
113
|
+
ShowResourcesJobDetailResponse.prototype.withEntities = function (entities) {
|
|
114
|
+
this['entities'] = entities;
|
|
115
|
+
return this;
|
|
116
|
+
};
|
|
117
|
+
return ShowResourcesJobDetailResponse;
|
|
118
|
+
}(SdkResponse_1.SdkResponse));
|
|
119
|
+
exports.ShowResourcesJobDetailResponse = ShowResourcesJobDetailResponse;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare class SubJobs {
|
|
2
|
+
private 'job_id'?;
|
|
3
|
+
private 'job_type'?;
|
|
4
|
+
private 'begin_time'?;
|
|
5
|
+
private 'end_time'?;
|
|
6
|
+
status?: string;
|
|
7
|
+
private 'error_code'?;
|
|
8
|
+
private 'fail_reason'?;
|
|
9
|
+
entities?: SubJobs;
|
|
10
|
+
constructor();
|
|
11
|
+
withJobId(jobId: string): SubJobs;
|
|
12
|
+
set jobId(jobId: string | undefined);
|
|
13
|
+
get jobId(): string | undefined;
|
|
14
|
+
withJobType(jobType: string): SubJobs;
|
|
15
|
+
set jobType(jobType: string | undefined);
|
|
16
|
+
get jobType(): string | undefined;
|
|
17
|
+
withBeginTime(beginTime: string): SubJobs;
|
|
18
|
+
set beginTime(beginTime: string | undefined);
|
|
19
|
+
get beginTime(): string | undefined;
|
|
20
|
+
withEndTime(endTime: string): SubJobs;
|
|
21
|
+
set endTime(endTime: string | undefined);
|
|
22
|
+
get endTime(): string | undefined;
|
|
23
|
+
withStatus(status: string): SubJobs;
|
|
24
|
+
withErrorCode(errorCode: string): SubJobs;
|
|
25
|
+
set errorCode(errorCode: string | undefined);
|
|
26
|
+
get errorCode(): string | undefined;
|
|
27
|
+
withFailReason(failReason: string): SubJobs;
|
|
28
|
+
set failReason(failReason: string | undefined);
|
|
29
|
+
get failReason(): string | undefined;
|
|
30
|
+
withEntities(entities: SubJobs): SubJobs;
|
|
31
|
+
}
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SubJobs = void 0;
|
|
4
|
+
var SubJobs = /** @class */ (function () {
|
|
5
|
+
function SubJobs() {
|
|
6
|
+
}
|
|
7
|
+
SubJobs.prototype.withJobId = function (jobId) {
|
|
8
|
+
this['job_id'] = jobId;
|
|
9
|
+
return this;
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(SubJobs.prototype, "jobId", {
|
|
12
|
+
get: function () {
|
|
13
|
+
return this['job_id'];
|
|
14
|
+
},
|
|
15
|
+
set: function (jobId) {
|
|
16
|
+
this['job_id'] = jobId;
|
|
17
|
+
},
|
|
18
|
+
enumerable: false,
|
|
19
|
+
configurable: true
|
|
20
|
+
});
|
|
21
|
+
SubJobs.prototype.withJobType = function (jobType) {
|
|
22
|
+
this['job_type'] = jobType;
|
|
23
|
+
return this;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(SubJobs.prototype, "jobType", {
|
|
26
|
+
get: function () {
|
|
27
|
+
return this['job_type'];
|
|
28
|
+
},
|
|
29
|
+
set: function (jobType) {
|
|
30
|
+
this['job_type'] = jobType;
|
|
31
|
+
},
|
|
32
|
+
enumerable: false,
|
|
33
|
+
configurable: true
|
|
34
|
+
});
|
|
35
|
+
SubJobs.prototype.withBeginTime = function (beginTime) {
|
|
36
|
+
this['begin_time'] = beginTime;
|
|
37
|
+
return this;
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(SubJobs.prototype, "beginTime", {
|
|
40
|
+
get: function () {
|
|
41
|
+
return this['begin_time'];
|
|
42
|
+
},
|
|
43
|
+
set: function (beginTime) {
|
|
44
|
+
this['begin_time'] = beginTime;
|
|
45
|
+
},
|
|
46
|
+
enumerable: false,
|
|
47
|
+
configurable: true
|
|
48
|
+
});
|
|
49
|
+
SubJobs.prototype.withEndTime = function (endTime) {
|
|
50
|
+
this['end_time'] = endTime;
|
|
51
|
+
return this;
|
|
52
|
+
};
|
|
53
|
+
Object.defineProperty(SubJobs.prototype, "endTime", {
|
|
54
|
+
get: function () {
|
|
55
|
+
return this['end_time'];
|
|
56
|
+
},
|
|
57
|
+
set: function (endTime) {
|
|
58
|
+
this['end_time'] = endTime;
|
|
59
|
+
},
|
|
60
|
+
enumerable: false,
|
|
61
|
+
configurable: true
|
|
62
|
+
});
|
|
63
|
+
SubJobs.prototype.withStatus = function (status) {
|
|
64
|
+
this['status'] = status;
|
|
65
|
+
return this;
|
|
66
|
+
};
|
|
67
|
+
SubJobs.prototype.withErrorCode = function (errorCode) {
|
|
68
|
+
this['error_code'] = errorCode;
|
|
69
|
+
return this;
|
|
70
|
+
};
|
|
71
|
+
Object.defineProperty(SubJobs.prototype, "errorCode", {
|
|
72
|
+
get: function () {
|
|
73
|
+
return this['error_code'];
|
|
74
|
+
},
|
|
75
|
+
set: function (errorCode) {
|
|
76
|
+
this['error_code'] = errorCode;
|
|
77
|
+
},
|
|
78
|
+
enumerable: false,
|
|
79
|
+
configurable: true
|
|
80
|
+
});
|
|
81
|
+
SubJobs.prototype.withFailReason = function (failReason) {
|
|
82
|
+
this['fail_reason'] = failReason;
|
|
83
|
+
return this;
|
|
84
|
+
};
|
|
85
|
+
Object.defineProperty(SubJobs.prototype, "failReason", {
|
|
86
|
+
get: function () {
|
|
87
|
+
return this['fail_reason'];
|
|
88
|
+
},
|
|
89
|
+
set: function (failReason) {
|
|
90
|
+
this['fail_reason'] = failReason;
|
|
91
|
+
},
|
|
92
|
+
enumerable: false,
|
|
93
|
+
configurable: true
|
|
94
|
+
});
|
|
95
|
+
SubJobs.prototype.withEntities = function (entities) {
|
|
96
|
+
this['entities'] = entities;
|
|
97
|
+
return this;
|
|
98
|
+
};
|
|
99
|
+
return SubJobs;
|
|
100
|
+
}());
|
|
101
|
+
exports.SubJobs = SubJobs;
|
package/v2/public-api.d.ts
CHANGED
|
@@ -30,6 +30,12 @@ export * from './model/BatchDisassociatePublicipsRequest';
|
|
|
30
30
|
export * from './model/BatchDisassociatePublicipsResponse';
|
|
31
31
|
export * from './model/BatchProfile';
|
|
32
32
|
export * from './model/BatchPublicIp';
|
|
33
|
+
export * from './model/BwChangeToPeriodReq';
|
|
34
|
+
export * from './model/ChangeBandwidthToPeriodRequest';
|
|
35
|
+
export * from './model/ChangeBandwidthToPeriodResponse';
|
|
36
|
+
export * from './model/ChangePublicipToPeriodRequest';
|
|
37
|
+
export * from './model/ChangePublicipToPeriodResponse';
|
|
38
|
+
export * from './model/ChangeToPeriodReq';
|
|
33
39
|
export * from './model/CountPublicIpInstanceRequest';
|
|
34
40
|
export * from './model/CountPublicIpInstanceResponse';
|
|
35
41
|
export * from './model/CountPublicIpRequest';
|
|
@@ -111,6 +117,9 @@ export * from './model/ShowPublicipRequest';
|
|
|
111
117
|
export * from './model/ShowPublicipResponse';
|
|
112
118
|
export * from './model/ShowPublicipTagsRequest';
|
|
113
119
|
export * from './model/ShowPublicipTagsResponse';
|
|
120
|
+
export * from './model/ShowResourcesJobDetailRequest';
|
|
121
|
+
export * from './model/ShowResourcesJobDetailResponse';
|
|
122
|
+
export * from './model/SubJobs';
|
|
114
123
|
export * from './model/TagReq';
|
|
115
124
|
export * from './model/TagResp';
|
|
116
125
|
export * from './model/UpdateBandwidthOption';
|
package/v2/public-api.js
CHANGED
|
@@ -46,6 +46,12 @@ __exportStar(require("./model/BatchDisassociatePublicipsRequest"), exports);
|
|
|
46
46
|
__exportStar(require("./model/BatchDisassociatePublicipsResponse"), exports);
|
|
47
47
|
__exportStar(require("./model/BatchProfile"), exports);
|
|
48
48
|
__exportStar(require("./model/BatchPublicIp"), exports);
|
|
49
|
+
__exportStar(require("./model/BwChangeToPeriodReq"), exports);
|
|
50
|
+
__exportStar(require("./model/ChangeBandwidthToPeriodRequest"), exports);
|
|
51
|
+
__exportStar(require("./model/ChangeBandwidthToPeriodResponse"), exports);
|
|
52
|
+
__exportStar(require("./model/ChangePublicipToPeriodRequest"), exports);
|
|
53
|
+
__exportStar(require("./model/ChangePublicipToPeriodResponse"), exports);
|
|
54
|
+
__exportStar(require("./model/ChangeToPeriodReq"), exports);
|
|
49
55
|
__exportStar(require("./model/CountPublicIpInstanceRequest"), exports);
|
|
50
56
|
__exportStar(require("./model/CountPublicIpInstanceResponse"), exports);
|
|
51
57
|
__exportStar(require("./model/CountPublicIpRequest"), exports);
|
|
@@ -127,6 +133,9 @@ __exportStar(require("./model/ShowPublicipRequest"), exports);
|
|
|
127
133
|
__exportStar(require("./model/ShowPublicipResponse"), exports);
|
|
128
134
|
__exportStar(require("./model/ShowPublicipTagsRequest"), exports);
|
|
129
135
|
__exportStar(require("./model/ShowPublicipTagsResponse"), exports);
|
|
136
|
+
__exportStar(require("./model/ShowResourcesJobDetailRequest"), exports);
|
|
137
|
+
__exportStar(require("./model/ShowResourcesJobDetailResponse"), exports);
|
|
138
|
+
__exportStar(require("./model/SubJobs"), exports);
|
|
130
139
|
__exportStar(require("./model/TagReq"), exports);
|
|
131
140
|
__exportStar(require("./model/TagResp"), exports);
|
|
132
141
|
__exportStar(require("./model/UpdateBandwidthOption"), exports);
|
package/v3/EipRegion.d.ts
CHANGED
package/v3/EipRegion.js
CHANGED
|
@@ -23,6 +23,7 @@ var EipRegion = /** @class */ (function () {
|
|
|
23
23
|
map.set("cn-north-2", EipRegion.CN_NORTH_2);
|
|
24
24
|
map.set("la-south-2", EipRegion.LA_SOUTH_2);
|
|
25
25
|
map.set("na-mexico-1", EipRegion.NA_MEXICO_1);
|
|
26
|
+
map.set("ap-southeast-4", EipRegion.AP_SOUTHEAST_4);
|
|
26
27
|
return map;
|
|
27
28
|
};
|
|
28
29
|
EipRegion.valueOf = function (regionId) {
|
|
@@ -51,6 +52,7 @@ var EipRegion = /** @class */ (function () {
|
|
|
51
52
|
EipRegion.CN_NORTH_2 = new region_1.Region("cn-north-2", "https://vpc.cn-north-2.myhuaweicloud.com");
|
|
52
53
|
EipRegion.LA_SOUTH_2 = new region_1.Region("la-south-2", "https://vpc.la-south-2.myhuaweicloud.com");
|
|
53
54
|
EipRegion.NA_MEXICO_1 = new region_1.Region("na-mexico-1", "https://vpc.na-mexico-1.myhuaweicloud.com");
|
|
55
|
+
EipRegion.AP_SOUTHEAST_4 = new region_1.Region("ap-southeast-4", "https://vpc.ap-southeast-4.myhuaweicloud.com");
|
|
54
56
|
EipRegion.STATIC_FIELDS = EipRegion.createStaticFields();
|
|
55
57
|
return EipRegion;
|
|
56
58
|
}());
|