| 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 { PauseSandboxEnvironment } from "./PauseSandboxEnvironment.ts"; |
| 5 | import type { ReasoningEnginesSandboxEnvironment } from "./ReasoningEnginesSandboxEnvironment.ts"; |
| 6 | |
| 7 | /** |
| 8 | * HTTP implementation of {@link PauseSandboxEnvironment}. |
| 9 | * |
| 10 | * @layer |
| 11 | * @provides GCP.AIPlatform.PauseSandboxEnvironment |
| 12 | */ |
| 13 | export const PauseSandboxEnvironmentHttp = Layer.effect( |
| 14 | PauseSandboxEnvironment, |
| 15 | makeNamedHttpBinding< |
| 16 | ReasoningEnginesSandboxEnvironment, |
| 17 | aiplatform.PauseReasoningEnginesSandboxEnvironmentsRequest, |
| 18 | aiplatform.GoogleLongrunningOperation, |
| 19 | aiplatform.PauseReasoningEnginesSandboxEnvironmentsError |
| 20 | >({ |
| 21 | tag: "GCP.AIPlatform.PauseSandboxEnvironment", |
| 22 | operation: aiplatform.pauseReasoningEnginesSandboxEnvironments, |
| 23 | iam: { role: "roles/aiplatform.user" }, |
| 24 | }), |
| 25 | ); |