-
Notifications
You must be signed in to change notification settings - Fork 5
/
shared_models.go
64 lines (51 loc) · 2.2 KB
/
shared_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
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
// shared_models.go
package jamfpro
// Shared Standalone Resources
type SharedResourceSite struct {
ID int `json:"id,omitempty" xml:"id,omitempty"`
Name string `json:"name,omitempty" xml:"name,omitempty"`
}
type SharedResourceSiteProAPI struct {
ID string `json:"id,omitempty"`
Name string `json:"name,omitempty"`
}
type SharedResourceCategory struct {
ID int `json:"id,omitempty" xml:"id,omitempty"`
Name string `json:"name,omitempty" xml:"name,omitempty"`
}
type SharedResourceSelfServiceIcon struct {
ID int `json:"id,omitempty" xml:"id,omitempty"`
URI string `json:"uri,omitempty" xml:"uri,omitempty"`
Data string `json:"data,omitempty" xml:"data,omitempty"`
Filename string `json:"filename,omitempty" xml:"filename,omitempty"`
}
type SharedResourceSelfServiceCategories struct {
Category []SharedResourceSelfServiceCategory
}
type SharedResourceSelfServiceCategory struct {
ID int `json:"id,omitempty" xml:"id,omitempty"`
Name string `json:"name,omitempty" xml:"name,omitempty"`
Priority int `json:"priority,omitempty" xml:"priority,omitempty"`
}
// Advanced Search DisplayField
type SharedAdvancedSearchContainerDisplayField struct {
Size int `xml:"size"`
DisplayField []SharedAdvancedSearchSubsetDisplayField `xml:"display_field"`
}
type SharedAdvancedSearchSubsetDisplayField struct {
Name string `json:"name,omitempty" xml:"name,omitempty"`
}
// Criteria
type SharedContainerCriteria struct {
Size int `json:"size,omitempty" xml:"size,omitempty"`
Criterion []SharedSubsetCriteria `json:"criterion,omitempty" xml:"criterion,omitempty"`
}
type SharedSubsetCriteria struct {
Name string `json:"name,omitempty" xml:"name,omitempty"`
Priority int `json:"priority,omitempty" xml:"priority,omitempty"`
AndOr string `json:"and_or,omitempty" xml:"and_or,omitempty"`
SearchType string `json:"search_type,omitempty" xml:"search_type,omitempty"`
Value string `json:"value,omitempty" xml:"value,omitempty"`
OpeningParen bool `json:"opening_paren,omitempty" xml:"opening_paren,omitempty"`
ClosingParen bool `json:"closing_paren,omitempty" xml:"closing_paren,omitempty"`
}