mirror of https://github.com/portainer/portainer
43 lines
1.2 KiB
JavaScript
43 lines
1.2 KiB
JavaScript
function StoridgeVolumeModel(data) {
|
|
this.Allocated = data['alloc percent'];
|
|
this.Capacity = data.capacity;
|
|
this.Directory = data.directory;
|
|
this.IOPSMax = data.iopsmax;
|
|
this.IOPSMin = data.iopsmin;
|
|
this.LocalDriveOnly = data.localdriveonly;
|
|
this.Name = data.name;
|
|
this.Node = data.node;
|
|
this.NodeID = data.nodeid;
|
|
this.Provisioning = data.provisioning;
|
|
this.Redundancy = data.redundancy;
|
|
this.Type = data.type;
|
|
this.Uuid = data.uuid;
|
|
this.Vdisk = data.vdisk;
|
|
this.Labels = data.labels;
|
|
|
|
this.IP = data.ipaddr;
|
|
this.Volume = data.volume;
|
|
this.DriveType = data.type;
|
|
this.Compression = data.compression;
|
|
this.Dedup = data.dedup;
|
|
this.Encryption = data.encryption;
|
|
this.Replication = data.replication;
|
|
this.SnapshotEnabled = data.snapshot;
|
|
this.SnapshotInterval = data.snapinterval;
|
|
this.SnapshotMax = data.snapmax;
|
|
this.Filesystem = data.filesystem;
|
|
}
|
|
|
|
function StoridgeVolumeUpdateModel(data) {
|
|
this.name = data.Name;
|
|
this.opts = {
|
|
node: data.Node,
|
|
nodeid: data.NodeID,
|
|
capacity: data.Capacity,
|
|
iopsmin: data.IOPSMin,
|
|
iopsmax: data.IOPSMax,
|
|
bandwidthmin: data.BandwidthMin,
|
|
bandwidthmax: data.BandwidthMax
|
|
};
|
|
this.labels = data.Labels;
|
|
} |