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