/// 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 { Image } from '../../../../yandex/cloud/baremetal/v1alpha/image'; import { Operation } from '../../../../yandex/cloud/operation/operation'; export declare const protobufPackage = "yandex.cloud.baremetal.v1alpha"; export interface GetImageRequest { /** * ID of the Image resource to return. * * To get the image ID, use a [ImageService.List] request. */ imageId: string; } export interface ListImagesRequest { /** * ID of the folder to list images 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 greater than `page_size`, * the service returns a [ListConfigurationsResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. * Default value is 20. */ pageSize: number; /** * Page token. To get the next page of results, set `page_token` to the * [ListConfigurationsResponse.next_page_token] returned by a previous list request. */ pageToken: string; /** * By which column the listing should be ordered and in which direction, * format is "createdAt desc". "id asc" if omitted. * Supported fields: ["id", "name", "createdAt"]. * Both snake_case and camelCase are supported for fields. */ orderBy: string; /** * A filter expression that filters resources listed in the response. * The expression consists of one or more conditions united by `AND` operator: ` [AND [<...> AND ]]`. * * Each condition has the form ` `, where: * 1. `` is the field name. Currently you can use filtering only on the limited number of fields. * 2. `` is a logical operator, one of `=` (equal), `:` (substring). * 3. `` represents a value. * String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash). * Example: "key1='value' AND key2='value'" * Supported operators: ["AND"]. * Supported fields: ["id", "name"]. * Both snake_case and camelCase are supported for fields. */ filter: string; } export interface ListImagesResponse { /** List of Image resources. */ images: Image[]; /** * Token for getting the next page of the list. If the number of results is greater than * [ListImagesRequest.page_size], use `next_page_token` as the value * for the [ListImagesRequest.page_token] parameter in the next list request. * * Each subsequent page will have its own `next_page_token` to continue paging through the results. */ nextPageToken: string; } export interface CreateImageRequest { /** * ID of the folder to create an image in. * * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request. */ folderId: string; /** * Name of the image. * The name must be unique within the folder. */ name: string; /** Description of the image. */ description: string; /** * URI of the source image to create the new image from. * Currently only supports links to images that are stored in Object Storage. * Currently only supports ISO formats. */ uri: string; /** Resource labels as `key:value` pairs. */ labels: { [key: string]: string; }; } export interface CreateImageRequest_LabelsEntry { key: string; value: string; } export interface CreateImageMetadata { /** ID of the image that is being created. */ imageId: string; } export interface UpdateImageRequest { /** * ID of the Image resource to update. * * To get the image ID, use a [ImageService.List] request. */ imageId: string; /** Field mask that specifies which fields of the Image resource are going to be updated. */ updateMask?: FieldMask; /** * Name of the image. * The name must be unique within the folder. */ name: string; /** Description of the image. */ description: string; /** * Resource labels as `key:value` pairs. * * Existing set of `labels` is completely replaced by the provided set. */ labels: { [key: string]: string; }; } export interface UpdateImageRequest_LabelsEntry { key: string; value: string; } export interface UpdateImageMetadata { /** ID of the Image resource that is being updated. */ imageId: string; } export interface DeleteImageRequest { /** * ID of the image to delete. * * To get the image ID, use a [ImageService.List] request. */ imageId: string; } export interface DeleteImageMetadata { /** ID of the Image resource that is being deleted. */ imageId: string; } export interface ListImageOperationsRequest { /** ID of the Image resource to list operations for. */ imageId: string; /** * The maximum number of results per page to return. If the number of available * results is greater than `page_size`, * the service returns a [ListImageOperationsResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. * Default value is 20. */ pageSize: number; /** * Page token. To get the next page of results, set `page_token` to the * [ListImageOperationsResponse.next_page_token] returned by a previous list request. */ pageToken: string; } export interface ListImageOperationsResponse { /** List of operations for the specified Image resource. */ operations: Operation[]; /** * Token for getting the next page of the list. If the number of results is greater than * [ListImageOperationsRequest.page_size], use `next_page_token` as the value * for the [ListImageOperationsRequest.page_token] parameter in the next list request. * * Each subsequent page will have its own `next_page_token` to continue paging through the results. */ nextPageToken: string; } export declare const GetImageRequest: { encode(message: GetImageRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetImageRequest; fromJSON(object: any): GetImageRequest; toJSON(message: GetImageRequest): unknown; fromPartial, never>>(object: I): GetImageRequest; }; export declare const ListImagesRequest: { encode(message: ListImagesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListImagesRequest; fromJSON(object: any): ListImagesRequest; toJSON(message: ListImagesRequest): unknown; fromPartial, never>>(object: I): ListImagesRequest; }; export declare const ListImagesResponse: { encode(message: ListImagesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListImagesResponse; fromJSON(object: any): ListImagesResponse; toJSON(message: ListImagesResponse): unknown; fromPartial, never>) | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListImagesResponse; }; export declare const CreateImageRequest: { encode(message: CreateImageRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateImageRequest; fromJSON(object: any): CreateImageRequest; toJSON(message: CreateImageRequest): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): CreateImageRequest; }; export declare const CreateImageRequest_LabelsEntry: { encode(message: CreateImageRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateImageRequest_LabelsEntry; fromJSON(object: any): CreateImageRequest_LabelsEntry; toJSON(message: CreateImageRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): CreateImageRequest_LabelsEntry; }; export declare const CreateImageMetadata: { encode(message: CreateImageMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateImageMetadata; fromJSON(object: any): CreateImageMetadata; toJSON(message: CreateImageMetadata): unknown; fromPartial, never>>(object: I): CreateImageMetadata; }; export declare const UpdateImageRequest: { encode(message: UpdateImageRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateImageRequest; fromJSON(object: any): UpdateImageRequest; toJSON(message: UpdateImageRequest): 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; } & Record, never>>(object: I): UpdateImageRequest; }; export declare const UpdateImageRequest_LabelsEntry: { encode(message: UpdateImageRequest_LabelsEntry, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateImageRequest_LabelsEntry; fromJSON(object: any): UpdateImageRequest_LabelsEntry; toJSON(message: UpdateImageRequest_LabelsEntry): unknown; fromPartial, never>>(object: I): UpdateImageRequest_LabelsEntry; }; export declare const UpdateImageMetadata: { encode(message: UpdateImageMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateImageMetadata; fromJSON(object: any): UpdateImageMetadata; toJSON(message: UpdateImageMetadata): unknown; fromPartial, never>>(object: I): UpdateImageMetadata; }; export declare const DeleteImageRequest: { encode(message: DeleteImageRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteImageRequest; fromJSON(object: any): DeleteImageRequest; toJSON(message: DeleteImageRequest): unknown; fromPartial, never>>(object: I): DeleteImageRequest; }; export declare const DeleteImageMetadata: { encode(message: DeleteImageMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteImageMetadata; fromJSON(object: any): DeleteImageMetadata; toJSON(message: DeleteImageMetadata): unknown; fromPartial, never>>(object: I): DeleteImageMetadata; }; export declare const ListImageOperationsRequest: { encode(message: ListImageOperationsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListImageOperationsRequest; fromJSON(object: any): ListImageOperationsRequest; toJSON(message: ListImageOperationsRequest): unknown; fromPartial, never>>(object: I): ListImageOperationsRequest; }; export declare const ListImageOperationsResponse: { encode(message: ListImageOperationsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListImageOperationsResponse; fromJSON(object: any): ListImageOperationsResponse; toJSON(message: ListImageOperationsResponse): 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): ListImageOperationsResponse; }; /** A set of methods for managing Image resources. */ export declare const ImageServiceService: { /** * Returns the specific Image resource. * * To get the list of available Image resources, make a [List] request. */ readonly get: { readonly path: "/yandex.cloud.baremetal.v1alpha.ImageService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetImageRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetImageRequest; readonly responseSerialize: (value: Image) => Buffer; readonly responseDeserialize: (value: Buffer) => Image; }; /** Retrieves the list of Image resources in the specified folder. */ readonly list: { readonly path: "/yandex.cloud.baremetal.v1alpha.ImageService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListImagesRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListImagesRequest; readonly responseSerialize: (value: ListImagesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListImagesResponse; }; /** Creates an image in the specified folder. */ readonly create: { readonly path: "/yandex.cloud.baremetal.v1alpha.ImageService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateImageRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreateImageRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Updates the specified image. */ readonly update: { readonly path: "/yandex.cloud.baremetal.v1alpha.ImageService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateImageRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateImageRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** * Deletes the specified image. * * Deleting an image removes its data permanently and is irreversible. */ readonly delete: { readonly path: "/yandex.cloud.baremetal.v1alpha.ImageService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteImageRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteImageRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Lists operations for the specified image. */ readonly listOperations: { readonly path: "/yandex.cloud.baremetal.v1alpha.ImageService/ListOperations"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListImageOperationsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListImageOperationsRequest; readonly responseSerialize: (value: ListImageOperationsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListImageOperationsResponse; }; }; export interface ImageServiceServer extends UntypedServiceImplementation { /** * Returns the specific Image resource. * * To get the list of available Image resources, make a [List] request. */ get: handleUnaryCall; /** Retrieves the list of Image resources in the specified folder. */ list: handleUnaryCall; /** Creates an image in the specified folder. */ create: handleUnaryCall; /** Updates the specified image. */ update: handleUnaryCall; /** * Deletes the specified image. * * Deleting an image removes its data permanently and is irreversible. */ delete: handleUnaryCall; /** Lists operations for the specified image. */ listOperations: handleUnaryCall; } export interface ImageServiceClient extends Client { /** * Returns the specific Image resource. * * To get the list of available Image resources, make a [List] request. */ get(request: GetImageRequest, callback: (error: ServiceError | null, response: Image) => void): ClientUnaryCall; get(request: GetImageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Image) => void): ClientUnaryCall; get(request: GetImageRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Image) => void): ClientUnaryCall; /** Retrieves the list of Image resources in the specified folder. */ list(request: ListImagesRequest, callback: (error: ServiceError | null, response: ListImagesResponse) => void): ClientUnaryCall; list(request: ListImagesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListImagesResponse) => void): ClientUnaryCall; list(request: ListImagesRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListImagesResponse) => void): ClientUnaryCall; /** Creates an image in the specified folder. */ create(request: CreateImageRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateImageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateImageRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Updates the specified image. */ update(request: UpdateImageRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateImageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateImageRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** * Deletes the specified image. * * Deleting an image removes its data permanently and is irreversible. */ delete(request: DeleteImageRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteImageRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteImageRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Lists operations for the specified image. */ listOperations(request: ListImageOperationsRequest, callback: (error: ServiceError | null, response: ListImageOperationsResponse) => void): ClientUnaryCall; listOperations(request: ListImageOperationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListImageOperationsResponse) => void): ClientUnaryCall; listOperations(request: ListImageOperationsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListImageOperationsResponse) => void): ClientUnaryCall; } export declare const ImageServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): ImageServiceClient; service: typeof ImageServiceService; }; 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 {};