1import type * as containeranalysis from "@distilled.cloud/gcp/containeranalysis_v1";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { RuntimeContext } from "../../RuntimeContext.ts";
5import type { Note } from "./Note.ts";
6
7export interface GetNoteRequest extends Omit<
8 containeranalysis.GetProjectsNotesRequest,
9 "name"
10> {}
11
12/**
13 * Runtime binding for Container Analysis `notes.get`.
14 *
15 * Bind this operation to a {@link Note} in a Function/Action init
16 * phase. Provide {@link GetNoteHttp}.
17 *
18 * ### Reading a Note
19 * **Example:** Get the bound note
20 * ```typescript
21 * const getNote = yield* GCP.ContainerAnalysis.GetNote(note);
22 * const live = yield* getNote();
23 * ```
24 *
25 * @binding
26 * @category ContainerAnalysis
27 */
28export interface GetNote extends Binding.Service<
29 GetNote,
30 "GCP.ContainerAnalysis.GetNote",
31 (
32 note: Note,
33 ) => Effect.Effect<
34 (
35 request?: GetNoteRequest,
36 ) => Effect.Effect<
37 containeranalysis.Note,
38 containeranalysis.GetProjectsNotesError,
39 RuntimeContext
40 >
41 >
42> {}
43
44export const GetNote = Binding.Service<GetNote>(
45 "GCP.ContainerAnalysis.GetNote",
46);