| 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 { TrainingPipeline } from "./TrainingPipeline.ts"; |
| 6 | |
| 7 | export interface GetTrainingPipelineRequest extends Omit< |
| 8 | aiplatform.GetProjectsLocationsTrainingPipelinesRequest, |
| 9 | "name" |
| 10 | > {} |
| 11 | |
| 12 | /** |
| 13 | * Runtime binding for Vertex AI `trainingPipelines.get`. |
| 14 | * |
| 15 | * Bind this operation to a {@link TrainingPipeline} in a Function/Action |
| 16 | * init phase. Provide {@link GetTrainingPipelineHttp}. |
| 17 | * |
| 18 | * ### Observing Pipelines |
| 19 | * **Example:** Read the bound pipeline |
| 20 | * ```typescript |
| 21 | * const getPipeline = yield* GCP.AIPlatform.GetTrainingPipeline(pipeline); |
| 22 | * const live = yield* getPipeline(); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | * @category AIPlatform |
| 27 | */ |
| 28 | export interface GetTrainingPipeline extends Binding.Service< |
| 29 | GetTrainingPipeline, |
| 30 | "GCP.AIPlatform.GetTrainingPipeline", |
| 31 | ( |
| 32 | pipeline: TrainingPipeline, |
| 33 | ) => Effect.Effect< |
| 34 | ( |
| 35 | request?: GetTrainingPipelineRequest, |
| 36 | ) => Effect.Effect< |
| 37 | aiplatform.GoogleCloudAiplatformV1TrainingPipeline, |
| 38 | aiplatform.GetProjectsLocationsTrainingPipelinesError, |
| 39 | RuntimeContext |
| 40 | > |
| 41 | > |
| 42 | > {} |
| 43 | |
| 44 | export const GetTrainingPipeline = Binding.Service<GetTrainingPipeline>( |
| 45 | "GCP.AIPlatform.GetTrainingPipeline", |
| 46 | ); |