diff --git a/scaleway-async/scaleway_async/edge_services/v1alpha1/api.py b/scaleway-async/scaleway_async/edge_services/v1alpha1/api.py index 274f90386..bb096cba9 100644 --- a/scaleway-async/scaleway_async/edge_services/v1alpha1/api.py +++ b/scaleway-async/scaleway_async/edge_services/v1alpha1/api.py @@ -102,6 +102,7 @@ async def list_pipelines( name: Optional[str] = None, organization_id: Optional[str] = None, project_id: Optional[str] = None, + has_backend_stage_lb: Optional[bool] = None, ) -> ListPipelinesResponse: """ List pipelines. @@ -112,6 +113,7 @@ async def list_pipelines( :param name: Pipeline name to filter for, only pipelines with this string within their name will be returned. :param organization_id: Organization ID to filter for, only pipelines from this Organization will be returned. :param project_id: Project ID to filter for, only pipelines from this Project will be returned. + :param has_backend_stage_lb: Filter on backend stage, only pipelines with a Load Balancer origin will be returned. :return: :class:`ListPipelinesResponse ` Usage: @@ -124,6 +126,7 @@ async def list_pipelines( "GET", "/edge-services/v1alpha1/pipelines", params={ + "has_backend_stage_lb": has_backend_stage_lb, "name": name, "order_by": order_by, "organization_id": organization_id @@ -146,6 +149,7 @@ async def list_pipelines_all( name: Optional[str] = None, organization_id: Optional[str] = None, project_id: Optional[str] = None, + has_backend_stage_lb: Optional[bool] = None, ) -> List[Pipeline]: """ List pipelines. @@ -156,6 +160,7 @@ async def list_pipelines_all( :param name: Pipeline name to filter for, only pipelines with this string within their name will be returned. :param organization_id: Organization ID to filter for, only pipelines from this Organization will be returned. :param project_id: Project ID to filter for, only pipelines from this Project will be returned. + :param has_backend_stage_lb: Filter on backend stage, only pipelines with a Load Balancer origin will be returned. :return: :class:`List[Pipeline] ` Usage: @@ -175,6 +180,7 @@ async def list_pipelines_all( "name": name, "organization_id": organization_id, "project_id": project_id, + "has_backend_stage_lb": has_backend_stage_lb, }, ) @@ -1059,6 +1065,7 @@ async def list_backend_stages( project_id: Optional[str] = None, bucket_name: Optional[str] = None, bucket_region: Optional[str] = None, + lb_id: Optional[str] = None, ) -> ListBackendStagesResponse: """ List backend stages. @@ -1070,6 +1077,7 @@ async def list_backend_stages( :param project_id: Project ID to filter for, only backend stages from this Project will be returned. :param bucket_name: Bucket name to filter for, only backend stages from this Bucket will be returned. :param bucket_region: Bucket region to filter for, only backend stages with buckets in this region will be returned. + :param lb_id: Load Balancer ID to filter for, only backend stages with this Load Balancer will be returned. :return: :class:`ListBackendStagesResponse ` Usage: @@ -1084,6 +1092,7 @@ async def list_backend_stages( params={ "bucket_name": bucket_name, "bucket_region": bucket_region, + "lb_id": lb_id, "order_by": order_by, "page": page, "page_size": page_size or self.client.default_page_size, @@ -1105,6 +1114,7 @@ async def list_backend_stages_all( project_id: Optional[str] = None, bucket_name: Optional[str] = None, bucket_region: Optional[str] = None, + lb_id: Optional[str] = None, ) -> List[BackendStage]: """ List backend stages. @@ -1116,6 +1126,7 @@ async def list_backend_stages_all( :param project_id: Project ID to filter for, only backend stages from this Project will be returned. :param bucket_name: Bucket name to filter for, only backend stages from this Bucket will be returned. :param bucket_region: Bucket region to filter for, only backend stages with buckets in this region will be returned. + :param lb_id: Load Balancer ID to filter for, only backend stages with this Load Balancer will be returned. :return: :class:`List[BackendStage] ` Usage: @@ -1136,6 +1147,7 @@ async def list_backend_stages_all( "project_id": project_id, "bucket_name": bucket_name, "bucket_region": bucket_region, + "lb_id": lb_id, }, ) diff --git a/scaleway-async/scaleway_async/edge_services/v1alpha1/types.py b/scaleway-async/scaleway_async/edge_services/v1alpha1/types.py index a4bea0a31..88060b68c 100644 --- a/scaleway-async/scaleway_async/edge_services/v1alpha1/types.py +++ b/scaleway-async/scaleway_async/edge_services/v1alpha1/types.py @@ -766,6 +766,11 @@ class ListBackendStagesRequest: Bucket region to filter for, only backend stages with buckets in this region will be returned. """ + lb_id: Optional[str] + """ + Load Balancer ID to filter for, only backend stages with this Load Balancer will be returned. + """ + @dataclass class ListBackendStagesResponse: @@ -899,6 +904,11 @@ class ListPipelinesRequest: Project ID to filter for, only pipelines from this Project will be returned. """ + has_backend_stage_lb: Optional[bool] + """ + Filter on backend stage, only pipelines with a Load Balancer origin will be returned. + """ + @dataclass class ListPipelinesResponse: diff --git a/scaleway/scaleway/edge_services/v1alpha1/api.py b/scaleway/scaleway/edge_services/v1alpha1/api.py index 6df951988..8963ded62 100644 --- a/scaleway/scaleway/edge_services/v1alpha1/api.py +++ b/scaleway/scaleway/edge_services/v1alpha1/api.py @@ -102,6 +102,7 @@ def list_pipelines( name: Optional[str] = None, organization_id: Optional[str] = None, project_id: Optional[str] = None, + has_backend_stage_lb: Optional[bool] = None, ) -> ListPipelinesResponse: """ List pipelines. @@ -112,6 +113,7 @@ def list_pipelines( :param name: Pipeline name to filter for, only pipelines with this string within their name will be returned. :param organization_id: Organization ID to filter for, only pipelines from this Organization will be returned. :param project_id: Project ID to filter for, only pipelines from this Project will be returned. + :param has_backend_stage_lb: Filter on backend stage, only pipelines with a Load Balancer origin will be returned. :return: :class:`ListPipelinesResponse ` Usage: @@ -124,6 +126,7 @@ def list_pipelines( "GET", "/edge-services/v1alpha1/pipelines", params={ + "has_backend_stage_lb": has_backend_stage_lb, "name": name, "order_by": order_by, "organization_id": organization_id @@ -146,6 +149,7 @@ def list_pipelines_all( name: Optional[str] = None, organization_id: Optional[str] = None, project_id: Optional[str] = None, + has_backend_stage_lb: Optional[bool] = None, ) -> List[Pipeline]: """ List pipelines. @@ -156,6 +160,7 @@ def list_pipelines_all( :param name: Pipeline name to filter for, only pipelines with this string within their name will be returned. :param organization_id: Organization ID to filter for, only pipelines from this Organization will be returned. :param project_id: Project ID to filter for, only pipelines from this Project will be returned. + :param has_backend_stage_lb: Filter on backend stage, only pipelines with a Load Balancer origin will be returned. :return: :class:`List[Pipeline] ` Usage: @@ -175,6 +180,7 @@ def list_pipelines_all( "name": name, "organization_id": organization_id, "project_id": project_id, + "has_backend_stage_lb": has_backend_stage_lb, }, ) @@ -1057,6 +1063,7 @@ def list_backend_stages( project_id: Optional[str] = None, bucket_name: Optional[str] = None, bucket_region: Optional[str] = None, + lb_id: Optional[str] = None, ) -> ListBackendStagesResponse: """ List backend stages. @@ -1068,6 +1075,7 @@ def list_backend_stages( :param project_id: Project ID to filter for, only backend stages from this Project will be returned. :param bucket_name: Bucket name to filter for, only backend stages from this Bucket will be returned. :param bucket_region: Bucket region to filter for, only backend stages with buckets in this region will be returned. + :param lb_id: Load Balancer ID to filter for, only backend stages with this Load Balancer will be returned. :return: :class:`ListBackendStagesResponse ` Usage: @@ -1082,6 +1090,7 @@ def list_backend_stages( params={ "bucket_name": bucket_name, "bucket_region": bucket_region, + "lb_id": lb_id, "order_by": order_by, "page": page, "page_size": page_size or self.client.default_page_size, @@ -1103,6 +1112,7 @@ def list_backend_stages_all( project_id: Optional[str] = None, bucket_name: Optional[str] = None, bucket_region: Optional[str] = None, + lb_id: Optional[str] = None, ) -> List[BackendStage]: """ List backend stages. @@ -1114,6 +1124,7 @@ def list_backend_stages_all( :param project_id: Project ID to filter for, only backend stages from this Project will be returned. :param bucket_name: Bucket name to filter for, only backend stages from this Bucket will be returned. :param bucket_region: Bucket region to filter for, only backend stages with buckets in this region will be returned. + :param lb_id: Load Balancer ID to filter for, only backend stages with this Load Balancer will be returned. :return: :class:`List[BackendStage] ` Usage: @@ -1134,6 +1145,7 @@ def list_backend_stages_all( "project_id": project_id, "bucket_name": bucket_name, "bucket_region": bucket_region, + "lb_id": lb_id, }, ) diff --git a/scaleway/scaleway/edge_services/v1alpha1/types.py b/scaleway/scaleway/edge_services/v1alpha1/types.py index a4bea0a31..88060b68c 100644 --- a/scaleway/scaleway/edge_services/v1alpha1/types.py +++ b/scaleway/scaleway/edge_services/v1alpha1/types.py @@ -766,6 +766,11 @@ class ListBackendStagesRequest: Bucket region to filter for, only backend stages with buckets in this region will be returned. """ + lb_id: Optional[str] + """ + Load Balancer ID to filter for, only backend stages with this Load Balancer will be returned. + """ + @dataclass class ListBackendStagesResponse: @@ -899,6 +904,11 @@ class ListPipelinesRequest: Project ID to filter for, only pipelines from this Project will be returned. """ + has_backend_stage_lb: Optional[bool] + """ + Filter on backend stage, only pipelines with a Load Balancer origin will be returned. + """ + @dataclass class ListPipelinesResponse: