The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import type * as bigtable from "@distilled.cloud/gcp/bigtableadmin_v2"; |
| 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 { Instance } from "./Instance.ts"; |
| 6 | |
| 7 | export interface GetInstanceRequest extends Omit<bigtable.GetProjectsInstancesRequest, "name"> {} |
| 8 | |
| 9 | /** |
| 10 | * Runtime binding for Cloud Bigtable `instances.get`. |
| 11 | * |
| 12 | * Bind this operation to an {@link Instance} in a Function/Action init |
| 13 | * phase. Provide {@link GetInstanceHttp}. |
| 14 | * |
| 15 | * ### Observing Instances |
| 16 | * **Example:** Read the bound instance |
| 17 | * ```typescript |
| 18 | * const getInstance = yield* GCP.Bigtable.GetInstance(store); |
| 19 | * const live = yield* getInstance(); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | * @category Bigtable |
| 24 | */ |
| 25 | export interface GetInstance extends Binding.Service< |
| 26 | GetInstance, |
| 27 | "GCP.Bigtable.GetInstance", |
| 28 | ( |
| 29 | instance: Instance, |
| 30 | ) => Effect.Effect< |
| 31 | ( |
| 32 | request?: GetInstanceRequest, |
| 33 | ) => Effect.Effect<bigtable.Instance, bigtable.GetProjectsInstancesError, RuntimeContext> |
| 34 | > |
| 35 | > {} |
| 36 | |
| 37 | export const GetInstance = Binding.Service<GetInstance>("GCP.Bigtable.GetInstance"); |