| 1 | import type * as aiplatform from "@distilled.cloud/gcp/aiplatform_v1"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { RuntimeContext } from "../../RuntimeContext.ts"; |
| 5 | import type { ReasoningEnginesSandboxEnvironment } from "./ReasoningEnginesSandboxEnvironment.ts"; |
| 6 | |
| 7 | export interface PauseSandboxEnvironmentRequest extends Omit< |
| 8 | aiplatform.PauseReasoningEnginesSandboxEnvironmentsRequest, |
| 9 | "name" |
| 10 | > {} |
| 11 | |
| 12 | /** |
| 13 | * Runtime binding for Vertex AI `sandboxEnvironments.pause`. |
| 14 | * |
| 15 | * Bind this operation to a {@link ReasoningEnginesSandboxEnvironment} in |
| 16 | * a Function/Action init phase. Provide {@link PauseSandboxEnvironmentHttp}. |
| 17 | * |
| 18 | * ### Pausing |
| 19 | * **Example:** Pause the bound sandbox |
| 20 | * ```typescript |
| 21 | * const pause = yield* GCP.AIPlatform.PauseSandboxEnvironment(sandbox); |
| 22 | * yield* pause({ body: {} }); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | * @category AIPlatform |
| 27 | */ |
| 28 | export interface PauseSandboxEnvironment extends Binding.Service< |
| 29 | PauseSandboxEnvironment, |
| 30 | "GCP.AIPlatform.PauseSandboxEnvironment", |
| 31 | ( |
| 32 | sandbox: ReasoningEnginesSandboxEnvironment, |
| 33 | ) => Effect.Effect< |
| 34 | ( |
| 35 | request?: PauseSandboxEnvironmentRequest, |
| 36 | ) => Effect.Effect< |
| 37 | aiplatform.GoogleLongrunningOperation, |
| 38 | aiplatform.PauseReasoningEnginesSandboxEnvironmentsError, |
| 39 | RuntimeContext |
| 40 | > |
| 41 | > |
| 42 | > {} |
| 43 | |
| 44 | export const PauseSandboxEnvironment = Binding.Service<PauseSandboxEnvironment>( |
| 45 | "GCP.AIPlatform.PauseSandboxEnvironment", |
| 46 | ); |