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, 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, never>)[] & Record, never>) | undefined; connectivity?: ({ networkId?: string | undefined; subnetId?: string[] | undefined; } & { networkId?: string | undefined; subnetId?: (string[] & string[] & Record, never>) | undefined; } & Record, 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, 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, never>) | undefined; } & Record, 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, never>) | undefined; } & Record, never>) | undefined; } & Record, never>) | undefined; executionTimeout?: ({ seconds?: number | undefined; nanos?: number | undefined; } & { seconds?: number | undefined; nanos?: number | undefined; } & Record, never>) | undefined; } & Record, 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, 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, never>) | undefined; } & Record, 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, 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, never>) | undefined; } & Record, 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, 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, never>) | undefined; } & Record, never>) | undefined; } & Record, 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, never>) | undefined; } & Record, 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, never>>(object: I): VariableInput; }; 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 {};