-
Notifications
You must be signed in to change notification settings - Fork 4.3k
/
Copy pathlicense.js
48 lines (45 loc) · 1.04 KB
/
license.js
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
44
45
46
47
48
/**
* Copyright (c) HashiCorp, Inc.
* SPDX-License-Identifier: BUSL-1.1
*/
import Model, { attr } from '@ember-data/model';
/* sample response
{
"data": {
"autoloading_used": true,
"autoloaded": {
"expiration_time": "2017-11-14T16:34:36.546753-05:00",
"license_id": "some-id",
"start_time": "2017-11-14T16:04:36.546753-05:00"
"features": [
"UI",
"HSM",
"Performance Replication",
"DR Replication"
],
},
"stored": {
"expiration_time": "2017-11-14T16:34:36.546753-05:00",
"license_id": "some-id",
"start_time": "2017-11-14T16:04:36.546753-05:00"
"features": [
"UI",
"HSM",
"Performance Replication",
"DR Replication"
],
}
},
"warnings": [
"time left on license is 29m33s"
]
}
*/
export default Model.extend({
expirationTime: attr('string'),
features: attr('array'),
licenseId: attr('string'),
startTime: attr('string'),
performanceStandbyCount: attr('number'),
autoloaded: attr('boolean'),
});