| 1 | import * as ml from "@distilled.cloud/gcp/ml_v1"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeVersionHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetVersion } from "./GetVersion.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GetVersion}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.ML.GetVersion |
| 11 | */ |
| 12 | export const GetVersionHttp = Layer.effect( |
| 13 | GetVersion, |
| 14 | makeVersionHttpBinding({ |
| 15 | tag: "GCP.ML.GetVersion", |
| 16 | operation: ml.getProjectsModelsVersions, |
| 17 | iam: { role: "roles/ml.modelUser", on: "ml.model" }, |
| 18 | }), |
| 19 | ); |