@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.31 KB
Raw
1 import type * as kafka from "@distilled.cloud/gcp/managedkafka_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 { ConnectCluster } from "./ConnectCluster.ts";
6
7 export interface GetConnectClusterRequest extends Omit<
8 kafka.GetProjectsLocationsConnectClustersRequest,
9 "name"
10 > {}
11
12 /**
13 * Runtime binding for Managed Kafka `connectClusters.get`.
14 *
15 * Bind this operation to a {@link ConnectCluster} in a Function/Action
16 * init phase. Provide {@link GetConnectClusterHttp}.
17 *
18 * ### Observing Connect Clusters
19 * **Example:** Read the bound Connect cluster
20 * ```typescript
21 * const getConnect = yield* GCP.ManagedKafka.GetConnectCluster(connect);
22 * const live = yield* getConnect();
23 * ```
24 *
25 * @binding
26 * @category ManagedKafka
27 */
28 export interface GetConnectCluster extends Binding.Service<
29 GetConnectCluster,
30 "GCP.ManagedKafka.GetConnectCluster",
31 (
32 cluster: ConnectCluster,
33 ) => Effect.Effect<
34 (
35 request?: GetConnectClusterRequest,
36 ) => Effect.Effect<
37 kafka.ConnectCluster,
38 kafka.GetProjectsLocationsConnectClustersError,
39 RuntimeContext
40 >
41 >
42 > {}
43
44 export const GetConnectCluster = Binding.Service<GetConnectCluster>(
45 "GCP.ManagedKafka.GetConnectCluster",
46 );