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 { ClustersNodePool } from "./ClustersNodePool.ts";
6
7export interface GetClustersNodePoolRequest extends Omit<
8 container.GetProjectsZonesClustersNodePoolsRequest,
9 "projectId" | "zone" | "clusterId" | "nodePoolId" | "name"
10> {}
11
12/**
13 * Runtime binding for GKE zonal `nodePools.get`.
14 *
15 * Bind this operation to a {@link ClustersNodePool} in a Function/Action
16 * init phase. Provide {@link GetClustersNodePoolHttp}.
17 *
18 * ### Observing Zonal Node Pools
19 * **Example:** Read the bound node pool
20 * ```typescript
21 * const getPool = yield* GCP.Container.GetClustersNodePool(pool);
22 * const live = yield* getPool();
23 * ```
24 *
25 * @binding
26 * @category Container
27 */
28export interface GetClustersNodePool extends Binding.Service<
29 GetClustersNodePool,
30 "GCP.Container.GetClustersNodePool",
31 (
32 nodePool: ClustersNodePool,
33 ) => Effect.Effect<
34 (
35 request?: GetClustersNodePoolRequest,
36 ) => Effect.Effect<
37 container.NodePool,
38 container.GetProjectsZonesClustersNodePoolsError,
39 RuntimeContext
40 >
41 >
42> {}
43
44export const GetClustersNodePool = Binding.Service<GetClustersNodePool>(
45 "GCP.Container.GetClustersNodePool",
46);