/
device_administration_dictionary_attributes_list.go
171 lines (132 loc) · 11.2 KB
/
device_administration_dictionary_attributes_list.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
package isegosdk
import (
"fmt"
"github.com/go-resty/resty/v2"
)
type DeviceAdministrationDictionaryAttributesListService service
type ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthentication struct {
Response *[]ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthenticationResponse `json:"response,omitempty"` //
Version string `json:"version,omitempty"` //
}
type ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthenticationResponse struct {
AllowedValues *[]ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthenticationResponseAllowedValues `json:"allowedValues,omitempty"` // all of the allowed values for the dictionary attribute
DataType string `json:"dataType,omitempty"` // the data type for the dictionary attribute
Description string `json:"description,omitempty"` // The description of the Dictionary attribute
DictionaryName string `json:"dictionaryName,omitempty"` // the name of the dictionary which the dictionary attribute belongs to
DirectionType string `json:"directionType,omitempty"` // the direction for the useage of the dictionary attribute
ID string `json:"id,omitempty"` // Identifier for the dictionary attribute
InternalName string `json:"internalName,omitempty"` // the internal name of the dictionary attribute
Name string `json:"name,omitempty"` // The dictionary attribute's name
}
type ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthenticationResponseAllowedValues struct {
IsDefault *bool `json:"isDefault,omitempty"` // true if this key value is the default between the allowed values of the dictionary attribute
Key string `json:"key,omitempty"` //
Value string `json:"value,omitempty"` //
}
type ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthorization struct {
Response *[]ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthorizationResponse `json:"response,omitempty"` //
Version string `json:"version,omitempty"` //
}
type ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthorizationResponse struct {
AllowedValues *[]ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthorizationResponseAllowedValues `json:"allowedValues,omitempty"` // all of the allowed values for the dictionary attribute
DataType string `json:"dataType,omitempty"` // the data type for the dictionary attribute
Description string `json:"description,omitempty"` // The description of the Dictionary attribute
DictionaryName string `json:"dictionaryName,omitempty"` // the name of the dictionary which the dictionary attribute belongs to
DirectionType string `json:"directionType,omitempty"` // the direction for the useage of the dictionary attribute
ID string `json:"id,omitempty"` // Identifier for the dictionary attribute
InternalName string `json:"internalName,omitempty"` // the internal name of the dictionary attribute
Name string `json:"name,omitempty"` // The dictionary attribute's name
}
type ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthorizationResponseAllowedValues struct {
IsDefault *bool `json:"isDefault,omitempty"` // true if this key value is the default between the allowed values of the dictionary attribute
Key string `json:"key,omitempty"` //
Value string `json:"value,omitempty"` //
}
type ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesPolicySet struct {
Response *[]ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesPolicySetResponse `json:"response,omitempty"` //
Version string `json:"version,omitempty"` //
}
type ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesPolicySetResponse struct {
AllowedValues *[]ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesPolicySetResponseAllowedValues `json:"allowedValues,omitempty"` // all of the allowed values for the dictionary attribute
DataType string `json:"dataType,omitempty"` // the data type for the dictionary attribute
Description string `json:"description,omitempty"` // The description of the Dictionary attribute
DictionaryName string `json:"dictionaryName,omitempty"` // the name of the dictionary which the dictionary attribute belongs to
DirectionType string `json:"directionType,omitempty"` // the direction for the useage of the dictionary attribute
ID string `json:"id,omitempty"` // Identifier for the dictionary attribute
InternalName string `json:"internalName,omitempty"` // the internal name of the dictionary attribute
Name string `json:"name,omitempty"` // The dictionary attribute's name
}
type ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesPolicySetResponseAllowedValues struct {
IsDefault *bool `json:"isDefault,omitempty"` // true if this key value is the default between the allowed values of the dictionary attribute
Key string `json:"key,omitempty"` //
Value string `json:"value,omitempty"` //
}
//GetDeviceAdminDictionariesAuthentication Network Access - Returns list of dictionary attributes for authentication.
/* Network Access Returns list of dictionary attributes for authentication.
*/
func (s *DeviceAdministrationDictionaryAttributesListService) GetDeviceAdminDictionariesAuthentication() (*ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthentication, *resty.Response, error) {
setHost(s.client, "_ui")
path := "/api/v1/policy/device-admin/dictionaries/authentication"
setCSRFToken(s.client)
response, err := s.client.R().
SetHeader("Content-Type", "application/json").
SetHeader("Accept", "application/json").
SetResult(&ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthentication{}).
SetError(&Error).
Get(path)
if err != nil {
return nil, nil, err
}
if response.IsError() {
return nil, response, fmt.Errorf("error with operation GetDeviceAdminDictionariesAuthentication")
}
getCSFRToken(response.Header())
result := response.Result().(*ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthentication)
return result, response, err
}
//GetDeviceAdminDictionariesAuthorization Network Access - Returns list of dictionary attributes for authorization.
/* Network Access Returns list of dictionary attributes for authorization.
*/
func (s *DeviceAdministrationDictionaryAttributesListService) GetDeviceAdminDictionariesAuthorization() (*ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthorization, *resty.Response, error) {
setHost(s.client, "_ui")
path := "/api/v1/policy/device-admin/dictionaries/authorization"
setCSRFToken(s.client)
response, err := s.client.R().
SetHeader("Content-Type", "application/json").
SetHeader("Accept", "application/json").
SetResult(&ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthorization{}).
SetError(&Error).
Get(path)
if err != nil {
return nil, nil, err
}
if response.IsError() {
return nil, response, fmt.Errorf("error with operation GetDeviceAdminDictionariesAuthorization")
}
getCSFRToken(response.Header())
result := response.Result().(*ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesAuthorization)
return result, response, err
}
//GetDeviceAdminDictionariesPolicySet Network Access - Returns list of dictionary attributes for policyset.
/* Network Access Returns list of dictionary attributes for policyset.
*/
func (s *DeviceAdministrationDictionaryAttributesListService) GetDeviceAdminDictionariesPolicySet() (*ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesPolicySet, *resty.Response, error) {
setHost(s.client, "_ui")
path := "/api/v1/policy/device-admin/dictionaries/policyset"
setCSRFToken(s.client)
response, err := s.client.R().
SetHeader("Content-Type", "application/json").
SetHeader("Accept", "application/json").
SetResult(&ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesPolicySet{}).
SetError(&Error).
Get(path)
if err != nil {
return nil, nil, err
}
if response.IsError() {
return nil, response, fmt.Errorf("error with operation GetDeviceAdminDictionariesPolicySet")
}
getCSFRToken(response.Header())
result := response.Result().(*ResponseDeviceAdministrationDictionaryAttributesListGetDeviceAdminDictionariesPolicySet)
return result, response, err
}