| 1 | import type * as connectors from "@distilled.cloud/gcp/connectors_v2"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { RuntimeContext } from "../../RuntimeContext.ts"; |
| 5 | import type { ConnectionsEntityTypesEntity } from "./ConnectionsEntityTypesEntity.ts"; |
| 6 | |
| 7 | export interface GetEntityRequest extends Omit< |
| 8 | connectors.GetProjectsLocationsConnectionsEntityTypesEntitiesRequest, |
| 9 | "name" |
| 10 | > {} |
| 11 | |
| 12 | /** |
| 13 | * Runtime binding for Integration Connectors `entities.get`. |
| 14 | * |
| 15 | * Bind this operation to a {@link ConnectionsEntityTypesEntity} in a |
| 16 | * Function/Action init phase. Provide {@link GetEntityHttp}. |
| 17 | * |
| 18 | * ### Reading an Entity |
| 19 | * **Example:** Get the current row |
| 20 | * ```typescript |
| 21 | * const getEntity = yield* GCP.Connectors.GetEntity(account); |
| 22 | * const live = yield* getEntity(); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | * @category Connectors |
| 27 | */ |
| 28 | export interface GetEntity extends Binding.Service< |
| 29 | GetEntity, |
| 30 | "GCP.Connectors.GetEntity", |
| 31 | ( |
| 32 | entity: ConnectionsEntityTypesEntity, |
| 33 | ) => Effect.Effect< |
| 34 | ( |
| 35 | request?: GetEntityRequest, |
| 36 | ) => Effect.Effect< |
| 37 | connectors.Entity, |
| 38 | connectors.GetProjectsLocationsConnectionsEntityTypesEntitiesError, |
| 39 | RuntimeContext |
| 40 | > |
| 41 | > |
| 42 | > {} |
| 43 | |
| 44 | export const GetEntity = Binding.Service<GetEntity>("GCP.Connectors.GetEntity"); |