-
Notifications
You must be signed in to change notification settings - Fork 160
/
deviceInventory.yaml
164 lines (161 loc) · 4.22 KB
/
deviceInventory.yaml
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
openapi: 3.0.3
info:
title: Eclipse Kapua REST API - Device Management - Inventory
version: '1.0'
contact:
name: Eclipse Kapua Dev Team
url: https://eclipse.org/kapua
email: kapua-dev@eclipse.org
license:
name: Eclipse Public License 2.0
url: https://www.eclipse.org/legal/epl-2.0
paths: { }
components:
schemas:
inventoryItem:
type: object
properties:
name:
type: string
version:
type: string
itemType:
type: string
example:
name: adduser
version: 3.118
type: DEB
deviceInventory:
type: object
properties:
inventoryItems:
type: array
items:
$ref: '#/components/schemas/inventoryItem'
example:
type: deviceInventory
inventoryItems:
- name: adduser
version: 3.118
itemType: DEB
- name: redis
version: latest
itemType: DOCKER
deviceInventoryBundle:
type: object
properties:
id:
type: string
description: This is the ID of the bundle. Even if type is String, it must be a number!
name:
type: string
version:
type: string
status:
type: string
signed:
type: boolean
example:
id: 0
name: org.eclipse.osgi
version: 3.16.0.v20200828-0759
status: ACTIVE
signed: false
deviceInventoryBundles:
type: object
properties:
inventoryBundles:
type: array
items:
$ref: '#/components/schemas/deviceInventoryBundle'
example:
type: deviceInventoryBundles
inventoryBundles:
- id: 0
name: org.eclipse.osgi
version: 3.16.0.v20200828-0759
status: ACTIVE
- id: 1
name: org.eclipse.equinox.cm
version: 1.4.400.v20200422-1833
status: RESOLVED
deviceInventorySystemPackage:
type: object
properties:
name:
type: string
version:
type: string
packageType:
type: string
example:
name: adduser
packageType: DEB
version: 3.118
deviceInventorySystemPackages:
type: object
properties:
systemPackages:
type: array
items:
$ref: '#/components/schemas/deviceInventorySystemPackage'
example:
type: deviceInventorySystemPackages
systemPackages:
- name: adduser
version: 3.118
type: DEB
- name: alsa-utils
version: 1.1.8-2
type: DEB
deviceInventoryDeploymentPackage:
type: object
properties:
name:
type: string
version:
type: string
packageBundles:
type: array
items:
$ref: '#/components/schemas/deviceInventoryBundle'
example:
name: org.eclipse.kura.example.beacon
version: 1.0.500
packageBundles:
- id: 0
name: org.eclipse.kura.example.beacon
version: 1.0.500
status: ACTIVE
- id: 1
name: org.eclipse.kura.example.package
version: 1.5.400
status: RESOLVED
deviceInventoryDeploymentPackages:
type: object
properties:
systemPackages:
type: array
items:
$ref: '#/components/schemas/deviceInventoryDeploymentPackage'
example:
type: deviceInventoryDeploymentPackages
deploymentPackages:
- name: org.eclipse.kura.example.beacon
version: 1.0.500
packageBundles:
- id: 0
name: org.eclipse.kura.example.beacon
version: 1.0.500
status: ACTIVE
- id: 1
name: org.eclipse.kura.example.package
version: 1.5.400
status: RESOLVED
- name: org.eclipse.kura.example.heater
version: 1.0.500
packageBundles:
- id: 0
name: org.eclipse.kura.example.heater
version: 1.0.500
status: ACTIVE