| 1 | import * as firebasedataconnect from "@distilled.cloud/gcp/firebasedataconnect_v1"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeServiceHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { ExecuteGraphqlRead } from "./ExecuteGraphqlRead.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link ExecuteGraphqlRead}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.FirebaseDataConnect.ExecuteGraphqlRead |
| 11 | */ |
| 12 | export const ExecuteGraphqlReadHttp = Layer.effect( |
| 13 | ExecuteGraphqlRead, |
| 14 | makeServiceHttpBinding({ |
| 15 | tag: "GCP.FirebaseDataConnect.ExecuteGraphqlRead", |
| 16 | iam: { role: "roles/firebasedataconnect.dataViewer" }, |
| 17 | operation: firebasedataconnect.executeGraphqlReadProjectsLocationsServices, |
| 18 | }), |
| 19 | ); |