-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes_http.go
64 lines (56 loc) · 1.64 KB
/
types_http.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
package gsuitemdm
//
// GSuiteMDM types for HTTP requests
//
// Action (Approve, Block, Delete, Wipe)
type ActionRequest struct {
Action string `json:"action"`
Confirm bool `json:"confirm"`
Debug bool `json:"debug"`
Domain string `json:"domain"`
IMEI string `json:"imei"`
Key string `json:"key"`
SN string `json:"sn"`
}
// Individual directory entry
type DirectoryData struct {
Name string `json:"name"`
Email string `json:"email"`
PhoneNumber string `json:"phonenumber"`
}
// Multiple directory entries
type AllDirectoryData struct {
Data []DirectoryData
}
// Search
type SearchRequest struct {
Debug bool `json:"debug"`
Domain string `json:"domain"`
ReturnFormat string `json:"format"`
Key string `json:"key"`
QType string `json:"qtype"`
Q string `json:"q"`
SlackToken string `json:"slacktoken"`
}
// Slack Search Request (nicked from https://github.com/nlopes/slack)
type SlackRequest struct {
Token string `json:"token"`
TeamID string `json:"team_id"`
TeamDomain string `json:"team_domain"`
EnterpriseID string `json:"enterprise_id,omitempty"`
EnterpriseName string `json:"enterprise_name,omitempty"`
ChannelID string `json:"channel_id"`
ChannelName string `json:"channel_name"`
UserID string `json:"user_id"`
UserName string `json:"user_name"`
Command string `json:"command"`
Text string `json:"text"`
ResponseURL string `json:"response_url"`
TriggerID string `json:"trigger_id"`
}
// Update
type UpdateRequest struct {
Debug bool `json:"debug"`
Key string `json:"key"`
}
// EOF