/
model_domain_config_ldap.go
783 lines (676 loc) · 23.9 KB
/
model_domain_config_ldap.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
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
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
/*
Keystone API
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: 3
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// DomainConfigLdap struct for DomainConfigLdap
type DomainConfigLdap struct {
// The LDAP URL.
Url *string `json:"url,omitempty"`
// The base distinguished name (DN) of LDAP, from where all users can be reached.
UserTreeDn *string `json:"user_tree_dn,omitempty"`
User *string `json:"user,omitempty"`
Password *string `json:"password,omitempty"`
Suffix *string `json:"suffix,omitempty"`
// 定义了在搜索基中搜索的深度。值“one”表示对下面紧接基准对象的对象搜索,但不包括基准对象本身。 值“sub”表示同时搜索基准对象本身和它下面的整个子树。
QueryScope *string `json:"query_scope,omitempty"`
// The LDAP object class to use for users.
UserObjectclass *string `json:"user_objectclass,omitempty"`
// The LDAP attribute mapped to user IDs in keystone. This must NOT be a multivalued attribute. User IDs are expected to be globally unique across keystone domains and URL-safe.
UserIdAttribute *string `json:"user_id_attribute,omitempty"`
// The LDAP attribute mapped to user names in keystone. User names are expected to be unique only within a keystone domain and are not expected to be URL-safe.
UserNameAttribute *string `json:"user_name_attribute,omitempty"`
// The LDAP attribute mapped to user emails in keystone.
UserMailAttribute *string `json:"user_mail_attribute,omitempty"`
// The LDAP attribute mapped to user passwords in keystone.
UserPassAttribute *string `json:"user_pass_attribute,omitempty"`
// Bitmask integer to select which bit indicates the enabled value if the LDAP server represents \"enabled\" as a bit on an integer rather than as a discrete boolean. A value of `0` indicates that the mask is not used. If this is not set to `0` the typical value is `2`. This is typically used when `[ldap] user_enabled_attribute = userAccountControl`. Setting this option causes keystone to ignore the value of `[ldap] user_enabled_invert`.
UserEnabledMask *string `json:"user_enabled_mask,omitempty"`
// The default value to enable users. This should match an appropriate integer value if the LDAP server uses non-boolean (bitmask) values to indicate if a user is enabled or disabled. If this is not set to `True`, then the typical value is `512`. This is typically used when `[ldap] user_enabled_attribute = userAccountControl`.
UserEnabledDefault *string `json:"user_enabled_default,omitempty"`
// If enabled, keystone is allowed to create users in the LDAP server.
UserAllowCreate *string `json:"user_allow_create,omitempty"`
// If enabled, keystone is allowed to update users in the LDAP server.
UserAllowUpdate *string `json:"user_allow_update,omitempty"`
// If enabled, keystone is allowed to delete users in the LDAP server.
UserAllowDelete *string `json:"user_allow_delete,omitempty"`
// set 0 to disable pagination
PageSize *string `json:"page_size,omitempty"`
UserFilter *string `json:"user_filter,omitempty"`
}
// NewDomainConfigLdap instantiates a new DomainConfigLdap 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 NewDomainConfigLdap() *DomainConfigLdap {
this := DomainConfigLdap{}
var userObjectclass string = "organizationalPerson"
this.UserObjectclass = &userObjectclass
var userIdAttribute string = "cn"
this.UserIdAttribute = &userIdAttribute
var userNameAttribute string = "sn"
this.UserNameAttribute = &userNameAttribute
var userMailAttribute string = "mail"
this.UserMailAttribute = &userMailAttribute
var userPassAttribute string = "userPassword"
this.UserPassAttribute = &userPassAttribute
var userEnabledMask string = "2"
this.UserEnabledMask = &userEnabledMask
var userEnabledDefault string = "true"
this.UserEnabledDefault = &userEnabledDefault
var userAllowCreate string = "true"
this.UserAllowCreate = &userAllowCreate
var userAllowUpdate string = "true"
this.UserAllowUpdate = &userAllowUpdate
var userAllowDelete string = "true"
this.UserAllowDelete = &userAllowDelete
var pageSize string = "0"
this.PageSize = &pageSize
return &this
}
// NewDomainConfigLdapWithDefaults instantiates a new DomainConfigLdap 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 NewDomainConfigLdapWithDefaults() *DomainConfigLdap {
this := DomainConfigLdap{}
var userObjectclass string = "organizationalPerson"
this.UserObjectclass = &userObjectclass
var userIdAttribute string = "cn"
this.UserIdAttribute = &userIdAttribute
var userNameAttribute string = "sn"
this.UserNameAttribute = &userNameAttribute
var userMailAttribute string = "mail"
this.UserMailAttribute = &userMailAttribute
var userPassAttribute string = "userPassword"
this.UserPassAttribute = &userPassAttribute
var userEnabledMask string = "2"
this.UserEnabledMask = &userEnabledMask
var userEnabledDefault string = "true"
this.UserEnabledDefault = &userEnabledDefault
var userAllowCreate string = "true"
this.UserAllowCreate = &userAllowCreate
var userAllowUpdate string = "true"
this.UserAllowUpdate = &userAllowUpdate
var userAllowDelete string = "true"
this.UserAllowDelete = &userAllowDelete
var pageSize string = "0"
this.PageSize = &pageSize
return &this
}
// GetUrl returns the Url field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetUrl() string {
if o == nil || o.Url == nil {
var ret string
return ret
}
return *o.Url
}
// GetUrlOk returns a tuple with the Url field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetUrlOk() (*string, bool) {
if o == nil || o.Url == nil {
return nil, false
}
return o.Url, true
}
// HasUrl returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasUrl() bool {
if o != nil && o.Url != nil {
return true
}
return false
}
// SetUrl gets a reference to the given string and assigns it to the Url field.
func (o *DomainConfigLdap) SetUrl(v string) {
o.Url = &v
}
// GetUserTreeDn returns the UserTreeDn field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetUserTreeDn() string {
if o == nil || o.UserTreeDn == nil {
var ret string
return ret
}
return *o.UserTreeDn
}
// GetUserTreeDnOk returns a tuple with the UserTreeDn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetUserTreeDnOk() (*string, bool) {
if o == nil || o.UserTreeDn == nil {
return nil, false
}
return o.UserTreeDn, true
}
// HasUserTreeDn returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasUserTreeDn() bool {
if o != nil && o.UserTreeDn != nil {
return true
}
return false
}
// SetUserTreeDn gets a reference to the given string and assigns it to the UserTreeDn field.
func (o *DomainConfigLdap) SetUserTreeDn(v string) {
o.UserTreeDn = &v
}
// GetUser returns the User field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetUser() string {
if o == nil || o.User == nil {
var ret string
return ret
}
return *o.User
}
// GetUserOk returns a tuple with the User field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetUserOk() (*string, bool) {
if o == nil || o.User == nil {
return nil, false
}
return o.User, true
}
// HasUser returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasUser() bool {
if o != nil && o.User != nil {
return true
}
return false
}
// SetUser gets a reference to the given string and assigns it to the User field.
func (o *DomainConfigLdap) SetUser(v string) {
o.User = &v
}
// GetPassword returns the Password field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetPassword() string {
if o == nil || o.Password == nil {
var ret string
return ret
}
return *o.Password
}
// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetPasswordOk() (*string, bool) {
if o == nil || o.Password == nil {
return nil, false
}
return o.Password, true
}
// HasPassword returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasPassword() bool {
if o != nil && o.Password != nil {
return true
}
return false
}
// SetPassword gets a reference to the given string and assigns it to the Password field.
func (o *DomainConfigLdap) SetPassword(v string) {
o.Password = &v
}
// GetSuffix returns the Suffix field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetSuffix() string {
if o == nil || o.Suffix == nil {
var ret string
return ret
}
return *o.Suffix
}
// GetSuffixOk returns a tuple with the Suffix field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetSuffixOk() (*string, bool) {
if o == nil || o.Suffix == nil {
return nil, false
}
return o.Suffix, true
}
// HasSuffix returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasSuffix() bool {
if o != nil && o.Suffix != nil {
return true
}
return false
}
// SetSuffix gets a reference to the given string and assigns it to the Suffix field.
func (o *DomainConfigLdap) SetSuffix(v string) {
o.Suffix = &v
}
// GetQueryScope returns the QueryScope field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetQueryScope() string {
if o == nil || o.QueryScope == nil {
var ret string
return ret
}
return *o.QueryScope
}
// GetQueryScopeOk returns a tuple with the QueryScope field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetQueryScopeOk() (*string, bool) {
if o == nil || o.QueryScope == nil {
return nil, false
}
return o.QueryScope, true
}
// HasQueryScope returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasQueryScope() bool {
if o != nil && o.QueryScope != nil {
return true
}
return false
}
// SetQueryScope gets a reference to the given string and assigns it to the QueryScope field.
func (o *DomainConfigLdap) SetQueryScope(v string) {
o.QueryScope = &v
}
// GetUserObjectclass returns the UserObjectclass field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetUserObjectclass() string {
if o == nil || o.UserObjectclass == nil {
var ret string
return ret
}
return *o.UserObjectclass
}
// GetUserObjectclassOk returns a tuple with the UserObjectclass field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetUserObjectclassOk() (*string, bool) {
if o == nil || o.UserObjectclass == nil {
return nil, false
}
return o.UserObjectclass, true
}
// HasUserObjectclass returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasUserObjectclass() bool {
if o != nil && o.UserObjectclass != nil {
return true
}
return false
}
// SetUserObjectclass gets a reference to the given string and assigns it to the UserObjectclass field.
func (o *DomainConfigLdap) SetUserObjectclass(v string) {
o.UserObjectclass = &v
}
// GetUserIdAttribute returns the UserIdAttribute field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetUserIdAttribute() string {
if o == nil || o.UserIdAttribute == nil {
var ret string
return ret
}
return *o.UserIdAttribute
}
// GetUserIdAttributeOk returns a tuple with the UserIdAttribute field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetUserIdAttributeOk() (*string, bool) {
if o == nil || o.UserIdAttribute == nil {
return nil, false
}
return o.UserIdAttribute, true
}
// HasUserIdAttribute returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasUserIdAttribute() bool {
if o != nil && o.UserIdAttribute != nil {
return true
}
return false
}
// SetUserIdAttribute gets a reference to the given string and assigns it to the UserIdAttribute field.
func (o *DomainConfigLdap) SetUserIdAttribute(v string) {
o.UserIdAttribute = &v
}
// GetUserNameAttribute returns the UserNameAttribute field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetUserNameAttribute() string {
if o == nil || o.UserNameAttribute == nil {
var ret string
return ret
}
return *o.UserNameAttribute
}
// GetUserNameAttributeOk returns a tuple with the UserNameAttribute field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetUserNameAttributeOk() (*string, bool) {
if o == nil || o.UserNameAttribute == nil {
return nil, false
}
return o.UserNameAttribute, true
}
// HasUserNameAttribute returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasUserNameAttribute() bool {
if o != nil && o.UserNameAttribute != nil {
return true
}
return false
}
// SetUserNameAttribute gets a reference to the given string and assigns it to the UserNameAttribute field.
func (o *DomainConfigLdap) SetUserNameAttribute(v string) {
o.UserNameAttribute = &v
}
// GetUserMailAttribute returns the UserMailAttribute field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetUserMailAttribute() string {
if o == nil || o.UserMailAttribute == nil {
var ret string
return ret
}
return *o.UserMailAttribute
}
// GetUserMailAttributeOk returns a tuple with the UserMailAttribute field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetUserMailAttributeOk() (*string, bool) {
if o == nil || o.UserMailAttribute == nil {
return nil, false
}
return o.UserMailAttribute, true
}
// HasUserMailAttribute returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasUserMailAttribute() bool {
if o != nil && o.UserMailAttribute != nil {
return true
}
return false
}
// SetUserMailAttribute gets a reference to the given string and assigns it to the UserMailAttribute field.
func (o *DomainConfigLdap) SetUserMailAttribute(v string) {
o.UserMailAttribute = &v
}
// GetUserPassAttribute returns the UserPassAttribute field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetUserPassAttribute() string {
if o == nil || o.UserPassAttribute == nil {
var ret string
return ret
}
return *o.UserPassAttribute
}
// GetUserPassAttributeOk returns a tuple with the UserPassAttribute field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetUserPassAttributeOk() (*string, bool) {
if o == nil || o.UserPassAttribute == nil {
return nil, false
}
return o.UserPassAttribute, true
}
// HasUserPassAttribute returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasUserPassAttribute() bool {
if o != nil && o.UserPassAttribute != nil {
return true
}
return false
}
// SetUserPassAttribute gets a reference to the given string and assigns it to the UserPassAttribute field.
func (o *DomainConfigLdap) SetUserPassAttribute(v string) {
o.UserPassAttribute = &v
}
// GetUserEnabledMask returns the UserEnabledMask field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetUserEnabledMask() string {
if o == nil || o.UserEnabledMask == nil {
var ret string
return ret
}
return *o.UserEnabledMask
}
// GetUserEnabledMaskOk returns a tuple with the UserEnabledMask field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetUserEnabledMaskOk() (*string, bool) {
if o == nil || o.UserEnabledMask == nil {
return nil, false
}
return o.UserEnabledMask, true
}
// HasUserEnabledMask returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasUserEnabledMask() bool {
if o != nil && o.UserEnabledMask != nil {
return true
}
return false
}
// SetUserEnabledMask gets a reference to the given string and assigns it to the UserEnabledMask field.
func (o *DomainConfigLdap) SetUserEnabledMask(v string) {
o.UserEnabledMask = &v
}
// GetUserEnabledDefault returns the UserEnabledDefault field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetUserEnabledDefault() string {
if o == nil || o.UserEnabledDefault == nil {
var ret string
return ret
}
return *o.UserEnabledDefault
}
// GetUserEnabledDefaultOk returns a tuple with the UserEnabledDefault field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetUserEnabledDefaultOk() (*string, bool) {
if o == nil || o.UserEnabledDefault == nil {
return nil, false
}
return o.UserEnabledDefault, true
}
// HasUserEnabledDefault returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasUserEnabledDefault() bool {
if o != nil && o.UserEnabledDefault != nil {
return true
}
return false
}
// SetUserEnabledDefault gets a reference to the given string and assigns it to the UserEnabledDefault field.
func (o *DomainConfigLdap) SetUserEnabledDefault(v string) {
o.UserEnabledDefault = &v
}
// GetUserAllowCreate returns the UserAllowCreate field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetUserAllowCreate() string {
if o == nil || o.UserAllowCreate == nil {
var ret string
return ret
}
return *o.UserAllowCreate
}
// GetUserAllowCreateOk returns a tuple with the UserAllowCreate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetUserAllowCreateOk() (*string, bool) {
if o == nil || o.UserAllowCreate == nil {
return nil, false
}
return o.UserAllowCreate, true
}
// HasUserAllowCreate returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasUserAllowCreate() bool {
if o != nil && o.UserAllowCreate != nil {
return true
}
return false
}
// SetUserAllowCreate gets a reference to the given string and assigns it to the UserAllowCreate field.
func (o *DomainConfigLdap) SetUserAllowCreate(v string) {
o.UserAllowCreate = &v
}
// GetUserAllowUpdate returns the UserAllowUpdate field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetUserAllowUpdate() string {
if o == nil || o.UserAllowUpdate == nil {
var ret string
return ret
}
return *o.UserAllowUpdate
}
// GetUserAllowUpdateOk returns a tuple with the UserAllowUpdate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetUserAllowUpdateOk() (*string, bool) {
if o == nil || o.UserAllowUpdate == nil {
return nil, false
}
return o.UserAllowUpdate, true
}
// HasUserAllowUpdate returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasUserAllowUpdate() bool {
if o != nil && o.UserAllowUpdate != nil {
return true
}
return false
}
// SetUserAllowUpdate gets a reference to the given string and assigns it to the UserAllowUpdate field.
func (o *DomainConfigLdap) SetUserAllowUpdate(v string) {
o.UserAllowUpdate = &v
}
// GetUserAllowDelete returns the UserAllowDelete field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetUserAllowDelete() string {
if o == nil || o.UserAllowDelete == nil {
var ret string
return ret
}
return *o.UserAllowDelete
}
// GetUserAllowDeleteOk returns a tuple with the UserAllowDelete field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetUserAllowDeleteOk() (*string, bool) {
if o == nil || o.UserAllowDelete == nil {
return nil, false
}
return o.UserAllowDelete, true
}
// HasUserAllowDelete returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasUserAllowDelete() bool {
if o != nil && o.UserAllowDelete != nil {
return true
}
return false
}
// SetUserAllowDelete gets a reference to the given string and assigns it to the UserAllowDelete field.
func (o *DomainConfigLdap) SetUserAllowDelete(v string) {
o.UserAllowDelete = &v
}
// GetPageSize returns the PageSize field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetPageSize() string {
if o == nil || o.PageSize == nil {
var ret string
return ret
}
return *o.PageSize
}
// GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetPageSizeOk() (*string, bool) {
if o == nil || o.PageSize == nil {
return nil, false
}
return o.PageSize, true
}
// HasPageSize returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasPageSize() bool {
if o != nil && o.PageSize != nil {
return true
}
return false
}
// SetPageSize gets a reference to the given string and assigns it to the PageSize field.
func (o *DomainConfigLdap) SetPageSize(v string) {
o.PageSize = &v
}
// GetUserFilter returns the UserFilter field value if set, zero value otherwise.
func (o *DomainConfigLdap) GetUserFilter() string {
if o == nil || o.UserFilter == nil {
var ret string
return ret
}
return *o.UserFilter
}
// GetUserFilterOk returns a tuple with the UserFilter field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DomainConfigLdap) GetUserFilterOk() (*string, bool) {
if o == nil || o.UserFilter == nil {
return nil, false
}
return o.UserFilter, true
}
// HasUserFilter returns a boolean if a field has been set.
func (o *DomainConfigLdap) HasUserFilter() bool {
if o != nil && o.UserFilter != nil {
return true
}
return false
}
// SetUserFilter gets a reference to the given string and assigns it to the UserFilter field.
func (o *DomainConfigLdap) SetUserFilter(v string) {
o.UserFilter = &v
}
func (o DomainConfigLdap) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Url != nil {
toSerialize["url"] = o.Url
}
if o.UserTreeDn != nil {
toSerialize["user_tree_dn"] = o.UserTreeDn
}
if o.User != nil {
toSerialize["user"] = o.User
}
if o.Password != nil {
toSerialize["password"] = o.Password
}
if o.Suffix != nil {
toSerialize["suffix"] = o.Suffix
}
if o.QueryScope != nil {
toSerialize["query_scope"] = o.QueryScope
}
if o.UserObjectclass != nil {
toSerialize["user_objectclass"] = o.UserObjectclass
}
if o.UserIdAttribute != nil {
toSerialize["user_id_attribute"] = o.UserIdAttribute
}
if o.UserNameAttribute != nil {
toSerialize["user_name_attribute"] = o.UserNameAttribute
}
if o.UserMailAttribute != nil {
toSerialize["user_mail_attribute"] = o.UserMailAttribute
}
if o.UserPassAttribute != nil {
toSerialize["user_pass_attribute"] = o.UserPassAttribute
}
if o.UserEnabledMask != nil {
toSerialize["user_enabled_mask"] = o.UserEnabledMask
}
if o.UserEnabledDefault != nil {
toSerialize["user_enabled_default"] = o.UserEnabledDefault
}
if o.UserAllowCreate != nil {
toSerialize["user_allow_create"] = o.UserAllowCreate
}
if o.UserAllowUpdate != nil {
toSerialize["user_allow_update"] = o.UserAllowUpdate
}
if o.UserAllowDelete != nil {
toSerialize["user_allow_delete"] = o.UserAllowDelete
}
if o.PageSize != nil {
toSerialize["page_size"] = o.PageSize
}
if o.UserFilter != nil {
toSerialize["user_filter"] = o.UserFilter
}
return json.Marshal(toSerialize)
}
type NullableDomainConfigLdap struct {
value *DomainConfigLdap
isSet bool
}
func (v NullableDomainConfigLdap) Get() *DomainConfigLdap {
return v.value
}
func (v *NullableDomainConfigLdap) Set(val *DomainConfigLdap) {
v.value = val
v.isSet = true
}
func (v NullableDomainConfigLdap) IsSet() bool {
return v.isSet
}
func (v *NullableDomainConfigLdap) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableDomainConfigLdap(val *DomainConfigLdap) *NullableDomainConfigLdap {
return &NullableDomainConfigLdap{value: val, isSet: true}
}
func (v NullableDomainConfigLdap) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableDomainConfigLdap) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}