import { APIResource } from "../../../core/resource.js"; import { APIPromise } from "../../../core/api-promise.js"; import { PagePromise, SinglePage } from "../../../core/pagination.js"; import { RequestOptions } from "../../../internal/request-options.js"; export declare class BaseInterrupts extends APIResource { static readonly _key: readonly ['magicTransit', 'connectors', 'interrupts']; /** * Creates an interrupt for a Magic WAN Connector. * * @example * ```ts * const interrupt = * await client.magicTransit.connectors.interrupts.create( * 'connector_id', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * ); * ``` */ create(connectorID: string, params: InterruptCreateParams, options?: RequestOptions): APIPromise; /** * Lists interrupts for a Magic WAN Connector. * * @example * ```ts * // Automatically fetches more pages as needed. * for await (const interruptListResponse of client.magicTransit.connectors.interrupts.list( * 'connector_id', * { account_id: '023e105f4ecef8ad9ca31a8372d0c353' }, * )) { * // ... * } * ``` */ list(connectorID: string, params: InterruptListParams, options?: RequestOptions): PagePromise; } export declare class Interrupts extends BaseInterrupts { } export type InterruptListResponsesSinglePage = SinglePage; /** * Interrupt action for a connector. */ export interface InterruptCreateResponse { submitted_at: string; reboot?: InterruptCreateResponse.Reboot; restart?: InterruptCreateResponse.Restart; shutdown?: InterruptCreateResponse.Shutdown; triggered_at?: string; } export declare namespace InterruptCreateResponse { interface Reboot { /** * Purge connector state. */ purge?: boolean; } interface Restart { /** * Purge connector state. */ purge?: boolean; } interface Shutdown { /** * Purge connector state. */ purge?: boolean; } } /** * Interrupt action for a connector. */ export interface InterruptListResponse { submitted_at: string; reboot?: InterruptListResponse.Reboot; restart?: InterruptListResponse.Restart; shutdown?: InterruptListResponse.Shutdown; triggered_at?: string; } export declare namespace InterruptListResponse { interface Reboot { /** * Purge connector state. */ purge?: boolean; } interface Restart { /** * Purge connector state. */ purge?: boolean; } interface Shutdown { /** * Purge connector state. */ purge?: boolean; } } export interface InterruptCreateParams { /** * Path param: Account identifier */ account_id: string; /** * Body param */ reboot?: InterruptCreateParams.Reboot; /** * Body param */ restart?: InterruptCreateParams.Restart; /** * Body param */ shutdown?: InterruptCreateParams.Shutdown; } export declare namespace InterruptCreateParams { interface Reboot { /** * Purge connector state. */ purge?: boolean; } interface Restart { /** * Purge connector state. */ purge?: boolean; } interface Shutdown { /** * Purge connector state. */ purge?: boolean; } } export interface InterruptListParams { /** * Account identifier */ account_id: string; } export declare namespace Interrupts { export { type InterruptCreateResponse as InterruptCreateResponse, type InterruptListResponse as InterruptListResponse, type InterruptListResponsesSinglePage as InterruptListResponsesSinglePage, type InterruptCreateParams as InterruptCreateParams, type InterruptListParams as InterruptListParams, }; } //# sourceMappingURL=interrupts.d.ts.map