/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { FieldMask } from '../../../../google/protobuf/field_mask'; import { PrivateCloudConnection } from '../../../../yandex/cloud/baremetal/v1alpha/private_cloud_connection'; import { Operation } from '../../../../yandex/cloud/operation/operation'; export declare const protobufPackage = "yandex.cloud.baremetal.v1alpha"; export interface GetPrivateCloudConnectionRequest { /** * ID of the Private cloud connection resource to return. * * To get the server ID, use a [PrivateCloudConnectionService.List] request. */ privateCloudConnectionId: string; } export interface ListPrivateCloudConnectionRequest { /** * ID of the folder to list private cloud connections 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 greater than `page_size`, * the service returns a [ListPrivateCloudConnectionResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. * Default value is 20. */ pageSize: number; /** * Page token. To get the next page of results, set `page_token` to the * [ListPrivateCloudConnectionResponse.next_page_token] returned by a previous list request. */ pageToken: string; /** * By which column the listing should be ordered and in which direction, * format is "createdAt desc". "id asc" if omitted. * Supported fields: ["id", "createdAt", "updatedAt"]. * Both snake_case and camelCase are supported for fields. */ orderBy: string; /** * A filter expression that filters resources listed in the response. * The expression consists of one or more conditions united by `AND` operator: ` [AND [<...> AND ]]`. * * Each condition has the form ` `, where: * 1. `` is the field name. Currently you can use filtering only on the limited number of fields. * 2. `` is a logical operator, one of `=` (equal), `:` (substring). * 3. `` represents a value. * String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash). * Example: "key1='value' AND key2='value'" * Supported operators: ["AND"]. * Supported fields: ["id", "name", "status", "vrfId", "routingInstanceId"]. * Both snake_case and camelCase are supported for fields. */ filter: string; } export interface ListPrivateCloudConnectionResponse { /** List of Private cloud connection resources. */ privateCloudConnections: PrivateCloudConnection[]; /** * Token for getting the next page of the list. If the number of results is greater than * [ListPrivateCloudConnectionRequest.page_size], use `next_page_token` as the value * for the [ListPrivateCloudConnectionRequest.page_token] parameter in the next list request. * * Each subsequent page will have its own `next_page_token` to continue paging through the results. */ nextPageToken: string; } export interface CreatePrivateCloudConnectionRequest { /** ID of Cloud Router Routing Instance. */ routingInstanceId: string; /** * ID of VRF that is connected to routing Instance. * * To get the VRF ID, use a [VrfService.List] request. */ vrfId: string; } export interface CreatePrivateCloudConnectionMetadata { /** ID of the private cloud connection that is being created. */ privateCloudConnectionId: string; } export interface UpdatePrivateCloudConnectionRequest { /** * ID of the private cloud connection to update. * * To get the private cloud connection ID, use a [PrivateCloudConnectionService.List] request. */ privateCloudConnectionId: string; /** Field mask that specifies which fields of the PrivateCloudConnection resource are going to be updated. */ updateMask?: FieldMask; /** ID of Cloud Router Routing Instance. */ routingInstanceId: string; } export interface UpdatePrivateCloudConnectionMetadata { /** ID of the Private cloud connection resource that is being update. */ privateCloudConnectionId: string; } export interface DeletePrivateCloudConnectionRequest { /** * ID of the private cloud connection to delete. * * To get the private cloud connection ID, use a [PrivateCloudConnectionService.List] request. */ privateCloudConnectionId: string; } export interface DeletePrivateCloudConnectionMetadata { /** ID of the Private cloud connection resource that is being deleted. */ privateCloudConnectionId: string; } export declare const GetPrivateCloudConnectionRequest: { encode(message: GetPrivateCloudConnectionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetPrivateCloudConnectionRequest; fromJSON(object: any): GetPrivateCloudConnectionRequest; toJSON(message: GetPrivateCloudConnectionRequest): unknown; fromPartial, never>>(object: I): GetPrivateCloudConnectionRequest; }; export declare const ListPrivateCloudConnectionRequest: { encode(message: ListPrivateCloudConnectionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListPrivateCloudConnectionRequest; fromJSON(object: any): ListPrivateCloudConnectionRequest; toJSON(message: ListPrivateCloudConnectionRequest): unknown; fromPartial, never>>(object: I): ListPrivateCloudConnectionRequest; }; export declare const ListPrivateCloudConnectionResponse: { encode(message: ListPrivateCloudConnectionResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListPrivateCloudConnectionResponse; fromJSON(object: any): ListPrivateCloudConnectionResponse; toJSON(message: ListPrivateCloudConnectionResponse): unknown; fromPartial, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListPrivateCloudConnectionResponse; }; export declare const CreatePrivateCloudConnectionRequest: { encode(message: CreatePrivateCloudConnectionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreatePrivateCloudConnectionRequest; fromJSON(object: any): CreatePrivateCloudConnectionRequest; toJSON(message: CreatePrivateCloudConnectionRequest): unknown; fromPartial, never>>(object: I): CreatePrivateCloudConnectionRequest; }; export declare const CreatePrivateCloudConnectionMetadata: { encode(message: CreatePrivateCloudConnectionMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreatePrivateCloudConnectionMetadata; fromJSON(object: any): CreatePrivateCloudConnectionMetadata; toJSON(message: CreatePrivateCloudConnectionMetadata): unknown; fromPartial, never>>(object: I): CreatePrivateCloudConnectionMetadata; }; export declare const UpdatePrivateCloudConnectionRequest: { encode(message: UpdatePrivateCloudConnectionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdatePrivateCloudConnectionRequest; fromJSON(object: any): UpdatePrivateCloudConnectionRequest; toJSON(message: UpdatePrivateCloudConnectionRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; routingInstanceId?: string | undefined; } & Record, never>>(object: I): UpdatePrivateCloudConnectionRequest; }; export declare const UpdatePrivateCloudConnectionMetadata: { encode(message: UpdatePrivateCloudConnectionMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdatePrivateCloudConnectionMetadata; fromJSON(object: any): UpdatePrivateCloudConnectionMetadata; toJSON(message: UpdatePrivateCloudConnectionMetadata): unknown; fromPartial, never>>(object: I): UpdatePrivateCloudConnectionMetadata; }; export declare const DeletePrivateCloudConnectionRequest: { encode(message: DeletePrivateCloudConnectionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeletePrivateCloudConnectionRequest; fromJSON(object: any): DeletePrivateCloudConnectionRequest; toJSON(message: DeletePrivateCloudConnectionRequest): unknown; fromPartial, never>>(object: I): DeletePrivateCloudConnectionRequest; }; export declare const DeletePrivateCloudConnectionMetadata: { encode(message: DeletePrivateCloudConnectionMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeletePrivateCloudConnectionMetadata; fromJSON(object: any): DeletePrivateCloudConnectionMetadata; toJSON(message: DeletePrivateCloudConnectionMetadata): unknown; fromPartial, never>>(object: I): DeletePrivateCloudConnectionMetadata; }; /** A set of methods for managing Private cloud connection resources. */ export declare const PrivateCloudConnectionServiceService: { /** * Returns the specific Private cloud connection resource. * * To get the list of available Private cloud connection resources, make a [List] request. */ readonly get: { readonly path: "/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetPrivateCloudConnectionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetPrivateCloudConnectionRequest; readonly responseSerialize: (value: PrivateCloudConnection) => Buffer; readonly responseDeserialize: (value: Buffer) => PrivateCloudConnection; }; /** Retrieves the list of Private cloud connection resources in the specified folder. */ readonly list: { readonly path: "/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListPrivateCloudConnectionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListPrivateCloudConnectionRequest; readonly responseSerialize: (value: ListPrivateCloudConnectionResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListPrivateCloudConnectionResponse; }; /** Creates a private cloud connection in the specified folder. */ readonly create: { readonly path: "/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreatePrivateCloudConnectionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreatePrivateCloudConnectionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Updates the routing_instance_id in a private cloud connection. */ readonly update: { readonly path: "/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdatePrivateCloudConnectionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdatePrivateCloudConnectionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Removes a private cloud connection and all allocated network resouces */ readonly delete: { readonly path: "/yandex.cloud.baremetal.v1alpha.PrivateCloudConnectionService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeletePrivateCloudConnectionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeletePrivateCloudConnectionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; export interface PrivateCloudConnectionServiceServer extends UntypedServiceImplementation { /** * Returns the specific Private cloud connection resource. * * To get the list of available Private cloud connection resources, make a [List] request. */ get: handleUnaryCall; /** Retrieves the list of Private cloud connection resources in the specified folder. */ list: handleUnaryCall; /** Creates a private cloud connection in the specified folder. */ create: handleUnaryCall; /** Updates the routing_instance_id in a private cloud connection. */ update: handleUnaryCall; /** Removes a private cloud connection and all allocated network resouces */ delete: handleUnaryCall; } export interface PrivateCloudConnectionServiceClient extends Client { /** * Returns the specific Private cloud connection resource. * * To get the list of available Private cloud connection resources, make a [List] request. */ get(request: GetPrivateCloudConnectionRequest, callback: (error: ServiceError | null, response: PrivateCloudConnection) => void): ClientUnaryCall; get(request: GetPrivateCloudConnectionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: PrivateCloudConnection) => void): ClientUnaryCall; get(request: GetPrivateCloudConnectionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: PrivateCloudConnection) => void): ClientUnaryCall; /** Retrieves the list of Private cloud connection resources in the specified folder. */ list(request: ListPrivateCloudConnectionRequest, callback: (error: ServiceError | null, response: ListPrivateCloudConnectionResponse) => void): ClientUnaryCall; list(request: ListPrivateCloudConnectionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListPrivateCloudConnectionResponse) => void): ClientUnaryCall; list(request: ListPrivateCloudConnectionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListPrivateCloudConnectionResponse) => void): ClientUnaryCall; /** Creates a private cloud connection in the specified folder. */ create(request: CreatePrivateCloudConnectionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreatePrivateCloudConnectionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreatePrivateCloudConnectionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Updates the routing_instance_id in a private cloud connection. */ update(request: UpdatePrivateCloudConnectionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdatePrivateCloudConnectionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdatePrivateCloudConnectionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Removes a private cloud connection and all allocated network resouces */ delete(request: DeletePrivateCloudConnectionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeletePrivateCloudConnectionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeletePrivateCloudConnectionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; } export declare const PrivateCloudConnectionServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): PrivateCloudConnectionServiceClient; service: typeof PrivateCloudConnectionServiceService; }; 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 {};