Skip to content

Commit 8516a2b

Browse files
authored
feat(lb): generate ip_type for ListIpsRequest (#411)
1 parent 3e9e7a4 commit 8516a2b

File tree

4 files changed

+46
-0
lines changed

4 files changed

+46
-0
lines changed

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

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
ListBackendsRequestOrderBy,
2222
ListCertificatesRequestOrderBy,
2323
ListFrontendsRequestOrderBy,
24+
ListIpsRequestIpType,
2425
ListLbsRequestOrderBy,
2526
ListPrivateNetworksRequestOrderBy,
2627
ListRoutesRequestOrderBy,
@@ -586,6 +587,7 @@ async def list_i_ps(
586587
ip_address: Optional[str] = None,
587588
organization_id: Optional[str] = None,
588589
project_id: Optional[str] = None,
590+
ip_type: ListIpsRequestIpType = ListIpsRequestIpType.ALL,
589591
) -> ListIpsResponse:
590592
"""
591593
List IPs.
@@ -595,6 +597,7 @@ async def list_i_ps(
595597
:param ip_address: IP address to filter for.
596598
:param organization_id: Organization ID to filter for, only Load Balancer IP addresses from this Organization will be returned.
597599
:param project_id: Project ID to filter for, only Load Balancer IP addresses from this Project will be returned.
600+
:param ip_type: IP type to filter for.
598601
:return: :class:`ListIpsResponse <ListIpsResponse>`
599602
600603
Usage:
@@ -612,6 +615,7 @@ async def list_i_ps(
612615
f"/lb/v1/regions/{param_region}/ips",
613616
params={
614617
"ip_address": ip_address,
618+
"ip_type": ip_type,
615619
"organization_id": organization_id
616620
or self.client.default_organization_id,
617621
"page": page,
@@ -632,6 +636,7 @@ async def list_i_ps_all(
632636
ip_address: Optional[str] = None,
633637
organization_id: Optional[str] = None,
634638
project_id: Optional[str] = None,
639+
ip_type: Optional[ListIpsRequestIpType] = None,
635640
) -> List[Ip]:
636641
"""
637642
List IPs.
@@ -641,6 +646,7 @@ async def list_i_ps_all(
641646
:param ip_address: IP address to filter for.
642647
:param organization_id: Organization ID to filter for, only Load Balancer IP addresses from this Organization will be returned.
643648
:param project_id: Project ID to filter for, only Load Balancer IP addresses from this Project will be returned.
649+
:param ip_type: IP type to filter for.
644650
:return: :class:`List[ListIpsResponse] <List[ListIpsResponse]>`
645651
646652
Usage:
@@ -660,6 +666,7 @@ async def list_i_ps_all(
660666
"ip_address": ip_address,
661667
"organization_id": organization_id,
662668
"project_id": project_id,
669+
"ip_type": ip_type,
663670
},
664671
)
665672

@@ -3538,6 +3545,7 @@ async def list_i_ps(
35383545
ip_address: Optional[str] = None,
35393546
organization_id: Optional[str] = None,
35403547
project_id: Optional[str] = None,
3548+
ip_type: ListIpsRequestIpType = ListIpsRequestIpType.ALL,
35413549
) -> ListIpsResponse:
35423550
"""
35433551
List IP addresses.
@@ -3548,6 +3556,7 @@ async def list_i_ps(
35483556
:param ip_address: IP address to filter for.
35493557
:param organization_id: Organization ID to filter for, only Load Balancer IP addresses from this Organization will be returned.
35503558
:param project_id: Project ID to filter for, only Load Balancer IP addresses from this Project will be returned.
3559+
:param ip_type: IP type to filter for.
35513560
:return: :class:`ListIpsResponse <ListIpsResponse>`
35523561
35533562
Usage:
@@ -3563,6 +3572,7 @@ async def list_i_ps(
35633572
f"/lb/v1/zones/{param_zone}/ips",
35643573
params={
35653574
"ip_address": ip_address,
3575+
"ip_type": ip_type,
35663576
"organization_id": organization_id
35673577
or self.client.default_organization_id,
35683578
"page": page,
@@ -3583,6 +3593,7 @@ async def list_i_ps_all(
35833593
ip_address: Optional[str] = None,
35843594
organization_id: Optional[str] = None,
35853595
project_id: Optional[str] = None,
3596+
ip_type: Optional[ListIpsRequestIpType] = None,
35863597
) -> List[Ip]:
35873598
"""
35883599
List IP addresses.
@@ -3593,6 +3604,7 @@ async def list_i_ps_all(
35933604
:param ip_address: IP address to filter for.
35943605
:param organization_id: Organization ID to filter for, only Load Balancer IP addresses from this Organization will be returned.
35953606
:param project_id: Project ID to filter for, only Load Balancer IP addresses from this Project will be returned.
3607+
:param ip_type: IP type to filter for.
35963608
:return: :class:`List[ListIpsResponse] <List[ListIpsResponse]>`
35973609
35983610
Usage:
@@ -3612,6 +3624,7 @@ async def list_i_ps_all(
36123624
"ip_address": ip_address,
36133625
"organization_id": organization_id,
36143626
"project_id": project_id,
3627+
"ip_type": ip_type,
36153628
},
36163629
)
36173630

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,6 +1832,11 @@ class ListIPsRequest:
18321832
Project ID to filter for, only Load Balancer IP addresses from this Project will be returned.
18331833
"""
18341834

1835+
ip_type: Optional[ListIpsRequestIpType]
1836+
"""
1837+
IP type to filter for.
1838+
"""
1839+
18351840

18361841
@dataclass
18371842
class CreateIpRequest:
@@ -3391,6 +3396,11 @@ class ZonedApiListIPsRequest:
33913396
Project ID to filter for, only Load Balancer IP addresses from this Project will be returned.
33923397
"""
33933398

3399+
ip_type: Optional[ListIpsRequestIpType]
3400+
"""
3401+
IP type to filter for.
3402+
"""
3403+
33943404

33953405
@dataclass
33963406
class ZonedApiCreateIpRequest:

scaleway/scaleway/lb/v1/api.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
ListBackendsRequestOrderBy,
2222
ListCertificatesRequestOrderBy,
2323
ListFrontendsRequestOrderBy,
24+
ListIpsRequestIpType,
2425
ListLbsRequestOrderBy,
2526
ListPrivateNetworksRequestOrderBy,
2627
ListRoutesRequestOrderBy,
@@ -586,6 +587,7 @@ def list_i_ps(
586587
ip_address: Optional[str] = None,
587588
organization_id: Optional[str] = None,
588589
project_id: Optional[str] = None,
590+
ip_type: ListIpsRequestIpType = ListIpsRequestIpType.ALL,
589591
) -> ListIpsResponse:
590592
"""
591593
List IPs.
@@ -595,6 +597,7 @@ def list_i_ps(
595597
:param ip_address: IP address to filter for.
596598
:param organization_id: Organization ID to filter for, only Load Balancer IP addresses from this Organization will be returned.
597599
:param project_id: Project ID to filter for, only Load Balancer IP addresses from this Project will be returned.
600+
:param ip_type: IP type to filter for.
598601
:return: :class:`ListIpsResponse <ListIpsResponse>`
599602
600603
Usage:
@@ -612,6 +615,7 @@ def list_i_ps(
612615
f"/lb/v1/regions/{param_region}/ips",
613616
params={
614617
"ip_address": ip_address,
618+
"ip_type": ip_type,
615619
"organization_id": organization_id
616620
or self.client.default_organization_id,
617621
"page": page,
@@ -632,6 +636,7 @@ def list_i_ps_all(
632636
ip_address: Optional[str] = None,
633637
organization_id: Optional[str] = None,
634638
project_id: Optional[str] = None,
639+
ip_type: Optional[ListIpsRequestIpType] = None,
635640
) -> List[Ip]:
636641
"""
637642
List IPs.
@@ -641,6 +646,7 @@ def list_i_ps_all(
641646
:param ip_address: IP address to filter for.
642647
:param organization_id: Organization ID to filter for, only Load Balancer IP addresses from this Organization will be returned.
643648
:param project_id: Project ID to filter for, only Load Balancer IP addresses from this Project will be returned.
649+
:param ip_type: IP type to filter for.
644650
:return: :class:`List[ListIpsResponse] <List[ListIpsResponse]>`
645651
646652
Usage:
@@ -660,6 +666,7 @@ def list_i_ps_all(
660666
"ip_address": ip_address,
661667
"organization_id": organization_id,
662668
"project_id": project_id,
669+
"ip_type": ip_type,
663670
},
664671
)
665672

@@ -3536,6 +3543,7 @@ def list_i_ps(
35363543
ip_address: Optional[str] = None,
35373544
organization_id: Optional[str] = None,
35383545
project_id: Optional[str] = None,
3546+
ip_type: ListIpsRequestIpType = ListIpsRequestIpType.ALL,
35393547
) -> ListIpsResponse:
35403548
"""
35413549
List IP addresses.
@@ -3546,6 +3554,7 @@ def list_i_ps(
35463554
:param ip_address: IP address to filter for.
35473555
:param organization_id: Organization ID to filter for, only Load Balancer IP addresses from this Organization will be returned.
35483556
:param project_id: Project ID to filter for, only Load Balancer IP addresses from this Project will be returned.
3557+
:param ip_type: IP type to filter for.
35493558
:return: :class:`ListIpsResponse <ListIpsResponse>`
35503559
35513560
Usage:
@@ -3561,6 +3570,7 @@ def list_i_ps(
35613570
f"/lb/v1/zones/{param_zone}/ips",
35623571
params={
35633572
"ip_address": ip_address,
3573+
"ip_type": ip_type,
35643574
"organization_id": organization_id
35653575
or self.client.default_organization_id,
35663576
"page": page,
@@ -3581,6 +3591,7 @@ def list_i_ps_all(
35813591
ip_address: Optional[str] = None,
35823592
organization_id: Optional[str] = None,
35833593
project_id: Optional[str] = None,
3594+
ip_type: Optional[ListIpsRequestIpType] = None,
35843595
) -> List[Ip]:
35853596
"""
35863597
List IP addresses.
@@ -3591,6 +3602,7 @@ def list_i_ps_all(
35913602
:param ip_address: IP address to filter for.
35923603
:param organization_id: Organization ID to filter for, only Load Balancer IP addresses from this Organization will be returned.
35933604
:param project_id: Project ID to filter for, only Load Balancer IP addresses from this Project will be returned.
3605+
:param ip_type: IP type to filter for.
35943606
:return: :class:`List[ListIpsResponse] <List[ListIpsResponse]>`
35953607
35963608
Usage:
@@ -3610,6 +3622,7 @@ def list_i_ps_all(
36103622
"ip_address": ip_address,
36113623
"organization_id": organization_id,
36123624
"project_id": project_id,
3625+
"ip_type": ip_type,
36133626
},
36143627
)
36153628

scaleway/scaleway/lb/v1/types.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1832,6 +1832,11 @@ class ListIPsRequest:
18321832
Project ID to filter for, only Load Balancer IP addresses from this Project will be returned.
18331833
"""
18341834

1835+
ip_type: Optional[ListIpsRequestIpType]
1836+
"""
1837+
IP type to filter for.
1838+
"""
1839+
18351840

18361841
@dataclass
18371842
class CreateIpRequest:
@@ -3391,6 +3396,11 @@ class ZonedApiListIPsRequest:
33913396
Project ID to filter for, only Load Balancer IP addresses from this Project will be returned.
33923397
"""
33933398

3399+
ip_type: Optional[ListIpsRequestIpType]
3400+
"""
3401+
IP type to filter for.
3402+
"""
3403+
33943404

33953405
@dataclass
33963406
class ZonedApiCreateIpRequest:

0 commit comments

Comments
 (0)