@scaleway/sdk 2.21.1 → 2.23.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.
@@ -173,6 +173,20 @@ class API extends API$1 {
173
173
  path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/private-networks/${validatePathParam('privateNetworkId', request.privateNetworkId)}/enable-dhcp`
174
174
  }, unmarshalPrivateNetwork);
175
175
 
176
+ /**
177
+ * Enable routing on a VPC. Enable routing on an existing VPC. Note that you
178
+ * will not be able to deactivate it afterwards.
179
+ *
180
+ * @param request - The request {@link EnableRoutingRequest}
181
+ * @returns A Promise of VPC
182
+ */
183
+ enableRouting = request => this.client.fetch({
184
+ body: '{}',
185
+ headers: jsonContentHeaders,
186
+ method: 'POST',
187
+ path: `/vpc/v2/regions/${validatePathParam('region', request.region ?? this.client.settings.defaultRegion)}/vpcs/${validatePathParam('vpcId', request.vpcId)}/enable-routing`
188
+ }, unmarshalVPC);
189
+
176
190
  /**
177
191
  * Set the subnets of a Private Network. Set subnets for an existing Private
178
192
  * Network. Note that the method is PUT and not PATCH. Any existing subnets