import _m0 from 'protobufjs/minimal'; import { LogLevel_Level } from '../../../../../yandex/cloud/logging/v1/log_entry'; export declare const protobufPackage = "yandex.cloud.serverless.workflows.v1"; export interface Workflow { /** ID of the Workflow. Generated at creation time. */ id: string; /** ID of the folder that the Workflow belongs to. */ folderId: string; /** Specification of the Workflow */ specification?: WorkflowSpecification; /** Creation timestamp for the Workflow. */ createdAt?: Date; /** Name of the Workflow. The name is unique within the folder. */ name: string; /** Description of the Workflow. */ description: string; /** Workflow labels as `key:value` pairs. */ labels: { [key: string]: string; }; /** Status of the Workflow. */ status: Workflow_Status; /** Options for logging from the Workflow. */ logOptions?: LogOptions; /** ID of the VPC network Workflow will be executed in, in order to access private resources. */ networkId: string; /** ID of the Service Account which will be used for resource access in Workflow execution. */ serviceAccountId: string; } export declare enum Workflow_Status { STATUS_UNSPECIFIED = 0, /** CREATING - Workflow is being created. */ CREATING = 1, /** ACTIVE - Workflow is ready for use. */ ACTIVE = 2, /** UPDATING - Workflow is being updated. */ UPDATING = 3, /** DELETING - Workflow is being deleted. */ DELETING = 4, /** ERROR - Workflow failed. The only allowed action is delete. */ ERROR = 5, UNRECOGNIZED = -1 } export declare function workflow_StatusFromJSON(object: any): Workflow_Status; export declare function workflow_StatusToJSON(object: Workflow_Status): string; export interface Workflow_LabelsEntry { key: string; value: string; } export interface WorkflowPreview { /** ID of the Workflow. Generated at creation time. */ id: string; /** ID of the folder that the Workflow belongs to. */ folderId: string; /** Creation timestamp for the Workflow. */ createdAt?: Date; /** Name of the Workflow. The name is unique within the folder. */ name: string; /** Description of the Workflow. */ description: string; /** Workflow labels as `key:value` pairs. */ labels: { [key: string]: string; }; /** Status of the Workflow. */ status: Workflow_Status; /** Options for logging from the Workflow. */ logOptions?: LogOptions; /** ID of the VPC network Workflow will be executed in, in order to access private resources. */ networkId: string; /** ID of the Service Account which will be used for resources access in Workflow execution. */ serviceAccountId: string; } export interface WorkflowPreview_LabelsEntry { key: string; value: string; } export interface WorkflowSpecification { /** Workflow specification in YAML format. */ specYaml: string | undefined; } export interface LogOptions { /** Is logging from Workflow disabled. */ disabled: boolean; /** ID of the logging group which should be used for Workflows logs. */ logGroupId: string | undefined; /** ID of the folder which default logging group should be used for Workflows. */ folderId: string | undefined; /** * Minimum logs level. * * See [LogLevel.Level] for details. */ minLevel: LogLevel_Level; } export declare const Workflow: { encode(message: Workflow, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Workflow; fromJSON(object: any): Workflow; toJSON(message: Workflow): unknown; fromPartial, never>) | undefined; createdAt?: Date | undefined; name?: string | undefined; description?: string | undefined; labels?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; status?: Workflow_Status | undefined; logOptions?: ({ disabled?: boolean | undefined; logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: LogLevel_Level | undefined; } & { disabled?: boolean | undefined; logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: LogLevel_Level | undefined; } & Record, never>) | undefined; networkId?: string | undefined; serviceAccountId?: string | undefined; } & Record, never>>(object: I): Workflow; }; export declare const Workflow_LabelsEntry: { encode(message: Workflow_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Workflow_LabelsEntry; fromJSON(object: any): Workflow_LabelsEntry; toJSON(message: Workflow_LabelsEntry): unknown; fromPartial, never>>(object: I): Workflow_LabelsEntry; }; export declare const WorkflowPreview: { encode(message: WorkflowPreview, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): WorkflowPreview; fromJSON(object: any): WorkflowPreview; toJSON(message: WorkflowPreview): unknown; fromPartial, never>) | undefined; status?: Workflow_Status | undefined; logOptions?: ({ disabled?: boolean | undefined; logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: LogLevel_Level | undefined; } & { disabled?: boolean | undefined; logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: LogLevel_Level | undefined; } & Record, never>) | undefined; networkId?: string | undefined; serviceAccountId?: string | undefined; } & Record, never>>(object: I): WorkflowPreview; }; export declare const WorkflowPreview_LabelsEntry: { encode(message: WorkflowPreview_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): WorkflowPreview_LabelsEntry; fromJSON(object: any): WorkflowPreview_LabelsEntry; toJSON(message: WorkflowPreview_LabelsEntry): unknown; fromPartial, never>>(object: I): WorkflowPreview_LabelsEntry; }; export declare const WorkflowSpecification: { encode(message: WorkflowSpecification, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): WorkflowSpecification; fromJSON(object: any): WorkflowSpecification; toJSON(message: WorkflowSpecification): unknown; fromPartial, never>>(object: I): WorkflowSpecification; }; export declare const LogOptions: { encode(message: LogOptions, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): LogOptions; fromJSON(object: any): LogOptions; toJSON(message: LogOptions): unknown; fromPartial, never>>(object: I): LogOptions; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};