The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import { Credentials } from "@distilled.cloud/gcp/Credentials"; |
| 2 | import * as datapipelines from "@distilled.cloud/gcp/datapipelines_v1"; |
| 3 | import * as HttpClient from "effect/http/HttpClient"; |
| 4 | import * as Layer from "effect/Layer"; |
| 5 | import { makePipelineHttpBinding } from "./BindingHttp.ts"; |
| 6 | import { RunPipeline } from "./RunPipeline.ts"; |
| 7 | |
| 8 | /** |
| 9 | * HTTP implementation of {@link RunPipeline}. |
| 10 | * |
| 11 | * @layer |
| 12 | * @provides GCP.DataPipelines.RunPipeline |
| 13 | */ |
| 14 | export const RunPipelineHttp: Layer.Layer<RunPipeline, never, Credentials | HttpClient.HttpClient> = |
| 15 | Layer.effect( |
| 16 | RunPipeline, |
| 17 | makePipelineHttpBinding< |
| 18 | datapipelines.RunProjectsLocationsPipelinesRequest, |
| 19 | datapipelines.GoogleCloudDatapipelinesV1RunPipelineResponse, |
| 20 | datapipelines.RunProjectsLocationsPipelinesError |
| 21 | >({ |
| 22 | tag: "GCP.DataPipelines.RunPipeline", |
| 23 | iam: { role: "roles/datapipelines.invoker" }, |
| 24 | operation: datapipelines.runProjectsLocationsPipelines, |
| 25 | }), |
| 26 | ); |