/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { Project_Settings, Project_Limits, Project } from '../../../../yandex/cloud/datasphere/v1/project'; import { FieldMask } from '../../../../google/protobuf/field_mask'; import { Operation } from '../../../../yandex/cloud/operation/operation'; import { Empty } from '../../../../google/protobuf/empty'; export declare const protobufPackage = "yandex.cloud.datasphere.v1"; export interface CreateProjectRequest { /** * ID of the folder to create a project in. * To get the folder ID use a [yandex.cloud.resourcemanager.v1.FolderService.List] request. */ folderId: string; /** Name of the project. */ name: string; /** Description of the project. */ description: string; /** Settings of the project. */ settings?: Project_Settings; /** Limits of the project. */ limits?: Project_Limits; } export interface CreateProjectMetadata { /** ID of the project that is being created. */ projectId: string; } export interface UpdateProjectRequest { /** * ID of the Project resource to update. * To get the project ID use a [ProjectService.List] request. */ projectId: string; /** Field mask that specifies which fields of the Project resource are going to be updated. */ updateMask?: FieldMask; /** Name of the project. */ name: string; /** Description of the project. */ description: string; /** Settings of the project. */ settings?: Project_Settings; /** Limits of the project. */ limits?: Project_Limits; } export interface UpdateProjectMetadata { /** ID of the project that is being updated. */ projectId: string; } export interface DeleteProjectRequest { /** * ID of the Project resource to delete. * To get the project ID use a [ProjectService.List] request. */ projectId: string; } export interface DeleteProjectMetadata { /** ID of the project that is being deleted. */ projectId: string; } export interface OpenProjectRequest { /** * ID of the Project resource to open. * To get the project ID use a [ProjectService.List] request. */ projectId: string; } export interface OpenProjectMetadata { /** ID of the project that is being opened. */ projectId: string; } export interface OpenProjectResponse { /** * URL of the project that is being opened. * Make GET request to [project_url] with sessionToken query parameter equals to [session_token] * or POST request to [project_url] with sessionToken body parameter equals to [session_token] * to fetch Datasphere web interface. */ projectUrl: string; /** Session token of the project that is being opened. */ sessionToken: string; } export interface GetProjectRequest { /** * ID of the Project resource to return. * To get the project ID use a [ProjectService.List] request. */ projectId: string; } export interface ListProjectsRequest { /** * ID of the folder to list projects 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 [ListProjectsResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. */ pageSize: number; /** * Page token. To get the next page of results, set [page_token] to the * [ListProjectsResponse.next_page_token] returned by a previous list request. */ pageToken: string; } export interface ListProjectsResponse { /** List of Project resources. */ projects: Project[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListProjectsRequest.page_size], use * the [next_page_token] as the value * for the [ListProjectsRequest.page_token] query parameter * in the next list request. Each subsequent list request will have its own * [next_page_token] to continue paging through the results. */ nextPageToken: string; } export interface GetUnitBalanceRequest { /** ID of the project to return the unit balance for. */ projectId: string; } export interface GetUnitBalanceResponse { /** The number of units available to the project. */ unitBalance?: number; } export interface SetUnitBalanceRequest { /** ID of the project to set the unit balance for. */ projectId: string; /** The number of units available to the project. */ unitBalance?: number; } export interface ProjectExecutionRequest { /** ID of the project to execute notebook/cell in. */ projectId: string; /** ID of the notebook to execute. */ notebookId: string | undefined; /** ID of the cell to execute. */ cellId: string | undefined; /** Values of input variables. */ inputVariables?: { [key: string]: any; }; /** Names of output variables. */ outputVariableNames: string[]; } export interface ProjectExecutionMetadata { /** ID of the project in which notebook is being executed. */ projectId: string; /** ID of the notebook that is being executed */ notebookId: string | undefined; /** ID of the cell that is being executed */ cellId: string | undefined; } export interface ProjectExecutionResponse { } export declare const CreateProjectRequest: { encode(message: CreateProjectRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateProjectRequest; fromJSON(object: any): CreateProjectRequest; toJSON(message: CreateProjectRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; limits?: ({ maxUnitsPerHour?: number | undefined; maxUnitsPerExecution?: number | undefined; } & { maxUnitsPerHour?: number | undefined; maxUnitsPerExecution?: number | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): CreateProjectRequest; }; export declare const CreateProjectMetadata: { encode(message: CreateProjectMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateProjectMetadata; fromJSON(object: any): CreateProjectMetadata; toJSON(message: CreateProjectMetadata): unknown; fromPartial, never>>(object: I): CreateProjectMetadata; }; export declare const UpdateProjectRequest: { encode(message: UpdateProjectRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateProjectRequest; fromJSON(object: any): UpdateProjectRequest; toJSON(message: UpdateProjectRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; name?: string | undefined; description?: string | undefined; settings?: ({ serviceAccountId?: string | undefined; subnetId?: string | undefined; dataProcClusterId?: string | undefined; securityGroupIds?: string[] | undefined; } & { serviceAccountId?: string | undefined; subnetId?: string | undefined; dataProcClusterId?: string | undefined; securityGroupIds?: (string[] & string[] & Record, never>) | undefined; } & Record, never>) | undefined; limits?: ({ maxUnitsPerHour?: number | undefined; maxUnitsPerExecution?: number | undefined; } & { maxUnitsPerHour?: number | undefined; maxUnitsPerExecution?: number | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): UpdateProjectRequest; }; export declare const UpdateProjectMetadata: { encode(message: UpdateProjectMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateProjectMetadata; fromJSON(object: any): UpdateProjectMetadata; toJSON(message: UpdateProjectMetadata): unknown; fromPartial, never>>(object: I): UpdateProjectMetadata; }; export declare const DeleteProjectRequest: { encode(message: DeleteProjectRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteProjectRequest; fromJSON(object: any): DeleteProjectRequest; toJSON(message: DeleteProjectRequest): unknown; fromPartial, never>>(object: I): DeleteProjectRequest; }; export declare const DeleteProjectMetadata: { encode(message: DeleteProjectMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteProjectMetadata; fromJSON(object: any): DeleteProjectMetadata; toJSON(message: DeleteProjectMetadata): unknown; fromPartial, never>>(object: I): DeleteProjectMetadata; }; export declare const OpenProjectRequest: { encode(message: OpenProjectRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OpenProjectRequest; fromJSON(object: any): OpenProjectRequest; toJSON(message: OpenProjectRequest): unknown; fromPartial, never>>(object: I): OpenProjectRequest; }; export declare const OpenProjectMetadata: { encode(message: OpenProjectMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OpenProjectMetadata; fromJSON(object: any): OpenProjectMetadata; toJSON(message: OpenProjectMetadata): unknown; fromPartial, never>>(object: I): OpenProjectMetadata; }; export declare const OpenProjectResponse: { encode(message: OpenProjectResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): OpenProjectResponse; fromJSON(object: any): OpenProjectResponse; toJSON(message: OpenProjectResponse): unknown; fromPartial, never>>(object: I): OpenProjectResponse; }; export declare const GetProjectRequest: { encode(message: GetProjectRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetProjectRequest; fromJSON(object: any): GetProjectRequest; toJSON(message: GetProjectRequest): unknown; fromPartial, never>>(object: I): GetProjectRequest; }; export declare const ListProjectsRequest: { encode(message: ListProjectsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListProjectsRequest; fromJSON(object: any): ListProjectsRequest; toJSON(message: ListProjectsRequest): unknown; fromPartial, never>>(object: I): ListProjectsRequest; }; export declare const ListProjectsResponse: { encode(message: ListProjectsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListProjectsResponse; fromJSON(object: any): ListProjectsResponse; toJSON(message: ListProjectsResponse): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; limits?: ({ maxUnitsPerHour?: number | undefined; maxUnitsPerExecution?: number | undefined; } & { maxUnitsPerHour?: number | undefined; maxUnitsPerExecution?: number | undefined; } & Record, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListProjectsResponse; }; export declare const GetUnitBalanceRequest: { encode(message: GetUnitBalanceRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetUnitBalanceRequest; fromJSON(object: any): GetUnitBalanceRequest; toJSON(message: GetUnitBalanceRequest): unknown; fromPartial, never>>(object: I): GetUnitBalanceRequest; }; export declare const GetUnitBalanceResponse: { encode(message: GetUnitBalanceResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetUnitBalanceResponse; fromJSON(object: any): GetUnitBalanceResponse; toJSON(message: GetUnitBalanceResponse): unknown; fromPartial, never>>(object: I): GetUnitBalanceResponse; }; export declare const SetUnitBalanceRequest: { encode(message: SetUnitBalanceRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): SetUnitBalanceRequest; fromJSON(object: any): SetUnitBalanceRequest; toJSON(message: SetUnitBalanceRequest): unknown; fromPartial, never>>(object: I): SetUnitBalanceRequest; }; export declare const ProjectExecutionRequest: { encode(message: ProjectExecutionRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ProjectExecutionRequest; fromJSON(object: any): ProjectExecutionRequest; toJSON(message: ProjectExecutionRequest): unknown; fromPartial, never>) | undefined; outputVariableNames?: (string[] & string[] & Record, never>) | undefined; } & Record, never>>(object: I): ProjectExecutionRequest; }; export declare const ProjectExecutionMetadata: { encode(message: ProjectExecutionMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ProjectExecutionMetadata; fromJSON(object: any): ProjectExecutionMetadata; toJSON(message: ProjectExecutionMetadata): unknown; fromPartial, never>>(object: I): ProjectExecutionMetadata; }; export declare const ProjectExecutionResponse: { encode(_: ProjectExecutionResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ProjectExecutionResponse; fromJSON(_: any): ProjectExecutionResponse; toJSON(_: ProjectExecutionResponse): unknown; fromPartial, never>>(_: I): ProjectExecutionResponse; }; /** A set of methods for managing Project resources. */ export declare const ProjectServiceService: { /** Creates a project in the specified folder. */ readonly create: { readonly path: "/yandex.cloud.datasphere.v1.ProjectService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateProjectRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreateProjectRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Updates the specified project. */ readonly update: { readonly path: "/yandex.cloud.datasphere.v1.ProjectService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateProjectRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateProjectRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Deletes the specified project. */ readonly delete: { readonly path: "/yandex.cloud.datasphere.v1.ProjectService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteProjectRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteProjectRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Opens the specified project. */ readonly open: { readonly path: "/yandex.cloud.datasphere.v1.ProjectService/Open"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: OpenProjectRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => OpenProjectRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Returns the specified project. */ readonly get: { readonly path: "/yandex.cloud.datasphere.v1.ProjectService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetProjectRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetProjectRequest; readonly responseSerialize: (value: Project) => Buffer; readonly responseDeserialize: (value: Buffer) => Project; }; /** Lists projects for the specified folder. */ readonly list: { readonly path: "/yandex.cloud.datasphere.v1.ProjectService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListProjectsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListProjectsRequest; readonly responseSerialize: (value: ListProjectsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListProjectsResponse; }; /** Returns the unit balance of the specified project. */ readonly getUnitBalance: { readonly path: "/yandex.cloud.datasphere.v1.ProjectService/GetUnitBalance"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetUnitBalanceRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetUnitBalanceRequest; readonly responseSerialize: (value: GetUnitBalanceResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => GetUnitBalanceResponse; }; /** Sets the unit balance of the specified project. */ readonly setUnitBalance: { readonly path: "/yandex.cloud.datasphere.v1.ProjectService/SetUnitBalance"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: SetUnitBalanceRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => SetUnitBalanceRequest; readonly responseSerialize: (value: Empty) => Buffer; readonly responseDeserialize: (value: Buffer) => Empty; }; /** Executes code in the specified cell or notebook. */ readonly execute: { readonly path: "/yandex.cloud.datasphere.v1.ProjectService/Execute"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ProjectExecutionRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ProjectExecutionRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; export interface ProjectServiceServer extends UntypedServiceImplementation { /** Creates a project in the specified folder. */ create: handleUnaryCall; /** Updates the specified project. */ update: handleUnaryCall; /** Deletes the specified project. */ delete: handleUnaryCall; /** Opens the specified project. */ open: handleUnaryCall; /** Returns the specified project. */ get: handleUnaryCall; /** Lists projects for the specified folder. */ list: handleUnaryCall; /** Returns the unit balance of the specified project. */ getUnitBalance: handleUnaryCall; /** Sets the unit balance of the specified project. */ setUnitBalance: handleUnaryCall; /** Executes code in the specified cell or notebook. */ execute: handleUnaryCall; } export interface ProjectServiceClient extends Client { /** Creates a project in the specified folder. */ create(request: CreateProjectRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateProjectRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateProjectRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Updates the specified project. */ update(request: UpdateProjectRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateProjectRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateProjectRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Deletes the specified project. */ delete(request: DeleteProjectRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteProjectRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteProjectRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Opens the specified project. */ open(request: OpenProjectRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; open(request: OpenProjectRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; open(request: OpenProjectRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Returns the specified project. */ get(request: GetProjectRequest, callback: (error: ServiceError | null, response: Project) => void): ClientUnaryCall; get(request: GetProjectRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Project) => void): ClientUnaryCall; get(request: GetProjectRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Project) => void): ClientUnaryCall; /** Lists projects for the specified folder. */ list(request: ListProjectsRequest, callback: (error: ServiceError | null, response: ListProjectsResponse) => void): ClientUnaryCall; list(request: ListProjectsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListProjectsResponse) => void): ClientUnaryCall; list(request: ListProjectsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListProjectsResponse) => void): ClientUnaryCall; /** Returns the unit balance of the specified project. */ getUnitBalance(request: GetUnitBalanceRequest, callback: (error: ServiceError | null, response: GetUnitBalanceResponse) => void): ClientUnaryCall; getUnitBalance(request: GetUnitBalanceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: GetUnitBalanceResponse) => void): ClientUnaryCall; getUnitBalance(request: GetUnitBalanceRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: GetUnitBalanceResponse) => void): ClientUnaryCall; /** Sets the unit balance of the specified project. */ setUnitBalance(request: SetUnitBalanceRequest, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall; setUnitBalance(request: SetUnitBalanceRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall; setUnitBalance(request: SetUnitBalanceRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Empty) => void): ClientUnaryCall; /** Executes code in the specified cell or notebook. */ execute(request: ProjectExecutionRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; execute(request: ProjectExecutionRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; execute(request: ProjectExecutionRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; } export declare const ProjectServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): ProjectServiceClient; service: typeof ProjectServiceService; }; 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 {};