///
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { PublicConnection } from '../../../../yandex/cloud/cic/v1/public_connection';
export declare const protobufPackage = "yandex.cloud.cic.v1";
export interface GetPublicConnectionRequest {
/**
* ID of the PublicConnection resource to return.
* To get the publicConnection ID use a [PublicConnectionService.List] request.
*/
publicConnectionId: string;
}
export interface ListPublicConnectionsRequest {
/**
* ID of the folder to list publicConnections in.
* 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 [ListPublicConnectionsResponse.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
* [ListPublicConnectionsResponse.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 ListPublicConnectionsResponse {
/** List of PublicConnection resources. */
publicConnections: PublicConnection[];
/**
* This token allows you to get the next page of results for list requests. If the number of results
* is larger than [ListPublicConnectionsRequest.page_size], use
* the [next_page_token] as the value
* for the [ListPublicConnectionsRequest.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 GetPublicConnectionRequest: {
encode(message: GetPublicConnectionRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): GetPublicConnectionRequest;
fromJSON(object: any): GetPublicConnectionRequest;
toJSON(message: GetPublicConnectionRequest): unknown;
fromPartial, never>>(object: I): GetPublicConnectionRequest;
};
export declare const ListPublicConnectionsRequest: {
encode(message: ListPublicConnectionsRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): ListPublicConnectionsRequest;
fromJSON(object: any): ListPublicConnectionsRequest;
toJSON(message: ListPublicConnectionsRequest): unknown;
fromPartial, never>>(object: I): ListPublicConnectionsRequest;
};
export declare const ListPublicConnectionsResponse: {
encode(message: ListPublicConnectionsResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): ListPublicConnectionsResponse;
fromJSON(object: any): ListPublicConnectionsResponse;
toJSON(message: ListPublicConnectionsResponse): unknown;
fromPartial, never>) | undefined;
ipv4AllowedServiceTypes?: (import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_CloudServiceType[] & import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_CloudServiceType[] & Record, never>) | undefined;
ipv4PeerAnnouncedPrefixes?: (string[] & string[] & Record, never>) | undefined;
labels?: ({
[x: string]: string | undefined;
} & {
[x: string]: string | undefined;
} & Record, never>) | undefined;
status?: import("../../../../yandex/cloud/cic/v1/public_connection").PublicConnection_Status | undefined;
createdAt?: Date | undefined;
} & Record, never>)[] & Record, never>) | undefined;
nextPageToken?: string | undefined;
} & Record, never>>(object: I): ListPublicConnectionsResponse;
};
/** A set of methods for managing PublicConnection resources. */
export declare const PublicConnectionServiceService: {
/**
* Returns the specified PublicConnection resource.
*
* To get the list of available PublicConnection resources, make a [List] request.
*/
readonly get: {
readonly path: "/yandex.cloud.cic.v1.PublicConnectionService/Get";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetPublicConnectionRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetPublicConnectionRequest;
readonly responseSerialize: (value: PublicConnection) => Buffer;
readonly responseDeserialize: (value: Buffer) => PublicConnection;
};
/** Retrieves the list of PublicConnection resources in the specified folder. */
readonly list: {
readonly path: "/yandex.cloud.cic.v1.PublicConnectionService/List";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: ListPublicConnectionsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => ListPublicConnectionsRequest;
readonly responseSerialize: (value: ListPublicConnectionsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => ListPublicConnectionsResponse;
};
};
export interface PublicConnectionServiceServer extends UntypedServiceImplementation {
/**
* Returns the specified PublicConnection resource.
*
* To get the list of available PublicConnection resources, make a [List] request.
*/
get: handleUnaryCall;
/** Retrieves the list of PublicConnection resources in the specified folder. */
list: handleUnaryCall;
}
export interface PublicConnectionServiceClient extends Client {
/**
* Returns the specified PublicConnection resource.
*
* To get the list of available PublicConnection resources, make a [List] request.
*/
get(request: GetPublicConnectionRequest, callback: (error: ServiceError | null, response: PublicConnection) => void): ClientUnaryCall;
get(request: GetPublicConnectionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: PublicConnection) => void): ClientUnaryCall;
get(request: GetPublicConnectionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: PublicConnection) => void): ClientUnaryCall;
/** Retrieves the list of PublicConnection resources in the specified folder. */
list(request: ListPublicConnectionsRequest, callback: (error: ServiceError | null, response: ListPublicConnectionsResponse) => void): ClientUnaryCall;
list(request: ListPublicConnectionsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListPublicConnectionsResponse) => void): ClientUnaryCall;
list(request: ListPublicConnectionsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListPublicConnectionsResponse) => void): ClientUnaryCall;
}
export declare const PublicConnectionServiceClient: {
new (address: string, credentials: ChannelCredentials, options?: Partial): PublicConnectionServiceClient;
service: typeof PublicConnectionServiceService;
};
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