-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathadmin.go
33 lines (30 loc) · 1.14 KB
/
admin.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
package onfleet
type Admin struct {
Email string `json:"email"`
ID string `json:"id"`
IsAccountOwner bool `json:"isAccountOwner"`
IsActive bool `json:"isActive"`
IsReadOnly bool `json:"isReadOnly"`
Metadata []Metadata `json:"metadata"`
Name string `json:"name"`
Organization string `json:"organization"`
Phone string `json:"phone"`
Teams []string `json:"teams"`
TimeCreated int64 `json:"timeCreated"`
TimeLastModified int64 `json:"timeLastModified"`
Type string `json:"type"`
}
type AdminCreateParams struct {
Email string `json:"email"`
IsReadOnly bool `json:"isReadOnly"`
Metadata []Metadata `json:"metadata,omitempty"`
Name string `json:"name"`
Phone string `json:"phone,omitempty"`
Type string `json:"type,omitempty"`
}
type AdminUpdateParams struct {
Email string `json:"email,omitempty"`
Metadata []Metadata `json:"metadata,omitempty"`
Name string `json:"name,omitempty"`
Phone string `json:"phone,omitempty"`
}