@scaleway/sdk 1.14.0 → 1.15.0

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.
Files changed (49) hide show
  1. package/dist/api/account/v2/api.gen.js +77 -60
  2. package/dist/api/applesilicon/v1alpha1/api.gen.js +174 -152
  3. package/dist/api/baremetal/v1/api.gen.js +434 -378
  4. package/dist/api/baremetal/v1/api.utils.js +19 -22
  5. package/dist/api/billing/v2alpha1/api.gen.js +21 -17
  6. package/dist/api/cockpit/v1beta1/api.gen.js +308 -232
  7. package/dist/api/container/v1beta1/api.gen.js +384 -337
  8. package/dist/api/domain/v2beta1/api.gen.js +754 -668
  9. package/dist/api/flexibleip/v1alpha1/api.gen.js +164 -151
  10. package/dist/api/function/v1beta1/api.gen.js +467 -407
  11. package/dist/api/iam/v1alpha1/api.gen.js +641 -557
  12. package/dist/api/instance/v1/api.gen.js +802 -677
  13. package/dist/api/instance/v1/api.utils.js +337 -325
  14. package/dist/api/instance/v1/marshalling.gen.js +2 -1
  15. package/dist/api/iot/v1/api.gen.js +508 -452
  16. package/dist/api/ipfs/index.js +2 -0
  17. package/dist/api/ipfs/v1alpha1/api.gen.js +197 -0
  18. package/dist/api/ipfs/v1alpha1/content.gen.js +7 -0
  19. package/dist/api/ipfs/v1alpha1/index.gen.js +5 -0
  20. package/dist/api/ipfs/v1alpha1/marshalling.gen.js +125 -0
  21. package/dist/api/k8s/v1/api.gen.js +403 -342
  22. package/dist/api/k8s/v1/api.utils.js +7 -10
  23. package/dist/api/k8s/v1/marshalling.gen.js +19 -1
  24. package/dist/api/k8s/v1/validation-rules.gen.js +10 -1
  25. package/dist/api/lb/v1/api.gen.js +1501 -1363
  26. package/dist/api/lb/v1/api.utils.js +71 -75
  27. package/dist/api/lb/v1/marshalling.gen.js +6 -0
  28. package/dist/api/marketplace/v1/api.gen.js +35 -32
  29. package/dist/api/marketplace/v2/api.gen.js +117 -102
  30. package/dist/api/mnq/v1alpha1/api.gen.js +154 -137
  31. package/dist/api/rdb/v1/api.gen.js +897 -819
  32. package/dist/api/redis/v1/api.gen.js +358 -333
  33. package/dist/api/registry/v1/api.gen.js +211 -189
  34. package/dist/api/secret/v1alpha1/api.gen.js +265 -245
  35. package/dist/api/tem/v1alpha1/api.gen.js +182 -147
  36. package/dist/api/tem/v1alpha1/marshalling.gen.js +32 -1
  37. package/dist/api/test/v1/api.gen.js +116 -104
  38. package/dist/api/vpc/v1/api.gen.js +74 -65
  39. package/dist/api/vpc/v2/api.gen.js +200 -178
  40. package/dist/api/vpc/v2/marshalling.gen.js +1 -0
  41. package/dist/api/vpcgw/v1/api.gen.js +575 -501
  42. package/dist/api/webhosting/v1alpha1/api.gen.js +127 -117
  43. package/dist/index.cjs +732 -311
  44. package/dist/index.d.ts +2040 -1540
  45. package/dist/index.js +28 -26
  46. package/dist/internal/logger/console-logger.js +4 -5
  47. package/dist/scw/constants.js +1 -1
  48. package/dist/scw/errors/scw-error.js +2 -2
  49. package/package.json +2 -2
