| 1 | import * as storage from "@distilled.cloud/gcp/storage_v1"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { DeleteObject } from "./DeleteObject.ts"; |
| 4 | import { makeObjectHttpBinding } from "./ObjectHttp.ts"; |
| 5 | |
| 6 | /** |
| 7 | * HTTP implementation of {@link DeleteObject}. |
| 8 | * |
| 9 | * @layer |
| 10 | * @provides GCP.Storage.DeleteObject |
| 11 | */ |
| 12 | export const DeleteObjectHttp = Layer.effect( |
| 13 | DeleteObject, |
| 14 | makeObjectHttpBinding({ |
| 15 | tag: "GCP.Storage.DeleteObject", |
| 16 | role: "roles/storage.objectUser", |
| 17 | operation: storage.deleteObjects, |
| 18 | }), |
| 19 | ); |