import _m0 from 'protobufjs/minimal'; import { Peering } from '../../../../yandex/cloud/cic/v1/peering'; export declare const protobufPackage = "yandex.cloud.cic.v1"; /** A PublicConnection resource. */ export interface PublicConnection { /** ID of the publicConnection. */ id: string; /** * Name of the publicConnection. * 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 publicConnection. 0-256 characters long. */ description: string; /** ID of the folder that the publicConnection belongs to. */ folderId: string; /** ID of the region that the publicConnection belongs to. */ regionId: string; /** ID of the trunk_connection that the publicConnection 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; /** Cloud services that the publicConnection connects to. */ ipv4AllowedServiceTypes: PublicConnection_CloudServiceType[]; /** * IPv4 Peer Announced Prefixes * It's an list of ip with format ipPrefix/length where address part of ipPrefix is 0 */ ipv4PeerAnnouncedPrefixes: string[]; /** * 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 publicConnection. */ status: PublicConnection_Status; /** Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format. */ createdAt?: Date; } export declare enum PublicConnection_CloudServiceType { CLOUD_SERVICE_TYPE_UNSPECIFIED = 0, /** @deprecated */ CLOUD_SERVICE_YANDEX = 1, CLOUD_SERVICE_ALL_PUBLIC = 2, CLOUD_SERVICE_S3 = 3, CLOUD_SERVICE_ML = 4, CLOUD_SERVICE_APIGW = 5, CLOUD_SERVICE_CONTAINER_REGISTRY = 6, CLOUD_SERVICE_CONSOLE = 7, CLOUD_SERVICE_MONITORING = 8, CLOUD_SERVICE_YANDEX_GPT = 9, CLOUD_SERVICES_ALL_API_ENDPOINT = 10, CLOUD_SERVICE_YMQ = 11, UNRECOGNIZED = -1 } export declare function publicConnection_CloudServiceTypeFromJSON(object: any): PublicConnection_CloudServiceType; export declare function publicConnection_CloudServiceTypeToJSON(object: PublicConnection_CloudServiceType): string; export declare enum PublicConnection_Status { STATUS_UNSPECIFIED = 0, CREATING = 1, UPDATING = 2, DELETING = 3, ACTIVE = 4, UNRECOGNIZED = -1 } export declare function publicConnection_StatusFromJSON(object: any): PublicConnection_Status; export declare function publicConnection_StatusToJSON(object: PublicConnection_Status): string; export interface PublicConnection_LabelsEntry { key: string; value: string; } export declare const PublicConnection: { encode(message: PublicConnection, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PublicConnection; fromJSON(object: any): PublicConnection; toJSON(message: PublicConnection): unknown; fromPartial, never>) | undefined; ipv4AllowedServiceTypes?: (PublicConnection_CloudServiceType[] & PublicConnection_CloudServiceType[] & Record, never>) | undefined; ipv4PeerAnnouncedPrefixes?: (string[] & string[] & Record, never>) | undefined; labels?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; status?: PublicConnection_Status | undefined; createdAt?: Date | undefined; } & Record, never>>(object: I): PublicConnection; }; export declare const PublicConnection_LabelsEntry: { encode(message: PublicConnection_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PublicConnection_LabelsEntry; fromJSON(object: any): PublicConnection_LabelsEntry; toJSON(message: PublicConnection_LabelsEntry): unknown; fromPartial, never>>(object: I): PublicConnection_LabelsEntry; }; 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 {};