/// 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 { RoutingInstance, RoutingInstance_VpcInfo, RoutingInstance_CicPrivateConnectionInfo } from '../../../../yandex/cloud/cloudrouter/v1/routing_instance'; import { Operation } from '../../../../yandex/cloud/operation/operation'; export declare const protobufPackage = "yandex.cloud.cloudrouter.v1"; export interface GetRoutingInstanceRequest { /** * ID of the RoutingInstance resource to return. * To get the routingInstance ID use a [RoutingInstanceService.List] request. */ routingInstanceId: string; } export interface GetRoutingInstanceByCicPrivateConnectionIdRequest { /** * ID of the PrivateConnection resource to return by. * To get the routingInstance ID use a [RoutingInstanceService.List] request. */ cicPrivateConnectionId: string; } export interface GetRoutingInstanceByVpcNetworkIdRequest { /** * ID of the VpcNetwork resource to return by. * To get the routingInstance ID use a [RoutingInstanceService.List] request. */ vpcNetworkId: string; } export interface ListRoutingInstancesRequest { /** * ID of the folder to list RoutingInstance 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 [ListRoutingInstancesResponse.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 * [ListRoutingInstanceResponse.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 [RoutingInstance.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 ListRoutingInstancesResponse { /** List of RoutingInstance resources. */ routingInstances: RoutingInstance[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListRoutingInstancesResponse.page_size], use * the [next_page_token] as the value * for the [ListRoutingInstanceResponses.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 CreateRoutingInstanceRequest { /** * Name of the RoutingInstance. * 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 RoutingInstance. 0-256 characters long. */ description: string; /** ID of the folder that the RoutingInstance belongs to. */ folderId: string; /** ID of the region that the routingInstance belongs to. */ regionId: string; /** List of the info about vpcNetworks which are attached to the RoutingInstance. */ vpcInfo: RoutingInstance_VpcInfo[]; /** List of the info about privateConnections which are attached to the RoutingInstance. */ cicPrivateConnectionInfo: RoutingInstance_CicPrivateConnectionInfo[]; /** * 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 CreateRoutingInstanceRequest_LabelsEntry { key: string; value: string; } export interface CreateRoutingInstanceMetadata { /** ID of the RoutingInstance resource. */ routingInstanceId: string; } export interface UpdateRoutingInstanceRequest { /** ID of the RoutingInstance resource to return. */ routingInstanceId: string; /** Field mask that specifies which fields of the RoutingInstance resource are going to be updated. */ updateMask?: FieldMask; /** * Name of the RoutingInstance. * 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 RoutingInstance. 0-256 characters long. */ description: string; /** ID of the region that the routingInstance belongs to. */ regionId: string; /** * List of the info about vpcNetworks which are attached to the RoutingInstance. * * @deprecated */ vpcInfo: RoutingInstance_VpcInfo[]; /** * List of the info about privateConnections which are attached to the RoutingInstance. * * @deprecated */ cicPrivateConnectionInfo: RoutingInstance_CicPrivateConnectionInfo[]; /** * 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 UpdateRoutingInstanceRequest_LabelsEntry { key: string; value: string; } export interface UpdateRoutingInstanceMetadata { /** ID of the RoutingInstance resource. */ routingInstanceId: string; } export interface UpsertPrefixesRequest { /** ID of the RoutingInstance resource. */ routingInstanceId: string; /** ID of the VpcNetwork to update. */ vpcNetworkId: string; /** List of VpcAzInfoPrefixes to upsert. */ vpcAzInfoPrefixes: VpcAzInfoPrefixes[]; } export interface RemovePrefixesRequest { /** ID of the RoutingInstance resource. */ routingInstanceId: string; /** ID of the VpcNetwork to update. */ vpcNetworkId: string; /** List of VpcAzInfoPrefixes to remove. */ vpcAzInfoPrefixes: VpcAzInfoPrefixes[]; } export interface VpcAzInfoPrefixes { /** ID of the AZ. */ azId: string; /** List of prefixes. */ prefixes: string[]; } export interface MovePrefixRequest { /** ID of the RoutingInstance resource. */ routingInstanceId: string; /** ID of the source VpcNetwork. */ srcVpcNetworkId: string; /** ID of the AZ in the source VpcNetwork. */ srcAzId: string; /** ID of the destination VpcNetwork. */ dstVpcNetworkId: string; /** ID of the AZ in the destination VpcNetwork. */ dstAzId: string; /** Prefix to move. */ prefix: string; } export interface UpdatePrefixMaskRequest { /** ID of the RoutingInstance resource. */ routingInstanceId: string; /** ID of the VpcNetwork. */ vpcNetworkId: string; /** ID of the AZ */ azId: string; /** Prefix to update mask */ prefix: string; /** The new mask */ newMask: number; /** Specifies whether existing sub-prefixes covered by the mask should be removed. */ removeSubPrefixes: boolean; } export interface AddPrivateConnectionRequest { /** ID of the RoutingInstance resource. */ routingInstanceId: string; /** ID of the PrivateConnection to add to the RoutingInstance. */ cicPrivateConnectionId: string; } export interface RemovePrivateConnectionRequest { /** ID of the RoutingInstance resource. */ routingInstanceId: string; /** ID of the PrivateConnection to remove from the RoutingInstance. */ cicPrivateConnectionId: string; } export interface DeleteRoutingInstanceRequest { /** ID of the RoutingInstance resource. */ routingInstanceId: string; } export interface DeleteRoutingInstanceMetadata { /** ID of the RoutingInstance resource. */ routingInstanceId: string; } export interface ListRoutingInstanceOperationsRequest { /** ID of the RoutingInstance resource. */ routingInstanceId: 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 [ListRoutingInstanceOperationsResponse.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 * [ListRoutingInstanceOperationsResponse.next_page_token] returned by a previous list request. */ pageToken: string; } export interface ListRoutingInstanceOperationsResponse { /** List of RoutingInstance 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 [ListRoutingInstanceOperationsRequest.page_size], use * the [next_page_token] as the value * for the [ListRoutingInstanceOperationsRequest.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 GetRoutingInstanceRequest: { encode(message: GetRoutingInstanceRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetRoutingInstanceRequest; fromJSON(object: any): GetRoutingInstanceRequest; toJSON(message: GetRoutingInstanceRequest): unknown; fromPartial, never>>(object: I): GetRoutingInstanceRequest; }; export declare const GetRoutingInstanceByCicPrivateConnectionIdRequest: { encode(message: GetRoutingInstanceByCicPrivateConnectionIdRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetRoutingInstanceByCicPrivateConnectionIdRequest; fromJSON(object: any): GetRoutingInstanceByCicPrivateConnectionIdRequest; toJSON(message: GetRoutingInstanceByCicPrivateConnectionIdRequest): unknown; fromPartial, never>>(object: I): GetRoutingInstanceByCicPrivateConnectionIdRequest; }; export declare const GetRoutingInstanceByVpcNetworkIdRequest: { encode(message: GetRoutingInstanceByVpcNetworkIdRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetRoutingInstanceByVpcNetworkIdRequest; fromJSON(object: any): GetRoutingInstanceByVpcNetworkIdRequest; toJSON(message: GetRoutingInstanceByVpcNetworkIdRequest): unknown; fromPartial, never>>(object: I): GetRoutingInstanceByVpcNetworkIdRequest; }; export declare const ListRoutingInstancesRequest: { encode(message: ListRoutingInstancesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListRoutingInstancesRequest; fromJSON(object: any): ListRoutingInstancesRequest; toJSON(message: ListRoutingInstancesRequest): unknown; fromPartial, never>>(object: I): ListRoutingInstancesRequest; }; export declare const ListRoutingInstancesResponse: { encode(message: ListRoutingInstancesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListRoutingInstancesResponse; fromJSON(object: any): ListRoutingInstancesResponse; toJSON(message: ListRoutingInstancesResponse): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; cicPrivateConnectionInfo?: ({ cicPrivateConnectionId?: string | undefined; }[] & ({ cicPrivateConnectionId?: string | undefined; } & { cicPrivateConnectionId?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; status?: import("../../../../yandex/cloud/cloudrouter/v1/routing_instance").RoutingInstance_Status | undefined; createdAt?: Date | undefined; labels?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListRoutingInstancesResponse; }; export declare const CreateRoutingInstanceRequest: { encode(message: CreateRoutingInstanceRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateRoutingInstanceRequest; fromJSON(object: any): CreateRoutingInstanceRequest; toJSON(message: CreateRoutingInstanceRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; cicPrivateConnectionInfo?: ({ cicPrivateConnectionId?: string | undefined; }[] & ({ cicPrivateConnectionId?: string | undefined; } & { cicPrivateConnectionId?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; labels?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): CreateRoutingInstanceRequest; }; export declare const CreateRoutingInstanceRequest_LabelsEntry: { encode(message: CreateRoutingInstanceRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateRoutingInstanceRequest_LabelsEntry; fromJSON(object: any): CreateRoutingInstanceRequest_LabelsEntry; toJSON(message: CreateRoutingInstanceRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): CreateRoutingInstanceRequest_LabelsEntry; }; export declare const CreateRoutingInstanceMetadata: { encode(message: CreateRoutingInstanceMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateRoutingInstanceMetadata; fromJSON(object: any): CreateRoutingInstanceMetadata; toJSON(message: CreateRoutingInstanceMetadata): unknown; fromPartial, never>>(object: I): CreateRoutingInstanceMetadata; }; export declare const UpdateRoutingInstanceRequest: { encode(message: UpdateRoutingInstanceRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateRoutingInstanceRequest; fromJSON(object: any): UpdateRoutingInstanceRequest; toJSON(message: UpdateRoutingInstanceRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; name?: string | undefined; description?: string | undefined; regionId?: string | undefined; vpcInfo?: ({ vpcNetworkId?: string | undefined; azInfos?: { manualInfo?: { azId?: string | undefined; prefixes?: string[] | undefined; } | undefined; }[] | undefined; }[] & ({ vpcNetworkId?: string | undefined; azInfos?: { manualInfo?: { azId?: string | undefined; prefixes?: string[] | undefined; } | undefined; }[] | undefined; } & { vpcNetworkId?: string | undefined; azInfos?: ({ manualInfo?: { azId?: string | undefined; prefixes?: string[] | undefined; } | undefined; }[] & ({ manualInfo?: { azId?: string | undefined; prefixes?: string[] | undefined; } | undefined; } & { manualInfo?: ({ azId?: string | undefined; prefixes?: string[] | undefined; } & { azId?: string | undefined; prefixes?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; cicPrivateConnectionInfo?: ({ cicPrivateConnectionId?: string | undefined; }[] & ({ cicPrivateConnectionId?: string | undefined; } & { cicPrivateConnectionId?: string | undefined; } & Record, never>)[] & Record, never>) | undefined; labels?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): UpdateRoutingInstanceRequest; }; export declare const UpdateRoutingInstanceRequest_LabelsEntry: { encode(message: UpdateRoutingInstanceRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateRoutingInstanceRequest_LabelsEntry; fromJSON(object: any): UpdateRoutingInstanceRequest_LabelsEntry; toJSON(message: UpdateRoutingInstanceRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): UpdateRoutingInstanceRequest_LabelsEntry; }; export declare const UpdateRoutingInstanceMetadata: { encode(message: UpdateRoutingInstanceMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateRoutingInstanceMetadata; fromJSON(object: any): UpdateRoutingInstanceMetadata; toJSON(message: UpdateRoutingInstanceMetadata): unknown; fromPartial, never>>(object: I): UpdateRoutingInstanceMetadata; }; export declare const UpsertPrefixesRequest: { encode(message: UpsertPrefixesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpsertPrefixesRequest; fromJSON(object: any): UpsertPrefixesRequest; toJSON(message: UpsertPrefixesRequest): unknown; fromPartial, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>>(object: I): UpsertPrefixesRequest; }; export declare const RemovePrefixesRequest: { encode(message: RemovePrefixesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RemovePrefixesRequest; fromJSON(object: any): RemovePrefixesRequest; toJSON(message: RemovePrefixesRequest): unknown; fromPartial, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; } & Record, never>>(object: I): RemovePrefixesRequest; }; export declare const VpcAzInfoPrefixes: { encode(message: VpcAzInfoPrefixes, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): VpcAzInfoPrefixes; fromJSON(object: any): VpcAzInfoPrefixes; toJSON(message: VpcAzInfoPrefixes): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): VpcAzInfoPrefixes; }; export declare const MovePrefixRequest: { encode(message: MovePrefixRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): MovePrefixRequest; fromJSON(object: any): MovePrefixRequest; toJSON(message: MovePrefixRequest): unknown; fromPartial, never>>(object: I): MovePrefixRequest; }; export declare const UpdatePrefixMaskRequest: { encode(message: UpdatePrefixMaskRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdatePrefixMaskRequest; fromJSON(object: any): UpdatePrefixMaskRequest; toJSON(message: UpdatePrefixMaskRequest): unknown; fromPartial, never>>(object: I): UpdatePrefixMaskRequest; }; export declare const AddPrivateConnectionRequest: { encode(message: AddPrivateConnectionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): AddPrivateConnectionRequest; fromJSON(object: any): AddPrivateConnectionRequest; toJSON(message: AddPrivateConnectionRequest): unknown; fromPartial, never>>(object: I): AddPrivateConnectionRequest; }; export declare const RemovePrivateConnectionRequest: { encode(message: RemovePrivateConnectionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): RemovePrivateConnectionRequest; fromJSON(object: any): RemovePrivateConnectionRequest; toJSON(message: RemovePrivateConnectionRequest): unknown; fromPartial, never>>(object: I): RemovePrivateConnectionRequest; }; export declare const DeleteRoutingInstanceRequest: { encode(message: DeleteRoutingInstanceRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteRoutingInstanceRequest; fromJSON(object: any): DeleteRoutingInstanceRequest; toJSON(message: DeleteRoutingInstanceRequest): unknown; fromPartial, never>>(object: I): DeleteRoutingInstanceRequest; }; export declare const DeleteRoutingInstanceMetadata: { encode(message: DeleteRoutingInstanceMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteRoutingInstanceMetadata; fromJSON(object: any): DeleteRoutingInstanceMetadata; toJSON(message: DeleteRoutingInstanceMetadata): unknown; fromPartial, never>>(object: I): DeleteRoutingInstanceMetadata; }; export declare const ListRoutingInstanceOperationsRequest: { encode(message: ListRoutingInstanceOperationsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListRoutingInstanceOperationsRequest; fromJSON(object: any): ListRoutingInstanceOperationsRequest; toJSON(message: ListRoutingInstanceOperationsRequest): unknown; fromPartial, never>>(object: I): ListRoutingInstanceOperationsRequest; }; export declare const ListRoutingInstanceOperationsResponse: { encode(message: ListRoutingInstanceOperationsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListRoutingInstanceOperationsResponse; fromJSON(object: any): ListRoutingInstanceOperationsResponse; toJSON(message: ListRoutingInstanceOperationsResponse): 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): ListRoutingInstanceOperationsResponse; }; /** A set of methods for managing RoutingInstance resources. */ export declare const RoutingInstanceServiceService: { /** * Returns the specified RoutingInstance resource. * * To get the list of available RoutingInstance resources, make a [List] request. */ readonly get: { readonly path: "/yandex.cloud.cloudrouter.v1.RoutingInstanceService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetRoutingInstanceRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetRoutingInstanceRequest; readonly responseSerialize: (value: RoutingInstance) => Buffer; readonly responseDeserialize: (value: Buffer) => RoutingInstance; }; /** * Returns the RoutingInstance resource by vpcNetworkId * * To get the list of available RoutingInstance resources, make a [List] request. */ readonly getByVpcNetworkId: { readonly path: "/yandex.cloud.cloudrouter.v1.RoutingInstanceService/GetByVpcNetworkId"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetRoutingInstanceByVpcNetworkIdRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetRoutingInstanceByVpcNetworkIdRequest; readonly responseSerialize: (value: RoutingInstance) => Buffer; readonly responseDeserialize: (value: Buffer) => RoutingInstance; }; /** * Returns the RoutingInstance resource by cicPrivateConnectionId * * To get the list of available RoutingInstance resources, make a [List] request. */ readonly getByCicPrivateConnectionId: { readonly path: "/yandex.cloud.cloudrouter.v1.RoutingInstanceService/GetByCicPrivateConnectionId"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetRoutingInstanceByCicPrivateConnectionIdRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetRoutingInstanceByCicPrivateConnectionIdRequest; readonly responseSerialize: (value: RoutingInstance) => Buffer; readonly responseDeserialize: (value: Buffer) => RoutingInstance; }; /** Retrieves the list of RoutingInstance resources in the specified folder. */ readonly list: { readonly path: "/yandex.cloud.cloudrouter.v1.RoutingInstanceService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListRoutingInstancesRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListRoutingInstancesRequest; readonly responseSerialize: (value: ListRoutingInstancesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListRoutingInstancesResponse; }; /** * Creates a RoutingInstance 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.cloudrouter.v1.RoutingInstanceService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateRoutingInstanceRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreateRoutingInstanceRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Updates a RoutingInstance 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.cloudrouter.v1.RoutingInstanceService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateRoutingInstanceRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateRoutingInstanceRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Upserts specified prefixes to a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ readonly upsertPrefixes: { readonly path: "/yandex.cloud.cloudrouter.v1.RoutingInstanceService/UpsertPrefixes"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpsertPrefixesRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpsertPrefixesRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Removes specified prefixes from a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ readonly removePrefixes: { readonly path: "/yandex.cloud.cloudrouter.v1.RoutingInstanceService/RemovePrefixes"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: RemovePrefixesRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => RemovePrefixesRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Moves the specified prefix between availability zones of the RoutingInstance. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ readonly movePrefix: { readonly path: "/yandex.cloud.cloudrouter.v1.RoutingInstanceService/MovePrefix"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: MovePrefixRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => MovePrefixRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Removes specified PrivateConnection from a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ readonly updatePrefixMask: { readonly path: "/yandex.cloud.cloudrouter.v1.RoutingInstanceService/UpdatePrefixMask"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdatePrefixMaskRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdatePrefixMaskRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Adds specified PrivateConnection to a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ readonly addPrivateConnection: { readonly path: "/yandex.cloud.cloudrouter.v1.RoutingInstanceService/AddPrivateConnection"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: AddPrivateConnectionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => AddPrivateConnectionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Removes specified PrivateConnection from a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ readonly removePrivateConnection: { readonly path: "/yandex.cloud.cloudrouter.v1.RoutingInstanceService/RemovePrivateConnection"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: RemovePrivateConnectionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => RemovePrivateConnectionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Deletes a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ readonly delete: { readonly path: "/yandex.cloud.cloudrouter.v1.RoutingInstanceService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteRoutingInstanceRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteRoutingInstanceRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Lists operations for the specified RoutingInstance. */ readonly listOperations: { readonly path: "/yandex.cloud.cloudrouter.v1.RoutingInstanceService/ListOperations"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListRoutingInstanceOperationsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListRoutingInstanceOperationsRequest; readonly responseSerialize: (value: ListRoutingInstanceOperationsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListRoutingInstanceOperationsResponse; }; }; export interface RoutingInstanceServiceServer extends UntypedServiceImplementation { /** * Returns the specified RoutingInstance resource. * * To get the list of available RoutingInstance resources, make a [List] request. */ get: handleUnaryCall; /** * Returns the RoutingInstance resource by vpcNetworkId * * To get the list of available RoutingInstance resources, make a [List] request. */ getByVpcNetworkId: handleUnaryCall; /** * Returns the RoutingInstance resource by cicPrivateConnectionId * * To get the list of available RoutingInstance resources, make a [List] request. */ getByCicPrivateConnectionId: handleUnaryCall; /** Retrieves the list of RoutingInstance resources in the specified folder. */ list: handleUnaryCall; /** * Creates a RoutingInstance 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 RoutingInstance resource using the data specified in the request. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ update: handleUnaryCall; /** * Upserts specified prefixes to a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ upsertPrefixes: handleUnaryCall; /** * Removes specified prefixes from a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ removePrefixes: handleUnaryCall; /** * Moves the specified prefix between availability zones of the RoutingInstance. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ movePrefix: handleUnaryCall; /** * Removes specified PrivateConnection from a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ updatePrefixMask: handleUnaryCall; /** * Adds specified PrivateConnection to a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ addPrivateConnection: handleUnaryCall; /** * Removes specified PrivateConnection from a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ removePrivateConnection: handleUnaryCall; /** * Deletes a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ delete: handleUnaryCall; /** Lists operations for the specified RoutingInstance. */ listOperations: handleUnaryCall; } export interface RoutingInstanceServiceClient extends Client { /** * Returns the specified RoutingInstance resource. * * To get the list of available RoutingInstance resources, make a [List] request. */ get(request: GetRoutingInstanceRequest, callback: (error: ServiceError | null, response: RoutingInstance) => void): ClientUnaryCall; get(request: GetRoutingInstanceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: RoutingInstance) => void): ClientUnaryCall; get(request: GetRoutingInstanceRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: RoutingInstance) => void): ClientUnaryCall; /** * Returns the RoutingInstance resource by vpcNetworkId * * To get the list of available RoutingInstance resources, make a [List] request. */ getByVpcNetworkId(request: GetRoutingInstanceByVpcNetworkIdRequest, callback: (error: ServiceError | null, response: RoutingInstance) => void): ClientUnaryCall; getByVpcNetworkId(request: GetRoutingInstanceByVpcNetworkIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: RoutingInstance) => void): ClientUnaryCall; getByVpcNetworkId(request: GetRoutingInstanceByVpcNetworkIdRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: RoutingInstance) => void): ClientUnaryCall; /** * Returns the RoutingInstance resource by cicPrivateConnectionId * * To get the list of available RoutingInstance resources, make a [List] request. */ getByCicPrivateConnectionId(request: GetRoutingInstanceByCicPrivateConnectionIdRequest, callback: (error: ServiceError | null, response: RoutingInstance) => void): ClientUnaryCall; getByCicPrivateConnectionId(request: GetRoutingInstanceByCicPrivateConnectionIdRequest, metadata: Metadata, callback: (error: ServiceError | null, response: RoutingInstance) => void): ClientUnaryCall; getByCicPrivateConnectionId(request: GetRoutingInstanceByCicPrivateConnectionIdRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: RoutingInstance) => void): ClientUnaryCall; /** Retrieves the list of RoutingInstance resources in the specified folder. */ list(request: ListRoutingInstancesRequest, callback: (error: ServiceError | null, response: ListRoutingInstancesResponse) => void): ClientUnaryCall; list(request: ListRoutingInstancesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListRoutingInstancesResponse) => void): ClientUnaryCall; list(request: ListRoutingInstancesRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListRoutingInstancesResponse) => void): ClientUnaryCall; /** * Creates a RoutingInstance 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: CreateRoutingInstanceRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateRoutingInstanceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateRoutingInstanceRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Updates a RoutingInstance resource using the data specified in the request. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ update(request: UpdateRoutingInstanceRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateRoutingInstanceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateRoutingInstanceRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Upserts specified prefixes to a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ upsertPrefixes(request: UpsertPrefixesRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; upsertPrefixes(request: UpsertPrefixesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; upsertPrefixes(request: UpsertPrefixesRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Removes specified prefixes from a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ removePrefixes(request: RemovePrefixesRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; removePrefixes(request: RemovePrefixesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; removePrefixes(request: RemovePrefixesRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Moves the specified prefix between availability zones of the RoutingInstance. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ movePrefix(request: MovePrefixRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; movePrefix(request: MovePrefixRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; movePrefix(request: MovePrefixRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Removes specified PrivateConnection from a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ updatePrefixMask(request: UpdatePrefixMaskRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; updatePrefixMask(request: UpdatePrefixMaskRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; updatePrefixMask(request: UpdatePrefixMaskRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Adds specified PrivateConnection to a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ addPrivateConnection(request: AddPrivateConnectionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; addPrivateConnection(request: AddPrivateConnectionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; addPrivateConnection(request: AddPrivateConnectionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Removes specified PrivateConnection from a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ removePrivateConnection(request: RemovePrivateConnectionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; removePrivateConnection(request: RemovePrivateConnectionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; removePrivateConnection(request: RemovePrivateConnectionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Deletes a RoutingInstance resource. * Method starts an asynchronous operation that can be cancelled while it is in progress. */ delete(request: DeleteRoutingInstanceRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteRoutingInstanceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteRoutingInstanceRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Lists operations for the specified RoutingInstance. */ listOperations(request: ListRoutingInstanceOperationsRequest, callback: (error: ServiceError | null, response: ListRoutingInstanceOperationsResponse) => void): ClientUnaryCall; listOperations(request: ListRoutingInstanceOperationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListRoutingInstanceOperationsResponse) => void): ClientUnaryCall; listOperations(request: ListRoutingInstanceOperationsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListRoutingInstanceOperationsResponse) => void): ClientUnaryCall; } export declare const RoutingInstanceServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): RoutingInstanceServiceClient; service: typeof RoutingInstanceServiceService; }; 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 {};