@@ -1233,6 +1233,9 @@ type Maintenance struct {
12331233
12341234 // ForcedAt: time when Scaleway-side maintenance will be applied.
12351235 ForcedAt * time.Time `json:"forced_at"`
1236+
1237+ // IsApplicable: indicate if the maintenance can be applied by the user.
1238+ IsApplicable bool `json:"is_applicable"`
12361239}
12371240
12381241// ReadReplica: read replica.
@@ -2353,6 +2356,9 @@ type ListInstancesRequest struct {
23532356 // ProjectID: project ID to list the Database Instance of.
23542357 ProjectID * string `json:"-"`
23552358
2359+ // HasMaintenances: filter to only list instances with a scheduled maintenance.
2360+ HasMaintenances * bool `json:"-"`
2361+
23562362 Page * int32 `json:"-"`
23572363
23582364 PageSize * uint32 `json:"-"`
@@ -3247,6 +3253,7 @@ func (s *API) ListInstances(req *ListInstancesRequest, opts ...scw.RequestOption
32473253 parameter .AddToQuery (query , "order_by" , req .OrderBy )
32483254 parameter .AddToQuery (query , "organization_id" , req .OrganizationID )
32493255 parameter .AddToQuery (query , "project_id" , req .ProjectID )
3256+ parameter .AddToQuery (query , "has_maintenances" , req .HasMaintenances )
32503257 parameter .AddToQuery (query , "page" , req .Page )
32513258 parameter .AddToQuery (query , "page_size" , req .PageSize )
32523259
0 commit comments