/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { Peering } from '../../../../yandex/cloud/cic/v1/peering'; import { FieldMask } from '../../../../google/protobuf/field_mask'; import { PrivateConnection, PrivateConnection_StaticRoute } from '../../../../yandex/cloud/cic/v1/private_connection'; import { Operation } from '../../../../yandex/cloud/operation/operation'; export declare const protobufPackage = "yandex.cloud.cic.v1"; export interface GetPrivateConnectionRequest { /** * ID of the PrivateConnection resource to return. * To get the privateConnection ID use a [PrivateConnectionService.List] request. */ privateConnectionId: string; } export interface ListPrivateConnectionsRequest { /** * ID of the folder to list PrivateConnection resources. * To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request. */ folderId: string; /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], * the service returns a [ListPrivatesConnectionResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. Default value: 100. */ pageSize: number; /** * Page token. To get the next page of results, set [page_token] to the * [ListPrivatesConnectionResponse.next_page_token] returned by a previous list request. */ pageToken: string; /** * A filter expression that filters resources listed in the response. * The expression must specify: * 1. The field name. Currently you can use filtering only on [Subnet.name] field. * 2. An `=` operator. * 3. The value in double quotes (`"`). Must be 3-63 characters long and match the regular expression `[a-z][-a-z0-9]{1,61}[a-z0-9]`. */ filter: string; } export interface ListPrivateConnectionsResponse { /** List of PrivateConnection resources. */ privateConnections: PrivateConnection[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListPrivateConnectionsRequest.page_size], use * the [next_page_token] as the value * for the [ListPrivateConnectionsRequest.page_token] query parameter * in the next list request. Subsequent list requests will have their own * [next_page_token] to continue paging through the results. */ nextPageToken: string; } export interface CreatePrivateConnectionRequest { /** * 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; }; } export interface CreatePrivateConnectionRequest_LabelsEntry { key: string; value: string; } export interface CreatePrivateConnectionMetadata { /** ID of the PrivateConnection resource. */ privateConnectionId: string; } export interface UpdatePrivateConnectionRequest { /** ID of the PrivateConnection resource. */ privateConnectionId: string; /** Field mask that specifies which fields of the PrivateConnection resource are going to be updated. */ updateMask?: FieldMask; /** * 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 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; }; } export interface UpdatePrivateConnectionRequest_LabelsEntry { key: string; value: string; } export interface UpdatePrivateConnectionMetadata { /** ID of the PrivateConnection resource. */ privateConnectionId: string; } export interface DeletePrivateConnectionRequest { /** ID of the PrivateConnection resource. */ privateConnectionId: string; } export interface DeletePrivateConnectionMetadata { /** ID of the PrivateConnection resource. */ privateConnectionId: string; } export interface UpsertStaticRouteRequest { /** ID of the PrivateConnection resource. */ privateConnectionId: string; /** IPv4 StaticRoute configs to upsert */ ipv4StaticRoutes: PrivateConnection_StaticRoute[]; } export interface UpsertStaticRouteMetadata { /** ID of the PrivateConnection resource. */ privateConnectionId: string; } export interface RemoveStaticRouteRequest { /** ID of the PrivateConnection resource. */ privateConnectionId: string; /** IPv4 StaticRoute configs to remove */ ipv4StaticRoutes: PrivateConnection_StaticRoute[]; } export interface RemoveStaticRouteMetadata { /** ID of the PrivateConnection resource. */ privateConnectionId: string; } export interface ListPrivateConnectionOperationsRequest { /** ID of the PrivateConnection resource. */ privateConnectionId: string; /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], * the service returns a [ListPrivateConnectionOperationsResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. Default value: 100. */ pageSize: number; /** * Page token. To get the next page of results, set [page_token] to the * [ListPrivateConnectionOperationsResponse.next_page_token] returned by a previous list request. */ pageToken: string; } export interface ListPrivateConnectionOperationsResponse { /** List of PrivateConnection operations. */ operations: Operation[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListPrivateConnectionOperationsRequest.page_size], use * the [next_page_token] as the value * for the [ListPrivateConnectionOperationsRequest.page_token] query parameter * in the next list request. Subsequent list requests will have their own * [next_page_token] to continue paging through the results. */ nextPageToken: string; } export declare const GetPrivateConnectionRequest: { encode(message: GetPrivateConnectionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetPrivateConnectionRequest; fromJSON(object: any): GetPrivateConnectionRequest; toJSON(message: GetPrivateConnectionRequest): unknown; fromPartial, never>>(object: I): GetPrivateConnectionRequest; }; export declare const ListPrivateConnectionsRequest: { encode(message: ListPrivateConnectionsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListPrivateConnectionsRequest; fromJSON(object: any): ListPrivateConnectionsRequest; toJSON(message: ListPrivateConnectionsRequest): unknown; fromPartial, never>>(object: I): ListPrivateConnectionsRequest; }; export declare const ListPrivateConnectionsResponse: { encode(message: ListPrivateConnectionsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListPrivateConnectionsResponse; fromJSON(object: any): ListPrivateConnectionsResponse; toJSON(message: ListPrivateConnectionsResponse): 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?: import("../../../../yandex/cloud/cic/v1/private_connection").PrivateConnection_Status | undefined; createdAt?: Date | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListPrivateConnectionsResponse; }; export declare const CreatePrivateConnectionRequest: { encode(message: CreatePrivateConnectionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreatePrivateConnectionRequest; fromJSON(object: any): CreatePrivateConnectionRequest; toJSON(message: CreatePrivateConnectionRequest): 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; } & Record, never>>(object: I): CreatePrivateConnectionRequest; }; export declare const CreatePrivateConnectionRequest_LabelsEntry: { encode(message: CreatePrivateConnectionRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreatePrivateConnectionRequest_LabelsEntry; fromJSON(object: any): CreatePrivateConnectionRequest_LabelsEntry; toJSON(message: CreatePrivateConnectionRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): CreatePrivateConnectionRequest_LabelsEntry; }; export declare const CreatePrivateConnectionMetadata: { encode(message: CreatePrivateConnectionMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreatePrivateConnectionMetadata; fromJSON(object: any): CreatePrivateConnectionMetadata; toJSON(message: CreatePrivateConnectionMetadata): unknown; fromPartial, never>>(object: I): CreatePrivateConnectionMetadata; }; export declare const UpdatePrivateConnectionRequest: { encode(message: UpdatePrivateConnectionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdatePrivateConnectionRequest; fromJSON(object: any): UpdatePrivateConnectionRequest; toJSON(message: UpdatePrivateConnectionRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; name?: string | undefined; description?: string | undefined; regionId?: string | undefined; trunkConnectionId?: string | undefined; vlanId?: number | undefined; ipv4Peering?: ({ peeringSubnet?: string | undefined; peerIp?: string | undefined; cloudIp?: string | undefined; peerBgpAsn?: number | undefined; cloudBgpAsn?: number | undefined; peerBgpMd5Key?: string | undefined; } & { peeringSubnet?: string | undefined; peerIp?: string | undefined; cloudIp?: string | undefined; peerBgpAsn?: number | undefined; cloudBgpAsn?: number | undefined; peerBgpMd5Key?: string | undefined; } & Record, 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; } & Record, never>>(object: I): UpdatePrivateConnectionRequest; }; export declare const UpdatePrivateConnectionRequest_LabelsEntry: { encode(message: UpdatePrivateConnectionRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdatePrivateConnectionRequest_LabelsEntry; fromJSON(object: any): UpdatePrivateConnectionRequest_LabelsEntry; toJSON(message: UpdatePrivateConnectionRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): UpdatePrivateConnectionRequest_LabelsEntry; }; export declare const UpdatePrivateConnectionMetadata: { encode(message: UpdatePrivateConnectionMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdatePrivateConnectionMetadata; fromJSON(object: any): UpdatePrivateConnectionMetadata; toJSON(message: UpdatePrivateConnectionMetadata): unknown; fromPartial, never>>(object: I): UpdatePrivateConnectionMetadata; }; export declare const DeletePrivateConnectionRequest: { encode(message: DeletePrivateConnectionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeletePrivateConnectionRequest; fromJSON(object: any): DeletePrivateConnectionRequest; toJSON(message: DeletePrivateConnectionRequest): unknown; fromPartial, never>>(object: I): DeletePrivateConnectionRequest; }; export declare const DeletePrivateConnectionMetadata: { encode(message: DeletePrivateConnectionMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeletePrivateConnectionMetadata; fromJSON(object: any): DeletePrivateConnectionMetadata; toJSON(message: DeletePrivateConnectionMetadata): unknown; fromPartial, never>>(object: I): DeletePrivateConnectionMetadata; }; export declare const UpsertStaticRouteRequest: { encode(message: UpsertStaticRouteRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpsertStaticRouteRequest; fromJSON(object: any): UpsertStaticRouteRequest; toJSON(message: UpsertStaticRouteRequest): unknown; fromPartial, never>)[] & Record, never>) | undefined; } & Record, never>>(object: I): UpsertStaticRouteRequest; }; export declare const UpsertStaticRouteMetadata: { encode(message: UpsertStaticRouteMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpsertStaticRouteMetadata; fromJSON(object: any): UpsertStaticRouteMetadata; toJSON(message: UpsertStaticRouteMetadata): unknown; fromPartial, never>>(object: I): UpsertStaticRouteMetadata; }; export declare const RemoveStaticRouteRequest: { encode(message: RemoveStaticRouteRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RemoveStaticRouteRequest; fromJSON(object: any): RemoveStaticRouteRequest; toJSON(message: RemoveStaticRouteRequest): unknown; fromPartial, never>)[] & Record, never>) | undefined; } & Record, never>>(object: I): RemoveStaticRouteRequest; }; export declare const RemoveStaticRouteMetadata: { encode(message: RemoveStaticRouteMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RemoveStaticRouteMetadata; fromJSON(object: any): RemoveStaticRouteMetadata; toJSON(message: RemoveStaticRouteMetadata): unknown; fromPartial, never>>(object: I): RemoveStaticRouteMetadata; }; export declare const ListPrivateConnectionOperationsRequest: { encode(message: ListPrivateConnectionOperationsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListPrivateConnectionOperationsRequest; fromJSON(object: any): ListPrivateConnectionOperationsRequest; toJSON(message: ListPrivateConnectionOperationsRequest): unknown; fromPartial, never>>(object: I): ListPrivateConnectionOperationsRequest; }; export declare const ListPrivateConnectionOperationsResponse: { encode(message: ListPrivateConnectionOperationsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListPrivateConnectionOperationsResponse; fromJSON(object: any): ListPrivateConnectionOperationsResponse; toJSON(message: ListPrivateConnectionOperationsResponse): unknown; fromPartial, never>) | undefined; error?: ({ code?: number | undefined; message?: string | undefined; details?: { typeUrl?: string | undefined; value?: Buffer | undefined; }[] | undefined; } & { code?: number | undefined; message?: string | undefined; details?: ({ typeUrl?: string | undefined; value?: Buffer | undefined; }[] & ({ typeUrl?: string | undefined; value?: Buffer | undefined; } & { typeUrl?: string | undefined; value?: Buffer | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>) | undefined; response?: ({ typeUrl?: string | undefined; value?: Buffer | undefined; } & { typeUrl?: string | undefined; value?: Buffer | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListPrivateConnectionOperationsResponse; }; /** A set of methods for managing PrivateConnection resources. */ export declare const PrivateConnectionServiceService: { /** * Returns the specified PrivateConnection resource. * * To get the list of available PrivateConnection resources, make a [List] request. */ readonly get: { readonly path: "/yandex.cloud.cic.v1.PrivateConnectionService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetPrivateConnectionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetPrivateConnectionRequest; readonly responseSerialize: (value: PrivateConnection) => Buffer; readonly responseDeserialize: (value: Buffer) => PrivateConnection; }; /** Retrieves the list of PrivateConnection resources in the specified folder. */ readonly list: { readonly path: "/yandex.cloud.cic.v1.PrivateConnectionService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListPrivateConnectionsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListPrivateConnectionsRequest; readonly responseSerialize: (value: ListPrivateConnectionsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListPrivateConnectionsResponse; }; /** * Creates a PrivateConnection resource in the specified folder using the data specified in the request. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ readonly create: { readonly path: "/yandex.cloud.cic.v1.PrivateConnectionService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreatePrivateConnectionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreatePrivateConnectionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Updates a PrivateConnection resource using the data specified in the request. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ readonly update: { readonly path: "/yandex.cloud.cic.v1.PrivateConnectionService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdatePrivateConnectionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdatePrivateConnectionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Deletes a PrivateConnection resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ readonly delete: { readonly path: "/yandex.cloud.cic.v1.PrivateConnectionService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeletePrivateConnectionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeletePrivateConnectionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Upserts specified static routes to a PrivateConnection resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ readonly upsertStaticRoute: { readonly path: "/yandex.cloud.cic.v1.PrivateConnectionService/UpsertStaticRoute"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpsertStaticRouteRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpsertStaticRouteRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Removes specified static routes to a PrivateConnection resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ readonly removeStaticRoute: { readonly path: "/yandex.cloud.cic.v1.PrivateConnectionService/RemoveStaticRoute"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: RemoveStaticRouteRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => RemoveStaticRouteRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Lists operations for the specified PrivateConnection. */ readonly listOperations: { readonly path: "/yandex.cloud.cic.v1.PrivateConnectionService/ListOperations"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListPrivateConnectionOperationsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListPrivateConnectionOperationsRequest; readonly responseSerialize: (value: ListPrivateConnectionOperationsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListPrivateConnectionOperationsResponse; }; }; export interface PrivateConnectionServiceServer extends UntypedServiceImplementation { /** * Returns the specified PrivateConnection resource. * * To get the list of available PrivateConnection resources, make a [List] request. */ get: handleUnaryCall; /** Retrieves the list of PrivateConnection resources in the specified folder. */ list: handleUnaryCall; /** * Creates a PrivateConnection resource in the specified folder using the data specified in the request. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ create: handleUnaryCall; /** * Updates a PrivateConnection resource using the data specified in the request. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ update: handleUnaryCall; /** * Deletes a PrivateConnection resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ delete: handleUnaryCall; /** * Upserts specified static routes to a PrivateConnection resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ upsertStaticRoute: handleUnaryCall; /** * Removes specified static routes to a PrivateConnection resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ removeStaticRoute: handleUnaryCall; /** Lists operations for the specified PrivateConnection. */ listOperations: handleUnaryCall; } export interface PrivateConnectionServiceClient extends Client { /** * Returns the specified PrivateConnection resource. * * To get the list of available PrivateConnection resources, make a [List] request. */ get(request: GetPrivateConnectionRequest, callback: (error: ServiceError | null, response: PrivateConnection) => void): ClientUnaryCall; get(request: GetPrivateConnectionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: PrivateConnection) => void): ClientUnaryCall; get(request: GetPrivateConnectionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: PrivateConnection) => void): ClientUnaryCall; /** Retrieves the list of PrivateConnection resources in the specified folder. */ list(request: ListPrivateConnectionsRequest, callback: (error: ServiceError | null, response: ListPrivateConnectionsResponse) => void): ClientUnaryCall; list(request: ListPrivateConnectionsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListPrivateConnectionsResponse) => void): ClientUnaryCall; list(request: ListPrivateConnectionsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListPrivateConnectionsResponse) => void): ClientUnaryCall; /** * Creates a PrivateConnection resource in the specified folder using the data specified in the request. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ create(request: CreatePrivateConnectionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreatePrivateConnectionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreatePrivateConnectionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Updates a PrivateConnection resource using the data specified in the request. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ update(request: UpdatePrivateConnectionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdatePrivateConnectionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdatePrivateConnectionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Deletes a PrivateConnection resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ delete(request: DeletePrivateConnectionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeletePrivateConnectionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeletePrivateConnectionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Upserts specified static routes to a PrivateConnection resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ upsertStaticRoute(request: UpsertStaticRouteRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; upsertStaticRoute(request: UpsertStaticRouteRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; upsertStaticRoute(request: UpsertStaticRouteRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Removes specified static routes to a PrivateConnection resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ removeStaticRoute(request: RemoveStaticRouteRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; removeStaticRoute(request: RemoveStaticRouteRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; removeStaticRoute(request: RemoveStaticRouteRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Lists operations for the specified PrivateConnection. */ listOperations(request: ListPrivateConnectionOperationsRequest, callback: (error: ServiceError | null, response: ListPrivateConnectionOperationsResponse) => void): ClientUnaryCall; listOperations(request: ListPrivateConnectionOperationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListPrivateConnectionOperationsResponse) => void): ClientUnaryCall; listOperations(request: ListPrivateConnectionOperationsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListPrivateConnectionOperationsResponse) => void): ClientUnaryCall; } export declare const PrivateConnectionServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): PrivateConnectionServiceClient; service: typeof PrivateConnectionServiceService; }; 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 {};
= P extends Builtin ? P : P & { [K in keyof P]: Exact
; } & Record>, never>; export {};