| 1 | import * as servicedirectory from "@distilled.cloud/gcp/servicedirectory_v1"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeEndpointHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetEndpoint } from "./GetEndpoint.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link GetEndpoint}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.ServiceDirectory.GetEndpoint |
| 11 | */ |
| 12 | export const GetEndpointHttp = Layer.effect( |
| 13 | GetEndpoint, |
| 14 | makeEndpointHttpBinding({ |
| 15 | tag: "GCP.ServiceDirectory.GetEndpoint", |
| 16 | iam: { |
| 17 | role: "roles/servicedirectory.viewer", |
| 18 | on: "servicedirectory.service", |
| 19 | }, |
| 20 | operation: servicedirectory.getProjectsLocationsNamespacesServicesEndpoints, |
| 21 | }), |
| 22 | ); |