/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { Zone } from '../../../../yandex/cloud/compute/v1/zone'; export declare const protobufPackage = "yandex.cloud.compute.v1"; export interface ListZonesRequest { /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], * the service returns a [ListZonesResponse.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 * [ListZonesResponse.next_page_token] returned by a previous list request. */ pageToken: string; } export interface ListZonesResponse { /** List of availability zones. */ zones: Zone[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListZonesRequest.page_size], use * the [ListZonesRequest.page_token] as the value * for the [ListZonesRequest.page_token] query parameter * in the next list request. Subsequent list requests will have their own * [ListZonesRequest.page_token] to continue paging through the results. */ nextPageToken: string; } export interface GetZoneRequest { /** ID of the availability zone to return information about. */ zoneId: string; } export declare const ListZonesRequest: { encode(message: ListZonesRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListZonesRequest; fromJSON(object: any): ListZonesRequest; toJSON(message: ListZonesRequest): unknown; fromPartial, never>>(object: I): ListZonesRequest; }; export declare const ListZonesResponse: { encode(message: ListZonesResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListZonesResponse; fromJSON(object: any): ListZonesResponse; toJSON(message: ListZonesResponse): unknown; fromPartial, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListZonesResponse; }; export declare const GetZoneRequest: { encode(message: GetZoneRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetZoneRequest; fromJSON(object: any): GetZoneRequest; toJSON(message: GetZoneRequest): unknown; fromPartial, never>>(object: I): GetZoneRequest; }; /** A set of methods to retrieve information about availability zones. */ export declare const ZoneServiceService: { /** * Returns the information about the specified availability zone. * * To get the list of availability zones, make a [List] request. */ readonly get: { readonly path: "/yandex.cloud.compute.v1.ZoneService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetZoneRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetZoneRequest; readonly responseSerialize: (value: Zone) => Buffer; readonly responseDeserialize: (value: Buffer) => Zone; }; /** Retrieves the list of availability zones. */ readonly list: { readonly path: "/yandex.cloud.compute.v1.ZoneService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListZonesRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListZonesRequest; readonly responseSerialize: (value: ListZonesResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListZonesResponse; }; }; export interface ZoneServiceServer extends UntypedServiceImplementation { /** * Returns the information about the specified availability zone. * * To get the list of availability zones, make a [List] request. */ get: handleUnaryCall; /** Retrieves the list of availability zones. */ list: handleUnaryCall; } export interface ZoneServiceClient extends Client { /** * Returns the information about the specified availability zone. * * To get the list of availability zones, make a [List] request. */ get(request: GetZoneRequest, callback: (error: ServiceError | null, response: Zone) => void): ClientUnaryCall; get(request: GetZoneRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Zone) => void): ClientUnaryCall; get(request: GetZoneRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Zone) => void): ClientUnaryCall; /** Retrieves the list of availability zones. */ list(request: ListZonesRequest, callback: (error: ServiceError | null, response: ListZonesResponse) => void): ClientUnaryCall; list(request: ListZonesRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListZonesResponse) => void): ClientUnaryCall; list(request: ListZonesRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListZonesResponse) => void): ClientUnaryCall; } export declare const ZoneServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): ZoneServiceClient; service: typeof ZoneServiceService; }; 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 {};