1import type * as container from "@distilled.cloud/gcp/container_v1";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { RuntimeContext } from "../../RuntimeContext.ts";
5import type { NodePool } from "./NodePool.ts";
6
7export 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 */
28export 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
44export const GetNodePool = Binding.Service<GetNodePool>(
45 "GCP.Container.GetNodePool",
46);