@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 46 lines 1.3 KB
Raw
1 import type * as alloydb from "@distilled.cloud/gcp/alloydb_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 { Instance } from "./Instance.ts";
6
7 export interface GetConnectionInfoRequest extends Omit<
8 alloydb.GetConnectionInfoProjectsLocationsClustersInstancesRequest,
9 "parent"
10 > {}
11
12 /**
13 * Runtime binding for AlloyDB `instances.getConnectionInfo`.
14 *
15 * Bind this operation to an {@link Instance} in a Function/Action init
16 * phase. Provide {@link GetConnectionInfoHttp}.
17 *
18 * ### Connection Info
19 * **Example:** Read private and public IPs
20 * ```typescript
21 * const getConnectionInfo = yield* GCP.AlloyDB.GetConnectionInfo(primary);
22 * const info = yield* getConnectionInfo();
23 * ```
24 *
25 * @binding
26 * @category AlloyDB
27 */
28 export interface GetConnectionInfo extends Binding.Service<
29 GetConnectionInfo,
30 "GCP.AlloyDB.GetConnectionInfo",
31 (
32 instance: Instance,
33 ) => Effect.Effect<
34 (
35 request?: GetConnectionInfoRequest,
36 ) => Effect.Effect<
37 alloydb.ConnectionInfo,
38 alloydb.GetConnectionInfoProjectsLocationsClustersInstancesError,
39 RuntimeContext
40 >
41 >
42 > {}
43
44 export const GetConnectionInfo = Binding.Service<GetConnectionInfo>(
45 "GCP.AlloyDB.GetConnectionInfo",
46 );