@@ -69,6 +69,7 @@ async def list_vp_cs(
6969 organization_id : Optional [str ] = None ,
7070 project_id : Optional [str ] = None ,
7171 is_default : Optional [bool ] = None ,
72+ routing_enabled : Optional [bool ] = None ,
7273 ) -> ListVPCsResponse :
7374 """
7475 List VPCs.
@@ -82,6 +83,7 @@ async def list_vp_cs(
8283 :param organization_id: Organization ID to filter for. Only VPCs belonging to this Organization will be returned.
8384 :param project_id: Project ID to filter for. Only VPCs belonging to this Project will be returned.
8485 :param is_default: Defines whether to filter only for VPCs which are the default one for their Project.
86+ :param routing_enabled: Defines whether to filter only for VPCs which route traffic between their Private Networks.
8587 :return: :class:`ListVPCsResponse <ListVPCsResponse>`
8688
8789 Usage:
@@ -106,6 +108,7 @@ async def list_vp_cs(
106108 "page" : page ,
107109 "page_size" : page_size or self .client .default_page_size ,
108110 "project_id" : project_id or self .client .default_project_id ,
111+ "routing_enabled" : routing_enabled ,
109112 "tags" : tags ,
110113 },
111114 )
@@ -125,6 +128,7 @@ async def list_vp_cs_all(
125128 organization_id : Optional [str ] = None ,
126129 project_id : Optional [str ] = None ,
127130 is_default : Optional [bool ] = None ,
131+ routing_enabled : Optional [bool ] = None ,
128132 ) -> List [VPC ]:
129133 """
130134 List VPCs.
@@ -138,6 +142,7 @@ async def list_vp_cs_all(
138142 :param organization_id: Organization ID to filter for. Only VPCs belonging to this Organization will be returned.
139143 :param project_id: Project ID to filter for. Only VPCs belonging to this Project will be returned.
140144 :param is_default: Defines whether to filter only for VPCs which are the default one for their Project.
145+ :param routing_enabled: Defines whether to filter only for VPCs which route traffic between their Private Networks.
141146 :return: :class:`List[ListVPCsResponse] <List[ListVPCsResponse]>`
142147
143148 Usage:
@@ -160,12 +165,14 @@ async def list_vp_cs_all(
160165 "organization_id" : organization_id ,
161166 "project_id" : project_id ,
162167 "is_default" : is_default ,
168+ "routing_enabled" : routing_enabled ,
163169 },
164170 )
165171
166172 async def create_vpc (
167173 self ,
168174 * ,
175+ enable_routing : bool ,
169176 region : Optional [Region ] = None ,
170177 name : Optional [str ] = None ,
171178 project_id : Optional [str ] = None ,
@@ -178,12 +185,13 @@ async def create_vpc(
178185 :param name: Name for the VPC.
179186 :param project_id: Scaleway Project in which to create the VPC.
180187 :param tags: Tags for the VPC.
188+ :param enable_routing: Enable routing between Private Networks in the VPC.
181189 :return: :class:`VPC <VPC>`
182190
183191 Usage:
184192 ::
185193
186- result = await api.create_vpc()
194+ result = await api.create_vpc(enable_routing=True )
187195 """
188196
189197 param_region = validate_path_param (
@@ -195,6 +203,7 @@ async def create_vpc(
195203 f"/vpc/v2/regions/{ param_region } /vpcs" ,
196204 body = marshal_CreateVPCRequest (
197205 CreateVPCRequest (
206+ enable_routing = enable_routing ,
198207 region = region ,
199208 name = name or random_name (prefix = "vpc" ),
200209 project_id = project_id ,
0 commit comments