-
Notifications
You must be signed in to change notification settings - Fork 1
/
device_type_models.go
35 lines (31 loc) · 1.17 KB
/
device_type_models.go
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
//nolint:tagliatelle
package models
type GetDeviceTypeQueryResult struct {
ID string `json:"id"`
Name string `json:"name"`
Metadatakey string `json:"metadata_key"`
Attributes []GetDeviceTypeAttributeQueryResult `json:"attributes"`
}
type GetDeviceTypeAttributeQueryResult struct {
Name string `json:"name"`
Label string `json:"label"`
Description string `json:"description"`
Type string `json:"type"`
Required bool `json:"required"`
DefaultValue string `json:"default_value"` //nolint
Options []string `json:"options"`
}
type CreateDeviceTypeAttribute struct {
Name string `json:"name"`
Label string `json:"label"`
Description string `json:"description"`
Type string `json:"type"`
Required bool `json:"required"`
DefaultValue string `json:"default_value"` //nolint
Options []string `json:"options"`
}
type UpdateDeviceTypeAttribute struct {
// Name should match one of the name keys in the allowed device_types.properties
Name string `json:"name"`
Value string `json:"value"`
}