Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions packages/clients/src/api/rdb/v1/marshalling.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down Expand Up @@ -1042,6 +1043,7 @@ export const marshalCreateReadReplicaRequest = (
)
: undefined,
instance_id: request.instanceId,
same_zone: request.sameZone,
})

export const marshalCreateSnapshotRequest = (
Expand Down
10 changes: 10 additions & 0 deletions packages/clients/src/api/rdb/v1/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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 = {
Expand Down