@huaweicloud/huaweicloud-sdk-vpc 3.1.34 → 3.1.35

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@huaweicloud/huaweicloud-sdk-vpc",
3
- "version": "3.1.34",
3
+ "version": "3.1.35",
4
4
  "description": "Huaweicloud SDK for vpc",
5
5
  "main": "huaweicloud-sdk-vpc.js",
6
6
  "typings": "huaweicloud-sdk-vpc.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.34"
17
+ "@huaweicloud/huaweicloud-sdk-core": "^3.1.35"
18
18
  }
19
19
  }
@@ -0,0 +1,11 @@
1
+ export declare class AddRouteTableRoute {
2
+ type: string;
3
+ destination: string;
4
+ nexthop: string;
5
+ description?: string;
6
+ constructor(type?: any, destination?: any, nexthop?: any);
7
+ withType(type: string): AddRouteTableRoute;
8
+ withDestination(destination: string): AddRouteTableRoute;
9
+ withNexthop(nexthop: string): AddRouteTableRoute;
10
+ withDescription(description: string): AddRouteTableRoute;
11
+ }
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AddRouteTableRoute = void 0;
4
+ var AddRouteTableRoute = /** @class */ (function () {
5
+ function AddRouteTableRoute(type, destination, nexthop) {
6
+ this['type'] = type;
7
+ this['destination'] = destination;
8
+ this['nexthop'] = nexthop;
9
+ }
10
+ AddRouteTableRoute.prototype.withType = function (type) {
11
+ this['type'] = type;
12
+ return this;
13
+ };
14
+ AddRouteTableRoute.prototype.withDestination = function (destination) {
15
+ this['destination'] = destination;
16
+ return this;
17
+ };
18
+ AddRouteTableRoute.prototype.withNexthop = function (nexthop) {
19
+ this['nexthop'] = nexthop;
20
+ return this;
21
+ };
22
+ AddRouteTableRoute.prototype.withDescription = function (description) {
23
+ this['description'] = description;
24
+ return this;
25
+ };
26
+ return AddRouteTableRoute;
27
+ }());
28
+ exports.AddRouteTableRoute = AddRouteTableRoute;
@@ -0,0 +1,11 @@
1
+ export declare class DelRouteTableRoute {
2
+ type?: string;
3
+ destination: string;
4
+ nexthop?: string;
5
+ description?: string;
6
+ constructor(destination?: any);
7
+ withType(type: string): DelRouteTableRoute;
8
+ withDestination(destination: string): DelRouteTableRoute;
9
+ withNexthop(nexthop: string): DelRouteTableRoute;
10
+ withDescription(description: string): DelRouteTableRoute;
11
+ }
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DelRouteTableRoute = void 0;
4
+ var DelRouteTableRoute = /** @class */ (function () {
5
+ function DelRouteTableRoute(destination) {
6
+ this['destination'] = destination;
7
+ }
8
+ DelRouteTableRoute.prototype.withType = function (type) {
9
+ this['type'] = type;
10
+ return this;
11
+ };
12
+ DelRouteTableRoute.prototype.withDestination = function (destination) {
13
+ this['destination'] = destination;
14
+ return this;
15
+ };
16
+ DelRouteTableRoute.prototype.withNexthop = function (nexthop) {
17
+ this['nexthop'] = nexthop;
18
+ return this;
19
+ };
20
+ DelRouteTableRoute.prototype.withDescription = function (description) {
21
+ this['description'] = description;
22
+ return this;
23
+ };
24
+ return DelRouteTableRoute;
25
+ }());
26
+ exports.DelRouteTableRoute = DelRouteTableRoute;
@@ -1,13 +1,13 @@
1
1
  import { ResourceTag } from './ResourceTag';
2
2
  export declare class ListResourceResp {
3
- private 'resouce_detail';
3
+ private 'resource_detail';
4
4
  private 'resource_id';
5
5
  private 'resource_name';
6
6
  tags?: Array<ResourceTag>;
7
- constructor(resouceDetail?: any, resourceId?: any, resourceName?: any);
8
- withResouceDetail(resouceDetail: object): ListResourceResp;
9
- set resouceDetail(resouceDetail: object | undefined);
10
- get resouceDetail(): object | undefined;
7
+ constructor(resourceDetail?: any, resourceId?: any, resourceName?: any);
8
+ withResourceDetail(resourceDetail: object): ListResourceResp;
9
+ set resourceDetail(resourceDetail: object | undefined);
10
+ get resourceDetail(): object | undefined;
11
11
  withResourceId(resourceId: string): ListResourceResp;
12
12
  set resourceId(resourceId: string | undefined);
13
13
  get resourceId(): string | undefined;
@@ -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);