@aneoconsultingfr/armonik.api
Version:
gRPC API to interact with ArmoniK built for the web
88 lines (85 loc) • 4.33 kB
TypeScript
import _m0 from 'protobufjs/minimal.js';
declare const protobufPackage = "armonik.api.grpc.v1.partitions";
/** Represents every available field in a partition. */
declare enum PartitionRawEnumField {
/** PARTITION_RAW_ENUM_FIELD_UNSPECIFIED - Unspecified. */
PARTITION_RAW_ENUM_FIELD_UNSPECIFIED = 0,
/** PARTITION_RAW_ENUM_FIELD_ID - The partition ID. */
PARTITION_RAW_ENUM_FIELD_ID = 1,
/** PARTITION_RAW_ENUM_FIELD_PARENT_PARTITION_IDS - The parent partition IDs. */
PARTITION_RAW_ENUM_FIELD_PARENT_PARTITION_IDS = 2,
/** PARTITION_RAW_ENUM_FIELD_POD_RESERVED - Whether the partition is reserved for pods. */
PARTITION_RAW_ENUM_FIELD_POD_RESERVED = 3,
/** PARTITION_RAW_ENUM_FIELD_POD_MAX - The maximum number of pods that can be used by sessions using the partition. */
PARTITION_RAW_ENUM_FIELD_POD_MAX = 4,
/** PARTITION_RAW_ENUM_FIELD_PREEMPTION_PERCENTAGE - The percentage of the partition that can be preempted. */
PARTITION_RAW_ENUM_FIELD_PREEMPTION_PERCENTAGE = 5,
/** PARTITION_RAW_ENUM_FIELD_PRIORITY - The priority of the partition. */
PARTITION_RAW_ENUM_FIELD_PRIORITY = 6,
UNRECOGNIZED = -1
}
declare function partitionRawEnumFieldFromJSON(object: any): PartitionRawEnumField;
declare function partitionRawEnumFieldToJSON(object: PartitionRawEnumField): string;
/** This message is used to wrap the enum in order to facilitate the 'oneOf' generation. */
interface PartitionRawField {
field: PartitionRawEnumField;
}
declare const PartitionRawField: {
encode(message: PartitionRawField, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): PartitionRawField;
fromJSON(object: any): PartitionRawField;
toJSON(message: PartitionRawField): unknown;
create<I extends {
field?: PartitionRawEnumField | undefined;
} & {
field?: PartitionRawEnumField | undefined;
} & { [K in Exclude<keyof I, "field">]: never; }>(base?: I | undefined): PartitionRawField;
fromPartial<I_1 extends {
field?: PartitionRawEnumField | undefined;
} & {
field?: PartitionRawEnumField | undefined;
} & { [K_1 in Exclude<keyof I_1, "field">]: never; }>(object: I_1): PartitionRawField;
};
interface PartitionField {
/** The partition raw field. */
partitionRawField?: PartitionRawField | undefined;
}
declare const PartitionField: {
encode(message: PartitionField, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): PartitionField;
fromJSON(object: any): PartitionField;
toJSON(message: PartitionField): unknown;
create<I extends {
partitionRawField?: {
field?: PartitionRawEnumField | undefined;
} | undefined;
} & {
partitionRawField?: ({
field?: PartitionRawEnumField | undefined;
} & {
field?: PartitionRawEnumField | undefined;
} & { [K in Exclude<keyof I["partitionRawField"], "field">]: never; }) | undefined;
} & { [K_1 in Exclude<keyof I, "partitionRawField">]: never; }>(base?: I | undefined): PartitionField;
fromPartial<I_1 extends {
partitionRawField?: {
field?: PartitionRawEnumField | undefined;
} | undefined;
} & {
partitionRawField?: ({
field?: PartitionRawEnumField | undefined;
} & {
field?: PartitionRawEnumField | undefined;
} & { [K_2 in Exclude<keyof I_1["partitionRawField"], "field">]: never; }) | undefined;
} & { [K_3 in Exclude<keyof I_1, "partitionRawField">]: never; }>(object: I_1): PartitionField;
};
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
[K in keyof T]?: DeepPartial<T[K]>;
} : Partial<T>;
type KeysOfUnion<T> = T extends T ? keyof T : never;
type Exact<P, I extends P> = P extends Builtin ? P : P & {
[K in keyof P]: Exact<P[K], I[K]>;
} & {
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
};
export { DeepPartial, Exact, PartitionField, PartitionRawEnumField, PartitionRawField, partitionRawEnumFieldFromJSON, partitionRawEnumFieldToJSON, protobufPackage };