UNPKG

@ydbjs/api

Version:

TypeScript gRPC service definitions and protobuf types for all YDB APIs. Enables strongly-typed client generation and low-level protocol access.

74 lines 3.98 kB
// @generated by protoc-gen-nice-grpc v1 with parameter "target=ts,import_extension=js" // @generated from file ydb_operation_v1.proto (package Ydb.Operation.V1, syntax proto3) /* eslint-disable */ import { create, fromBinary, toBinary } from "@bufbuild/protobuf"; import { CancelOperationRequestSchema, CancelOperationResponseSchema, ForgetOperationRequestSchema, ForgetOperationResponseSchema, GetOperationRequestSchema, GetOperationResponseSchema, ListOperationsRequestSchema, ListOperationsResponseSchema } from "./protos/ydb_operation_pb.js"; /** * @generated from service Ydb.Operation.V1.OperationService */ export const OperationServiceDefinition = { /** * Check status for a given operation. * * @generated from rpc Ydb.Operation.V1.OperationService.GetOperation */ getOperation: { path: "/Ydb.Operation.V1.OperationService/GetOperation", requestStream: false, requestSerialize: (message) => toBinary(GetOperationRequestSchema, create(GetOperationRequestSchema, message)), requestDeserialize: (bytes) => fromBinary(GetOperationRequestSchema, bytes), responseStream: false, responseSerialize: (message) => toBinary(GetOperationResponseSchema, create(GetOperationResponseSchema, message)), responseDeserialize: (bytes) => fromBinary(GetOperationResponseSchema, bytes), options: {}, }, /** * Starts cancellation of a long-running operation, * Clients can use GetOperation to check whether the cancellation succeeded * or whether the operation completed despite cancellation. * * @generated from rpc Ydb.Operation.V1.OperationService.CancelOperation */ cancelOperation: { path: "/Ydb.Operation.V1.OperationService/CancelOperation", requestStream: false, requestSerialize: (message) => toBinary(CancelOperationRequestSchema, create(CancelOperationRequestSchema, message)), requestDeserialize: (bytes) => fromBinary(CancelOperationRequestSchema, bytes), responseStream: false, responseSerialize: (message) => toBinary(CancelOperationResponseSchema, create(CancelOperationResponseSchema, message)), responseDeserialize: (bytes) => fromBinary(CancelOperationResponseSchema, bytes), options: {}, }, /** * Forgets long-running operation. It does not cancel the operation and returns * an error if operation was not completed. * * @generated from rpc Ydb.Operation.V1.OperationService.ForgetOperation */ forgetOperation: { path: "/Ydb.Operation.V1.OperationService/ForgetOperation", requestStream: false, requestSerialize: (message) => toBinary(ForgetOperationRequestSchema, create(ForgetOperationRequestSchema, message)), requestDeserialize: (bytes) => fromBinary(ForgetOperationRequestSchema, bytes), responseStream: false, responseSerialize: (message) => toBinary(ForgetOperationResponseSchema, create(ForgetOperationResponseSchema, message)), responseDeserialize: (bytes) => fromBinary(ForgetOperationResponseSchema, bytes), options: {}, }, /** * Lists operations that match the specified filter in the request. * * @generated from rpc Ydb.Operation.V1.OperationService.ListOperations */ listOperations: { path: "/Ydb.Operation.V1.OperationService/ListOperations", requestStream: false, requestSerialize: (message) => toBinary(ListOperationsRequestSchema, create(ListOperationsRequestSchema, message)), requestDeserialize: (bytes) => fromBinary(ListOperationsRequestSchema, bytes), responseStream: false, responseSerialize: (message) => toBinary(ListOperationsResponseSchema, create(ListOperationsResponseSchema, message)), responseDeserialize: (bytes) => fromBinary(ListOperationsResponseSchema, bytes), options: {}, }, }; //# sourceMappingURL=ydb_operation_v1_grpc_pb.js.map