/// 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 { DesktopImage } from '../../../../yandex/cloud/clouddesktop/v1/desktop_image'; import { Operation } from '../../../../yandex/cloud/operation/operation'; export declare const protobufPackage = "yandex.cloud.clouddesktop.v1.api"; export interface ListDesktopImagesRequest { /** ID of the folder to list desktop images in. */ 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 [ListDesktopImagesRequest.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 * [ListDesktopImagesRequest.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 [DesktopImage.name] field. * 2. An operator. Can be either `=` or `!=` for single values, `IN` or `NOT IN` for lists of values. * 3. Value or a list of values to compare against the values of the field. */ filter: string; /** * Sorting the list by [DesktopImage.name], [DesktopImage.created_at] and [DesktopImage.status] fields. * The default sorting order is ascending. */ orderBy: string; } export interface ListDesktopImagesResponse { /** List of desktop images. */ desktopImages: DesktopImage[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListDesktopImagesRequest.page_size], use * the [next_page_token] as the value * for the [ListDesktopImagesRequest.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 CopyDesktopImageRequest { /** ID of the folder to copy the image to. */ folderId: string; /** Name of the image. */ name: string; /** ID of the compute image to copy the image from. */ imageId: string; } export interface UpdateDesktopImageRequest { updateMask?: FieldMask; imageId: string; name: string; labels: { [key: string]: string; }; } export interface UpdateDesktopImageRequest_LabelsEntry { key: string; value: string; } export interface CopyFromDesktopRequest { /** ID of the folder to copy the image to. */ folderId: string; /** Name of the image. */ name: string; /** ID of the desktop to copy the image from. */ desktopId: string; } export interface CopyDesktopImageMetadata { /** ID of the new image. */ imageId: string; } export interface CopyFromDesktopMetadata { /** ID of the new image. */ imageId: string; } export interface DeleteDesktopImageRequest { /** ID of the image to delete. */ imageId: string; } export interface DeleteDesktopImageMetadata { /** ID of the image to delete. */ imageId: string; } export interface GetDesktopImageRequest { /** ID of the image to get. */ imageId: string; } export interface UpdateDesktopImageMetadata { imageId: string; } export declare const ListDesktopImagesRequest: { encode(message: ListDesktopImagesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListDesktopImagesRequest; fromJSON(object: any): ListDesktopImagesRequest; toJSON(message: ListDesktopImagesRequest): unknown; fromPartial, never>>(object: I): ListDesktopImagesRequest; }; export declare const ListDesktopImagesResponse: { encode(message: ListDesktopImagesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListDesktopImagesResponse; fromJSON(object: any): ListDesktopImagesResponse; toJSON(message: ListDesktopImagesResponse): unknown; fromPartial, never>) | undefined; storageSize?: number | undefined; minDiskSize?: number | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListDesktopImagesResponse; }; export declare const CopyDesktopImageRequest: { encode(message: CopyDesktopImageRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CopyDesktopImageRequest; fromJSON(object: any): CopyDesktopImageRequest; toJSON(message: CopyDesktopImageRequest): unknown; fromPartial, never>>(object: I): CopyDesktopImageRequest; }; export declare const UpdateDesktopImageRequest: { encode(message: UpdateDesktopImageRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateDesktopImageRequest; fromJSON(object: any): UpdateDesktopImageRequest; toJSON(message: UpdateDesktopImageRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; imageId?: string | undefined; name?: string | undefined; labels?: ({ [x: string]: string | undefined; } & { [x: string]: string | undefined; } & Record, never>) | undefined; } & Record, never>>(object: I): UpdateDesktopImageRequest; }; export declare const UpdateDesktopImageRequest_LabelsEntry: { encode(message: UpdateDesktopImageRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateDesktopImageRequest_LabelsEntry; fromJSON(object: any): UpdateDesktopImageRequest_LabelsEntry; toJSON(message: UpdateDesktopImageRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): UpdateDesktopImageRequest_LabelsEntry; }; export declare const CopyFromDesktopRequest: { encode(message: CopyFromDesktopRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CopyFromDesktopRequest; fromJSON(object: any): CopyFromDesktopRequest; toJSON(message: CopyFromDesktopRequest): unknown; fromPartial, never>>(object: I): CopyFromDesktopRequest; }; export declare const CopyDesktopImageMetadata: { encode(message: CopyDesktopImageMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CopyDesktopImageMetadata; fromJSON(object: any): CopyDesktopImageMetadata; toJSON(message: CopyDesktopImageMetadata): unknown; fromPartial, never>>(object: I): CopyDesktopImageMetadata; }; export declare const CopyFromDesktopMetadata: { encode(message: CopyFromDesktopMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CopyFromDesktopMetadata; fromJSON(object: any): CopyFromDesktopMetadata; toJSON(message: CopyFromDesktopMetadata): unknown; fromPartial, never>>(object: I): CopyFromDesktopMetadata; }; export declare const DeleteDesktopImageRequest: { encode(message: DeleteDesktopImageRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteDesktopImageRequest; fromJSON(object: any): DeleteDesktopImageRequest; toJSON(message: DeleteDesktopImageRequest): unknown; fromPartial, never>>(object: I): DeleteDesktopImageRequest; }; export declare const DeleteDesktopImageMetadata: { encode(message: DeleteDesktopImageMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteDesktopImageMetadata; fromJSON(object: any): DeleteDesktopImageMetadata; toJSON(message: DeleteDesktopImageMetadata): unknown; fromPartial, never>>(object: I): DeleteDesktopImageMetadata; }; export declare const GetDesktopImageRequest: { encode(message: GetDesktopImageRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetDesktopImageRequest; fromJSON(object: any): GetDesktopImageRequest; toJSON(message: GetDesktopImageRequest): unknown; fromPartial, never>>(object: I): GetDesktopImageRequest; }; export declare const UpdateDesktopImageMetadata: { encode(message: UpdateDesktopImageMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateDesktopImageMetadata; fromJSON(object: any): UpdateDesktopImageMetadata; toJSON(message: UpdateDesktopImageMetadata): unknown; fromPartial, never>>(object: I): UpdateDesktopImageMetadata; }; /** A service for managing desktop images. */ export declare const DesktopImageServiceService: { /** Lists desktop images in the specified folder. */ readonly list: { readonly path: "/yandex.cloud.clouddesktop.v1.api.DesktopImageService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListDesktopImagesRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListDesktopImagesRequest; readonly responseSerialize: (value: ListDesktopImagesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListDesktopImagesResponse; }; /** Returns the specified desktop image. */ readonly get: { readonly path: "/yandex.cloud.clouddesktop.v1.api.DesktopImageService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetDesktopImageRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetDesktopImageRequest; readonly responseSerialize: (value: DesktopImage) => Buffer; readonly responseDeserialize: (value: Buffer) => DesktopImage; }; /** Copies the specified image to desktop image. */ readonly copy: { readonly path: "/yandex.cloud.clouddesktop.v1.api.DesktopImageService/Copy"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CopyDesktopImageRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CopyDesktopImageRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Updates desktop image properties. */ readonly update: { readonly path: "/yandex.cloud.clouddesktop.v1.api.DesktopImageService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateDesktopImageRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateDesktopImageRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Copies the specified desktop image from the specified desktop. */ readonly copyFromDesktop: { readonly path: "/yandex.cloud.clouddesktop.v1.api.DesktopImageService/CopyFromDesktop"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CopyFromDesktopRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CopyFromDesktopRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Deletes the specified desktop image. */ readonly delete: { readonly path: "/yandex.cloud.clouddesktop.v1.api.DesktopImageService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteDesktopImageRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteDesktopImageRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; export interface DesktopImageServiceServer extends UntypedServiceImplementation { /** Lists desktop images in the specified folder. */ list: handleUnaryCall; /** Returns the specified desktop image. */ get: handleUnaryCall; /** Copies the specified image to desktop image. */ copy: handleUnaryCall; /** Updates desktop image properties. */ update: handleUnaryCall; /** Copies the specified desktop image from the specified desktop. */ copyFromDesktop: handleUnaryCall; /** Deletes the specified desktop image. */ delete: handleUnaryCall; } export interface DesktopImageServiceClient extends Client { /** Lists desktop images in the specified folder. */ list(request: ListDesktopImagesRequest, callback: (error: ServiceError | null, response: ListDesktopImagesResponse) => void): ClientUnaryCall; list(request: ListDesktopImagesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListDesktopImagesResponse) => void): ClientUnaryCall; list(request: ListDesktopImagesRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListDesktopImagesResponse) => void): ClientUnaryCall; /** Returns the specified desktop image. */ get(request: GetDesktopImageRequest, callback: (error: ServiceError | null, response: DesktopImage) => void): ClientUnaryCall; get(request: GetDesktopImageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: DesktopImage) => void): ClientUnaryCall; get(request: GetDesktopImageRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: DesktopImage) => void): ClientUnaryCall; /** Copies the specified image to desktop image. */ copy(request: CopyDesktopImageRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; copy(request: CopyDesktopImageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; copy(request: CopyDesktopImageRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Updates desktop image properties. */ update(request: UpdateDesktopImageRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateDesktopImageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateDesktopImageRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Copies the specified desktop image from the specified desktop. */ copyFromDesktop(request: CopyFromDesktopRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; copyFromDesktop(request: CopyFromDesktopRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; copyFromDesktop(request: CopyFromDesktopRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Deletes the specified desktop image. */ delete(request: DeleteDesktopImageRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteDesktopImageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteDesktopImageRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; } export declare const DesktopImageServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): DesktopImageServiceClient; service: typeof DesktopImageServiceService; }; 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 {};