| 1 | import * as workstations from "@distilled.cloud/gcp/workstations_v1"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeWorkstationHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { StartWorkstation } from "./StartWorkstation.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link StartWorkstation}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.Workstations.StartWorkstation |
| 11 | */ |
| 12 | export const StartWorkstationHttp = Layer.effect( |
| 13 | StartWorkstation, |
| 14 | makeWorkstationHttpBinding({ |
| 15 | tag: "GCP.Workstations.StartWorkstation", |
| 16 | iam: { role: "roles/workstations.user", on: "workstations.workstation" }, |
| 17 | operation: |
| 18 | workstations.startProjectsLocationsWorkstationClustersWorkstationConfigsWorkstations, |
| 19 | }), |
| 20 | ); |