@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 22 lines 681 Bytes
Raw
1 import * as bigqueryconnection from "@distilled.cloud/gcp/bigqueryconnection_v1";
2 import * as Layer from "effect/Layer";
3 import { makeConnectionHttpBinding } from "./BindingHttp.ts";
4 import { GetConnection } from "./GetConnection.ts";
5
6 /**
7 * HTTP implementation of {@link GetConnection}.
8 *
9 * @layer
10 * @provides GCP.BigQueryConnection.GetConnection
11 */
12 export const GetConnectionHttp = Layer.effect(
13 GetConnection,
14 makeConnectionHttpBinding({
15 tag: "GCP.BigQueryConnection.GetConnection",
16 iam: {
17 role: "roles/bigquery.connectionUser",
18 on: "bigqueryconnection.connection",
19 },
20 operation: bigqueryconnection.getProjectsLocationsConnections,
21 }),
22 );