File tree Expand file tree Collapse file tree 3 files changed +1
-4
lines changed
packages/clients/src/api/vpc/v2 Expand file tree Collapse file tree 3 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export class API extends ParentAPI {
98
98
* @param request - The request {@link CreateVPCRequest}
99
99
* @returns A Promise of VPC
100
100
*/
101
- createVPC = ( request : Readonly < CreateVPCRequest > ) =>
101
+ createVPC = ( request : Readonly < CreateVPCRequest > = { } ) =>
102
102
this . client . fetch < VPC > (
103
103
{
104
104
body : JSON . stringify (
Original file line number Diff line number Diff line change @@ -166,7 +166,6 @@ export const marshalCreateVPCRequest = (
166
166
request : CreateVPCRequest ,
167
167
defaults : DefaultValues ,
168
168
) : Record < string , unknown > => ( {
169
- default_private_network_name : request . defaultPrivateNetworkName ,
170
169
name : request . name || randomName ( 'vpc' ) ,
171
170
project_id : request . projectId ?? defaults . defaultProjectId ,
172
171
tags : request . tags ,
Original file line number Diff line number Diff line change @@ -145,8 +145,6 @@ export type CreateVPCRequest = {
145
145
region ?: Region
146
146
/** Name for the VPC. */
147
147
name ?: string
148
- /** Name for the VPC's associated default Private Network. */
149
- defaultPrivateNetworkName : string
150
148
/** Scaleway Project in which to create the VPC. */
151
149
projectId ?: string
152
150
/** Tags for the VPC. */
You can’t perform that action at this time.
0 commit comments