-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathmodel_ad_user_info.go
More file actions
336 lines (284 loc) · 8.88 KB
/
model_ad_user_info.go
File metadata and controls
336 lines (284 loc) · 8.88 KB
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
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
/*
Horizon Server API
Welcome to the Horizon Server API Reference documentation. This API reference provides comprehensive information about status of all Horizon Server components and resources. <br> Choose Latest spec from dropdown to view API reference on latest version available.
API version: 2111
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package gohorizon
import (
"encoding/json"
)
// ADUserInfo Information related to AD User.
type ADUserInfo struct {
// DNS name of the domain in which this user or group belongs to.
Domain *string `json:"domain,omitempty"`
// Guids of the user's groups in RFC 4122 format.
GroupGuids *[]string `json:"group_guids,omitempty"`
// List of unique SIDs of the groups, this user or group belongs to.
GroupSids *[]string `json:"group_sids,omitempty"`
// GUID of the user in RFC 4122 format.
UserGuid *string `json:"user_guid,omitempty"`
// User Principal name(UPN) of this user.
UserPrincipalName *string `json:"user_principal_name,omitempty"`
// Unique SID representing this AD User.
UserSid *string `json:"user_sid,omitempty"`
// Username of this user.
Username *string `json:"username,omitempty"`
}
// NewADUserInfo instantiates a new ADUserInfo object
// This constructor will assign default values to properties that have it defined,
// and makes sure properties required by API are set, but the set of arguments
// will change when the set of required properties is changed
func NewADUserInfo() *ADUserInfo {
this := ADUserInfo{}
return &this
}
// NewADUserInfoWithDefaults instantiates a new ADUserInfo object
// This constructor will only assign default values to properties that have it defined,
// but it doesn't guarantee that properties required by API are set
func NewADUserInfoWithDefaults() *ADUserInfo {
this := ADUserInfo{}
return &this
}
// GetDomain returns the Domain field value if set, zero value otherwise.
func (o *ADUserInfo) GetDomain() string {
if o == nil || o.Domain == nil {
var ret string
return ret
}
return *o.Domain
}
// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ADUserInfo) GetDomainOk() (*string, bool) {
if o == nil || o.Domain == nil {
return nil, false
}
return o.Domain, true
}
// HasDomain returns a boolean if a field has been set.
func (o *ADUserInfo) HasDomain() bool {
if o != nil && o.Domain != nil {
return true
}
return false
}
// SetDomain gets a reference to the given string and assigns it to the Domain field.
func (o *ADUserInfo) SetDomain(v string) {
o.Domain = &v
}
// GetGroupGuids returns the GroupGuids field value if set, zero value otherwise.
func (o *ADUserInfo) GetGroupGuids() []string {
if o == nil || o.GroupGuids == nil {
var ret []string
return ret
}
return *o.GroupGuids
}
// GetGroupGuidsOk returns a tuple with the GroupGuids field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ADUserInfo) GetGroupGuidsOk() (*[]string, bool) {
if o == nil || o.GroupGuids == nil {
return nil, false
}
return o.GroupGuids, true
}
// HasGroupGuids returns a boolean if a field has been set.
func (o *ADUserInfo) HasGroupGuids() bool {
if o != nil && o.GroupGuids != nil {
return true
}
return false
}
// SetGroupGuids gets a reference to the given []string and assigns it to the GroupGuids field.
func (o *ADUserInfo) SetGroupGuids(v []string) {
o.GroupGuids = &v
}
// GetGroupSids returns the GroupSids field value if set, zero value otherwise.
func (o *ADUserInfo) GetGroupSids() []string {
if o == nil || o.GroupSids == nil {
var ret []string
return ret
}
return *o.GroupSids
}
// GetGroupSidsOk returns a tuple with the GroupSids field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ADUserInfo) GetGroupSidsOk() (*[]string, bool) {
if o == nil || o.GroupSids == nil {
return nil, false
}
return o.GroupSids, true
}
// HasGroupSids returns a boolean if a field has been set.
func (o *ADUserInfo) HasGroupSids() bool {
if o != nil && o.GroupSids != nil {
return true
}
return false
}
// SetGroupSids gets a reference to the given []string and assigns it to the GroupSids field.
func (o *ADUserInfo) SetGroupSids(v []string) {
o.GroupSids = &v
}
// GetUserGuid returns the UserGuid field value if set, zero value otherwise.
func (o *ADUserInfo) GetUserGuid() string {
if o == nil || o.UserGuid == nil {
var ret string
return ret
}
return *o.UserGuid
}
// GetUserGuidOk returns a tuple with the UserGuid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ADUserInfo) GetUserGuidOk() (*string, bool) {
if o == nil || o.UserGuid == nil {
return nil, false
}
return o.UserGuid, true
}
// HasUserGuid returns a boolean if a field has been set.
func (o *ADUserInfo) HasUserGuid() bool {
if o != nil && o.UserGuid != nil {
return true
}
return false
}
// SetUserGuid gets a reference to the given string and assigns it to the UserGuid field.
func (o *ADUserInfo) SetUserGuid(v string) {
o.UserGuid = &v
}
// GetUserPrincipalName returns the UserPrincipalName field value if set, zero value otherwise.
func (o *ADUserInfo) GetUserPrincipalName() string {
if o == nil || o.UserPrincipalName == nil {
var ret string
return ret
}
return *o.UserPrincipalName
}
// GetUserPrincipalNameOk returns a tuple with the UserPrincipalName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ADUserInfo) GetUserPrincipalNameOk() (*string, bool) {
if o == nil || o.UserPrincipalName == nil {
return nil, false
}
return o.UserPrincipalName, true
}
// HasUserPrincipalName returns a boolean if a field has been set.
func (o *ADUserInfo) HasUserPrincipalName() bool {
if o != nil && o.UserPrincipalName != nil {
return true
}
return false
}
// SetUserPrincipalName gets a reference to the given string and assigns it to the UserPrincipalName field.
func (o *ADUserInfo) SetUserPrincipalName(v string) {
o.UserPrincipalName = &v
}
// GetUserSid returns the UserSid field value if set, zero value otherwise.
func (o *ADUserInfo) GetUserSid() string {
if o == nil || o.UserSid == nil {
var ret string
return ret
}
return *o.UserSid
}
// GetUserSidOk returns a tuple with the UserSid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ADUserInfo) GetUserSidOk() (*string, bool) {
if o == nil || o.UserSid == nil {
return nil, false
}
return o.UserSid, true
}
// HasUserSid returns a boolean if a field has been set.
func (o *ADUserInfo) HasUserSid() bool {
if o != nil && o.UserSid != nil {
return true
}
return false
}
// SetUserSid gets a reference to the given string and assigns it to the UserSid field.
func (o *ADUserInfo) SetUserSid(v string) {
o.UserSid = &v
}
// GetUsername returns the Username field value if set, zero value otherwise.
func (o *ADUserInfo) GetUsername() string {
if o == nil || o.Username == nil {
var ret string
return ret
}
return *o.Username
}
// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ADUserInfo) GetUsernameOk() (*string, bool) {
if o == nil || o.Username == nil {
return nil, false
}
return o.Username, true
}
// HasUsername returns a boolean if a field has been set.
func (o *ADUserInfo) HasUsername() bool {
if o != nil && o.Username != nil {
return true
}
return false
}
// SetUsername gets a reference to the given string and assigns it to the Username field.
func (o *ADUserInfo) SetUsername(v string) {
o.Username = &v
}
func (o ADUserInfo) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Domain != nil {
toSerialize["domain"] = o.Domain
}
if o.GroupGuids != nil {
toSerialize["group_guids"] = o.GroupGuids
}
if o.GroupSids != nil {
toSerialize["group_sids"] = o.GroupSids
}
if o.UserGuid != nil {
toSerialize["user_guid"] = o.UserGuid
}
if o.UserPrincipalName != nil {
toSerialize["user_principal_name"] = o.UserPrincipalName
}
if o.UserSid != nil {
toSerialize["user_sid"] = o.UserSid
}
if o.Username != nil {
toSerialize["username"] = o.Username
}
return json.Marshal(toSerialize)
}
type NullableADUserInfo struct {
value *ADUserInfo
isSet bool
}
func (v NullableADUserInfo) Get() *ADUserInfo {
return v.value
}
func (v *NullableADUserInfo) Set(val *ADUserInfo) {
v.value = val
v.isSet = true
}
func (v NullableADUserInfo) IsSet() bool {
return v.isSet
}
func (v *NullableADUserInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableADUserInfo(val *ADUserInfo) *NullableADUserInfo {
return &NullableADUserInfo{value: val, isSet: true}
}
func (v NullableADUserInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableADUserInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}