| 1 | import * as translate from "@distilled.cloud/gcp/translate_v3"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeModelHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetModel } from "./GetModel.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GetModel}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.Translate.GetModel |
| 11 | */ |
| 12 | export const GetModelHttp = Layer.effect( |
| 13 | GetModel, |
| 14 | makeModelHttpBinding({ |
| 15 | tag: "GCP.Translate.GetModel", |
| 16 | operation: translate.getProjectsLocationsModels, |
| 17 | iam: { role: "roles/cloudtranslate.viewer" }, |
| 18 | }), |
| 19 | ); |