/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { Zone } from '../../../../yandex/cloud/baremetal/v1alpha/zone'; export declare const protobufPackage = "yandex.cloud.baremetal.v1alpha"; export interface GetZoneRequest { /** * ID of the Zone resource to return. * * To get the zone ID, use a [ZoneService.List] request. */ zoneId: string; } export interface ListZonesRequest { /** * The maximum number of results per page to return. If the number of available * results is greater 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. * Default value is 20. */ 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 Zone resources. */ zones: Zone[]; /** * Token for getting the next page of the list. If the number of results is greater than * [ListZonesRequest.page_size], use `next_page_token` as the value * for the [ListZonesRequest.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 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; }; 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; }; /** A set of methods to retrieve information about availability zones. */ export declare const ZoneServiceService: { /** * Returns the specific Zone resource. * * To get the list of Zone resources, make a [List] request. */ readonly get: { readonly path: "/yandex.cloud.baremetal.v1alpha.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 Zone resources. */ readonly list: { readonly path: "/yandex.cloud.baremetal.v1alpha.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 specific Zone resource. * * To get the list of Zone resources, make a [List] request. */ get: handleUnaryCall; /** Retrieves the list of Zone resources. */ list: handleUnaryCall; } export interface ZoneServiceClient extends Client { /** * Returns the specific Zone resource. * * To get the list of Zone resources, 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 Zone resources. */ 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 {};