/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { Resource } from '../../../../yandex/cloud/quotamanager/v1/resource'; export declare const protobufPackage = "yandex.cloud.quotamanager.v1"; export interface GetQuotaLimitRequest { /** The resource for which the quota limit is being requested. */ resource?: Resource; /** The id of the quota to retrieve. */ quotaId: string; } export interface ListQuotaLimitsRequest { /** The resource for which quota limits are being listed. */ resource?: Resource; /** The service for which quota limits are being requested. */ service: string; /** The maximum number of quota limits to return per response. */ pageSize: number; /** Token to retrieve the next page of results. Omitted on the first request. */ pageToken: string; } export interface ListQuotaLimitsResponse { /** The associated resource for these quota limits. */ resource?: Resource; /** List of quota limits for the specified resource and service. */ quotaLimits: QuotaLimit[]; /** Token to retrieve the next page of results. */ nextPageToken: string; } export interface ListServicesRequest { /** The type of resources for which services are being requested. */ resourceType: string; /** The maximum number of services to return per response. */ pageSize: number; /** Token to retrieve the next page of results. Omitted on the first request. */ pageToken: string; } export interface ListServicesResponse { /** List of services available for quota management. */ services: Service[]; /** Token to retrieve the next page of results. */ nextPageToken: string; } export interface QuotaLimit { /** The unique id of the quota. */ quotaId: string; /** The limit value set for this quota. */ limit?: number; /** The current usage level of this quota. */ usage?: number; } export interface Service { /** The unique id of the service. */ id: string; /** The name of the service. */ name: string; } export declare const GetQuotaLimitRequest: { encode(message: GetQuotaLimitRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetQuotaLimitRequest; fromJSON(object: any): GetQuotaLimitRequest; toJSON(message: GetQuotaLimitRequest): unknown; fromPartial, never>) | undefined; quotaId?: string | undefined; } & Record, never>>(object: I): GetQuotaLimitRequest; }; export declare const ListQuotaLimitsRequest: { encode(message: ListQuotaLimitsRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListQuotaLimitsRequest; fromJSON(object: any): ListQuotaLimitsRequest; toJSON(message: ListQuotaLimitsRequest): unknown; fromPartial, never>) | undefined; service?: string | undefined; pageSize?: number | undefined; pageToken?: string | undefined; } & Record, never>>(object: I): ListQuotaLimitsRequest; }; export declare const ListQuotaLimitsResponse: { encode(message: ListQuotaLimitsResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListQuotaLimitsResponse; fromJSON(object: any): ListQuotaLimitsResponse; toJSON(message: ListQuotaLimitsResponse): unknown; fromPartial, never>) | undefined; quotaLimits?: ({ quotaId?: string | undefined; limit?: number | undefined; usage?: number | undefined; }[] & ({ quotaId?: string | undefined; limit?: number | undefined; usage?: number | undefined; } & { quotaId?: string | undefined; limit?: number | undefined; usage?: number | undefined; } & Record, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListQuotaLimitsResponse; }; export declare const ListServicesRequest: { encode(message: ListServicesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListServicesRequest; fromJSON(object: any): ListServicesRequest; toJSON(message: ListServicesRequest): unknown; fromPartial, never>>(object: I): ListServicesRequest; }; export declare const ListServicesResponse: { encode(message: ListServicesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListServicesResponse; fromJSON(object: any): ListServicesResponse; toJSON(message: ListServicesResponse): unknown; fromPartial, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListServicesResponse; }; export declare const QuotaLimit: { encode(message: QuotaLimit, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): QuotaLimit; fromJSON(object: any): QuotaLimit; toJSON(message: QuotaLimit): unknown; fromPartial, never>>(object: I): QuotaLimit; }; export declare const Service: { encode(message: Service, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Service; fromJSON(object: any): Service; toJSON(message: Service): unknown; fromPartial, never>>(object: I): Service; }; /** A set of methods for managing quota limits. */ export declare const QuotaLimitServiceService: { /** Returns the specified quota limit. */ readonly get: { readonly path: "/yandex.cloud.quotamanager.v1.QuotaLimitService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetQuotaLimitRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetQuotaLimitRequest; readonly responseSerialize: (value: QuotaLimit) => Buffer; readonly responseDeserialize: (value: Buffer) => QuotaLimit; }; /** Retrieves the list of quota limits for a given service. */ readonly list: { readonly path: "/yandex.cloud.quotamanager.v1.QuotaLimitService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListQuotaLimitsRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListQuotaLimitsRequest; readonly responseSerialize: (value: ListQuotaLimitsResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListQuotaLimitsResponse; }; /** Retrieves the list of services available for quota management. */ readonly listServices: { readonly path: "/yandex.cloud.quotamanager.v1.QuotaLimitService/ListServices"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListServicesRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListServicesRequest; readonly responseSerialize: (value: ListServicesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListServicesResponse; }; }; export interface QuotaLimitServiceServer extends UntypedServiceImplementation { /** Returns the specified quota limit. */ get: handleUnaryCall; /** Retrieves the list of quota limits for a given service. */ list: handleUnaryCall; /** Retrieves the list of services available for quota management. */ listServices: handleUnaryCall; } export interface QuotaLimitServiceClient extends Client { /** Returns the specified quota limit. */ get(request: GetQuotaLimitRequest, callback: (error: ServiceError | null, response: QuotaLimit) => void): ClientUnaryCall; get(request: GetQuotaLimitRequest, metadata: Metadata, callback: (error: ServiceError | null, response: QuotaLimit) => void): ClientUnaryCall; get(request: GetQuotaLimitRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: QuotaLimit) => void): ClientUnaryCall; /** Retrieves the list of quota limits for a given service. */ list(request: ListQuotaLimitsRequest, callback: (error: ServiceError | null, response: ListQuotaLimitsResponse) => void): ClientUnaryCall; list(request: ListQuotaLimitsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListQuotaLimitsResponse) => void): ClientUnaryCall; list(request: ListQuotaLimitsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListQuotaLimitsResponse) => void): ClientUnaryCall; /** Retrieves the list of services available for quota management. */ listServices(request: ListServicesRequest, callback: (error: ServiceError | null, response: ListServicesResponse) => void): ClientUnaryCall; listServices(request: ListServicesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListServicesResponse) => void): ClientUnaryCall; listServices(request: ListServicesRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListServicesResponse) => void): ClientUnaryCall; } export declare const QuotaLimitServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): QuotaLimitServiceClient; service: typeof QuotaLimitServiceService; }; 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 {};