1import * as ml from "@distilled.cloud/gcp/ml_v1";
2import * as Layer from "effect/Layer";
3import { makeVersionHttpBinding } from "./BindingHttp.ts";
4import { GetVersion } from "./GetVersion.ts";
5
6/**
7 * HTTP implementation of {@link GetVersion}.
8 *
9 * @layer
10 * @provides GCP.ML.GetVersion
11 */
12export 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);