@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, 04:45 UTC

main
ts 44 lines 1.19 KB
Raw
1 import type * as container from "@distilled.cloud/gcp/container_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 { NodePool } from "./NodePool.ts";
6
7 export interface GetNodePoolRequest extends Omit<
8 container.GetProjectsLocationsClustersNodePoolsRequest,
9 "name"
10 > {}
11
12 /**
13 * Runtime binding for GKE `nodePools.get`.
14 *
15 * Bind this operation to a {@link NodePool} in a Function/Action init
16 * phase. Provide {@link GetNodePoolHttp}.
17 *
18 * ### Observing Node Pools
19 * **Example:** Read the bound node pool
20 * ```typescript
21 * const getNodePool = yield* GCP.Container.GetNodePool(pool);
22 * const live = yield* getNodePool();
23 * ```
24 *
25 * @binding
26 * @category Container
27 */
28 export interface GetNodePool extends Binding.Service<
29 GetNodePool,
30 "GCP.Container.GetNodePool",
31 (
32 nodePool: NodePool,
33 ) => Effect.Effect<
34 (
35 request?: GetNodePoolRequest,
36 ) => Effect.Effect<
37 container.NodePool,
38 container.GetProjectsLocationsClustersNodePoolsError,
39 RuntimeContext
40 >
41 >
42 > {}
43
44 export const GetNodePool = Binding.Service<GetNodePool>("GCP.Container.GetNodePool");