@huaweicloud/huaweicloud-sdk-vpc 3.1.34 → 3.1.36

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.
@@ -2,21 +2,21 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ListResourceResp = void 0;
4
4
  var ListResourceResp = /** @class */ (function () {
5
- function ListResourceResp(resouceDetail, resourceId, resourceName) {
6
- this['resouce_detail'] = resouceDetail;
5
+ function ListResourceResp(resourceDetail, resourceId, resourceName) {
6
+ this['resource_detail'] = resourceDetail;
7
7
  this['resource_id'] = resourceId;
8
8
  this['resource_name'] = resourceName;
9
9
  }
10
- ListResourceResp.prototype.withResouceDetail = function (resouceDetail) {
11
- this['resouce_detail'] = resouceDetail;
10
+ ListResourceResp.prototype.withResourceDetail = function (resourceDetail) {
11
+ this['resource_detail'] = resourceDetail;
12
12
  return this;
13
13
  };
14
- Object.defineProperty(ListResourceResp.prototype, "resouceDetail", {
14
+ Object.defineProperty(ListResourceResp.prototype, "resourceDetail", {
15
15
  get: function () {
16
- return this['resouce_detail'];
16
+ return this['resource_detail'];
17
17
  },
18
- set: function (resouceDetail) {
19
- this['resouce_detail'] = resouceDetail;
18
+ set: function (resourceDetail) {
19
+ this['resource_detail'] = resourceDetail;
20
20
  },
21
21
  enumerable: false,
22
22
  configurable: true
@@ -0,0 +1,11 @@
1
+ export declare class ModRouteTableRoute {
2
+ type: string;
3
+ destination: string;
4
+ nexthop: string;
5
+ description?: string;
6
+ constructor(type?: any, destination?: any, nexthop?: any);
7
+ withType(type: string): ModRouteTableRoute;
8
+ withDestination(destination: string): ModRouteTableRoute;
9
+ withNexthop(nexthop: string): ModRouteTableRoute;
10
+ withDescription(description: string): ModRouteTableRoute;
11
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ModRouteTableRoute = void 0;
4
+ var ModRouteTableRoute = /** @class */ (function () {
5
+ function ModRouteTableRoute(type, destination, nexthop) {
6
+ this['type'] = type;
7
+ this['destination'] = destination;
8
+ this['nexthop'] = nexthop;
9
+ }
10
+ ModRouteTableRoute.prototype.withType = function (type) {
11
+ this['type'] = type;
12
+ return this;
13
+ };
14
+ ModRouteTableRoute.prototype.withDestination = function (destination) {
15
+ this['destination'] = destination;
16
+ return this;
17
+ };
18
+ ModRouteTableRoute.prototype.withNexthop = function (nexthop) {
19
+ this['nexthop'] = nexthop;
20
+ return this;
21
+ };
22
+ ModRouteTableRoute.prototype.withDescription = function (description) {
23
+ this['description'] = description;
24
+ return this;
25
+ };
26
+ return ModRouteTableRoute;
27
+ }());
28
+ exports.ModRouteTableRoute = ModRouteTableRoute;
@@ -0,0 +1,12 @@
1
+ import { AddRouteTableRoute } from './AddRouteTableRoute';
2
+ import { DelRouteTableRoute } from './DelRouteTableRoute';
3
+ import { ModRouteTableRoute } from './ModRouteTableRoute';
4
+ export declare class RouteTableRouteAction {
5
+ add?: Array<AddRouteTableRoute>;
6
+ mod?: Array<ModRouteTableRoute>;
7
+ del?: Array<DelRouteTableRoute>;
8
+ constructor();
9
+ withAdd(add: Array<AddRouteTableRoute>): RouteTableRouteAction;
10
+ withMod(mod: Array<ModRouteTableRoute>): RouteTableRouteAction;
11
+ withDel(del: Array<DelRouteTableRoute>): RouteTableRouteAction;
12
+ }
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RouteTableRouteAction = void 0;
4
+ var RouteTableRouteAction = /** @class */ (function () {
5
+ function RouteTableRouteAction() {
6
+ }
7
+ RouteTableRouteAction.prototype.withAdd = function (add) {
8
+ this['add'] = add;
9
+ return this;
10
+ };
11
+ RouteTableRouteAction.prototype.withMod = function (mod) {
12
+ this['mod'] = mod;
13
+ return this;
14
+ };
15
+ RouteTableRouteAction.prototype.withDel = function (del) {
16
+ this['del'] = del;
17
+ return this;
18
+ };
19
+ return RouteTableRouteAction;
20
+ }());
21
+ exports.RouteTableRouteAction = RouteTableRouteAction;
@@ -1,14 +1,10 @@
1
- import { RouteTableRoute } from './RouteTableRoute';
1
+ import { RouteTableRouteAction } from './RouteTableRouteAction';
2
2
  export declare class UpdateRouteTableReq {
3
3
  name?: string;
4
4
  description?: string;
5
- routes?: {
6
- [key: string]: Array<RouteTableRoute>;
7
- };
5
+ routes?: RouteTableRouteAction;
8
6
  constructor();
9
7
  withName(name: string): UpdateRouteTableReq;
10
8
  withDescription(description: string): UpdateRouteTableReq;
11
- withRoutes(routes: {
12
- [key: string]: Array<RouteTableRoute>;
13
- }): UpdateRouteTableReq;
9
+ withRoutes(routes: RouteTableRouteAction): UpdateRouteTableReq;
14
10
  }
@@ -1,6 +1,7 @@
1
1
  export * from './VpcClient';
2
2
  export * from './model/AcceptVpcPeeringRequest';
3
3
  export * from './model/AcceptVpcPeeringResponse';
4
+ export * from './model/AddRouteTableRoute';
4
5
  export * from './model/AllowedAddressPair';
5
6
  export * from './model/AsscoiateReq';
6
7
  export * from './model/AssociateRouteTableAndSubnetReq';
@@ -65,6 +66,7 @@ export * from './model/CreateVpcRouteOption';
65
66
  export * from './model/CreateVpcRouteRequest';
66
67
  export * from './model/CreateVpcRouteRequestBody';
67
68
  export * from './model/CreateVpcRouteResponse';
69
+ export * from './model/DelRouteTableRoute';
68
70
  export * from './model/DeleteFlowLogRequest';
69
71
  export * from './model/DeleteFlowLogResponse';
70
72
  export * from './model/DeletePortRequest';
@@ -129,6 +131,7 @@ export * from './model/ListVpcsByTagsResponse';
129
131
  export * from './model/ListVpcsRequest';
130
132
  export * from './model/ListVpcsResponse';
131
133
  export * from './model/Match';
134
+ export * from './model/ModRouteTableRoute';
132
135
  export * from './model/NetworkIpAvailability';
133
136
  export * from './model/NeutronAddFirewallRuleRequest';
134
137
  export * from './model/NeutronAddFirewallRuleResponse';
@@ -219,6 +222,7 @@ export * from './model/Route';
219
222
  export * from './model/RouteTableListResp';
220
223
  export * from './model/RouteTableResp';
221
224
  export * from './model/RouteTableRoute';
225
+ export * from './model/RouteTableRouteAction';
222
226
  export * from './model/RoutetableAssociateReqbody';
223
227
  export * from './model/SecurityGroup';
224
228
  export * from './model/SecurityGroupRule';
package/v2/public-api.js CHANGED
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./VpcClient"), exports);
18
18
  __exportStar(require("./model/AcceptVpcPeeringRequest"), exports);
19
19
  __exportStar(require("./model/AcceptVpcPeeringResponse"), exports);
20
+ __exportStar(require("./model/AddRouteTableRoute"), exports);
20
21
  __exportStar(require("./model/AllowedAddressPair"), exports);
21
22
  __exportStar(require("./model/AsscoiateReq"), exports);
22
23
  __exportStar(require("./model/AssociateRouteTableAndSubnetReq"), exports);
@@ -81,6 +82,7 @@ __exportStar(require("./model/CreateVpcRouteOption"), exports);
81
82
  __exportStar(require("./model/CreateVpcRouteRequest"), exports);
82
83
  __exportStar(require("./model/CreateVpcRouteRequestBody"), exports);
83
84
  __exportStar(require("./model/CreateVpcRouteResponse"), exports);
85
+ __exportStar(require("./model/DelRouteTableRoute"), exports);
84
86
  __exportStar(require("./model/DeleteFlowLogRequest"), exports);
85
87
  __exportStar(require("./model/DeleteFlowLogResponse"), exports);
86
88
  __exportStar(require("./model/DeletePortRequest"), exports);
@@ -145,6 +147,7 @@ __exportStar(require("./model/ListVpcsByTagsResponse"), exports);
145
147
  __exportStar(require("./model/ListVpcsRequest"), exports);
146
148
  __exportStar(require("./model/ListVpcsResponse"), exports);
147
149
  __exportStar(require("./model/Match"), exports);
150
+ __exportStar(require("./model/ModRouteTableRoute"), exports);
148
151
  __exportStar(require("./model/NetworkIpAvailability"), exports);
149
152
  __exportStar(require("./model/NeutronAddFirewallRuleRequest"), exports);
150
153
  __exportStar(require("./model/NeutronAddFirewallRuleResponse"), exports);
@@ -235,6 +238,7 @@ __exportStar(require("./model/Route"), exports);
235
238
  __exportStar(require("./model/RouteTableListResp"), exports);
236
239
  __exportStar(require("./model/RouteTableResp"), exports);
237
240
  __exportStar(require("./model/RouteTableRoute"), exports);
241
+ __exportStar(require("./model/RouteTableRouteAction"), exports);
238
242
  __exportStar(require("./model/RoutetableAssociateReqbody"), exports);
239
243
  __exportStar(require("./model/SecurityGroup"), exports);
240
244
  __exportStar(require("./model/SecurityGroupRule"), exports);
package/v3/VpcClient.d.ts CHANGED
@@ -500,7 +500,6 @@ export declare const ParamCreater: () => {
500
500
  queryParams: {};
501
501
  pathParams: {};
502
502
  headers: {};
503
- data: {};
504
503
  };
505
504
  /**
506
505
  * 删除安全组规则
@@ -514,7 +513,6 @@ export declare const ParamCreater: () => {
514
513
  queryParams: {};
515
514
  pathParams: {};
516
515
  headers: {};
517
- data: {};
518
516
  };
519
517
  /**
520
518
  * 删除辅助弹性网卡
@@ -528,7 +526,6 @@ export declare const ParamCreater: () => {
528
526
  queryParams: {};
529
527
  pathParams: {};
530
528
  headers: {};
531
- data: {};
532
529
  };
533
530
  /**
534
531
  * 查询安全组规则列表
@@ -542,7 +539,6 @@ export declare const ParamCreater: () => {
542
539
  queryParams: {};
543
540
  pathParams: {};
544
541
  headers: {};
545
- data: {};
546
542
  };
547
543
  /**
548
544
  * 查询某租户下的安全组列表
@@ -556,7 +552,6 @@ export declare const ParamCreater: () => {
556
552
  queryParams: {};
557
553
  pathParams: {};
558
554
  headers: {};
559
- data: {};
560
555
  };
561
556
  /**
562
557
  * 查询辅助弹性网卡列表,单次查询最多返回2000条数据
@@ -570,7 +565,6 @@ export declare const ParamCreater: () => {
570
565
  queryParams: {};
571
566
  pathParams: {};
572
567
  headers: {};
573
- data: {};
574
568
  };
575
569
  /**
576
570
  * 批量迁移辅助弹性网卡
@@ -598,7 +592,6 @@ export declare const ParamCreater: () => {
598
592
  queryParams: {};
599
593
  pathParams: {};
600
594
  headers: {};
601
- data: {};
602
595
  };
603
596
  /**
604
597
  * 查询单个安全组规则
@@ -612,7 +605,6 @@ export declare const ParamCreater: () => {
612
605
  queryParams: {};
613
606
  pathParams: {};
614
607
  headers: {};
615
- data: {};
616
608
  };
617
609
  /**
618
610
  * 查询辅助弹性网卡详情
@@ -626,7 +618,6 @@ export declare const ParamCreater: () => {
626
618
  queryParams: {};
627
619
  pathParams: {};
628
620
  headers: {};
629
- data: {};
630
621
  };
631
622
  /**
632
623
  * 查询辅助弹性网卡数目
@@ -640,7 +631,6 @@ export declare const ParamCreater: () => {
640
631
  queryParams: {};
641
632
  pathParams: {};
642
633
  headers: {};
643
- data: {};
644
634
  };
645
635
  /**
646
636
  * 更新安全组
@@ -696,7 +686,6 @@ export declare const ParamCreater: () => {
696
686
  queryParams: {};
697
687
  pathParams: {};
698
688
  headers: {};
699
- data: {};
700
689
  };
701
690
  /**
702
691
  * 强制删除地址组,删除的地址组与安全组规则关联时,会删除地址组与关联的安全组规则。
@@ -710,7 +699,6 @@ export declare const ParamCreater: () => {
710
699
  queryParams: {};
711
700
  pathParams: {};
712
701
  headers: {};
713
- data: {};
714
702
  };
715
703
  /**
716
704
  * 查询地址组列表,根据过滤条件进行过滤。
@@ -724,7 +712,6 @@ export declare const ParamCreater: () => {
724
712
  queryParams: {};
725
713
  pathParams: {};
726
714
  headers: {};
727
- data: {};
728
715
  };
729
716
  /**
730
717
  * 查询地址组详情。
@@ -738,7 +725,6 @@ export declare const ParamCreater: () => {
738
725
  queryParams: {};
739
726
  pathParams: {};
740
727
  headers: {};
741
- data: {};
742
728
  };
743
729
  /**
744
730
  * 更新地址组。
@@ -794,7 +780,6 @@ export declare const ParamCreater: () => {
794
780
  queryParams: {};
795
781
  pathParams: {};
796
782
  headers: {};
797
- data: {};
798
783
  };
799
784
  /**
800
785
  * 查询vpc列表
@@ -808,7 +793,6 @@ export declare const ParamCreater: () => {
808
793
  queryParams: {};
809
794
  pathParams: {};
810
795
  headers: {};
811
- data: {};
812
796
  };
813
797
  /**
814
798
  * 移除VPC扩展网段
@@ -836,7 +820,6 @@ export declare const ParamCreater: () => {
836
820
  queryParams: {};
837
821
  pathParams: {};
838
822
  headers: {};
839
- data: {};
840
823
  };
841
824
  /**
842
825
  * 更新vpc
package/v3/VpcClient.js CHANGED
@@ -721,8 +721,7 @@ var ParamCreater = function () {
721
721
  contentType: "application/json",
722
722
  queryParams: {},
723
723
  pathParams: {},
724
- headers: {},
725
- data: {}
724
+ headers: {}
726
725
  };
727
726
  var localVarHeaderParameter = {};
728
727
  var securityGroupId;
@@ -753,8 +752,7 @@ var ParamCreater = function () {
753
752
  contentType: "application/json",
754
753
  queryParams: {},
755
754
  pathParams: {},
756
- headers: {},
757
- data: {}
755
+ headers: {}
758
756
  };
759
757
  var localVarHeaderParameter = {};
760
758
  var securityGroupRuleId;
@@ -785,8 +783,7 @@ var ParamCreater = function () {
785
783
  contentType: "application/json",
786
784
  queryParams: {},
787
785
  pathParams: {},
788
- headers: {},
789
- data: {}
786
+ headers: {}
790
787
  };
791
788
  var localVarHeaderParameter = {};
792
789
  var subNetworkInterfaceId;
@@ -817,8 +814,7 @@ var ParamCreater = function () {
817
814
  contentType: "application/json",
818
815
  queryParams: {},
819
816
  pathParams: {},
820
- headers: {},
821
- data: {}
817
+ headers: {}
822
818
  };
823
819
  var localVarHeaderParameter = {};
824
820
  var localVarQueryParameter = {};
@@ -898,8 +894,7 @@ var ParamCreater = function () {
898
894
  contentType: "application/json",
899
895
  queryParams: {},
900
896
  pathParams: {},
901
- headers: {},
902
- data: {}
897
+ headers: {}
903
898
  };
904
899
  var localVarHeaderParameter = {};
905
900
  var localVarQueryParameter = {};
@@ -961,8 +956,7 @@ var ParamCreater = function () {
961
956
  contentType: "application/json",
962
957
  queryParams: {},
963
958
  pathParams: {},
964
- headers: {},
965
- data: {}
959
+ headers: {}
966
960
  };
967
961
  var localVarHeaderParameter = {};
968
962
  var localVarQueryParameter = {};
@@ -1075,8 +1069,7 @@ var ParamCreater = function () {
1075
1069
  contentType: "application/json",
1076
1070
  queryParams: {},
1077
1071
  pathParams: {},
1078
- headers: {},
1079
- data: {}
1072
+ headers: {}
1080
1073
  };
1081
1074
  var localVarHeaderParameter = {};
1082
1075
  var securityGroupId;
@@ -1107,8 +1100,7 @@ var ParamCreater = function () {
1107
1100
  contentType: "application/json",
1108
1101
  queryParams: {},
1109
1102
  pathParams: {},
1110
- headers: {},
1111
- data: {}
1103
+ headers: {}
1112
1104
  };
1113
1105
  var localVarHeaderParameter = {};
1114
1106
  var securityGroupRuleId;
@@ -1139,8 +1131,7 @@ var ParamCreater = function () {
1139
1131
  contentType: "application/json",
1140
1132
  queryParams: {},
1141
1133
  pathParams: {},
1142
- headers: {},
1143
- data: {}
1134
+ headers: {}
1144
1135
  };
1145
1136
  var localVarHeaderParameter = {};
1146
1137
  var subNetworkInterfaceId;
@@ -1171,8 +1162,7 @@ var ParamCreater = function () {
1171
1162
  contentType: "application/json",
1172
1163
  queryParams: {},
1173
1164
  pathParams: {},
1174
- headers: {},
1175
- data: {}
1165
+ headers: {}
1176
1166
  };
1177
1167
  var localVarHeaderParameter = {};
1178
1168
  options.headers = localVarHeaderParameter;
@@ -1303,8 +1293,7 @@ var ParamCreater = function () {
1303
1293
  contentType: "application/json",
1304
1294
  queryParams: {},
1305
1295
  pathParams: {},
1306
- headers: {},
1307
- data: {}
1296
+ headers: {}
1308
1297
  };
1309
1298
  var localVarHeaderParameter = {};
1310
1299
  var addressGroupId;
@@ -1335,8 +1324,7 @@ var ParamCreater = function () {
1335
1324
  contentType: "application/json",
1336
1325
  queryParams: {},
1337
1326
  pathParams: {},
1338
- headers: {},
1339
- data: {}
1327
+ headers: {}
1340
1328
  };
1341
1329
  var localVarHeaderParameter = {};
1342
1330
  var addressGroupId;
@@ -1367,8 +1355,7 @@ var ParamCreater = function () {
1367
1355
  contentType: "application/json",
1368
1356
  queryParams: {},
1369
1357
  pathParams: {},
1370
- headers: {},
1371
- data: {}
1358
+ headers: {}
1372
1359
  };
1373
1360
  var localVarHeaderParameter = {};
1374
1361
  var localVarQueryParameter = {};
@@ -1430,8 +1417,7 @@ var ParamCreater = function () {
1430
1417
  contentType: "application/json",
1431
1418
  queryParams: {},
1432
1419
  pathParams: {},
1433
- headers: {},
1434
- data: {}
1420
+ headers: {}
1435
1421
  };
1436
1422
  var localVarHeaderParameter = {};
1437
1423
  var addressGroupId;
@@ -1575,8 +1561,7 @@ var ParamCreater = function () {
1575
1561
  contentType: "application/json",
1576
1562
  queryParams: {},
1577
1563
  pathParams: {},
1578
- headers: {},
1579
- data: {}
1564
+ headers: {}
1580
1565
  };
1581
1566
  var localVarHeaderParameter = {};
1582
1567
  var vpcId;
@@ -1607,8 +1592,7 @@ var ParamCreater = function () {
1607
1592
  contentType: "application/json",
1608
1593
  queryParams: {},
1609
1594
  pathParams: {},
1610
- headers: {},
1611
- data: {}
1595
+ headers: {}
1612
1596
  };
1613
1597
  var localVarHeaderParameter = {};
1614
1598
  var localVarQueryParameter = {};
@@ -1710,8 +1694,7 @@ var ParamCreater = function () {
1710
1694
  contentType: "application/json",
1711
1695
  queryParams: {},
1712
1696
  pathParams: {},
1713
- headers: {},
1714
- data: {}
1697
+ headers: {}
1715
1698
  };
1716
1699
  var localVarHeaderParameter = {};
1717
1700
  var vpcId;
package/v3/VpcRegion.d.ts CHANGED
@@ -17,6 +17,7 @@ export declare class VpcRegion {
17
17
  static LA_SOUTH_2: any;
18
18
  static NA_MEXICO_1: any;
19
19
  static AP_SOUTHEAST_4: any;
20
+ static TR_WEST_1: any;
20
21
  private static REGION_MAP;
21
22
  static valueOf(regionId: string): any;
22
23
  }
package/v3/VpcRegion.js CHANGED
@@ -33,6 +33,7 @@ var VpcRegion = exports.VpcRegion = /** @class */ (function () {
33
33
  VpcRegion.LA_SOUTH_2 = new region_1.Region("la-south-2", ["https://vpc.la-south-2.myhuaweicloud.com"]);
34
34
  VpcRegion.NA_MEXICO_1 = new region_1.Region("na-mexico-1", ["https://vpc.na-mexico-1.myhuaweicloud.com"]);
35
35
  VpcRegion.AP_SOUTHEAST_4 = new region_1.Region("ap-southeast-4", ["https://vpc.ap-southeast-4.myhuaweicloud.com"]);
36
+ VpcRegion.TR_WEST_1 = new region_1.Region("tr-west-1", ["https://vpc.tr-west-1.myhuaweicloud.com"]);
36
37
  VpcRegion.REGION_MAP = {
37
38
  "af-south-1": VpcRegion.AF_SOUTH_1,
38
39
  "cn-north-4": VpcRegion.CN_NORTH_4,
@@ -51,7 +52,8 @@ var VpcRegion = exports.VpcRegion = /** @class */ (function () {
51
52
  "cn-north-2": VpcRegion.CN_NORTH_2,
52
53
  "la-south-2": VpcRegion.LA_SOUTH_2,
53
54
  "na-mexico-1": VpcRegion.NA_MEXICO_1,
54
- "ap-southeast-4": VpcRegion.AP_SOUTHEAST_4
55
+ "ap-southeast-4": VpcRegion.AP_SOUTHEAST_4,
56
+ "tr-west-1": VpcRegion.TR_WEST_1
55
57
  };
56
58
  return VpcRegion;
57
59
  }());