/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { LogOptions, Bus } from '../../../../../yandex/cloud/serverless/eventrouter/v1/bus'; import { FieldMask } from '../../../../../google/protobuf/field_mask'; import { Operation } from '../../../../../yandex/cloud/operation/operation'; import { ListAccessBindingsRequest, ListAccessBindingsResponse, SetAccessBindingsRequest, UpdateAccessBindingsRequest } from '../../../../../yandex/cloud/access/access'; export declare const protobufPackage = "yandex.cloud.serverless.eventrouter.v1"; export interface GetBusRequest { /** ID of the bus to get. */ busId: string; } export interface ListBusesRequest { /** ID of the folder to list buses in. */ folderId: string; /** Maximum number of buses to return. */ pageSize: number; /** * Page token. To get the next page of results, set `page_token` to the * [ListBusesResponse.next_page_token] returned by a previous list request. */ pageToken: string; /** * Supported fields for filter: * name * created_at */ filter: string; } export interface ListBusesResponse { /** List of buses. */ buses: Bus[]; /** Token for getting the next page of the list of buses. */ nextPageToken: string; } export interface CreateBusRequest { /** ID of the folder to create a bus in. */ folderId: string; /** Name of the bus. */ name: string; /** Description of the bus. */ description: string; /** Labels for the bus. */ labels: { [key: string]: string; }; /** Flag that disallow deletion of the bus. */ deletionProtection: boolean; /** Is logging from the bus enabled. */ loggingEnabled: boolean; /** Options for logging from the bus. */ logOptions?: LogOptions; } export interface CreateBusRequest_LabelsEntry { key: string; value: string; } export interface CreateBusMetadata { /** ID of the bus that is being created. */ busId: string; /** ID of the folder that the bus is being created in. */ folderId: string; } export interface UpdateBusRequest { /** ID of the bus to update. */ busId: string; /** Field mask that specifies which fields of the bus are going to be updated. */ updateMask?: FieldMask; /** New name of the bus. */ name: string; /** New description of the bus. */ description: string; /** New labels of the bus. */ labels: { [key: string]: string; }; /** New flag that disallow deletion of the bus. */ deletionProtection: boolean; /** Is logging from the bus enabled. */ loggingEnabled: boolean; /** New options for logging from the bus. */ logOptions?: LogOptions; } export interface UpdateBusRequest_LabelsEntry { key: string; value: string; } export interface UpdateBusMetadata { /** ID of the bus that is being updated. */ busId: string; } export interface DeleteBusRequest { /** ID of the bus to delete. */ busId: string; } export interface DeleteBusMetadata { /** ID of the bus that is being deleted. */ busId: string; } export interface ListBusOperationsRequest { /** ID of the bus to list operations for. */ busId: string; /** Maximum number of operations to return. */ pageSize: number; /** * Page token. To get the next page of results, set `page_token` to the * [ListBusesResponse.next_page_token] returned by a previous list request. */ pageToken: string; /** * Supported attributes for filter: * description * created_at * modified_at * created_by * done */ filter: string; } export interface ListBusOperationsResponse { /** List of operations for the specified bus. */ operations: Operation[]; /** Token for getting the next page of the list of operations. */ nextPageToken: string; } export declare const GetBusRequest: { encode(message: GetBusRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetBusRequest; fromJSON(object: any): GetBusRequest; toJSON(message: GetBusRequest): unknown; fromPartial, never>>(object: I): GetBusRequest; }; export declare const ListBusesRequest: { encode(message: ListBusesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListBusesRequest; fromJSON(object: any): ListBusesRequest; toJSON(message: ListBusesRequest): unknown; fromPartial, never>>(object: I): ListBusesRequest; }; export declare const ListBusesResponse: { encode(message: ListBusesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListBusesResponse; fromJSON(object: any): ListBusesResponse; toJSON(message: ListBusesResponse): unknown; fromPartial, never>) | undefined; deletionProtection?: boolean | undefined; status?: import("../../../../../yandex/cloud/serverless/eventrouter/v1/bus").Bus_Status | undefined; loggingEnabled?: boolean | undefined; logOptions?: ({ logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: import("../../../logging/v1/log_entry").LogLevel_Level | undefined; serviceAccountId?: string | undefined; } & { logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: import("../../../logging/v1/log_entry").LogLevel_Level | undefined; serviceAccountId?: string | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListBusesResponse; }; export declare const CreateBusRequest: { encode(message: CreateBusRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateBusRequest; fromJSON(object: any): CreateBusRequest; toJSON(message: CreateBusRequest): unknown; fromPartial, never>) | undefined; deletionProtection?: boolean | undefined; loggingEnabled?: boolean | undefined; logOptions?: ({ logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: import("../../../logging/v1/log_entry").LogLevel_Level | undefined; serviceAccountId?: string | undefined; } & { logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: import("../../../logging/v1/log_entry").LogLevel_Level | undefined; serviceAccountId?: string | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): CreateBusRequest; }; export declare const CreateBusRequest_LabelsEntry: { encode(message: CreateBusRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateBusRequest_LabelsEntry; fromJSON(object: any): CreateBusRequest_LabelsEntry; toJSON(message: CreateBusRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): CreateBusRequest_LabelsEntry; }; export declare const CreateBusMetadata: { encode(message: CreateBusMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateBusMetadata; fromJSON(object: any): CreateBusMetadata; toJSON(message: CreateBusMetadata): unknown; fromPartial, never>>(object: I): CreateBusMetadata; }; export declare const UpdateBusRequest: { encode(message: UpdateBusRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateBusRequest; fromJSON(object: any): UpdateBusRequest; toJSON(message: UpdateBusRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; name?: string | undefined; description?: string | undefined; labels?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; deletionProtection?: boolean | undefined; loggingEnabled?: boolean | undefined; logOptions?: ({ logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: import("../../../logging/v1/log_entry").LogLevel_Level | undefined; serviceAccountId?: string | undefined; } & { logGroupId?: string | undefined; folderId?: string | undefined; minLevel?: import("../../../logging/v1/log_entry").LogLevel_Level | undefined; serviceAccountId?: string | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): UpdateBusRequest; }; export declare const UpdateBusRequest_LabelsEntry: { encode(message: UpdateBusRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateBusRequest_LabelsEntry; fromJSON(object: any): UpdateBusRequest_LabelsEntry; toJSON(message: UpdateBusRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): UpdateBusRequest_LabelsEntry; }; export declare const UpdateBusMetadata: { encode(message: UpdateBusMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateBusMetadata; fromJSON(object: any): UpdateBusMetadata; toJSON(message: UpdateBusMetadata): unknown; fromPartial, never>>(object: I): UpdateBusMetadata; }; export declare const DeleteBusRequest: { encode(message: DeleteBusRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteBusRequest; fromJSON(object: any): DeleteBusRequest; toJSON(message: DeleteBusRequest): unknown; fromPartial, never>>(object: I): DeleteBusRequest; }; export declare const DeleteBusMetadata: { encode(message: DeleteBusMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteBusMetadata; fromJSON(object: any): DeleteBusMetadata; toJSON(message: DeleteBusMetadata): unknown; fromPartial, never>>(object: I): DeleteBusMetadata; }; export declare const ListBusOperationsRequest: { encode(message: ListBusOperationsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListBusOperationsRequest; fromJSON(object: any): ListBusOperationsRequest; toJSON(message: ListBusOperationsRequest): unknown; fromPartial, never>>(object: I): ListBusOperationsRequest; }; export declare const ListBusOperationsResponse: { encode(message: ListBusOperationsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListBusOperationsResponse; fromJSON(object: any): ListBusOperationsResponse; toJSON(message: ListBusOperationsResponse): 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): ListBusOperationsResponse; }; /** A set of methods for managing buses for serverless eventrouter. */ export declare const BusServiceService: { /** * Returns the specified bus. * To get the list of all available buses, make a [List] request. */ readonly get: { readonly path: "/yandex.cloud.serverless.eventrouter.v1.BusService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetBusRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetBusRequest; readonly responseSerialize: (value: Bus) => Buffer; readonly responseDeserialize: (value: Buffer) => Bus; }; /** Retrieves the list of buses in the specified folder. */ readonly list: { readonly path: "/yandex.cloud.serverless.eventrouter.v1.BusService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListBusesRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListBusesRequest; readonly responseSerialize: (value: ListBusesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListBusesResponse; }; /** Creates a bus in the specified folder. */ readonly create: { readonly path: "/yandex.cloud.serverless.eventrouter.v1.BusService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateBusRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreateBusRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Updates the specified bus. */ readonly update: { readonly path: "/yandex.cloud.serverless.eventrouter.v1.BusService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateBusRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateBusRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Deletes the specified bus. */ readonly delete: { readonly path: "/yandex.cloud.serverless.eventrouter.v1.BusService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteBusRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteBusRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Lists operations for the specified bus. */ readonly listOperations: { readonly path: "/yandex.cloud.serverless.eventrouter.v1.BusService/ListOperations"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListBusOperationsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListBusOperationsRequest; readonly responseSerialize: (value: ListBusOperationsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListBusOperationsResponse; }; /** Lists existing access bindings for the specified bus. */ readonly listAccessBindings: { readonly path: "/yandex.cloud.serverless.eventrouter.v1.BusService/ListAccessBindings"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListAccessBindingsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListAccessBindingsRequest; readonly responseSerialize: (value: ListAccessBindingsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListAccessBindingsResponse; }; /** Sets access bindings for the bus. */ readonly setAccessBindings: { readonly path: "/yandex.cloud.serverless.eventrouter.v1.BusService/SetAccessBindings"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: SetAccessBindingsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => SetAccessBindingsRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Updates access bindings for the specified bus. */ readonly updateAccessBindings: { readonly path: "/yandex.cloud.serverless.eventrouter.v1.BusService/UpdateAccessBindings"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateAccessBindingsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateAccessBindingsRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; export interface BusServiceServer extends UntypedServiceImplementation { /** * Returns the specified bus. * To get the list of all available buses, make a [List] request. */ get: handleUnaryCall; /** Retrieves the list of buses in the specified folder. */ list: handleUnaryCall; /** Creates a bus in the specified folder. */ create: handleUnaryCall; /** Updates the specified bus. */ update: handleUnaryCall; /** Deletes the specified bus. */ delete: handleUnaryCall; /** Lists operations for the specified bus. */ listOperations: handleUnaryCall; /** Lists existing access bindings for the specified bus. */ listAccessBindings: handleUnaryCall; /** Sets access bindings for the bus. */ setAccessBindings: handleUnaryCall; /** Updates access bindings for the specified bus. */ updateAccessBindings: handleUnaryCall; } export interface BusServiceClient extends Client { /** * Returns the specified bus. * To get the list of all available buses, make a [List] request. */ get(request: GetBusRequest, callback: (error: ServiceError | null, response: Bus) => void): ClientUnaryCall; get(request: GetBusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Bus) => void): ClientUnaryCall; get(request: GetBusRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Bus) => void): ClientUnaryCall; /** Retrieves the list of buses in the specified folder. */ list(request: ListBusesRequest, callback: (error: ServiceError | null, response: ListBusesResponse) => void): ClientUnaryCall; list(request: ListBusesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListBusesResponse) => void): ClientUnaryCall; list(request: ListBusesRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListBusesResponse) => void): ClientUnaryCall; /** Creates a bus in the specified folder. */ create(request: CreateBusRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateBusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateBusRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Updates the specified bus. */ update(request: UpdateBusRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateBusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateBusRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Deletes the specified bus. */ delete(request: DeleteBusRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteBusRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteBusRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Lists operations for the specified bus. */ listOperations(request: ListBusOperationsRequest, callback: (error: ServiceError | null, response: ListBusOperationsResponse) => void): ClientUnaryCall; listOperations(request: ListBusOperationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListBusOperationsResponse) => void): ClientUnaryCall; listOperations(request: ListBusOperationsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListBusOperationsResponse) => void): ClientUnaryCall; /** Lists existing access bindings for the specified bus. */ listAccessBindings(request: ListAccessBindingsRequest, callback: (error: ServiceError | null, response: ListAccessBindingsResponse) => void): ClientUnaryCall; listAccessBindings(request: ListAccessBindingsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListAccessBindingsResponse) => void): ClientUnaryCall; listAccessBindings(request: ListAccessBindingsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListAccessBindingsResponse) => void): ClientUnaryCall; /** Sets access bindings for the bus. */ setAccessBindings(request: SetAccessBindingsRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; setAccessBindings(request: SetAccessBindingsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; setAccessBindings(request: SetAccessBindingsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Updates access bindings for the specified bus. */ updateAccessBindings(request: UpdateAccessBindingsRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; updateAccessBindings(request: UpdateAccessBindingsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; updateAccessBindings(request: UpdateAccessBindingsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; } export declare const BusServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): BusServiceClient; service: typeof BusServiceService; }; 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 {};