///
import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js';
import _m0 from 'protobufjs/minimal';
import { Configuration } from '../../../../yandex/cloud/baremetal/v1alpha/configuration';
export declare const protobufPackage = "yandex.cloud.baremetal.v1alpha";
export interface GetConfigurationRequest {
/**
* ID of the Configuration resource to return.
*
* To get the configuration ID, use a [ConfigurationService.List] request.
*/
configurationId: string;
}
export interface ListConfigurationsRequest {
/**
* The maximum number of results per page to return. If the number of available
* results is greater than `page_size`,
* the service returns a [ListConfigurationsResponse.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
* [ListConfigurationsResponse.next_page_token] returned by a previous list request.
*/
pageToken: string;
/**
* By which column the listing should be ordered and in which direction,
* format is "createdAt desc". "id asc" if omitted.
* Supported fields: ["id", "name"].
* Both snake_case and camelCase are supported for fields.
*/
orderBy: string;
/**
* A filter expression that filters resources listed in the response.
* The expression consists of one or more conditions united by `AND` operator: ` [AND [<...> AND ]]`.
*
* Each condition has the form ``, where:
* 1. `` is the field name. Currently you can use filtering only on the limited number of fields.
* 2. `` is a logical operator, one of `=` (equal), `:` (substring).
* 3. `` represents a value.
* String values should be written in double (`"`) or single (`'`) quotes. C-style escape sequences are supported (`\"` turns to `"`, `\'` to `'`, `\\` to backslash).
* Example: "key1='value' AND key2='value'"
* Supported operators: ["AND"].
* Supported fields: ["id", "name"].
* Both snake_case and camelCase are supported for fields.
*/
filter: string;
}
export interface ListConfigurationsResponse {
/** List of Configuration resources. */
configurations: Configuration[];
/**
* Token for getting the next page of the list. If the number of results is greater than
* [ListConfigurationsRequest.page_size], use `next_page_token` as the value
* for the [ListConfigurationsRequest.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 GetConfigurationRequest: {
encode(message: GetConfigurationRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): GetConfigurationRequest;
fromJSON(object: any): GetConfigurationRequest;
toJSON(message: GetConfigurationRequest): unknown;
fromPartial, never>>(object: I): GetConfigurationRequest;
};
export declare const ListConfigurationsRequest: {
encode(message: ListConfigurationsRequest, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): ListConfigurationsRequest;
fromJSON(object: any): ListConfigurationsRequest;
toJSON(message: ListConfigurationsRequest): unknown;
fromPartial, never>>(object: I): ListConfigurationsRequest;
};
export declare const ListConfigurationsResponse: {
encode(message: ListConfigurationsResponse, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): ListConfigurationsResponse;
fromJSON(object: any): ListConfigurationsResponse;
toJSON(message: ListConfigurationsResponse): unknown;
fromPartial, never>) | undefined;
diskDrives?: ({
type?: import("./disk").DiskDriveType | undefined;
diskCount?: number | undefined;
diskSizeGib?: number | undefined;
}[] & ({
type?: import("./disk").DiskDriveType | undefined;
diskCount?: number | undefined;
diskSizeGib?: number | undefined;
} & {
type?: import("./disk").DiskDriveType | undefined;
diskCount?: number | undefined;
diskSizeGib?: number | undefined;
} & Record, never>)[] & Record, never>) | undefined;
networkCapacityGbps?: number | undefined;
cpuNum?: number | undefined;
} & Record, never>)[] & Record, never>) | undefined;
nextPageToken?: string | undefined;
} & Record, never>>(object: I): ListConfigurationsResponse;
};
/** A set of methods to retrieve information about Configuration resources. */
export declare const ConfigurationServiceService: {
/**
* Returns the specific Configuration resource.
*
* To get the list of available Configuration resources, make a [List] request.
*/
readonly get: {
readonly path: "/yandex.cloud.baremetal.v1alpha.ConfigurationService/Get";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: GetConfigurationRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => GetConfigurationRequest;
readonly responseSerialize: (value: Configuration) => Buffer;
readonly responseDeserialize: (value: Buffer) => Configuration;
};
/** Retrieves the list of Configuration resources. */
readonly list: {
readonly path: "/yandex.cloud.baremetal.v1alpha.ConfigurationService/List";
readonly requestStream: false;
readonly responseStream: false;
readonly requestSerialize: (value: ListConfigurationsRequest) => Buffer;
readonly requestDeserialize: (value: Buffer) => ListConfigurationsRequest;
readonly responseSerialize: (value: ListConfigurationsResponse) => Buffer;
readonly responseDeserialize: (value: Buffer) => ListConfigurationsResponse;
};
};
export interface ConfigurationServiceServer extends UntypedServiceImplementation {
/**
* Returns the specific Configuration resource.
*
* To get the list of available Configuration resources, make a [List] request.
*/
get: handleUnaryCall;
/** Retrieves the list of Configuration resources. */
list: handleUnaryCall;
}
export interface ConfigurationServiceClient extends Client {
/**
* Returns the specific Configuration resource.
*
* To get the list of available Configuration resources, make a [List] request.
*/
get(request: GetConfigurationRequest, callback: (error: ServiceError | null, response: Configuration) => void): ClientUnaryCall;
get(request: GetConfigurationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Configuration) => void): ClientUnaryCall;
get(request: GetConfigurationRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Configuration) => void): ClientUnaryCall;
/** Retrieves the list of Configuration resources. */
list(request: ListConfigurationsRequest, callback: (error: ServiceError | null, response: ListConfigurationsResponse) => void): ClientUnaryCall;
list(request: ListConfigurationsRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListConfigurationsResponse) => void): ClientUnaryCall;
list(request: ListConfigurationsRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListConfigurationsResponse) => void): ClientUnaryCall;
}
export declare const ConfigurationServiceClient: {
new (address: string, credentials: ChannelCredentials, options?: Partial): ConfigurationServiceClient;
service: typeof ConfigurationServiceService;
};
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