@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 25 lines 884 Bytes
Raw
1 import * as aiplatform from "@distilled.cloud/gcp/aiplatform_v1";
2 import * as Layer from "effect/Layer";
3 import { makeNamedHttpBinding } from "./BindingHttp.ts";
4 import { GetTrainingPipeline } from "./GetTrainingPipeline.ts";
5 import type { TrainingPipeline } from "./TrainingPipeline.ts";
6
7 /**
8 * HTTP implementation of {@link GetTrainingPipeline}.
9 *
10 * @layer
11 * @provides GCP.AIPlatform.GetTrainingPipeline
12 */
13 export const GetTrainingPipelineHttp = Layer.effect(
14 GetTrainingPipeline,
15 makeNamedHttpBinding<
16 TrainingPipeline,
17 aiplatform.GetProjectsLocationsTrainingPipelinesRequest,
18 aiplatform.GoogleCloudAiplatformV1TrainingPipeline,
19 aiplatform.GetProjectsLocationsTrainingPipelinesError
20 >({
21 tag: "GCP.AIPlatform.GetTrainingPipeline",
22 operation: aiplatform.getProjectsLocationsTrainingPipelines,
23 iam: { role: "roles/aiplatform.viewer" },
24 }),
25 );