blob: 0a8e403d7ce2865e6019f6efa934c8d11410f17e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
export enum RbdConfigurationSourceField {
global = 0,
pool = 1,
image = 2
}
export enum RbdConfigurationType {
bps,
iops,
milliseconds
}
/**
* This configuration can also be set on a pool level.
*/
export interface RbdConfigurationEntry {
name: string;
source: RbdConfigurationSourceField;
value: any;
type?: RbdConfigurationType; // Non-external field.
description?: string; // Non-external field.
displayName?: string; // Non-external field. Nice name for the UI which is added in the UI.
}
/**
* This object contains additional information injected into the elements retrieved by the service.
*/
export interface RbdConfigurationExtraField {
name: string;
displayName: string;
description: string;
type: RbdConfigurationType;
readOnly?: boolean;
}
/**
* Represents a set of data to be used for editing or creating configuration options
*/
export interface RbdConfigurationSection {
heading: string;
class: string;
options: RbdConfigurationExtraField[];
}
|