@@ -803,6 +803,7 @@ async def list_instances(
803803 order_by : Optional [ListInstancesRequestOrderBy ] = None ,
804804 organization_id : Optional [str ] = None ,
805805 project_id : Optional [str ] = None ,
806+ has_maintenances : Optional [bool ] = None ,
806807 page : Optional [int ] = None ,
807808 page_size : Optional [int ] = None ,
808809 ) -> ListInstancesResponse :
@@ -815,6 +816,7 @@ async def list_instances(
815816 :param order_by: Criteria to use when ordering Database Instance listings.
816817 :param organization_id: Please use project_id instead.
817818 :param project_id: Project ID to list the Database Instance of.
819+ :param has_maintenances: Filter to only list instances with a scheduled maintenance.
818820 :param page:
819821 :param page_size:
820822 :return: :class:`ListInstancesResponse <ListInstancesResponse>`
@@ -833,6 +835,7 @@ async def list_instances(
833835 "GET" ,
834836 f"/rdb/v1/regions/{ param_region } /instances" ,
835837 params = {
838+ "has_maintenances" : has_maintenances ,
836839 "name" : name ,
837840 "order_by" : order_by ,
838841 "organization_id" : organization_id
@@ -856,6 +859,7 @@ async def list_instances_all(
856859 order_by : Optional [ListInstancesRequestOrderBy ] = None ,
857860 organization_id : Optional [str ] = None ,
858861 project_id : Optional [str ] = None ,
862+ has_maintenances : Optional [bool ] = None ,
859863 page : Optional [int ] = None ,
860864 page_size : Optional [int ] = None ,
861865 ) -> List [Instance ]:
@@ -868,6 +872,7 @@ async def list_instances_all(
868872 :param order_by: Criteria to use when ordering Database Instance listings.
869873 :param organization_id: Please use project_id instead.
870874 :param project_id: Project ID to list the Database Instance of.
875+ :param has_maintenances: Filter to only list instances with a scheduled maintenance.
871876 :param page:
872877 :param page_size:
873878 :return: :class:`List[Instance] <List[Instance]>`
@@ -889,6 +894,7 @@ async def list_instances_all(
889894 "order_by" : order_by ,
890895 "organization_id" : organization_id ,
891896 "project_id" : project_id ,
897+ "has_maintenances" : has_maintenances ,
892898 "page" : page ,
893899 "page_size" : page_size ,
894900 },
0 commit comments