Skip to content

Commit d094f3b

Browse files
authored
fix(vpc): remove Name for the VPC's associated default Private Network. (#250)
1 parent 79c7152 commit d094f3b

File tree

6 files changed

+2
-20
lines changed

6 files changed

+2
-20
lines changed

scaleway-async/scaleway_async/vpc/v2/api.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ async def list_vp_cs_all(
166166
async def create_vpc(
167167
self,
168168
*,
169-
default_private_network_name: str,
170169
region: Optional[Region] = None,
171170
name: Optional[str] = None,
172171
project_id: Optional[str] = None,
@@ -177,15 +176,14 @@ async def create_vpc(
177176
Create a new VPC in the specified region.
178177
:param region: Region to target. If none is passed will use default region from the config.
179178
:param name: Name for the VPC.
180-
:param default_private_network_name: Name for the VPC's associated default Private Network.
181179
:param project_id: Scaleway Project in which to create the VPC.
182180
:param tags: Tags for the VPC.
183181
:return: :class:`VPC <VPC>`
184182
185183
Usage:
186184
::
187185
188-
result = await api.create_vpc(default_private_network_name="example")
186+
result = await api.create_vpc()
189187
"""
190188

191189
param_region = validate_path_param(
@@ -197,7 +195,6 @@ async def create_vpc(
197195
f"/vpc/v2/regions/{param_region}/vpcs",
198196
body=marshal_CreateVPCRequest(
199197
CreateVPCRequest(
200-
default_private_network_name=default_private_network_name,
201198
region=region,
202199
name=name or random_name(prefix="vpc"),
203200
project_id=project_id,

scaleway-async/scaleway_async/vpc/v2/marshalling.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ def marshal_CreateVPCRequest(
244244
defaults: ProfileDefaults,
245245
) -> Dict[str, Any]:
246246
return {
247-
"default_private_network_name": request.default_private_network_name,
248247
"name": request.name,
249248
"project_id": request.project_id or defaults.default_project_id,
250249
"tags": request.tags,

scaleway-async/scaleway_async/vpc/v2/types.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,6 @@ class CreateVPCRequest:
267267
Name for the VPC.
268268
"""
269269

270-
default_private_network_name: str
271-
"""
272-
Name for the VPC's associated default Private Network.
273-
"""
274-
275270
project_id: Optional[str]
276271
"""
277272
Scaleway Project in which to create the VPC.

scaleway/scaleway/vpc/v2/api.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,6 @@ def list_vp_cs_all(
166166
def create_vpc(
167167
self,
168168
*,
169-
default_private_network_name: str,
170169
region: Optional[Region] = None,
171170
name: Optional[str] = None,
172171
project_id: Optional[str] = None,
@@ -177,15 +176,14 @@ def create_vpc(
177176
Create a new VPC in the specified region.
178177
:param region: Region to target. If none is passed will use default region from the config.
179178
:param name: Name for the VPC.
180-
:param default_private_network_name: Name for the VPC's associated default Private Network.
181179
:param project_id: Scaleway Project in which to create the VPC.
182180
:param tags: Tags for the VPC.
183181
:return: :class:`VPC <VPC>`
184182
185183
Usage:
186184
::
187185
188-
result = api.create_vpc(default_private_network_name="example")
186+
result = api.create_vpc()
189187
"""
190188

191189
param_region = validate_path_param(
@@ -197,7 +195,6 @@ def create_vpc(
197195
f"/vpc/v2/regions/{param_region}/vpcs",
198196
body=marshal_CreateVPCRequest(
199197
CreateVPCRequest(
200-
default_private_network_name=default_private_network_name,
201198
region=region,
202199
name=name or random_name(prefix="vpc"),
203200
project_id=project_id,

scaleway/scaleway/vpc/v2/marshalling.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ def marshal_CreateVPCRequest(
244244
defaults: ProfileDefaults,
245245
) -> Dict[str, Any]:
246246
return {
247-
"default_private_network_name": request.default_private_network_name,
248247
"name": request.name,
249248
"project_id": request.project_id or defaults.default_project_id,
250249
"tags": request.tags,

scaleway/scaleway/vpc/v2/types.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,6 @@ class CreateVPCRequest:
267267
Name for the VPC.
268268
"""
269269

270-
default_private_network_name: str
271-
"""
272-
Name for the VPC's associated default Private Network.
273-
"""
274-
275270
project_id: Optional[str]
276271
"""
277272
Scaleway Project in which to create the VPC.

0 commit comments

Comments
 (0)