1import type * as oracle from "@distilled.cloud/gcp/oracledatabase_v1";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { RuntimeContext } from "../../RuntimeContext.ts";
5import type { CloudVmCluster } from "./CloudVmCluster.ts";
6
7export interface GetCloudVmClusterRequest extends Omit<
8 oracle.GetProjectsLocationsCloudVmClustersRequest,
9 "name"
10> {}
11
12/**
13 * Runtime binding for Oracle Database `cloudVmClusters.get`.
14 *
15 * ### Observing VM Clusters
16 * **Example:** Read the bound cluster
17 * ```typescript
18 * const get = yield* GCP.OracleDatabase.GetCloudVmCluster(cluster);
19 * const live = yield* get();
20 * ```
21 *
22 * @binding
23 * @category OracleDatabase
24 */
25export interface GetCloudVmCluster extends Binding.Service<
26 GetCloudVmCluster,
27 "GCP.OracleDatabase.GetCloudVmCluster",
28 (
29 cluster: CloudVmCluster,
30 ) => Effect.Effect<
31 (
32 request?: GetCloudVmClusterRequest,
33 ) => Effect.Effect<
34 oracle.CloudVmCluster,
35 oracle.GetProjectsLocationsCloudVmClustersError,
36 RuntimeContext
37 >
38 >
39> {}
40
41export const GetCloudVmCluster = Binding.Service<GetCloudVmCluster>(
42 "GCP.OracleDatabase.GetCloudVmCluster",
43);