@scaleway/sdk-vpc 1.4.0 → 2.1.1

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/README.md ADDED
@@ -0,0 +1,96 @@
1
+ # @scaleway/sdk-vpc
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@scaleway/sdk-vpc.svg)](https://www.npmjs.com/package/@scaleway/sdk-vpc)
4
+ [![npm downloads](https://img.shields.io/npm/dm/@scaleway/sdk-vpc.svg)](https://www.npmjs.com/package/@scaleway/sdk-vpc)
5
+ [![license](https://img.shields.io/npm/l/@scaleway/sdk-vpc.svg)](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE)
6
+
7
+ Scaleway SDK for Vpc API.
8
+
9
+ > **Note**
10
+ > This is an automatically generated package that is part of the [Scaleway SDK for JavaScript](https://github.com/scaleway/scaleway-sdk-js).
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ npm install @scaleway/sdk-vpc @scaleway/sdk-client
16
+ ```
17
+
18
+ or with pnpm:
19
+
20
+ ```bash
21
+ pnpm add @scaleway/sdk-vpc @scaleway/sdk-client
22
+ ```
23
+
24
+ or with yarn:
25
+
26
+ ```bash
27
+ yarn add @scaleway/sdk-vpc @scaleway/sdk-client
28
+ ```
29
+
30
+ ## Getting Started
31
+
32
+ You'll need a pair of access and secret keys to connect to Scaleway API. Please check the [documentation](https://www.scaleway.com/en/docs/identity-and-access-management/iam/how-to/create-api-keys/) on how to retrieve them.
33
+
34
+ ### Basic Usage
35
+
36
+ ```typescript
37
+ import { createClient } from '@scaleway/sdk-client'
38
+ import { Vpc } from '@scaleway/sdk-vpc'
39
+
40
+ const client = createClient({
41
+ accessKey: 'SCWXXXXXXXXXXXXXXXXX',
42
+ secretKey: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
43
+ defaultProjectId: 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx',
44
+ defaultRegion: 'fr-par',
45
+ defaultZone: 'fr-par-1',
46
+ })
47
+
48
+ const api = new Vpc.v1.API(client)
49
+
50
+ // Use the API
51
+ // Example: await api.listServers()
52
+ ```
53
+
54
+ ### Using Configuration Loader
55
+
56
+ For a simpler setup, you can load credentials from the configuration file or environment variables:
57
+
58
+ ```typescript
59
+ import { createClient } from '@scaleway/sdk-client'
60
+ import { loadProfileFromConfigurationFile } from '@scaleway/configuration-loader'
61
+ import { Vpc } from '@scaleway/sdk-vpc'
62
+
63
+ const profile = loadProfileFromConfigurationFile()
64
+ const client = createClient(profile)
65
+ const api = new Vpc.v1.API(client)
66
+ ```
67
+
68
+ ## Documentation
69
+
70
+ - 📚 [Scaleway SDK Reference Documentation](https://scaleway.github.io/scaleway-sdk-js)
71
+ - 🌐 [Scaleway Vpc API Documentation](https://www.scaleway.com/en/developers/api/vpc/)
72
+ - 📖 [Main Repository](https://github.com/scaleway/scaleway-sdk-js)
73
+ - 💡 [Example Projects](https://github.com/scaleway/scaleway-sdk-js/tree/master/examples)
74
+
75
+ ## Features
76
+
77
+ - ✅ Full TypeScript support with complete type definitions
78
+ - ✅ Promise-based API
79
+ - ✅ Automatic pagination helpers
80
+ - ✅ Built-in error handling
81
+ - ✅ Compatible with Node.js ≥ 20
82
+
83
+ ## Support
84
+
85
+ We love feedback! Feel free to reach us on:
86
+ - [Scaleway Slack community](https://slack.scaleway.com/) - Join us on [#opensource](https://scaleway-community.slack.com/app_redirect?channel=opensource)
87
+ - [GitHub Issues](https://github.com/scaleway/scaleway-sdk-js/issues)
88
+
89
+ ## Contributing
90
+
91
+ This repository is at its early stage and is still in active development. If you are looking for a way to contribute, please read [CONTRIBUTING.md](https://github.com/scaleway/scaleway-sdk-js/blob/master/CONTRIBUTING.md).
92
+
93
+ ## License
94
+
95
+ This project is Apache 2.0 licensed. See the [LICENSE](https://github.com/scaleway/scaleway-sdk-js/blob/master/LICENSE) file for details.
96
+
@@ -1,5 +1,5 @@
1
- import { API as ParentAPI } from '@scaleway/sdk-client';
2
1
  import type { ApiLocality } from '@scaleway/sdk-client';
2
+ import { API as ParentAPI } from '@scaleway/sdk-client';
3
3
  import type { AddSubnetsRequest, AddSubnetsResponse, CreatePrivateNetworkRequest, CreateRouteRequest, CreateVPCRequest, DeletePrivateNetworkRequest, DeleteRouteRequest, DeleteSubnetsRequest, DeleteSubnetsResponse, DeleteVPCRequest, EnableCustomRoutesPropagationRequest, EnableDHCPRequest, EnableRoutingRequest, GetAclRequest, GetAclResponse, GetPrivateNetworkRequest, GetRouteRequest, GetVPCRequest, ListPrivateNetworksRequest, ListPrivateNetworksResponse, ListSubnetsRequest, ListSubnetsResponse, ListVPCsRequest, ListVPCsResponse, PrivateNetwork, Route, SetAclRequest, SetAclResponse, UpdatePrivateNetworkRequest, UpdateRouteRequest, UpdateVPCRequest, VPC } from './types.gen.js';
4
4
  /**
5
5
  * VPC API.
@@ -9,7 +9,11 @@ class API extends API$1 {
9
9
  * type ∈ {'zone','region','global','unspecified'}
10
10
  */
11
11
  static LOCALITY = toApiLocality({
12
- regions: ["fr-par", "nl-ams", "pl-waw"]
12
+ regions: [
13
+ "fr-par",
14
+ "nl-ams",
15
+ "pl-waw"
16
+ ]
13
17
  });
14
18
  pageOfListVPCs = (request = {}) => this.client.fetch(
15
19
  {
@@ -21,10 +25,7 @@ class API extends API$1 {
21
25
  ["order_by", request.orderBy],
22
26
  ["organization_id", request.organizationId],
23
27
  ["page", request.page],
24
- [
25
- "page_size",
26
- request.pageSize ?? this.client.settings.defaultPageSize
27
- ],
28
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
28
29
  ["project_id", request.projectId],
29
30
  ["routing_enabled", request.routingEnabled],
30
31
  ["tags", request.tags]
@@ -91,10 +92,12 @@ class API extends API$1 {
91
92
  *
92
93
  * @param request - The request {@link DeleteVPCRequest}
93
94
  */
94
- deleteVPC = (request) => this.client.fetch({
95
- method: "DELETE",
96
- path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpcs/${validatePathParam("vpcId", request.vpcId)}`
97
- });
95
+ deleteVPC = (request) => this.client.fetch(
96
+ {
97
+ method: "DELETE",
98
+ path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpcs/${validatePathParam("vpcId", request.vpcId)}`
99
+ }
100
+ );
98
101
  pageOfListPrivateNetworks = (request = {}) => this.client.fetch(
99
102
  {
100
103
  method: "GET",
@@ -105,10 +108,7 @@ class API extends API$1 {
105
108
  ["order_by", request.orderBy],
106
109
  ["organization_id", request.organizationId],
107
110
  ["page", request.page],
108
- [
109
- "page_size",
110
- request.pageSize ?? this.client.settings.defaultPageSize
111
- ],
111
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
112
112
  ["private_network_ids", request.privateNetworkIds],
113
113
  ["project_id", request.projectId],
114
114
  ["tags", request.tags],
@@ -123,11 +123,7 @@ class API extends API$1 {
123
123
  * @param request - The request {@link ListPrivateNetworksRequest}
124
124
  * @returns A Promise of ListPrivateNetworksResponse
125
125
  */
126
- listPrivateNetworks = (request = {}) => enrichForPagination(
127
- "privateNetworks",
128
- this.pageOfListPrivateNetworks,
129
- request
130
- );
126
+ listPrivateNetworks = (request = {}) => enrichForPagination("privateNetworks", this.pageOfListPrivateNetworks, request);
131
127
  /**
132
128
  * Create a Private Network. Create a new Private Network. Once created, you can attach Scaleway resources which are in the same region.
133
129
  *
@@ -180,10 +176,12 @@ class API extends API$1 {
180
176
  *
181
177
  * @param request - The request {@link DeletePrivateNetworkRequest}
182
178
  */
183
- deletePrivateNetwork = (request) => this.client.fetch({
184
- method: "DELETE",
185
- path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam("privateNetworkId", request.privateNetworkId)}`
186
- });
179
+ deletePrivateNetwork = (request) => this.client.fetch(
180
+ {
181
+ method: "DELETE",
182
+ path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam("privateNetworkId", request.privateNetworkId)}`
183
+ }
184
+ );
187
185
  /**
188
186
  * Enable DHCP on a Private Network. Enable DHCP managed on an existing Private Network. Note that you will not be able to deactivate it afterwards.
189
187
  *
@@ -237,10 +235,7 @@ class API extends API$1 {
237
235
  ["order_by", request.orderBy],
238
236
  ["organization_id", request.organizationId],
239
237
  ["page", request.page],
240
- [
241
- "page_size",
242
- request.pageSize ?? this.client.settings.defaultPageSize
243
- ],
238
+ ["page_size", request.pageSize ?? this.client.settings.defaultPageSize],
244
239
  ["project_id", request.projectId],
245
240
  ["subnet_ids", request.subnetIds],
246
241
  ["vpc_id", request.vpcId]
@@ -341,10 +336,12 @@ class API extends API$1 {
341
336
  *
342
337
  * @param request - The request {@link DeleteRouteRequest}
343
338
  */
344
- deleteRoute = (request) => this.client.fetch({
345
- method: "DELETE",
346
- path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam("routeId", request.routeId)}`
347
- });
339
+ deleteRoute = (request) => this.client.fetch(
340
+ {
341
+ method: "DELETE",
342
+ path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${validatePathParam("routeId", request.routeId)}`
343
+ }
344
+ );
348
345
  /**
349
346
  * Get ACL Rules for VPC. Retrieve a list of ACL rules for a VPC, specified by its VPC ID.
350
347
  *
@@ -355,7 +352,9 @@ class API extends API$1 {
355
352
  {
356
353
  method: "GET",
357
354
  path: `/vpc/v2/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpcs/${validatePathParam("vpcId", request.vpcId)}/acl-rules`,
358
- urlParams: urlParams(["is_ipv6", request.isIpv6])
355
+ urlParams: urlParams(
356
+ ["is_ipv6", request.isIpv6]
357
+ )
359
358
  },
360
359
  unmarshalGetAclResponse
361
360
  );
@@ -1,4 +1,4 @@
1
- export { API } from './api.gen.js';
1
+ export { API, } from './api.gen.js';
2
2
  export * from './marshalling.gen.js';
3
- export type { AclRule, AclRuleProtocol, Action, AddSubnetsRequest, AddSubnetsResponse, CreatePrivateNetworkRequest, CreateRouteRequest, CreateVPCRequest, DeletePrivateNetworkRequest, DeleteRouteRequest, DeleteSubnetsRequest, DeleteSubnetsResponse, DeleteVPCRequest, EnableCustomRoutesPropagationRequest, EnableDHCPRequest, EnableRoutingRequest, GetAclRequest, GetAclResponse, GetPrivateNetworkRequest, GetRouteRequest, GetVPCRequest, ListPrivateNetworksRequest, ListPrivateNetworksRequestOrderBy, ListPrivateNetworksResponse, ListSubnetsRequest, ListSubnetsRequestOrderBy, ListSubnetsResponse, ListVPCsRequest, ListVPCsRequestOrderBy, ListVPCsResponse, PrivateNetwork, Route, SetAclRequest, SetAclResponse, Subnet, UpdatePrivateNetworkRequest, UpdateRouteRequest, UpdateVPCRequest, VPC, } from './types.gen.js';
3
+ export type { AclRule, AclRuleProtocol, Action, AddSubnetsRequest, AddSubnetsResponse, CreatePrivateNetworkRequest, CreateRouteRequest, CreateVPCRequest, DeletePrivateNetworkRequest, DeleteRouteRequest, DeleteSubnetsRequest, DeleteSubnetsResponse, DeleteVPCRequest, EnableCustomRoutesPropagationRequest, EnableDHCPRequest, EnableRoutingRequest, GetAclRequest, GetAclResponse, GetPrivateNetworkRequest, GetRouteRequest, GetVPCRequest, ListPrivateNetworksRequest, ListPrivateNetworksRequestOrderBy, ListPrivateNetworksResponse, ListSubnetsRequest, ListSubnetsRequestOrderBy, ListSubnetsResponse, ListVPCsRequest, ListVPCsRequestOrderBy, ListVPCsResponse, PrivateNetwork, Route, RouteType, SetAclRequest, SetAclResponse, Subnet, UpdatePrivateNetworkRequest, UpdateRouteRequest, UpdateVPCRequest, VPC, } from './types.gen.js';
4
4
  export * as ValidationRules from './validation-rules.gen.js';
@@ -53,6 +53,7 @@ const unmarshalRoute = (data) => {
53
53
  nexthopResourceId: data.nexthop_resource_id,
54
54
  region: data.region,
55
55
  tags: data.tags,
56
+ type: data.type ? data.type : void 0,
56
57
  updatedAt: unmarshalDate(data.updated_at),
57
58
  vpcId: data.vpc_id
58
59
  };
@@ -134,10 +135,7 @@ const unmarshalListPrivateNetworksResponse = (data) => {
134
135
  );
135
136
  }
136
137
  return {
137
- privateNetworks: unmarshalArrayOfObject(
138
- data.private_networks,
139
- unmarshalPrivateNetwork
140
- ),
138
+ privateNetworks: unmarshalArrayOfObject(data.private_networks, unmarshalPrivateNetwork),
141
139
  totalCount: data.total_count
142
140
  };
143
141
  };
@@ -4,6 +4,7 @@ export type Action = 'unknown_action' | 'accept' | 'drop';
4
4
  export type ListPrivateNetworksRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
5
5
  export type ListSubnetsRequestOrderBy = 'created_at_asc' | 'created_at_desc';
6
6
  export type ListVPCsRequestOrderBy = 'created_at_asc' | 'created_at_desc' | 'name_asc' | 'name_desc';
7
+ export type RouteType = 'unknown_route_type' | 'subnet' | 'default' | 'custom' | 'interlink' | 's2s_vpn';
7
8
  export interface Subnet {
8
9
  /**
9
10
  * ID of the subnet.
@@ -125,6 +126,10 @@ export interface Route {
125
126
  * Defines whether the route can be modified or deleted by the user.
126
127
  */
127
128
  isReadOnly: boolean;
129
+ /**
130
+ * Type of the Route.
131
+ */
132
+ type?: RouteType;
128
133
  /**
129
134
  * Region of the Route.
130
135
  */
package/package.json CHANGED
@@ -1,23 +1,20 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-vpc",
3
- "version": "1.4.0",
3
+ "version": "2.1.1",
4
4
  "description": "Scaleway SDK vpc",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
7
+ "README.md",
7
8
  "dist"
8
9
  ],
9
10
  "type": "module",
10
11
  "exports": {
11
12
  ".": {
12
13
  "types": "./dist/index.gen.d.ts",
13
- "import": "./dist/index.gen.js",
14
- "require": "./dist/index.gen.cjs",
15
14
  "default": "./dist/index.gen.js"
16
15
  },
17
16
  "./*": {
18
17
  "types": "./dist/*/index.gen.d.ts",
19
- "import": "./dist/*/index.gen.js",
20
- "require": "./dist/*/index.gen.cjs",
21
18
  "default": "./dist/*/index.gen.js"
22
19
  }
23
20
  },
@@ -26,17 +23,17 @@
26
23
  "directory": "packages_generated/vpc"
27
24
  },
28
25
  "engines": {
29
- "node": ">=20.19.4"
26
+ "node": ">=20.19.6"
30
27
  },
31
28
  "dependencies": {
32
29
  "@scaleway/random-name": "5.1.2",
33
- "@scaleway/sdk-std": "1.2.0"
30
+ "@scaleway/sdk-std": "2.1.0"
34
31
  },
35
32
  "peerDependencies": {
36
- "@scaleway/sdk-client": "^1.3.3"
33
+ "@scaleway/sdk-client": "^2.1.0"
37
34
  },
38
35
  "devDependencies": {
39
- "@scaleway/sdk-client": "^1.3.3"
36
+ "@scaleway/sdk-client": "^2.1.0"
40
37
  },
41
38
  "scripts": {
42
39
  "package:check": "pnpm publint",
@@ -1,4 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const index_gen = require("./v2/index.gen.cjs");
4
- exports.Vpcv2 = index_gen;
@@ -1,382 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const sdkClient = require("@scaleway/sdk-client");
4
- const marshalling_gen = require("./marshalling.gen.cjs");
5
- const jsonContentHeaders = {
6
- "Content-Type": "application/json; charset=utf-8"
7
- };
8
- class API extends sdkClient.API {
9
- /**
10
- * Locality of this API.
11
- * type ∈ {'zone','region','global','unspecified'}
12
- */
13
- static LOCALITY = sdkClient.toApiLocality({
14
- regions: ["fr-par", "nl-ams", "pl-waw"]
15
- });
16
- pageOfListVPCs = (request = {}) => this.client.fetch(
17
- {
18
- method: "GET",
19
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpcs`,
20
- urlParams: sdkClient.urlParams(
21
- ["is_default", request.isDefault],
22
- ["name", request.name],
23
- ["order_by", request.orderBy],
24
- ["organization_id", request.organizationId],
25
- ["page", request.page],
26
- [
27
- "page_size",
28
- request.pageSize ?? this.client.settings.defaultPageSize
29
- ],
30
- ["project_id", request.projectId],
31
- ["routing_enabled", request.routingEnabled],
32
- ["tags", request.tags]
33
- )
34
- },
35
- marshalling_gen.unmarshalListVPCsResponse
36
- );
37
- /**
38
- * List VPCs. List existing VPCs in the specified region.
39
- *
40
- * @param request - The request {@link ListVPCsRequest}
41
- * @returns A Promise of ListVPCsResponse
42
- */
43
- listVPCs = (request = {}) => sdkClient.enrichForPagination("vpcs", this.pageOfListVPCs, request);
44
- /**
45
- * Create a VPC. Create a new VPC in the specified region.
46
- *
47
- * @param request - The request {@link CreateVPCRequest}
48
- * @returns A Promise of VPC
49
- */
50
- createVPC = (request) => this.client.fetch(
51
- {
52
- body: JSON.stringify(
53
- marshalling_gen.marshalCreateVPCRequest(request, this.client.settings)
54
- ),
55
- headers: jsonContentHeaders,
56
- method: "POST",
57
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpcs`
58
- },
59
- marshalling_gen.unmarshalVPC
60
- );
61
- /**
62
- * Get a VPC. Retrieve details of an existing VPC, specified by its VPC ID.
63
- *
64
- * @param request - The request {@link GetVPCRequest}
65
- * @returns A Promise of VPC
66
- */
67
- getVPC = (request) => this.client.fetch(
68
- {
69
- method: "GET",
70
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpcs/${sdkClient.validatePathParam("vpcId", request.vpcId)}`
71
- },
72
- marshalling_gen.unmarshalVPC
73
- );
74
- /**
75
- * Update VPC. Update parameters including name and tags of the specified VPC.
76
- *
77
- * @param request - The request {@link UpdateVPCRequest}
78
- * @returns A Promise of VPC
79
- */
80
- updateVPC = (request) => this.client.fetch(
81
- {
82
- body: JSON.stringify(
83
- marshalling_gen.marshalUpdateVPCRequest(request, this.client.settings)
84
- ),
85
- headers: jsonContentHeaders,
86
- method: "PATCH",
87
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpcs/${sdkClient.validatePathParam("vpcId", request.vpcId)}`
88
- },
89
- marshalling_gen.unmarshalVPC
90
- );
91
- /**
92
- * Delete a VPC. Delete a VPC specified by its VPC ID.
93
- *
94
- * @param request - The request {@link DeleteVPCRequest}
95
- */
96
- deleteVPC = (request) => this.client.fetch({
97
- method: "DELETE",
98
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpcs/${sdkClient.validatePathParam("vpcId", request.vpcId)}`
99
- });
100
- pageOfListPrivateNetworks = (request = {}) => this.client.fetch(
101
- {
102
- method: "GET",
103
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/private-networks`,
104
- urlParams: sdkClient.urlParams(
105
- ["dhcp_enabled", request.dhcpEnabled],
106
- ["name", request.name],
107
- ["order_by", request.orderBy],
108
- ["organization_id", request.organizationId],
109
- ["page", request.page],
110
- [
111
- "page_size",
112
- request.pageSize ?? this.client.settings.defaultPageSize
113
- ],
114
- ["private_network_ids", request.privateNetworkIds],
115
- ["project_id", request.projectId],
116
- ["tags", request.tags],
117
- ["vpc_id", request.vpcId]
118
- )
119
- },
120
- marshalling_gen.unmarshalListPrivateNetworksResponse
121
- );
122
- /**
123
- * List Private Networks. List existing Private Networks in the specified region. By default, the Private Networks returned in the list are ordered by creation date in ascending order, though this can be modified via the order_by field.
124
- *
125
- * @param request - The request {@link ListPrivateNetworksRequest}
126
- * @returns A Promise of ListPrivateNetworksResponse
127
- */
128
- listPrivateNetworks = (request = {}) => sdkClient.enrichForPagination(
129
- "privateNetworks",
130
- this.pageOfListPrivateNetworks,
131
- request
132
- );
133
- /**
134
- * Create a Private Network. Create a new Private Network. Once created, you can attach Scaleway resources which are in the same region.
135
- *
136
- * @param request - The request {@link CreatePrivateNetworkRequest}
137
- * @returns A Promise of PrivateNetwork
138
- */
139
- createPrivateNetwork = (request) => this.client.fetch(
140
- {
141
- body: JSON.stringify(
142
- marshalling_gen.marshalCreatePrivateNetworkRequest(request, this.client.settings)
143
- ),
144
- headers: jsonContentHeaders,
145
- method: "POST",
146
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/private-networks`
147
- },
148
- marshalling_gen.unmarshalPrivateNetwork
149
- );
150
- /**
151
- * Get a Private Network. Retrieve information about an existing Private Network, specified by its Private Network ID. Its full details are returned in the response object.
152
- *
153
- * @param request - The request {@link GetPrivateNetworkRequest}
154
- * @returns A Promise of PrivateNetwork
155
- */
156
- getPrivateNetwork = (request) => this.client.fetch(
157
- {
158
- method: "GET",
159
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/private-networks/${sdkClient.validatePathParam("privateNetworkId", request.privateNetworkId)}`
160
- },
161
- marshalling_gen.unmarshalPrivateNetwork
162
- );
163
- /**
164
- * Update Private Network. Update parameters (such as name or tags) of an existing Private Network, specified by its Private Network ID.
165
- *
166
- * @param request - The request {@link UpdatePrivateNetworkRequest}
167
- * @returns A Promise of PrivateNetwork
168
- */
169
- updatePrivateNetwork = (request) => this.client.fetch(
170
- {
171
- body: JSON.stringify(
172
- marshalling_gen.marshalUpdatePrivateNetworkRequest(request, this.client.settings)
173
- ),
174
- headers: jsonContentHeaders,
175
- method: "PATCH",
176
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/private-networks/${sdkClient.validatePathParam("privateNetworkId", request.privateNetworkId)}`
177
- },
178
- marshalling_gen.unmarshalPrivateNetwork
179
- );
180
- /**
181
- * Delete a Private Network. Delete an existing Private Network. Note that you must first detach all resources from the network, in order to delete it.
182
- *
183
- * @param request - The request {@link DeletePrivateNetworkRequest}
184
- */
185
- deletePrivateNetwork = (request) => this.client.fetch({
186
- method: "DELETE",
187
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/private-networks/${sdkClient.validatePathParam("privateNetworkId", request.privateNetworkId)}`
188
- });
189
- /**
190
- * Enable DHCP on a Private Network. Enable DHCP managed on an existing Private Network. Note that you will not be able to deactivate it afterwards.
191
- *
192
- * @param request - The request {@link EnableDHCPRequest}
193
- * @returns A Promise of PrivateNetwork
194
- */
195
- enableDHCP = (request) => this.client.fetch(
196
- {
197
- body: "{}",
198
- headers: jsonContentHeaders,
199
- method: "POST",
200
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/private-networks/${sdkClient.validatePathParam("privateNetworkId", request.privateNetworkId)}/enable-dhcp`
201
- },
202
- marshalling_gen.unmarshalPrivateNetwork
203
- );
204
- /**
205
- * Enable routing on a VPC. Enable routing on an existing VPC. Note that you will not be able to deactivate it afterwards.
206
- *
207
- * @param request - The request {@link EnableRoutingRequest}
208
- * @returns A Promise of VPC
209
- */
210
- enableRouting = (request) => this.client.fetch(
211
- {
212
- body: "{}",
213
- headers: jsonContentHeaders,
214
- method: "POST",
215
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpcs/${sdkClient.validatePathParam("vpcId", request.vpcId)}/enable-routing`
216
- },
217
- marshalling_gen.unmarshalVPC
218
- );
219
- /**
220
- * Enable custom routes propagation on a VPC. Enable custom routes propagation on an existing VPC. Note that you will not be able to deactivate it afterwards.
221
- *
222
- * @param request - The request {@link EnableCustomRoutesPropagationRequest}
223
- * @returns A Promise of VPC
224
- */
225
- enableCustomRoutesPropagation = (request) => this.client.fetch(
226
- {
227
- body: "{}",
228
- headers: jsonContentHeaders,
229
- method: "POST",
230
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpcs/${sdkClient.validatePathParam("vpcId", request.vpcId)}/enable-custom-routes-propagation`
231
- },
232
- marshalling_gen.unmarshalVPC
233
- );
234
- pageOfListSubnets = (request = {}) => this.client.fetch(
235
- {
236
- method: "GET",
237
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/subnets`,
238
- urlParams: sdkClient.urlParams(
239
- ["order_by", request.orderBy],
240
- ["organization_id", request.organizationId],
241
- ["page", request.page],
242
- [
243
- "page_size",
244
- request.pageSize ?? this.client.settings.defaultPageSize
245
- ],
246
- ["project_id", request.projectId],
247
- ["subnet_ids", request.subnetIds],
248
- ["vpc_id", request.vpcId]
249
- )
250
- },
251
- marshalling_gen.unmarshalListSubnetsResponse
252
- );
253
- /**
254
- * List subnets. List any Private Network's subnets. See ListPrivateNetworks to list a specific Private Network's subnets.
255
- *
256
- * @param request - The request {@link ListSubnetsRequest}
257
- * @returns A Promise of ListSubnetsResponse
258
- */
259
- listSubnets = (request = {}) => sdkClient.enrichForPagination("subnets", this.pageOfListSubnets, request);
260
- /**
261
- * Add subnets to a Private Network. Add new subnets to an existing Private Network.
262
- *
263
- * @param request - The request {@link AddSubnetsRequest}
264
- * @returns A Promise of AddSubnetsResponse
265
- */
266
- addSubnets = (request) => this.client.fetch(
267
- {
268
- body: JSON.stringify(
269
- marshalling_gen.marshalAddSubnetsRequest(request, this.client.settings)
270
- ),
271
- headers: jsonContentHeaders,
272
- method: "POST",
273
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/private-networks/${sdkClient.validatePathParam("privateNetworkId", request.privateNetworkId)}/subnets`
274
- },
275
- marshalling_gen.unmarshalAddSubnetsResponse
276
- );
277
- /**
278
- * Delete subnets from a Private Network. Delete the specified subnets from a Private Network.
279
- *
280
- * @param request - The request {@link DeleteSubnetsRequest}
281
- * @returns A Promise of DeleteSubnetsResponse
282
- */
283
- deleteSubnets = (request) => this.client.fetch(
284
- {
285
- body: JSON.stringify(
286
- marshalling_gen.marshalDeleteSubnetsRequest(request, this.client.settings)
287
- ),
288
- headers: jsonContentHeaders,
289
- method: "DELETE",
290
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/private-networks/${sdkClient.validatePathParam("privateNetworkId", request.privateNetworkId)}/subnets`
291
- },
292
- marshalling_gen.unmarshalDeleteSubnetsResponse
293
- );
294
- /**
295
- * Create a Route. Create a new custom Route.
296
- *
297
- * @param request - The request {@link CreateRouteRequest}
298
- * @returns A Promise of Route
299
- */
300
- createRoute = (request) => this.client.fetch(
301
- {
302
- body: JSON.stringify(
303
- marshalling_gen.marshalCreateRouteRequest(request, this.client.settings)
304
- ),
305
- headers: jsonContentHeaders,
306
- method: "POST",
307
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes`
308
- },
309
- marshalling_gen.unmarshalRoute
310
- );
311
- /**
312
- * Get a Route. Retrieve details of an existing Route, specified by its Route ID.
313
- *
314
- * @param request - The request {@link GetRouteRequest}
315
- * @returns A Promise of Route
316
- */
317
- getRoute = (request) => this.client.fetch(
318
- {
319
- method: "GET",
320
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${sdkClient.validatePathParam("routeId", request.routeId)}`
321
- },
322
- marshalling_gen.unmarshalRoute
323
- );
324
- /**
325
- * Update Route. Update parameters of the specified Route.
326
- *
327
- * @param request - The request {@link UpdateRouteRequest}
328
- * @returns A Promise of Route
329
- */
330
- updateRoute = (request) => this.client.fetch(
331
- {
332
- body: JSON.stringify(
333
- marshalling_gen.marshalUpdateRouteRequest(request, this.client.settings)
334
- ),
335
- headers: jsonContentHeaders,
336
- method: "PATCH",
337
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${sdkClient.validatePathParam("routeId", request.routeId)}`
338
- },
339
- marshalling_gen.unmarshalRoute
340
- );
341
- /**
342
- * Delete a Route. Delete a Route specified by its Route ID.
343
- *
344
- * @param request - The request {@link DeleteRouteRequest}
345
- */
346
- deleteRoute = (request) => this.client.fetch({
347
- method: "DELETE",
348
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/routes/${sdkClient.validatePathParam("routeId", request.routeId)}`
349
- });
350
- /**
351
- * Get ACL Rules for VPC. Retrieve a list of ACL rules for a VPC, specified by its VPC ID.
352
- *
353
- * @param request - The request {@link GetAclRequest}
354
- * @returns A Promise of GetAclResponse
355
- */
356
- getAcl = (request) => this.client.fetch(
357
- {
358
- method: "GET",
359
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpcs/${sdkClient.validatePathParam("vpcId", request.vpcId)}/acl-rules`,
360
- urlParams: sdkClient.urlParams(["is_ipv6", request.isIpv6])
361
- },
362
- marshalling_gen.unmarshalGetAclResponse
363
- );
364
- /**
365
- * Set VPC ACL rules. Set the list of ACL rules and the default routing policy for a VPC.
366
- *
367
- * @param request - The request {@link SetAclRequest}
368
- * @returns A Promise of SetAclResponse
369
- */
370
- setAcl = (request) => this.client.fetch(
371
- {
372
- body: JSON.stringify(
373
- marshalling_gen.marshalSetAclRequest(request, this.client.settings)
374
- ),
375
- headers: jsonContentHeaders,
376
- method: "PUT",
377
- path: `/vpc/v2/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/vpcs/${sdkClient.validatePathParam("vpcId", request.vpcId)}/acl-rules`
378
- },
379
- marshalling_gen.unmarshalSetAclResponse
380
- );
381
- }
382
- exports.API = API;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const api_gen = require("./api.gen.cjs");
4
- const marshalling_gen = require("./marshalling.gen.cjs");
5
- const validationRules_gen = require("./validation-rules.gen.cjs");
6
- exports.API = api_gen.API;
7
- exports.marshalAclRule = marshalling_gen.marshalAclRule;
8
- exports.marshalAddSubnetsRequest = marshalling_gen.marshalAddSubnetsRequest;
9
- exports.marshalCreatePrivateNetworkRequest = marshalling_gen.marshalCreatePrivateNetworkRequest;
10
- exports.marshalCreateRouteRequest = marshalling_gen.marshalCreateRouteRequest;
11
- exports.marshalCreateVPCRequest = marshalling_gen.marshalCreateVPCRequest;
12
- exports.marshalDeleteSubnetsRequest = marshalling_gen.marshalDeleteSubnetsRequest;
13
- exports.marshalSetAclRequest = marshalling_gen.marshalSetAclRequest;
14
- exports.marshalUpdatePrivateNetworkRequest = marshalling_gen.marshalUpdatePrivateNetworkRequest;
15
- exports.marshalUpdateRouteRequest = marshalling_gen.marshalUpdateRouteRequest;
16
- exports.marshalUpdateVPCRequest = marshalling_gen.marshalUpdateVPCRequest;
17
- exports.unmarshalAclRule = marshalling_gen.unmarshalAclRule;
18
- exports.unmarshalAddSubnetsResponse = marshalling_gen.unmarshalAddSubnetsResponse;
19
- exports.unmarshalDeleteSubnetsResponse = marshalling_gen.unmarshalDeleteSubnetsResponse;
20
- exports.unmarshalGetAclResponse = marshalling_gen.unmarshalGetAclResponse;
21
- exports.unmarshalListPrivateNetworksResponse = marshalling_gen.unmarshalListPrivateNetworksResponse;
22
- exports.unmarshalListSubnetsResponse = marshalling_gen.unmarshalListSubnetsResponse;
23
- exports.unmarshalListVPCsResponse = marshalling_gen.unmarshalListVPCsResponse;
24
- exports.unmarshalPrivateNetwork = marshalling_gen.unmarshalPrivateNetwork;
25
- exports.unmarshalRoute = marshalling_gen.unmarshalRoute;
26
- exports.unmarshalSetAclResponse = marshalling_gen.unmarshalSetAclResponse;
27
- exports.unmarshalVPC = marshalling_gen.unmarshalVPC;
28
- exports.ValidationRules = validationRules_gen;
@@ -1,259 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const randomName = require("@scaleway/random-name");
4
- const sdkClient = require("@scaleway/sdk-client");
5
- const unmarshalSubnet = (data) => {
6
- if (!sdkClient.isJSONObject(data)) {
7
- throw new TypeError(
8
- `Unmarshalling the type 'Subnet' failed as data isn't a dictionary.`
9
- );
10
- }
11
- return {
12
- createdAt: sdkClient.unmarshalDate(data.created_at),
13
- id: data.id,
14
- privateNetworkId: data.private_network_id,
15
- projectId: data.project_id,
16
- subnet: data.subnet,
17
- updatedAt: sdkClient.unmarshalDate(data.updated_at),
18
- vpcId: data.vpc_id
19
- };
20
- };
21
- const unmarshalPrivateNetwork = (data) => {
22
- if (!sdkClient.isJSONObject(data)) {
23
- throw new TypeError(
24
- `Unmarshalling the type 'PrivateNetwork' failed as data isn't a dictionary.`
25
- );
26
- }
27
- return {
28
- createdAt: sdkClient.unmarshalDate(data.created_at),
29
- defaultRoutePropagationEnabled: data.default_route_propagation_enabled,
30
- dhcpEnabled: data.dhcp_enabled,
31
- id: data.id,
32
- name: data.name,
33
- organizationId: data.organization_id,
34
- projectId: data.project_id,
35
- region: data.region,
36
- subnets: sdkClient.unmarshalArrayOfObject(data.subnets, unmarshalSubnet),
37
- tags: data.tags,
38
- updatedAt: sdkClient.unmarshalDate(data.updated_at),
39
- vpcId: data.vpc_id
40
- };
41
- };
42
- const unmarshalRoute = (data) => {
43
- if (!sdkClient.isJSONObject(data)) {
44
- throw new TypeError(
45
- `Unmarshalling the type 'Route' failed as data isn't a dictionary.`
46
- );
47
- }
48
- return {
49
- createdAt: sdkClient.unmarshalDate(data.created_at),
50
- description: data.description,
51
- destination: data.destination,
52
- id: data.id,
53
- isReadOnly: data.is_read_only,
54
- nexthopPrivateNetworkId: data.nexthop_private_network_id,
55
- nexthopResourceId: data.nexthop_resource_id,
56
- region: data.region,
57
- tags: data.tags,
58
- updatedAt: sdkClient.unmarshalDate(data.updated_at),
59
- vpcId: data.vpc_id
60
- };
61
- };
62
- const unmarshalVPC = (data) => {
63
- if (!sdkClient.isJSONObject(data)) {
64
- throw new TypeError(
65
- `Unmarshalling the type 'VPC' failed as data isn't a dictionary.`
66
- );
67
- }
68
- return {
69
- createdAt: sdkClient.unmarshalDate(data.created_at),
70
- customRoutesPropagationEnabled: data.custom_routes_propagation_enabled,
71
- id: data.id,
72
- isDefault: data.is_default,
73
- name: data.name,
74
- organizationId: data.organization_id,
75
- privateNetworkCount: data.private_network_count,
76
- projectId: data.project_id,
77
- region: data.region,
78
- routingEnabled: data.routing_enabled,
79
- tags: data.tags,
80
- updatedAt: sdkClient.unmarshalDate(data.updated_at)
81
- };
82
- };
83
- const unmarshalAddSubnetsResponse = (data) => {
84
- if (!sdkClient.isJSONObject(data)) {
85
- throw new TypeError(
86
- `Unmarshalling the type 'AddSubnetsResponse' failed as data isn't a dictionary.`
87
- );
88
- }
89
- return {
90
- subnets: data.subnets
91
- };
92
- };
93
- const unmarshalDeleteSubnetsResponse = (data) => {
94
- if (!sdkClient.isJSONObject(data)) {
95
- throw new TypeError(
96
- `Unmarshalling the type 'DeleteSubnetsResponse' failed as data isn't a dictionary.`
97
- );
98
- }
99
- return {
100
- subnets: data.subnets
101
- };
102
- };
103
- const unmarshalAclRule = (data) => {
104
- if (!sdkClient.isJSONObject(data)) {
105
- throw new TypeError(
106
- `Unmarshalling the type 'AclRule' failed as data isn't a dictionary.`
107
- );
108
- }
109
- return {
110
- action: data.action,
111
- description: data.description,
112
- destination: data.destination,
113
- dstPortHigh: data.dst_port_high,
114
- dstPortLow: data.dst_port_low,
115
- protocol: data.protocol,
116
- source: data.source,
117
- srcPortHigh: data.src_port_high,
118
- srcPortLow: data.src_port_low
119
- };
120
- };
121
- const unmarshalGetAclResponse = (data) => {
122
- if (!sdkClient.isJSONObject(data)) {
123
- throw new TypeError(
124
- `Unmarshalling the type 'GetAclResponse' failed as data isn't a dictionary.`
125
- );
126
- }
127
- return {
128
- defaultPolicy: data.default_policy,
129
- rules: sdkClient.unmarshalArrayOfObject(data.rules, unmarshalAclRule)
130
- };
131
- };
132
- const unmarshalListPrivateNetworksResponse = (data) => {
133
- if (!sdkClient.isJSONObject(data)) {
134
- throw new TypeError(
135
- `Unmarshalling the type 'ListPrivateNetworksResponse' failed as data isn't a dictionary.`
136
- );
137
- }
138
- return {
139
- privateNetworks: sdkClient.unmarshalArrayOfObject(
140
- data.private_networks,
141
- unmarshalPrivateNetwork
142
- ),
143
- totalCount: data.total_count
144
- };
145
- };
146
- const unmarshalListSubnetsResponse = (data) => {
147
- if (!sdkClient.isJSONObject(data)) {
148
- throw new TypeError(
149
- `Unmarshalling the type 'ListSubnetsResponse' failed as data isn't a dictionary.`
150
- );
151
- }
152
- return {
153
- subnets: sdkClient.unmarshalArrayOfObject(data.subnets, unmarshalSubnet),
154
- totalCount: data.total_count
155
- };
156
- };
157
- const unmarshalListVPCsResponse = (data) => {
158
- if (!sdkClient.isJSONObject(data)) {
159
- throw new TypeError(
160
- `Unmarshalling the type 'ListVPCsResponse' failed as data isn't a dictionary.`
161
- );
162
- }
163
- return {
164
- totalCount: data.total_count,
165
- vpcs: sdkClient.unmarshalArrayOfObject(data.vpcs, unmarshalVPC)
166
- };
167
- };
168
- const unmarshalSetAclResponse = (data) => {
169
- if (!sdkClient.isJSONObject(data)) {
170
- throw new TypeError(
171
- `Unmarshalling the type 'SetAclResponse' failed as data isn't a dictionary.`
172
- );
173
- }
174
- return {
175
- defaultPolicy: data.default_policy,
176
- rules: sdkClient.unmarshalArrayOfObject(data.rules, unmarshalAclRule)
177
- };
178
- };
179
- const marshalAddSubnetsRequest = (request, defaults) => ({
180
- subnets: request.subnets
181
- });
182
- const marshalCreatePrivateNetworkRequest = (request, defaults) => ({
183
- default_route_propagation_enabled: request.defaultRoutePropagationEnabled,
184
- name: request.name || randomName("pn"),
185
- project_id: request.projectId ?? defaults.defaultProjectId,
186
- subnets: request.subnets,
187
- tags: request.tags,
188
- vpc_id: request.vpcId
189
- });
190
- const marshalCreateRouteRequest = (request, defaults) => ({
191
- description: request.description,
192
- destination: request.destination,
193
- nexthop_private_network_id: request.nexthopPrivateNetworkId,
194
- nexthop_resource_id: request.nexthopResourceId,
195
- tags: request.tags,
196
- vpc_id: request.vpcId
197
- });
198
- const marshalCreateVPCRequest = (request, defaults) => ({
199
- enable_routing: request.enableRouting,
200
- name: request.name || randomName("vpc"),
201
- project_id: request.projectId ?? defaults.defaultProjectId,
202
- tags: request.tags
203
- });
204
- const marshalDeleteSubnetsRequest = (request, defaults) => ({
205
- subnets: request.subnets
206
- });
207
- const marshalAclRule = (request, defaults) => ({
208
- action: request.action,
209
- description: request.description,
210
- destination: request.destination,
211
- dst_port_high: request.dstPortHigh,
212
- dst_port_low: request.dstPortLow,
213
- protocol: request.protocol,
214
- source: request.source,
215
- src_port_high: request.srcPortHigh,
216
- src_port_low: request.srcPortLow
217
- });
218
- const marshalSetAclRequest = (request, defaults) => ({
219
- default_policy: request.defaultPolicy,
220
- is_ipv6: request.isIpv6,
221
- rules: request.rules.map((elt) => marshalAclRule(elt))
222
- });
223
- const marshalUpdatePrivateNetworkRequest = (request, defaults) => ({
224
- default_route_propagation_enabled: request.defaultRoutePropagationEnabled,
225
- name: request.name,
226
- tags: request.tags
227
- });
228
- const marshalUpdateRouteRequest = (request, defaults) => ({
229
- description: request.description,
230
- destination: request.destination,
231
- nexthop_private_network_id: request.nexthopPrivateNetworkId,
232
- nexthop_resource_id: request.nexthopResourceId,
233
- tags: request.tags
234
- });
235
- const marshalUpdateVPCRequest = (request, defaults) => ({
236
- name: request.name,
237
- tags: request.tags
238
- });
239
- exports.marshalAclRule = marshalAclRule;
240
- exports.marshalAddSubnetsRequest = marshalAddSubnetsRequest;
241
- exports.marshalCreatePrivateNetworkRequest = marshalCreatePrivateNetworkRequest;
242
- exports.marshalCreateRouteRequest = marshalCreateRouteRequest;
243
- exports.marshalCreateVPCRequest = marshalCreateVPCRequest;
244
- exports.marshalDeleteSubnetsRequest = marshalDeleteSubnetsRequest;
245
- exports.marshalSetAclRequest = marshalSetAclRequest;
246
- exports.marshalUpdatePrivateNetworkRequest = marshalUpdatePrivateNetworkRequest;
247
- exports.marshalUpdateRouteRequest = marshalUpdateRouteRequest;
248
- exports.marshalUpdateVPCRequest = marshalUpdateVPCRequest;
249
- exports.unmarshalAclRule = unmarshalAclRule;
250
- exports.unmarshalAddSubnetsResponse = unmarshalAddSubnetsResponse;
251
- exports.unmarshalDeleteSubnetsResponse = unmarshalDeleteSubnetsResponse;
252
- exports.unmarshalGetAclResponse = unmarshalGetAclResponse;
253
- exports.unmarshalListPrivateNetworksResponse = unmarshalListPrivateNetworksResponse;
254
- exports.unmarshalListSubnetsResponse = unmarshalListSubnetsResponse;
255
- exports.unmarshalListVPCsResponse = unmarshalListVPCsResponse;
256
- exports.unmarshalPrivateNetwork = unmarshalPrivateNetwork;
257
- exports.unmarshalRoute = unmarshalRoute;
258
- exports.unmarshalSetAclResponse = unmarshalSetAclResponse;
259
- exports.unmarshalVPC = unmarshalVPC;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
3
- const AclRule = {
4
- description: {
5
- maxLength: 200
6
- },
7
- dstPortHigh: {
8
- lessThanOrEqual: 65536
9
- },
10
- dstPortLow: {
11
- lessThanOrEqual: 65536
12
- },
13
- srcPortHigh: {
14
- lessThanOrEqual: 65536
15
- },
16
- srcPortLow: {
17
- lessThanOrEqual: 65536
18
- }
19
- };
20
- const Route = {
21
- description: {
22
- maxLength: 200
23
- }
24
- };
25
- exports.AclRule = AclRule;
26
- exports.Route = Route;