Skip to content

Commit dfab7da

Browse files
authored
feat(vpc/v2): allow setting PN name on VPC creation (#693)
1 parent d49a63e commit dfab7da

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

packages/clients/src/api/vpc/v2/api.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export class API extends ParentAPI {
9797
* @param request - The request {@link CreateVPCRequest}
9898
* @returns A Promise of VPC
9999
*/
100-
createVPC = (request: Readonly<CreateVPCRequest> = {}) =>
100+
createVPC = (request: Readonly<CreateVPCRequest>) =>
101101
this.client.fetch<VPC>(
102102
{
103103
body: JSON.stringify(

packages/clients/src/api/vpc/v2/marshalling.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export const marshalCreateVPCRequest = (
165165
request: CreateVPCRequest,
166166
defaults: DefaultValues,
167167
): Record<string, unknown> => ({
168+
default_private_network_name: request.defaultPrivateNetworkName,
168169
name: request.name || randomName('vpc'),
169170
project_id: request.projectId ?? defaults.defaultProjectId,
170171
tags: request.tags,

packages/clients/src/api/vpc/v2/types.gen.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,8 @@ export type CreateVPCRequest = {
143143
region?: Region
144144
/** Name for the VPC. */
145145
name?: string
146+
/** Name for the VPC's associated default Private Network. */
147+
defaultPrivateNetworkName: string
146148
/** Scaleway Project in which to create the VPC. */
147149
projectId?: string
148150
/** Tags for the VPC. */

0 commit comments

Comments
 (0)