import _m0 from 'protobufjs/minimal';
import { Duration } from '../../../../../google/protobuf/duration';
import { LogLevel_Level } from '../../../../../yandex/cloud/logging/v1/log_entry';
export declare const protobufPackage = "yandex.cloud.serverless.apigateway.v1";
export interface ApiGateway {
    /** ID of the API gateway. Generated at creation time. */
    id: string;
    /** ID of the folder that the API gateway belongs to. */
    folderId: string;
    /** Creation timestamp for the API-gateway. */
    createdAt?: Date;
    /** Name of the API gateway. The name is unique within the folder. */
    name: string;
    /** Description of the API gateway. */
    description: string;
    /** API gateway labels as `key:value` pairs. */
    labels: {
        [key: string]: string;
    };
    /** Status of the API gateway. */
    status: ApiGateway_Status;
    /** Default domain for the API gateway. Generated at creation time. */
    domain: string;
    /** ID of the log group for the API gateway. */
    logGroupId: string;
    /** List of domains attached to API gateway. */
    attachedDomains: AttachedDomain[];
    /** Network access. If specified the gateway will be attached to specified network/subnet(s). */
    connectivity?: Connectivity;
    /** Options for logging from the API gateway. */
    logOptions?: LogOptions;
    /** Values of variables defined in the specification. */
    variables: {
        [key: string]: VariableInput;
    };
    /** Canary release of the gateway. */
    canary?: Canary;
    /** Timeout for gateway call execution */
    executionTimeout?: Duration;
}
export declare enum ApiGateway_Status {
    STATUS_UNSPECIFIED = 0,
    /** CREATING - API gateway is being created. */
    CREATING = 1,
    /** ACTIVE - API gateway is ready for use. */
    ACTIVE = 2,
    /** DELETING - API gateway is being deleted. */
    DELETING = 3,
    /** ERROR - API gateway failed. The only allowed action is delete. */
    ERROR = 4,
    /** UPDATING - API gateway is being updated. */
    UPDATING = 5,
    UNRECOGNIZED = -1
}
export declare function apiGateway_StatusFromJSON(object: any): ApiGateway_Status;
export declare function apiGateway_StatusToJSON(object: ApiGateway_Status): string;
export interface ApiGateway_LabelsEntry {
    key: string;
    value: string;
}
export interface ApiGateway_VariablesEntry {
    key: string;
    value?: VariableInput;
}
export interface AttachedDomain {
    /** ID of the domain. */
    domainId: string;
    /** ID of the domain certificate. */
    certificateId: string;
    /** Enabling flag. */
    enabled: boolean;
    /** Name of the domain. */
    domain: string;
}
/** Gateway connectivity specification. */
export interface Connectivity {
    /**
     * Network the gateway will have access to.
     * It's essential to specify network with subnets in all availability zones.
     */
    networkId: string;
    /**
     * Complete list of subnets (from the same network) the gateway can be attached to.
     * It's essential to specify at least one subnet for each availability zones.
     */
    subnetId: string[];
}
export interface LogOptions {
    /** Is logging from API gateway disabled. */
    disabled: boolean;
    /** Entry should be written to log group resolved by ID. */
    logGroupId: string | undefined;
    /** Entry should be written to default log group for specified folder. */
    folderId: string | undefined;
    /**
     * Minimum log entry level.
     *
     * See [LogLevel.Level] for details.
     */
    minLevel: LogLevel_Level;
}
export interface Canary {
    /** It describes percentage of requests, which will be processed by canary. */
    weight: number;
    /** Values specification variables, associated with canary. */
    variables: {
        [key: string]: VariableInput;
    };
}
export interface Canary_VariablesEntry {
    key: string;
    value?: VariableInput;
}
export interface VariableInput {
    stringValue: string | undefined;
    intValue: number | undefined;
    doubleValue: number | undefined;
    boolValue: boolean | undefined;
}
export declare const ApiGateway: {
    encode(message: ApiGateway, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ApiGateway;
    fromJSON(object: any): ApiGateway;
    toJSON(message: ApiGateway): unknown;
    fromPartial<I extends {
        id?: string | undefined;
        folderId?: string | undefined;
        createdAt?: Date | undefined;
        name?: string | undefined;
        description?: string | undefined;
        labels?: {
            [x: string]: string | undefined;
        } | undefined;
        status?: ApiGateway_Status | undefined;
        domain?: string | undefined;
        logGroupId?: string | undefined;
        attachedDomains?: {
            domainId?: string | undefined;
            certificateId?: string | undefined;
            enabled?: boolean | undefined;
            domain?: string | undefined;
        }[] | undefined;
        connectivity?: {
            networkId?: string | undefined;
            subnetId?: string[] | undefined;
        } | undefined;
        logOptions?: {
            disabled?: boolean | undefined;
            logGroupId?: string | undefined;
            folderId?: string | undefined;
            minLevel?: LogLevel_Level | undefined;
        } | undefined;
        variables?: {
            [x: string]: {
                stringValue?: string | undefined;
                intValue?: number | undefined;
                doubleValue?: number | undefined;
                boolValue?: boolean | undefined;
            } | undefined;
        } | undefined;
        canary?: {
            weight?: number | undefined;
            variables?: {
                [x: string]: {
                    stringValue?: string | undefined;
                    intValue?: number | undefined;
                    doubleValue?: number | undefined;
                    boolValue?: boolean | undefined;
                } | undefined;
            } | undefined;
        } | undefined;
        executionTimeout?: {
            seconds?: number | undefined;
            nanos?: number | undefined;
        } | undefined;
    } & {
        id?: string | undefined;
        folderId?: string | undefined;
        createdAt?: Date | undefined;
        name?: string | undefined;
        description?: string | undefined;
        labels?: ({
            [x: string]: string | undefined;
        } & {
            [x: string]: string | undefined;
        } & Record<Exclude<keyof I["labels"], string | number>, never>) | undefined;
        status?: ApiGateway_Status | undefined;
        domain?: string | undefined;
        logGroupId?: string | undefined;
        attachedDomains?: ({
            domainId?: string | undefined;
            certificateId?: string | undefined;
            enabled?: boolean | undefined;
            domain?: string | undefined;
        }[] & ({
            domainId?: string | undefined;
            certificateId?: string | undefined;
            enabled?: boolean | undefined;
            domain?: string | undefined;
        } & {
            domainId?: string | undefined;
            certificateId?: string | undefined;
            enabled?: boolean | undefined;
            domain?: string | undefined;
        } & Record<Exclude<keyof I["attachedDomains"][number], keyof AttachedDomain>, never>)[] & Record<Exclude<keyof I["attachedDomains"], keyof {
            domainId?: string | undefined;
            certificateId?: string | undefined;
            enabled?: boolean | undefined;
            domain?: string | undefined;
        }[]>, never>) | undefined;
        connectivity?: ({
            networkId?: string | undefined;
            subnetId?: string[] | undefined;
        } & {
            networkId?: string | undefined;
            subnetId?: (string[] & string[] & Record<Exclude<keyof I["connectivity"]["subnetId"], keyof string[]>, never>) | undefined;
        } & Record<Exclude<keyof I["connectivity"], keyof Connectivity>, never>) | 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<Exclude<keyof I["logOptions"], keyof LogOptions>, never>) | undefined;
        variables?: ({
            [x: string]: {
                stringValue?: string | undefined;
                intValue?: number | undefined;
                doubleValue?: number | undefined;
                boolValue?: boolean | undefined;
            } | undefined;
        } & {
            [x: string]: ({
                stringValue?: string | undefined;
                intValue?: number | undefined;
                doubleValue?: number | undefined;
                boolValue?: boolean | undefined;
            } & {
                stringValue?: string | undefined;
                intValue?: number | undefined;
                doubleValue?: number | undefined;
                boolValue?: boolean | undefined;
            } & Record<Exclude<keyof I["variables"][string], keyof VariableInput>, never>) | undefined;
        } & Record<Exclude<keyof I["variables"], string | number>, never>) | undefined;
        canary?: ({
            weight?: number | undefined;
            variables?: {
                [x: string]: {
                    stringValue?: string | undefined;
                    intValue?: number | undefined;
                    doubleValue?: number | undefined;
                    boolValue?: boolean | undefined;
                } | undefined;
            } | undefined;
        } & {
            weight?: number | undefined;
            variables?: ({
                [x: string]: {
                    stringValue?: string | undefined;
                    intValue?: number | undefined;
                    doubleValue?: number | undefined;
                    boolValue?: boolean | undefined;
                } | undefined;
            } & {
                [x: string]: ({
                    stringValue?: string | undefined;
                    intValue?: number | undefined;
                    doubleValue?: number | undefined;
                    boolValue?: boolean | undefined;
                } & {
                    stringValue?: string | undefined;
                    intValue?: number | undefined;
                    doubleValue?: number | undefined;
                    boolValue?: boolean | undefined;
                } & Record<Exclude<keyof I["canary"]["variables"][string], keyof VariableInput>, never>) | undefined;
            } & Record<Exclude<keyof I["canary"]["variables"], string | number>, never>) | undefined;
        } & Record<Exclude<keyof I["canary"], keyof Canary>, never>) | undefined;
        executionTimeout?: ({
            seconds?: number | undefined;
            nanos?: number | undefined;
        } & {
            seconds?: number | undefined;
            nanos?: number | undefined;
        } & Record<Exclude<keyof I["executionTimeout"], keyof Duration>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof ApiGateway>, never>>(object: I): ApiGateway;
};
export declare const ApiGateway_LabelsEntry: {
    encode(message: ApiGateway_LabelsEntry, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ApiGateway_LabelsEntry;
    fromJSON(object: any): ApiGateway_LabelsEntry;
    toJSON(message: ApiGateway_LabelsEntry): unknown;
    fromPartial<I extends {
        key?: string | undefined;
        value?: string | undefined;
    } & {
        key?: string | undefined;
        value?: string | undefined;
    } & Record<Exclude<keyof I, keyof ApiGateway_LabelsEntry>, never>>(object: I): ApiGateway_LabelsEntry;
};
export declare const ApiGateway_VariablesEntry: {
    encode(message: ApiGateway_VariablesEntry, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): ApiGateway_VariablesEntry;
    fromJSON(object: any): ApiGateway_VariablesEntry;
    toJSON(message: ApiGateway_VariablesEntry): unknown;
    fromPartial<I extends {
        key?: string | undefined;
        value?: {
            stringValue?: string | undefined;
            intValue?: number | undefined;
            doubleValue?: number | undefined;
            boolValue?: boolean | undefined;
        } | undefined;
    } & {
        key?: string | undefined;
        value?: ({
            stringValue?: string | undefined;
            intValue?: number | undefined;
            doubleValue?: number | undefined;
            boolValue?: boolean | undefined;
        } & {
            stringValue?: string | undefined;
            intValue?: number | undefined;
            doubleValue?: number | undefined;
            boolValue?: boolean | undefined;
        } & Record<Exclude<keyof I["value"], keyof VariableInput>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof ApiGateway_VariablesEntry>, never>>(object: I): ApiGateway_VariablesEntry;
};
export declare const AttachedDomain: {
    encode(message: AttachedDomain, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): AttachedDomain;
    fromJSON(object: any): AttachedDomain;
    toJSON(message: AttachedDomain): unknown;
    fromPartial<I extends {
        domainId?: string | undefined;
        certificateId?: string | undefined;
        enabled?: boolean | undefined;
        domain?: string | undefined;
    } & {
        domainId?: string | undefined;
        certificateId?: string | undefined;
        enabled?: boolean | undefined;
        domain?: string | undefined;
    } & Record<Exclude<keyof I, keyof AttachedDomain>, never>>(object: I): AttachedDomain;
};
export declare const Connectivity: {
    encode(message: Connectivity, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Connectivity;
    fromJSON(object: any): Connectivity;
    toJSON(message: Connectivity): unknown;
    fromPartial<I extends {
        networkId?: string | undefined;
        subnetId?: string[] | undefined;
    } & {
        networkId?: string | undefined;
        subnetId?: (string[] & string[] & Record<Exclude<keyof I["subnetId"], keyof string[]>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof Connectivity>, never>>(object: I): Connectivity;
};
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<I extends {
        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<Exclude<keyof I, keyof LogOptions>, never>>(object: I): LogOptions;
};
export declare const Canary: {
    encode(message: Canary, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Canary;
    fromJSON(object: any): Canary;
    toJSON(message: Canary): unknown;
    fromPartial<I extends {
        weight?: number | undefined;
        variables?: {
            [x: string]: {
                stringValue?: string | undefined;
                intValue?: number | undefined;
                doubleValue?: number | undefined;
                boolValue?: boolean | undefined;
            } | undefined;
        } | undefined;
    } & {
        weight?: number | undefined;
        variables?: ({
            [x: string]: {
                stringValue?: string | undefined;
                intValue?: number | undefined;
                doubleValue?: number | undefined;
                boolValue?: boolean | undefined;
            } | undefined;
        } & {
            [x: string]: ({
                stringValue?: string | undefined;
                intValue?: number | undefined;
                doubleValue?: number | undefined;
                boolValue?: boolean | undefined;
            } & {
                stringValue?: string | undefined;
                intValue?: number | undefined;
                doubleValue?: number | undefined;
                boolValue?: boolean | undefined;
            } & Record<Exclude<keyof I["variables"][string], keyof VariableInput>, never>) | undefined;
        } & Record<Exclude<keyof I["variables"], string | number>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof Canary>, never>>(object: I): Canary;
};
export declare const Canary_VariablesEntry: {
    encode(message: Canary_VariablesEntry, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): Canary_VariablesEntry;
    fromJSON(object: any): Canary_VariablesEntry;
    toJSON(message: Canary_VariablesEntry): unknown;
    fromPartial<I extends {
        key?: string | undefined;
        value?: {
            stringValue?: string | undefined;
            intValue?: number | undefined;
            doubleValue?: number | undefined;
            boolValue?: boolean | undefined;
        } | undefined;
    } & {
        key?: string | undefined;
        value?: ({
            stringValue?: string | undefined;
            intValue?: number | undefined;
            doubleValue?: number | undefined;
            boolValue?: boolean | undefined;
        } & {
            stringValue?: string | undefined;
            intValue?: number | undefined;
            doubleValue?: number | undefined;
            boolValue?: boolean | undefined;
        } & Record<Exclude<keyof I["value"], keyof VariableInput>, never>) | undefined;
    } & Record<Exclude<keyof I, keyof Canary_VariablesEntry>, never>>(object: I): Canary_VariablesEntry;
};
export declare const VariableInput: {
    encode(message: VariableInput, writer?: _m0.Writer): _m0.Writer;
    decode(input: _m0.Reader | Uint8Array, length?: number): VariableInput;
    fromJSON(object: any): VariableInput;
    toJSON(message: VariableInput): unknown;
    fromPartial<I extends {
        stringValue?: string | undefined;
        intValue?: number | undefined;
        doubleValue?: number | undefined;
        boolValue?: boolean | undefined;
    } & {
        stringValue?: string | undefined;
        intValue?: number | undefined;
        doubleValue?: number | undefined;
        boolValue?: boolean | undefined;
    } & Record<Exclude<keyof I, keyof VariableInput>, never>>(object: I): VariableInput;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
    [K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
type KeysOfUnion<T> = T extends T ? keyof T : never;
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
    [K in keyof P]: Exact<P[K], I[K]>;
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
export {};
