Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions scaleway-async/scaleway_async/vpc/v2/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ async def list_vp_cs_all(
async def create_vpc(
self,
*,
default_private_network_name: str,
region: Optional[Region] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
Expand All @@ -177,15 +176,14 @@ async def create_vpc(
Create a new VPC in the specified region.
:param region: Region to target. If none is passed will use default region from the config.
:param name: Name for the VPC.
:param default_private_network_name: Name for the VPC's associated default Private Network.
:param project_id: Scaleway Project in which to create the VPC.
:param tags: Tags for the VPC.
:return: :class:`VPC <VPC>`

Usage:
::

result = await api.create_vpc(default_private_network_name="example")
result = await api.create_vpc()
"""

param_region = validate_path_param(
Expand All @@ -197,7 +195,6 @@ async def create_vpc(
f"/vpc/v2/regions/{param_region}/vpcs",
body=marshal_CreateVPCRequest(
CreateVPCRequest(
default_private_network_name=default_private_network_name,
region=region,
name=name or random_name(prefix="vpc"),
project_id=project_id,
Expand Down
1 change: 0 additions & 1 deletion scaleway-async/scaleway_async/vpc/v2/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ def marshal_CreateVPCRequest(
defaults: ProfileDefaults,
) -> Dict[str, Any]:
return {
"default_private_network_name": request.default_private_network_name,
"name": request.name,
"project_id": request.project_id or defaults.default_project_id,
"tags": request.tags,
Expand Down
5 changes: 0 additions & 5 deletions scaleway-async/scaleway_async/vpc/v2/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,6 @@ class CreateVPCRequest:
Name for the VPC.
"""

default_private_network_name: str
"""
Name for the VPC's associated default Private Network.
"""

project_id: Optional[str]
"""
Scaleway Project in which to create the VPC.
Expand Down
5 changes: 1 addition & 4 deletions scaleway/scaleway/vpc/v2/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,6 @@ def list_vp_cs_all(
def create_vpc(
self,
*,
default_private_network_name: str,
region: Optional[Region] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
Expand All @@ -177,15 +176,14 @@ def create_vpc(
Create a new VPC in the specified region.
:param region: Region to target. If none is passed will use default region from the config.
:param name: Name for the VPC.
:param default_private_network_name: Name for the VPC's associated default Private Network.
:param project_id: Scaleway Project in which to create the VPC.
:param tags: Tags for the VPC.
:return: :class:`VPC <VPC>`

Usage:
::

result = api.create_vpc(default_private_network_name="example")
result = api.create_vpc()
"""

param_region = validate_path_param(
Expand All @@ -197,7 +195,6 @@ def create_vpc(
f"/vpc/v2/regions/{param_region}/vpcs",
body=marshal_CreateVPCRequest(
CreateVPCRequest(
default_private_network_name=default_private_network_name,
region=region,
name=name or random_name(prefix="vpc"),
project_id=project_id,
Expand Down
1 change: 0 additions & 1 deletion scaleway/scaleway/vpc/v2/marshalling.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ def marshal_CreateVPCRequest(
defaults: ProfileDefaults,
) -> Dict[str, Any]:
return {
"default_private_network_name": request.default_private_network_name,
"name": request.name,
"project_id": request.project_id or defaults.default_project_id,
"tags": request.tags,
Expand Down
5 changes: 0 additions & 5 deletions scaleway/scaleway/vpc/v2/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,6 @@ class CreateVPCRequest:
Name for the VPC.
"""

default_private_network_name: str
"""
Name for the VPC's associated default Private Network.
"""

project_id: Optional[str]
"""
Scaleway Project in which to create the VPC.
Expand Down