-
Notifications
You must be signed in to change notification settings - Fork 1
/
clienttypes.go
34 lines (29 loc) · 1.24 KB
/
clienttypes.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
package clienttypes
import (
"net/http"
)
const (
mgmtConfig = "/mgmtconfig/v1/admin/customers/"
clientTypesEndpoint = "/clientTypes"
)
type ClientTypes struct {
ZPNClientTypeExplorer string `json:"zpn_client_type_exporter"`
ZPNClientTypeNoAuth string `json:"zpn_client_type_exporter_noauth"`
ZPNClientTypeBrowserIsolation string `json:"zpn_client_type_browser_isolation"`
ZPNClientTypeMachineTunnel string `json:"zpn_client_type_machine_tunnel"`
ZPNClientTypeIPAnchoring string `json:"zpn_client_type_ip_anchoring"`
ZPNClientTypeEdgeConnector string `json:"zpn_client_type_edge_connector"`
ZPNClientTypeZAPP string `json:"zpn_client_type_zapp"`
ZPNClientTypeSlogger string `json:"zpn_client_type_slogger"`
ZPNClientTypeBranchConnector string `json:"zpn_client_type_branch_connector"`
ZPNClientTypePartner string `json:"zpn_client_type_zapp_partner"`
}
func (service *Service) GetAllClientTypes() (*ClientTypes, *http.Response, error) {
v := new(ClientTypes)
relativeURL := mgmtConfig + service.Client.Config.CustomerID + clientTypesEndpoint
resp, err := service.Client.NewRequestDo("GET", relativeURL, nil, nil, &v)
if err != nil {
return nil, nil, err
}
return v, resp, nil
}