@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 37 lines 1.09 KB
Raw
1 import type * as file from "@distilled.cloud/gcp/file_v1";
2 import * as Binding from "alchemy/Binding";
3 import type { RuntimeContext } from "alchemy/RuntimeContext";
4 import type * as Effect from "effect/Effect";
5 import type { Backup } from "./Backup.ts";
6
7 export interface GetBackupRequest extends Omit<file.GetProjectsLocationsBackupsRequest, "name"> {}
8
9 /**
10 * Runtime binding for Cloud Filestore `backups.get`.
11 *
12 * Bind this operation to a {@link Backup} in a Function/Action init
13 * phase. Provide {@link GetBackupHttp}.
14 *
15 * ### Observing Backups
16 * **Example:** Read the bound backup
17 * ```typescript
18 * const getBackup = yield* GCP.Filestore.GetBackup(backup);
19 * const live = yield* getBackup();
20 * ```
21 *
22 * @binding
23 * @category Filestore
24 */
25 export interface GetBackup extends Binding.Service<
26 GetBackup,
27 "GCP.Filestore.GetBackup",
28 (
29 backup: Backup,
30 ) => Effect.Effect<
31 (
32 request?: GetBackupRequest,
33 ) => Effect.Effect<file.Backup, file.GetProjectsLocationsBackupsError, RuntimeContext>
34 >
35 > {}
36
37 export const GetBackup = Binding.Service<GetBackup>("GCP.Filestore.GetBackup");