@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, 06:00 UTC

main
ts 20 lines 600 Bytes
Raw
1 import * as composer from "@distilled.cloud/gcp/composer_v1";
2 import * as Layer from "effect/Layer";
3 import { makeEnvironmentHttpBinding } from "./BindingHttp.ts";
4 import { GetEnvironment } from "./GetEnvironment.ts";
5
6 /**
7 * HTTP implementation of {@link GetEnvironment}.
8 *
9 * @layer
10 * @provides GCP.Composer.GetEnvironment
11 */
12 export const GetEnvironmentHttp = Layer.effect(
13 GetEnvironment,
14 makeEnvironmentHttpBinding({
15 tag: "GCP.Composer.GetEnvironment",
16 iam: { role: "roles/composer.viewer" },
17 nameKey: "name",
18 operation: composer.getProjectsLocationsEnvironments,
19 }),
20 );