Skip to content

Commit 034aec0

Browse files
authored
feat(instances): add ip_ids for privatenic request message (#231)
1 parent a2fc317 commit 034aec0

File tree

6 files changed

+18
-0
lines changed

6 files changed

+18
-0
lines changed

scaleway-async/scaleway_async/instance/v1/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3343,13 +3343,15 @@ async def create_private_nic(
33433343
private_network_id: str,
33443344
zone: Optional[Zone] = None,
33453345
tags: Optional[List[str]] = None,
3346+
ip_ids: Optional[List[str]] = None,
33463347
) -> CreatePrivateNICResponse:
33473348
"""
33483349
Create a private NIC connecting an Instance to a Private Network.
33493350
:param zone: Zone to target. If none is passed will use default zone from the config.
33503351
:param server_id: UUID of the Instance the private NIC will be attached to.
33513352
:param private_network_id: UUID of the private network where the private NIC will be attached.
33523353
:param tags: Private NIC tags.
3354+
:param ip_ids: Ip_ids defined from IPAM.
33533355
:return: :class:`CreatePrivateNICResponse <CreatePrivateNICResponse>`
33543356
33553357
Usage:
@@ -3373,6 +3375,7 @@ async def create_private_nic(
33733375
private_network_id=private_network_id,
33743376
zone=zone,
33753377
tags=tags,
3378+
ip_ids=ip_ids,
33763379
),
33773380
self.client,
33783381
),

scaleway-async/scaleway_async/instance/v1/marshalling.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,6 +2450,7 @@ def marshal_CreatePrivateNICRequest(
24502450
defaults: ProfileDefaults,
24512451
) -> Dict[str, Any]:
24522452
return {
2453+
"ip_ids": request.ip_ids,
24532454
"private_network_id": request.private_network_id,
24542455
"tags": request.tags,
24552456
}

scaleway-async/scaleway_async/instance/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3159,6 +3159,11 @@ class CreatePrivateNICRequest:
31593159
Private NIC tags.
31603160
"""
31613161

3162+
ip_ids: Optional[List[str]]
3163+
"""
3164+
Ip_ids defined from IPAM.
3165+
"""
3166+
31623167

31633168
@dataclass
31643169
class GetPrivateNICRequest:

scaleway/scaleway/instance/v1/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3343,13 +3343,15 @@ def create_private_nic(
33433343
private_network_id: str,
33443344
zone: Optional[Zone] = None,
33453345
tags: Optional[List[str]] = None,
3346+
ip_ids: Optional[List[str]] = None,
33463347
) -> CreatePrivateNICResponse:
33473348
"""
33483349
Create a private NIC connecting an Instance to a Private Network.
33493350
:param zone: Zone to target. If none is passed will use default zone from the config.
33503351
:param server_id: UUID of the Instance the private NIC will be attached to.
33513352
:param private_network_id: UUID of the private network where the private NIC will be attached.
33523353
:param tags: Private NIC tags.
3354+
:param ip_ids: Ip_ids defined from IPAM.
33533355
:return: :class:`CreatePrivateNICResponse <CreatePrivateNICResponse>`
33543356
33553357
Usage:
@@ -3373,6 +3375,7 @@ def create_private_nic(
33733375
private_network_id=private_network_id,
33743376
zone=zone,
33753377
tags=tags,
3378+
ip_ids=ip_ids,
33763379
),
33773380
self.client,
33783381
),

scaleway/scaleway/instance/v1/marshalling.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2450,6 +2450,7 @@ def marshal_CreatePrivateNICRequest(
24502450
defaults: ProfileDefaults,
24512451
) -> Dict[str, Any]:
24522452
return {
2453+
"ip_ids": request.ip_ids,
24532454
"private_network_id": request.private_network_id,
24542455
"tags": request.tags,
24552456
}

scaleway/scaleway/instance/v1/types.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3159,6 +3159,11 @@ class CreatePrivateNICRequest:
31593159
Private NIC tags.
31603160
"""
31613161

3162+
ip_ids: Optional[List[str]]
3163+
"""
3164+
Ip_ids defined from IPAM.
3165+
"""
3166+
31623167

31633168
@dataclass
31643169
class GetPrivateNICRequest:

0 commit comments

Comments
 (0)