| 1 | import type * as translate from "@distilled.cloud/gcp/translate_v3"; |
| 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 { AdaptiveMtDataset } from "./AdaptiveMtDataset.ts"; |
| 6 | |
| 7 | export interface GetAdaptiveMtDatasetRequest extends Omit< |
| 8 | translate.GetProjectsLocationsAdaptiveMtDatasetsRequest, |
| 9 | "name" |
| 10 | > {} |
| 11 | |
| 12 | /** |
| 13 | * Runtime binding for Cloud Translation `adaptiveMtDatasets.get`. |
| 14 | * |
| 15 | * Bind this operation to an {@link AdaptiveMtDataset} in a Function/Action |
| 16 | * init phase. Provide {@link GetAdaptiveMtDatasetHttp}. |
| 17 | * |
| 18 | * ### Reading a Dataset |
| 19 | * **Example:** Read the bound dataset |
| 20 | * ```typescript |
| 21 | * const getDataset = yield* GCP.Translate.GetAdaptiveMtDataset(dataset); |
| 22 | * const live = yield* getDataset(); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | * @category Translate |
| 27 | */ |
| 28 | export interface GetAdaptiveMtDataset extends Binding.Service< |
| 29 | GetAdaptiveMtDataset, |
| 30 | "GCP.Translate.GetAdaptiveMtDataset", |
| 31 | ( |
| 32 | dataset: AdaptiveMtDataset, |
| 33 | ) => Effect.Effect< |
| 34 | ( |
| 35 | request?: GetAdaptiveMtDatasetRequest, |
| 36 | ) => Effect.Effect< |
| 37 | translate.AdaptiveMtDataset, |
| 38 | translate.GetProjectsLocationsAdaptiveMtDatasetsError, |
| 39 | RuntimeContext |
| 40 | > |
| 41 | > |
| 42 | > {} |
| 43 | |
| 44 | export const GetAdaptiveMtDataset = Binding.Service<GetAdaptiveMtDataset>( |
| 45 | "GCP.Translate.GetAdaptiveMtDataset", |
| 46 | ); |