| 1 | import type * as oracle from "@distilled.cloud/gcp/oracledatabase_v1"; |
| 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 { AutonomousDatabase } from "./AutonomousDatabase.ts"; |
| 6 | |
| 7 | export interface GetAutonomousDatabaseRequest extends Omit< |
| 8 | oracle.GetProjectsLocationsAutonomousDatabasesRequest, |
| 9 | "name" |
| 10 | > {} |
| 11 | |
| 12 | /** |
| 13 | * Runtime binding for Oracle Database `autonomousDatabases.get`. |
| 14 | * |
| 15 | * ### Observing Autonomous Databases |
| 16 | * **Example:** Read the bound database |
| 17 | * ```typescript |
| 18 | * const get = yield* GCP.OracleDatabase.GetAutonomousDatabase(db); |
| 19 | * const live = yield* get(); |
| 20 | * ``` |
| 21 | * |
| 22 | * @binding |
| 23 | * @category OracleDatabase |
| 24 | */ |
| 25 | export interface GetAutonomousDatabase extends Binding.Service< |
| 26 | GetAutonomousDatabase, |
| 27 | "GCP.OracleDatabase.GetAutonomousDatabase", |
| 28 | ( |
| 29 | database: AutonomousDatabase, |
| 30 | ) => Effect.Effect< |
| 31 | ( |
| 32 | request?: GetAutonomousDatabaseRequest, |
| 33 | ) => Effect.Effect< |
| 34 | oracle.AutonomousDatabase, |
| 35 | oracle.GetProjectsLocationsAutonomousDatabasesError, |
| 36 | RuntimeContext |
| 37 | > |
| 38 | > |
| 39 | > {} |
| 40 | |
| 41 | export const GetAutonomousDatabase = Binding.Service<GetAutonomousDatabase>( |
| 42 | "GCP.OracleDatabase.GetAutonomousDatabase", |
| 43 | ); |