@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 06:00 UTC

main
ts 47 lines 1.38 KB
Raw
1 import type * as rma from "@distilled.cloud/gcp/rapidmigrationassessment_v1";
2 import * as Binding from "alchemy/Binding";
3 import type { RuntimeContext } from "alchemy/RuntimeContext";
4 import type * as Effect from "effect/Effect";
5 import type { Collector } from "./Collector.ts";
6
7 export interface PauseCollectorRequest extends Omit<
8 rma.PauseProjectsLocationsCollectorsRequest,
9 "name"
10 > {}
11
12 /**
13 * Runtime binding for Rapid Migration Assessment `collectors.pause`.
14 *
15 * Bind this operation to a {@link Collector} in a Function/Action init
16 * phase. Provide {@link PauseCollectorHttp}.
17 *
18 * Grants `roles/rma.runner` on the project: Rapid Migration Assessment
19 * has no resource-level IAM.
20 *
21 * ### Pausing Collectors
22 * **Example:** Pause the bound collector
23 * ```typescript
24 * const pauseCollector = yield* GCP.RapidMigrationAssessment.PauseCollector(
25 * onPrem,
26 * );
27 * yield* pauseCollector();
28 * ```
29 *
30 * @binding
31 * @category RapidMigrationAssessment
32 */
33 export interface PauseCollector extends Binding.Service<
34 PauseCollector,
35 "GCP.RapidMigrationAssessment.PauseCollector",
36 (
37 collector: Collector,
38 ) => Effect.Effect<
39 (
40 request?: PauseCollectorRequest,
41 ) => Effect.Effect<rma.Operation, rma.PauseProjectsLocationsCollectorsError, RuntimeContext>
42 >
43 > {}
44
45 export const PauseCollector = Binding.Service<PauseCollector>(
46 "GCP.RapidMigrationAssessment.PauseCollector",
47 );