import _m0 from 'protobufjs/minimal'; import { Peering } from '../../../../yandex/cloud/cic/v1/peering'; export declare const protobufPackage = "yandex.cloud.cic.v1"; /** A PrivateConnection resource. */ export interface PrivateConnection { /** ID of the privateConnection. */ id: string; /** * Name of the privateConnection. * The name must be unique within the folder. * Value must match the regular expression ``\|[a-zA-Z]([-_a-zA-Z0-9]{0,61}[a-zA-Z0-9])?``. */ name: string; /** Optional description of the privateConnection. 0-256 characters long. */ description: string; /** ID of the folder that the privateConnection belongs to. */ folderId: string; /** ID of the region that the privateConnection belongs to. */ regionId: string; /** ID of the trunk_connection that the privateConnection belongs to. */ trunkConnectionId: string; /** * VLAN_ID that the privateConnection uses in multiplexing. * Not used in connections over partners-II * Value range: [1, 4095] */ vlanId?: number; /** IPv4 peering config of connection */ ipv4Peering?: Peering; /** IPv4 StaticRoute config of connection */ ipv4StaticRoutes: PrivateConnection_StaticRoute[]; /** * Resource labels, `key:value` pairs. * No more than 64 per resource. * The maximum string length in characters for each value is 63. * Each value must match the regular expression `[-_0-9a-z]*`. * The string length in characters for each key must be 1-63. * Each key must match the regular expression `[a-z][-_0-9a-z]*`. */ labels: { [key: string]: string; }; /** Status of the privateConnection. */ status: PrivateConnection_Status; /** Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */ createdAt?: Date; } export declare enum PrivateConnection_Status { STATUS_UNSPECIFIED = 0, CREATING = 1, UPDATING = 2, DELETING = 3, ACTIVE = 4, UNRECOGNIZED = -1 } export declare function privateConnection_StatusFromJSON(object: any): PrivateConnection_Status; export declare function privateConnection_StatusToJSON(object: PrivateConnection_Status): string; export interface PrivateConnection_LabelsEntry { key: string; value: string; } export interface PrivateConnection_StaticRoute { /** * Prefix. * It's an ip with format ipPrefix/length where address part of ipPrefix is 0. */ prefix: string; } export declare const PrivateConnection: { encode(message: PrivateConnection, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PrivateConnection; fromJSON(object: any): PrivateConnection; toJSON(message: PrivateConnection): unknown; fromPartial, never>) | undefined; ipv4StaticRoutes?: ({ prefix?: string | undefined; }[] & ({ prefix?: string | undefined; } & { prefix?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; labels?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; status?: PrivateConnection_Status | undefined; createdAt?: Date | undefined; } & Record, never>>(object: I): PrivateConnection; }; export declare const PrivateConnection_LabelsEntry: { encode(message: PrivateConnection_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PrivateConnection_LabelsEntry; fromJSON(object: any): PrivateConnection_LabelsEntry; toJSON(message: PrivateConnection_LabelsEntry): unknown; fromPartial, never>>(object: I): PrivateConnection_LabelsEntry; }; export declare const PrivateConnection_StaticRoute: { encode(message: PrivateConnection_StaticRoute, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PrivateConnection_StaticRoute; fromJSON(object: any): PrivateConnection_StaticRoute; toJSON(message: PrivateConnection_StaticRoute): unknown; fromPartial, never>>(object: I): PrivateConnection_StaticRoute; }; 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 {};