From a4f7d9f58347b2d3543c2df4f819b17c153dfafe Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Wed, 24 May 2023 14:28:00 +0000 Subject: [PATCH] feat: update generated APIs --- packages/clients/src/api/rdb/v1/marshalling.gen.ts | 2 ++ packages/clients/src/api/rdb/v1/types.gen.ts | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/packages/clients/src/api/rdb/v1/marshalling.gen.ts b/packages/clients/src/api/rdb/v1/marshalling.gen.ts index 0e86eb2d7..2e9fbf377 100644 --- a/packages/clients/src/api/rdb/v1/marshalling.gen.ts +++ b/packages/clients/src/api/rdb/v1/marshalling.gen.ts @@ -290,6 +290,7 @@ export const unmarshalReadReplica = (data: unknown) => { endpoints: unmarshalArrayOfObject(data.endpoints, unmarshalEndpoint), id: data.id, region: data.region, + sameZone: data.same_zone, status: data.status, } as ReadReplica } @@ -1042,6 +1043,7 @@ export const marshalCreateReadReplicaRequest = ( ) : undefined, instance_id: request.instanceId, + same_zone: request.sameZone, }) export const marshalCreateSnapshotRequest = ( diff --git a/packages/clients/src/api/rdb/v1/types.gen.ts b/packages/clients/src/api/rdb/v1/types.gen.ts index 6294d1d30..470054a3f 100644 --- a/packages/clients/src/api/rdb/v1/types.gen.ts +++ b/packages/clients/src/api/rdb/v1/types.gen.ts @@ -641,6 +641,11 @@ export interface ReadReplica { status: ReadReplicaStatus /** Region the Read Replica is in. */ region: Region + /** + * Whether the replica is in the same availability zone as the main instance + * nodes or not. + */ + sameZone: boolean } /** Read replica endpoint spec. */ @@ -1114,6 +1119,11 @@ export type CreateReadReplicaRequest = { instanceId: string /** Specification of the endpoint you want to create. */ endpointSpec?: ReadReplicaEndpointSpec[] + /** + * Defines whether to create the replica in the same availability zone as the + * main instance nodes or not. + */ + sameZone?: boolean } export type GetReadReplicaRequest = {