///
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { HardwarePool } from '../../../../yandex/cloud/baremetal/v1alpha/hardware_pool';
export declare const protobufPackage = "yandex.cloud.baremetal.v1alpha";
export interface GetHardwarePoolRequest {
/**
* ID of the HardwarePool resource to return.
*
* To get the hardware pool ID, use a [HardwarePoolService.List] request.
*/
hardwarePoolId: string;
}
export interface ListHardwarePoolsRequest {
/**
* The maximum number of results per page to return. If the number of available
* results is greater than `page_size`,
* the service returns a [ListHardwarePoolsResponse.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
* [ListHardwarePoolsResponse.next_page_token] returned by a previous list request.
*/
pageToken: string;
}
export interface ListHardwarePoolsResponse {
/** List of HardwarePool resources. */
hardwarePools: HardwarePool[];
/**
* Token for getting the next page of the list. If the number of results is greater than
* [ListHardwarePoolsResponse.page_size], use `next_page_token` as the value
* for the [ListHardwarePoolsResponse.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 GetHardwarePoolRequest: {
encode(message: GetHardwarePoolRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): GetHardwarePoolRequest;
fromJSON(object: any): GetHardwarePoolRequest;
toJSON(message: GetHardwarePoolRequest): unknown;
fromPartial, never>>(object: I): GetHardwarePoolRequest;
};
export declare const ListHardwarePoolsRequest: {
encode(message: ListHardwarePoolsRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): ListHardwarePoolsRequest;
fromJSON(object: any): ListHardwarePoolsRequest;
toJSON(message: ListHardwarePoolsRequest): unknown;
fromPartial, never>>(object: I): ListHardwarePoolsRequest;
};
export declare const ListHardwarePoolsResponse: {
encode(message: ListHardwarePoolsResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): ListHardwarePoolsResponse;
fromJSON(object: any): ListHardwarePoolsResponse;
toJSON(message: ListHardwarePoolsResponse): unknown;
fromPartial, never>)[] & Record, never>) | undefined;
nextPageToken?: string | undefined;
} & Record, never>>(object: I): ListHardwarePoolsResponse;
};
/** A set of methods to retrieve information about HardwarePool resources. */
export declare const HardwarePoolServiceService: {
/**
* Returns the specific HardwarePool resource.
*
* To get the list of available HardwarePool resource, make a [List] request.
*/
readonly get: {
readonly path: "/yandex.cloud.baremetal.v1alpha.HardwarePoolService/Get";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetHardwarePoolRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetHardwarePoolRequest;
readonly responseSerialize: (value: HardwarePool) => Buffer;
readonly responseDeserialize: (value: Buffer) => HardwarePool;
};
/** Retrieves the list of HardwarePool resources. */
readonly list: {
readonly path: "/yandex.cloud.baremetal.v1alpha.HardwarePoolService/List";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: ListHardwarePoolsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => ListHardwarePoolsRequest;
readonly responseSerialize: (value: ListHardwarePoolsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => ListHardwarePoolsResponse;
};
};
export interface HardwarePoolServiceServer extends UntypedServiceImplementation {
/**
* Returns the specific HardwarePool resource.
*
* To get the list of available HardwarePool resource, make a [List] request.
*/
get: handleUnaryCall;
/** Retrieves the list of HardwarePool resources. */
list: handleUnaryCall;
}
export interface HardwarePoolServiceClient extends Client {
/**
* Returns the specific HardwarePool resource.
*
* To get the list of available HardwarePool resource, make a [List] request.
*/
get(request: GetHardwarePoolRequest, callback: (error: ServiceError | null, response: HardwarePool) => void): ClientUnaryCall;
get(request: GetHardwarePoolRequest, metadata: Metadata, callback: (error: ServiceError | null, response: HardwarePool) => void): ClientUnaryCall;
get(request: GetHardwarePoolRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: HardwarePool) => void): ClientUnaryCall;
/** Retrieves the list of HardwarePool resources. */
list(request: ListHardwarePoolsRequest, callback: (error: ServiceError | null, response: ListHardwarePoolsResponse) => void): ClientUnaryCall;
list(request: ListHardwarePoolsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListHardwarePoolsResponse) => void): ClientUnaryCall;
list(request: ListHardwarePoolsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListHardwarePoolsResponse) => void): ClientUnaryCall;
}
export declare const HardwarePoolServiceClient: {
new (address: string, credentials: ChannelCredentials, options?: Partial): HardwarePoolServiceClient;
service: typeof HardwarePoolServiceService;
};
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