1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-30 02:39:41 +02:00
portainer/app/integrations/storidge/models/node.js
Chaim Lev-Ari cf5056d9c0
chore(project): add prettier for code format (#3645)
* chore(project): install prettier and lint-staged

* chore(project): apply prettier to html too

* chore(project): git ignore eslintcache

* chore(project): add a comment about format script

* chore(prettier): update printWidth

* chore(prettier): remove useTabs option

* chore(prettier): add HTML validation

* refactor(prettier): fix closing tags

* feat(prettier): define angular parser for html templates

* style(prettier): run prettier on codebase

Co-authored-by: Anthony Lapenna <lapenna.anthony@gmail.com>
2020-04-11 09:54:53 +12:00

31 lines
1.1 KiB
JavaScript

export function StoridgeNodeModel(name, data) {
this.Name = name;
this.IP = data.ip;
this.Role = data.role;
this.Status = data.status;
}
export function StoridgeNodeDetailedModel(name, properties) {
this.Name = name;
this.Condition = properties.condition;
this.Domain = properties.domain;
this.DomainID = properties.domainID;
this.FreeBandwidth = properties.freeBandwidth;
this.FreeCapacity = properties.freeCapacity;
this.FreeIOPS = properties.freeIOPS;
this.Hdds = properties.hdds;
this.MetadataVersion = properties.metadataVersion;
this.Nodes = properties.nodes;
this.ProvisionedBandwidth = properties.provisionedBandwidth;
this.ProvisionedCapacity = properties.provisionedCapacity;
this.ProvisionedIOPS = properties.provisionedIOPS;
this.Ssds = properties.ssds;
this.Status = properties.status;
this.TotalBandwidth = properties.totalBandwidth;
this.TotalCapacity = properties.totalCapacity;
this.TotalIOPS = properties.totalIOPS;
this.UsedBandwidth = properties.usedBandwidth;
this.UsedCapacity = properties.usedCapacity;
this.UsedIOPS = properties.usedIOPS;
this.Vdisks = properties.vdisks;
}