-
Notifications
You must be signed in to change notification settings - Fork 806
/
models.go
298 lines (262 loc) · 11.9 KB
/
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
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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
package graphrbac
// Copyright (c) Microsoft and contributors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
import (
"github.com/Azure/go-autorest/autorest"
"github.com/Azure/go-autorest/autorest/date"
)
// AADObject is the properties of an Active Directory object.
type AADObject struct {
autorest.Response `json:"-"`
ObjectID *string `json:"objectId,omitempty"`
ObjectType *string `json:"objectType,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
UserPrincipalName *string `json:"userPrincipalName,omitempty"`
Mail *string `json:"mail,omitempty"`
MailEnabled *bool `json:"mailEnabled,omitempty"`
SecurityEnabled *bool `json:"securityEnabled,omitempty"`
SignInName *string `json:"signInName,omitempty"`
ServicePrincipalNames *[]string `json:"servicePrincipalNames,omitempty"`
UserType *string `json:"userType,omitempty"`
}
// ADGroup is active Directory group information.
type ADGroup struct {
autorest.Response `json:"-"`
ObjectID *string `json:"objectId,omitempty"`
ObjectType *string `json:"objectType,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
SecurityEnabled *bool `json:"securityEnabled,omitempty"`
Mail *string `json:"mail,omitempty"`
}
// Application is active Directory application information.
type Application struct {
autorest.Response `json:"-"`
ObjectID *string `json:"objectId,omitempty"`
ObjectType *string `json:"objectType,omitempty"`
AppID *string `json:"appId,omitempty"`
AppPermissions *[]string `json:"appPermissions,omitempty"`
AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
IdentifierUris *[]string `json:"identifierUris,omitempty"`
ReplyUrls *[]string `json:"replyUrls,omitempty"`
Homepage *string `json:"homepage,omitempty"`
}
// ApplicationCreateParameters is request parameters for creating a new
// application.
type ApplicationCreateParameters struct {
AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
Homepage *string `json:"homepage,omitempty"`
IdentifierUris *[]string `json:"identifierUris,omitempty"`
ReplyUrls *[]string `json:"replyUrls,omitempty"`
KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"`
PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
}
// ApplicationListResult is application list operation result.
type ApplicationListResult struct {
autorest.Response `json:"-"`
Value *[]Application `json:"value,omitempty"`
OdataNextLink *string `json:"odata.nextLink,omitempty"`
}
// ApplicationUpdateParameters is request parameters for updating an existing
// application.
type ApplicationUpdateParameters struct {
AvailableToOtherTenants *bool `json:"availableToOtherTenants,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
Homepage *string `json:"homepage,omitempty"`
IdentifierUris *[]string `json:"identifierUris,omitempty"`
ReplyUrls *[]string `json:"replyUrls,omitempty"`
KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"`
PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
}
// CheckGroupMembershipParameters is request parameters for IsMemberOf API
// call.
type CheckGroupMembershipParameters struct {
GroupID *string `json:"groupId,omitempty"`
MemberID *string `json:"memberId,omitempty"`
}
// CheckGroupMembershipResult is server response for IsMemberOf API call
type CheckGroupMembershipResult struct {
autorest.Response `json:"-"`
Value *bool `json:"value,omitempty"`
}
// ErrorMessage is active Directory error message.
type ErrorMessage struct {
Message *string `json:"value,omitempty"`
}
// GetObjectsParameters is request parameters for the GetObjectsByObjectIds
// API.
type GetObjectsParameters struct {
ObjectIds *[]string `json:"objectIds,omitempty"`
Types *[]string `json:"types,omitempty"`
IncludeDirectoryObjectReferences *bool `json:"includeDirectoryObjectReferences,omitempty"`
}
// GetObjectsResult is the response to an Active Directory object inquiry API
// request.
type GetObjectsResult struct {
autorest.Response `json:"-"`
Value *[]AADObject `json:"value,omitempty"`
OdataNextLink *string `json:"odata.nextLink,omitempty"`
}
// GraphError is active Directory error information.
type GraphError struct {
*OdataError `json:"odata.error,omitempty"`
}
// GroupAddMemberParameters is request parameters for adding a member to a
// group.
type GroupAddMemberParameters struct {
URL *string `json:"url,omitempty"`
}
// GroupCreateParameters is request parameters for creating a new group.
type GroupCreateParameters struct {
DisplayName *string `json:"displayName,omitempty"`
MailEnabled *bool `json:"mailEnabled,omitempty"`
MailNickname *string `json:"mailNickname,omitempty"`
SecurityEnabled *bool `json:"securityEnabled,omitempty"`
}
// GroupGetMemberGroupsParameters is request parameters for GetMemberGroups API
// call.
type GroupGetMemberGroupsParameters struct {
SecurityEnabledOnly *bool `json:"securityEnabledOnly,omitempty"`
}
// GroupGetMemberGroupsResult is server response for GetMemberGroups API call.
type GroupGetMemberGroupsResult struct {
autorest.Response `json:"-"`
Value *[]string `json:"value,omitempty"`
}
// GroupListResult is server response for Get tenant groups API call
type GroupListResult struct {
autorest.Response `json:"-"`
Value *[]ADGroup `json:"value,omitempty"`
OdataNextLink *string `json:"odata.nextLink,omitempty"`
}
// KeyCredential is active Directory Key Credential information.
type KeyCredential struct {
StartDate *date.Time `json:"startDate,omitempty"`
EndDate *date.Time `json:"endDate,omitempty"`
Value *string `json:"value,omitempty"`
KeyID *string `json:"keyId,omitempty"`
Usage *string `json:"usage,omitempty"`
Type *string `json:"type,omitempty"`
}
// KeyCredentialListResult is keyCredential list operation result.
type KeyCredentialListResult struct {
autorest.Response `json:"-"`
Value *[]KeyCredential `json:"value,omitempty"`
}
// KeyCredentialsUpdateParameters is request parameters for a KeyCredentials
// update operation
type KeyCredentialsUpdateParameters struct {
Value *[]KeyCredential `json:"value,omitempty"`
}
// OdataError is active Directory OData error information.
type OdataError struct {
Code *string `json:"code,omitempty"`
*ErrorMessage `json:"message,omitempty"`
}
// PasswordCredential is active Directory Password Credential information.
type PasswordCredential struct {
StartDate *date.Time `json:"startDate,omitempty"`
EndDate *date.Time `json:"endDate,omitempty"`
KeyID *string `json:"keyId,omitempty"`
Value *string `json:"value,omitempty"`
}
// PasswordCredentialListResult is passwordCredential list operation result.
type PasswordCredentialListResult struct {
autorest.Response `json:"-"`
Value *[]PasswordCredential `json:"value,omitempty"`
}
// PasswordCredentialsUpdateParameters is request parameters for a
// PasswordCredentials update operation.
type PasswordCredentialsUpdateParameters struct {
Value *[]PasswordCredential `json:"value,omitempty"`
}
// PasswordProfile is the password profile associated with a user.
type PasswordProfile struct {
Password *string `json:"password,omitempty"`
ForceChangePasswordNextLogin *bool `json:"forceChangePasswordNextLogin,omitempty"`
}
// ServicePrincipal is active Directory service principal information.
type ServicePrincipal struct {
autorest.Response `json:"-"`
ObjectID *string `json:"objectId,omitempty"`
ObjectType *string `json:"objectType,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
AppID *string `json:"appId,omitempty"`
ServicePrincipalNames *[]string `json:"servicePrincipalNames,omitempty"`
}
// ServicePrincipalCreateParameters is request parameters for creating a new
// service principal.
type ServicePrincipalCreateParameters struct {
AppID *string `json:"appId,omitempty"`
AccountEnabled *bool `json:"accountEnabled,omitempty"`
KeyCredentials *[]KeyCredential `json:"keyCredentials,omitempty"`
PasswordCredentials *[]PasswordCredential `json:"passwordCredentials,omitempty"`
}
// ServicePrincipalListResult is server response for get tenant service
// principals API call.
type ServicePrincipalListResult struct {
autorest.Response `json:"-"`
Value *[]ServicePrincipal `json:"value,omitempty"`
OdataNextLink *string `json:"odata.nextLink,omitempty"`
}
// User is active Directory user information.
type User struct {
autorest.Response `json:"-"`
ObjectID *string `json:"objectId,omitempty"`
ObjectType *string `json:"objectType,omitempty"`
UserPrincipalName *string `json:"userPrincipalName,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
SignInName *string `json:"signInName,omitempty"`
Mail *string `json:"mail,omitempty"`
MailNickname *string `json:"mailNickname,omitempty"`
}
// UserCreateParameters is request parameters for creating a new work or school
// account user.
type UserCreateParameters struct {
AccountEnabled *bool `json:"accountEnabled,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
PasswordProfile *PasswordProfile `json:"passwordProfile,omitempty"`
UserPrincipalName *string `json:"userPrincipalName,omitempty"`
MailNickname *string `json:"mailNickname,omitempty"`
ImmutableID *string `json:"immutableId,omitempty"`
}
// UserGetMemberGroupsParameters is request parameters for GetMemberGroups API
// call.
type UserGetMemberGroupsParameters struct {
SecurityEnabledOnly *bool `json:"securityEnabledOnly,omitempty"`
}
// UserGetMemberGroupsResult is server response for GetMemberGroups API call.
type UserGetMemberGroupsResult struct {
autorest.Response `json:"-"`
Value *[]string `json:"value,omitempty"`
}
// UserListResult is server response for Get tenant users API call.
type UserListResult struct {
autorest.Response `json:"-"`
Value *[]User `json:"value,omitempty"`
OdataNextLink *string `json:"odata.nextLink,omitempty"`
}
// UserUpdateParameters is request parameters for updating an existing work or
// school account user.
type UserUpdateParameters struct {
AccountEnabled *bool `json:"accountEnabled,omitempty"`
DisplayName *string `json:"displayName,omitempty"`
PasswordProfile *PasswordProfile `json:"passwordProfile,omitempty"`
MailNickname *string `json:"mailNickname,omitempty"`
}