@@ -11,11 +11,11 @@ const jsonContentHeaders = {
11
11
 
12
12
  /** VPC API. */
13
13
  class API extends API$1 {
14
- constructor() {
15
- var _this;
16
- super(...arguments);
17
- _this = this;
18
- this.pageOfListVPCs = function (request) {
14
+ /** Lists the available regions of the API. */
15
+ static LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
16
+ pageOfListVPCs = (() => {
17
+ var _this = this;
18
+ return function (request) {
19
19
  if (request === void 0) {
20
20
  request = {};
21
21
  }
@@ -25,207 +25,229 @@ class API extends API$1 {
25
25
  urlParams: urlParams(['is_default', request.isDefault], ['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['project_id', request.projectId], ['tags', request.tags])
26
26
  }, unmarshalListVPCsResponse);
27
27
  };
28
- /**
29
- * List VPCs. List existing VPCs in the specified region.
30
- *
31
- * @param request - The request {@link ListVPCsRequest}
32
- * @returns A Promise of ListVPCsResponse
33
- */
34
- this.listVPCs = function (request) {
35
- if (request === void 0) {
36
- request = {};
37
- }
38
- return enrichForPagination('vpcs', _this.pageOfListVPCs, request);
39
- };
40
- /**
41
- * Create a VPC. Create a new VPC in the specified region.
42
- *
43
- * @param request - The request {@link CreateVPCRequest}
44
- * @returns A Promise of VPC
45
- */
46
- this.createVPC = function (request) {
28
+ })();
29
+
30
+ /**
31
+ * List VPCs. List existing VPCs in the specified region.
32
+ *
33
+ * @param request - The request {@link ListVPCsRequest}
34
+ * @returns A Promise of ListVPCsResponse
35
+ */
36
+ listVPCs = (() => {
37
+ var _this2 = this;
38
+ return function (request) {
47
39
  if (request === void 0) {
48
40
  request = {};
49
41
  }
50
- return _this.client.fetch({
51
- body: JSON.stringify(marshalCreateVPCRequest(request, _this.client.settings)),
52
- headers: jsonContentHeaders,
53
- method: 'POST',
54
- path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/vpcs`
55
- }, unmarshalVPC);
42
+ return enrichForPagination('vpcs', _this2.pageOfListVPCs, request);
56
43
  };
57
- /**
58
- * Get a VPC. Retrieve details of an existing VPC, specified by its VPC ID.
59
- *
60
- * @param request - The request {@link GetVPCRequest}
61
- * @returns A Promise of VPC
62
- */
63
- this.getVPC = request => this.client.fetch({
64
- method: 'GET',
65
- path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/vpcs/${validatePathParam('vpcId', request.vpcId)}`
66
- }, unmarshalVPC);
67
- /**
68
- * Update VPC. Update parameters including name and tags of the specified VPC.
69
- *
70
- * @param request - The request {@link UpdateVPCRequest}
71
- * @returns A Promise of VPC
72
- */
73
- this.updateVPC = request => this.client.fetch({
74
- body: JSON.stringify(marshalUpdateVPCRequest(request, this.client.settings)),
75
- headers: jsonContentHeaders,
76
- method: 'PATCH',
77
- path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/vpcs/${validatePathParam('vpcId', request.vpcId)}`
78
- }, unmarshalVPC);
79
- /**
80
- * Delete a VPC. Delete a VPC specified by its VPC ID.
81
- *
82
- * @param request - The request {@link DeleteVPCRequest}
83
- */
84
- this.deleteVPC = request => this.client.fetch({
85
- method: 'DELETE',
86
- path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/vpcs/${validatePathParam('vpcId', request.vpcId)}`
87
- });
88
- this.pageOfListPrivateNetworks = function (request) {
44
+ })();
45
+
46
+ /**
47
+ * Create a VPC. Create a new VPC in the specified region.
48
+ *
49
+ * @param request - The request {@link CreateVPCRequest}
50
+ * @returns A Promise of VPC
51
+ */
52
+ createVPC = request => this.client.fetch({
53
+ body: JSON.stringify(marshalCreateVPCRequest(request, this.client.settings)),
54
+ headers: jsonContentHeaders,
55
+ method: 'POST',
56
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/vpcs`
57
+ }, unmarshalVPC);
58
+
59
+ /**
60
+ * Get a VPC. Retrieve details of an existing VPC, specified by its VPC ID.
61
+ *
62
+ * @param request - The request {@link GetVPCRequest}
63
+ * @returns A Promise of VPC
64
+ */
65
+ getVPC = request => this.client.fetch({
66
+ method: 'GET',
67
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/vpcs/${validatePathParam('vpcId', request.vpcId)}`
68
+ }, unmarshalVPC);
69
+
70
+ /**
71
+ * Update VPC. Update parameters including name and tags of the specified VPC.
72
+ *
73
+ * @param request - The request {@link UpdateVPCRequest}
74
+ * @returns A Promise of VPC
75
+ */
76
+ updateVPC = request => this.client.fetch({
77
+ body: JSON.stringify(marshalUpdateVPCRequest(request, this.client.settings)),
78
+ headers: jsonContentHeaders,
79
+ method: 'PATCH',
80
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/vpcs/${validatePathParam('vpcId', request.vpcId)}`
81
+ }, unmarshalVPC);
82
+
83
+ /**
84
+ * Delete a VPC. Delete a VPC specified by its VPC ID.
85
+ *
86
+ * @param request - The request {@link DeleteVPCRequest}
87
+ */
88
+ deleteVPC = request => this.client.fetch({
89
+ method: 'DELETE',
90
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/vpcs/${validatePathParam('vpcId', request.vpcId)}`
91
+ });
92
+ pageOfListPrivateNetworks = (() => {
93
+ var _this3 = this;
94
+ return function (request) {
89
95
  if (request === void 0) {
90
96
  request = {};
91
97
  }
92
- return _this.client.fetch({
98
+ return _this3.client.fetch({
93
99
  method: 'GET',
94
- path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/private-networks`,
95
- urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this.client.settings.defaultPageSize], ['private_network_ids', request.privateNetworkIds], ['project_id', request.projectId], ['tags', request.tags], ['vpc_id', request.vpcId])
100
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? _this3.client.settings.defaultRegion)}/private-networks`,
101
+ urlParams: urlParams(['name', request.name], ['order_by', request.orderBy ?? 'created_at_asc'], ['organization_id', request.organizationId], ['page', request.page], ['page_size', request.pageSize ?? _this3.client.settings.defaultPageSize], ['private_network_ids', request.privateNetworkIds], ['project_id', request.projectId], ['tags', request.tags], ['vpc_id', request.vpcId])
96
102
  }, unmarshalListPrivateNetworksResponse);
97
103
  };
98
- /**
99
- * List Private Networks. List existing Private Networks in the specified
100
- * region. By default, the Private Networks returned in the list are ordered
101
- * by creation date in ascending order, though this can be modified via the
102
- * order_by field.
103
- *
104
- * @param request - The request {@link ListPrivateNetworksRequest}
105
- * @returns A Promise of ListPrivateNetworksResponse
106
- */
107
- this.listPrivateNetworks = function (request) {
104
+ })();
105
+
106
+ /**
107
+ * List Private Networks. List existing Private Networks in the specified
108
+ * region. By default, the Private Networks returned in the list are ordered
109
+ * by creation date in ascending order, though this can be modified via the
110
+ * order_by field.
111
+ *
112
+ * @param request - The request {@link ListPrivateNetworksRequest}
113
+ * @returns A Promise of ListPrivateNetworksResponse
114
+ */
115
+ listPrivateNetworks = (() => {
116
+ var _this4 = this;
117
+ return function (request) {
108
118
  if (request === void 0) {
109
119
  request = {};
110
120
  }
111
- return enrichForPagination('privateNetworks', _this.pageOfListPrivateNetworks, request);
121
+ return enrichForPagination('privateNetworks', _this4.pageOfListPrivateNetworks, request);
112
122
  };
113
- /**
114
- * Create a Private Network. Create a new Private Network. Once created, you
115
- * can attach Scaleway resources which are in the same region.
116
- *
117
- * @param request - The request {@link CreatePrivateNetworkRequest}
118
- * @returns A Promise of PrivateNetwork
119
- */
120
- this.createPrivateNetwork = function (request) {
123
+ })();
124
+
125
+ /**
126
+ * Create a Private Network. Create a new Private Network. Once created, you
127
+ * can attach Scaleway resources which are in the same region.
128
+ *
129
+ * @param request - The request {@link CreatePrivateNetworkRequest}
130
+ * @returns A Promise of PrivateNetwork
131
+ */
132
+ createPrivateNetwork = (() => {
133
+ var _this5 = this;
134
+ return function (request) {
121
135
  if (request === void 0) {
122
136
  request = {};
123
137
  }
124
- return _this.client.fetch({
125
- body: JSON.stringify(marshalCreatePrivateNetworkRequest(request, _this.client.settings)),
138
+ return _this5.client.fetch({
139
+ body: JSON.stringify(marshalCreatePrivateNetworkRequest(request, _this5.client.settings)),
126
140
  headers: jsonContentHeaders,
127
141
  method: 'POST',
128
- path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/private-networks`
142
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? _this5.client.settings.defaultRegion)}/private-networks`
129
143
  }, unmarshalPrivateNetwork);
130
144
  };
131
- /**
132
- * Get a Private Network. Retrieve information about an existing Private
133
- * Network, specified by its Private Network ID. Its full details are returned
134
- * in the response object.
135
- *
136
- * @param request - The request {@link GetPrivateNetworkRequest}
137
- * @returns A Promise of PrivateNetwork
138
- */
139
- this.getPrivateNetwork = request => this.client.fetch({
140
- method: 'GET',
141
- path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}`
142
- }, unmarshalPrivateNetwork);
143
- /**
144
- * Update Private Network. Update parameters (such as name or tags) of an
145
- * existing Private Network, specified by its Private Network ID.
146
- *
147
- * @param request - The request {@link UpdatePrivateNetworkRequest}
148
- * @returns A Promise of PrivateNetwork
149
- */
150
- this.updatePrivateNetwork = request => this.client.fetch({
151
- body: JSON.stringify(marshalUpdatePrivateNetworkRequest(request, this.client.settings)),
152
- headers: jsonContentHeaders,
153
- method: 'PATCH',
154
- path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}`
155
- }, unmarshalPrivateNetwork);
156
- /**
157
- * Delete a Private Network. Delete an existing Private Network. Note that you
158
- * must first detach all resources from the network, in order to delete it.
159
- *
160
- * @param request - The request {@link DeletePrivateNetworkRequest}
161
- */
162
- this.deletePrivateNetwork = request => this.client.fetch({
163
- method: 'DELETE',
164
- path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}`
165
- });
166
- /**
167
- * Migrate Private Networks from zoned to regional. Transform multiple
168
- * existing zoned Private Networks (scoped to a single Availability Zone) into
169
- * regional Private Networks, scoped to an entire region. You can transform
170
- * one or many Private Networks (specified by their Private Network IDs)
171
- * within a single Scaleway Organization or Project, with the same call.
172
- *
173
- * @param request - The request {@link MigrateZonalPrivateNetworksRequest}
174
- */
175
- this.migrateZonalPrivateNetworks = function (request) {
145
+ })();
146
+
147
+ /**
148
+ * Get a Private Network. Retrieve information about an existing Private
149
+ * Network, specified by its Private Network ID. Its full details are returned
150
+ * in the response object.
151
+ *
152
+ * @param request - The request {@link GetPrivateNetworkRequest}
153
+ * @returns A Promise of PrivateNetwork
154
+ */
155
+ getPrivateNetwork = request => this.client.fetch({
156
+ method: 'GET',
157
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}`
158
+ }, unmarshalPrivateNetwork);
159
+
160
+ /**
161
+ * Update Private Network. Update parameters (such as name or tags) of an
162
+ * existing Private Network, specified by its Private Network ID.
163
+ *
164
+ * @param request - The request {@link UpdatePrivateNetworkRequest}
165
+ * @returns A Promise of PrivateNetwork
166
+ */
167
+ updatePrivateNetwork = request => this.client.fetch({
168
+ body: JSON.stringify(marshalUpdatePrivateNetworkRequest(request, this.client.settings)),
169
+ headers: jsonContentHeaders,
170
+ method: 'PATCH',
171
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}`
172
+ }, unmarshalPrivateNetwork);
173
+
174
+ /**
175
+ * Delete a Private Network. Delete an existing Private Network. Note that you
176
+ * must first detach all resources from the network, in order to delete it.
177
+ *
178
+ * @param request - The request {@link DeletePrivateNetworkRequest}
179
+ */
180
+ deletePrivateNetwork = request => this.client.fetch({
181
+ method: 'DELETE',
182
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}`
183
+ });
184
+
185
+ /**
186
+ * Migrate Private Networks from zoned to regional. Transform multiple
187
+ * existing zoned Private Networks (scoped to a single Availability Zone) into
188
+ * regional Private Networks, scoped to an entire region. You can transform
189
+ * one or many Private Networks (specified by their Private Network IDs)
190
+ * within a single Scaleway Organization or Project, with the same call.
191
+ *
192
+ * @param request - The request {@link MigrateZonalPrivateNetworksRequest}
193
+ */
194
+ migrateZonalPrivateNetworks = (() => {
195
+ var _this6 = this;
196
+ return function (request) {
176
197
  if (request === void 0) {
177
198
  request = {};
178
199
  }
179
- return _this.client.fetch({
180
- body: JSON.stringify(marshalMigrateZonalPrivateNetworksRequest(request, _this.client.settings)),
200
+ return _this6.client.fetch({
201
+ body: JSON.stringify(marshalMigrateZonalPrivateNetworksRequest(request, _this6.client.settings)),
181
202
  headers: jsonContentHeaders,
182
203
  method: 'POST',
183
- path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? _this.client.settings.defaultRegion)}/private-networks/migrate-zonal`
204
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? _this6.client.settings.defaultRegion)}/private-networks/migrate-zonal`
184
205
  });
185
206
  };
186
- /**
187
- * Set the subnets of a Private Network. Set subnets for an existing Private
188
- * Network. Note that the method is PUT and not PATCH. Any existing subnets
189
- * will be removed in favor of the new specified set of subnets.
190
- *
191
- * @param request - The request {@link SetSubnetsRequest}
192
- * @returns A Promise of SetSubnetsResponse
193
- */
194
- this.setSubnets = request => this.client.fetch({
195
- body: JSON.stringify(marshalSetSubnetsRequest(request, this.client.settings)),
196
- headers: jsonContentHeaders,
197
- method: 'PUT',
198
- path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/subnets`
199
- }, unmarshalSetSubnetsResponse);
200
- /**
201
- * Add subnets to a Private Network. Add new subnets to an existing Private
202
- * Network.
203
- *
204
- * @param request - The request {@link AddSubnetsRequest}
205
- * @returns A Promise of AddSubnetsResponse
206
- */
207
- this.addSubnets = request => this.client.fetch({
208
- body: JSON.stringify(marshalAddSubnetsRequest(request, this.client.settings)),
209
- headers: jsonContentHeaders,
210
- method: 'POST',
211
- path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/subnets`
212
- }, unmarshalAddSubnetsResponse);
213
- /**
214
- * Delete subnets from a Private Network. Delete the specified subnets from a
215
- * Private Network.
216
- *
217
- * @param request - The request {@link DeleteSubnetsRequest}
218
- * @returns A Promise of DeleteSubnetsResponse
219
- */
220
- this.deleteSubnets = request => this.client.fetch({
221
- body: JSON.stringify(marshalDeleteSubnetsRequest(request, this.client.settings)),
222
- headers: jsonContentHeaders,
223
- method: 'DELETE',
224
- path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/subnets`
225
- }, unmarshalDeleteSubnetsResponse);
226
- }
207
+ })();
208
+
209
+ /**
210
+ * Set the subnets of a Private Network. Set subnets for an existing Private
211
+ * Network. Note that the method is PUT and not PATCH. Any existing subnets
212
+ * will be removed in favor of the new specified set of subnets.
213
+ *
214
+ * @param request - The request {@link SetSubnetsRequest}
215
+ * @returns A Promise of SetSubnetsResponse
216
+ */
217
+ setSubnets = request => this.client.fetch({
218
+ body: JSON.stringify(marshalSetSubnetsRequest(request, this.client.settings)),
219
+ headers: jsonContentHeaders,
220
+ method: 'PUT',
221
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/subnets`
222
+ }, unmarshalSetSubnetsResponse);
223
+
224
+ /**
225
+ * Add subnets to a Private Network. Add new subnets to an existing Private
226
+ * Network.
227
+ *
228
+ * @param request - The request {@link AddSubnetsRequest}
229
+ * @returns A Promise of AddSubnetsResponse
230
+ */
231
+ addSubnets = request => this.client.fetch({
232
+ body: JSON.stringify(marshalAddSubnetsRequest(request, this.client.settings)),
233
+ headers: jsonContentHeaders,
234
+ method: 'POST',
235
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/subnets`
236
+ }, unmarshalAddSubnetsResponse);
237
+
238
+ /**
239
+ * Delete subnets from a Private Network. Delete the specified subnets from a
240
+ * Private Network.
241
+ *
242
+ * @param request - The request {@link DeleteSubnetsRequest}
243
+ * @returns A Promise of DeleteSubnetsResponse
244
+ */
245
+ deleteSubnets = request => this.client.fetch({
246
+ body: JSON.stringify(marshalDeleteSubnetsRequest(request, this.client.settings)),
247
+ headers: jsonContentHeaders,
248
+ method: 'DELETE',
249
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/subnets`
250
+ }, unmarshalDeleteSubnetsResponse);
227
251
  }
228
- /** Lists the available regions of the API. */
229
- API.LOCALITIES = ['fr-par', 'nl-ams', 'pl-waw'];
230
252
 
231
253
  export { API };
@@ -102,6 +102,7 @@ const marshalCreatePrivateNetworkRequest = (request, defaults) => ({
102
102
  vpc_id: request.vpcId
103
103
  });
104
104
  const marshalCreateVPCRequest = (request, defaults) => ({
105
+ default_private_network_name: request.defaultPrivateNetworkName,
105
106
  name: request.name || randomName('vpc'),
106
107
  project_id: request.projectId ?? defaults.defaultProjectId,
107
108
  tags: request.tags