/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { Operation } from '../../../../yandex/cloud/operation/operation'; export declare const protobufPackage = "yandex.cloud.cdn.v1"; export interface PurgeCacheRequest { /** ID of the resource to perform purge operation on. */ resourceId: string; /** * Set of paths: * Paths of the files to remove from the cache. * * You may use asterisk (`*`) as a wildcard character that substitutes any number of characters. * * If an empty array of paths is specified (`"paths": []`), the cache is purged entirely. */ paths: string[]; } export interface PurgeCacheMetadata { /** ID of the resource. */ resourceId: string; } export interface PrefetchCacheRequest { /** ID of the resource to perform prefetch operation on. */ resourceId: string; /** Set of paths to prefetch. */ paths: string[]; } export interface PrefetchCacheMetadata { /** ID of the resource. */ resourceId: string; } export declare const PurgeCacheRequest: { encode(message: PurgeCacheRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PurgeCacheRequest; fromJSON(object: any): PurgeCacheRequest; toJSON(message: PurgeCacheRequest): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): PurgeCacheRequest; }; export declare const PurgeCacheMetadata: { encode(message: PurgeCacheMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PurgeCacheMetadata; fromJSON(object: any): PurgeCacheMetadata; toJSON(message: PurgeCacheMetadata): unknown; fromPartial, never>>(object: I): PurgeCacheMetadata; }; export declare const PrefetchCacheRequest: { encode(message: PrefetchCacheRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PrefetchCacheRequest; fromJSON(object: any): PrefetchCacheRequest; toJSON(message: PrefetchCacheRequest): unknown; fromPartial, never>) | undefined; } & Record, never>>(object: I): PrefetchCacheRequest; }; export declare const PrefetchCacheMetadata: { encode(message: PrefetchCacheMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): PrefetchCacheMetadata; fromJSON(object: any): PrefetchCacheMetadata; toJSON(message: PrefetchCacheMetadata): unknown; fromPartial, never>>(object: I): PrefetchCacheMetadata; }; /** A set of methods for managing Cache Service resources. */ export declare const CacheServiceService: { /** * Removes specified files from the cache of the specified resource. For details about purging, see [documentation](/docs/cdn/concepts/caching#purge). * * Purging may take up to 15 minutes. */ readonly purge: { readonly path: "/yandex.cloud.cdn.v1.CacheService/Purge"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: PurgeCacheRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => PurgeCacheRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Uploads specified files from origins to cache of the specified resource. For defails about prefetching, see [documentation](/docs/cdn/concepts/caching#prefetch). */ readonly prefetch: { readonly path: "/yandex.cloud.cdn.v1.CacheService/Prefetch"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: PrefetchCacheRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => PrefetchCacheRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; export interface CacheServiceServer extends UntypedServiceImplementation { /** * Removes specified files from the cache of the specified resource. For details about purging, see [documentation](/docs/cdn/concepts/caching#purge). * * Purging may take up to 15 minutes. */ purge: handleUnaryCall; /** Uploads specified files from origins to cache of the specified resource. For defails about prefetching, see [documentation](/docs/cdn/concepts/caching#prefetch). */ prefetch: handleUnaryCall; } export interface CacheServiceClient extends Client { /** * Removes specified files from the cache of the specified resource. For details about purging, see [documentation](/docs/cdn/concepts/caching#purge). * * Purging may take up to 15 minutes. */ purge(request: PurgeCacheRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; purge(request: PurgeCacheRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; purge(request: PurgeCacheRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Uploads specified files from origins to cache of the specified resource. For defails about prefetching, see [documentation](/docs/cdn/concepts/caching#prefetch). */ prefetch(request: PrefetchCacheRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; prefetch(request: PrefetchCacheRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; prefetch(request: PrefetchCacheRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; } export declare const CacheServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): CacheServiceClient; service: typeof CacheServiceService; }; 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 {};