@scaleway/sdk-rdb 1.0.5 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/v1/api.gen.cjs
CHANGED
|
@@ -218,6 +218,7 @@ class API extends sdkClient.API {
|
|
|
218
218
|
method: "GET",
|
|
219
219
|
path: `/rdb/v1/regions/${sdkClient.validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances`,
|
|
220
220
|
urlParams: sdkClient.urlParams(
|
|
221
|
+
["has_maintenances", request.hasMaintenances],
|
|
221
222
|
["name", request.name],
|
|
222
223
|
["order_by", request.orderBy],
|
|
223
224
|
["organization_id", request.organizationId],
|
package/dist/v1/api.gen.js
CHANGED
|
@@ -216,6 +216,7 @@ class API extends API$1 {
|
|
|
216
216
|
method: "GET",
|
|
217
217
|
path: `/rdb/v1/regions/${validatePathParam("region", request.region ?? this.client.settings.defaultRegion)}/instances`,
|
|
218
218
|
urlParams: urlParams(
|
|
219
|
+
["has_maintenances", request.hasMaintenances],
|
|
219
220
|
["name", request.name],
|
|
220
221
|
["order_by", request.orderBy],
|
|
221
222
|
["organization_id", request.organizationId],
|
|
@@ -57,6 +57,7 @@ const unmarshalMaintenance = (data) => {
|
|
|
57
57
|
return {
|
|
58
58
|
closedAt: sdkClient.unmarshalDate(data.closed_at),
|
|
59
59
|
forcedAt: sdkClient.unmarshalDate(data.forced_at),
|
|
60
|
+
isApplicable: data.is_applicable,
|
|
60
61
|
reason: data.reason,
|
|
61
62
|
startsAt: sdkClient.unmarshalDate(data.starts_at),
|
|
62
63
|
status: data.status,
|
|
@@ -55,6 +55,7 @@ const unmarshalMaintenance = (data) => {
|
|
|
55
55
|
return {
|
|
56
56
|
closedAt: unmarshalDate(data.closed_at),
|
|
57
57
|
forcedAt: unmarshalDate(data.forced_at),
|
|
58
|
+
isApplicable: data.is_applicable,
|
|
58
59
|
reason: data.reason,
|
|
59
60
|
startsAt: unmarshalDate(data.starts_at),
|
|
60
61
|
status: data.status,
|
package/dist/v1/types.gen.d.ts
CHANGED
|
@@ -268,6 +268,10 @@ export interface Maintenance {
|
|
|
268
268
|
* Time when Scaleway-side maintenance will be applied.
|
|
269
269
|
*/
|
|
270
270
|
forcedAt?: Date;
|
|
271
|
+
/**
|
|
272
|
+
* Indicate if the maintenance can be applied by the user.
|
|
273
|
+
*/
|
|
274
|
+
isApplicable: boolean;
|
|
271
275
|
}
|
|
272
276
|
export interface ReadReplica {
|
|
273
277
|
/**
|
|
@@ -1450,6 +1454,10 @@ export type ListInstancesRequest = {
|
|
|
1450
1454
|
* Project ID to list the Database Instance of.
|
|
1451
1455
|
*/
|
|
1452
1456
|
projectId?: string;
|
|
1457
|
+
/**
|
|
1458
|
+
* Filter to only list instances with a scheduled maintenance.
|
|
1459
|
+
*/
|
|
1460
|
+
hasMaintenances?: boolean;
|
|
1453
1461
|
page?: number;
|
|
1454
1462
|
pageSize?: number;
|
|
1455
1463
|
};
|