-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_account_document.go
828 lines (706 loc) · 23 KB
/
model_account_document.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
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
/*
IdentityNow V3 API
Use these APIs to interact with the IdentityNow platform to achieve repeatable, automated processes with greater scalability. We encourage you to join the SailPoint Developer Community forum at https://developer.sailpoint.com/discuss to connect with other developers using our APIs.
API version: 3.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sailpointsdk
import (
"encoding/json"
"time"
)
// AccountDocument Account
type AccountDocument struct {
Id string `json:"id"`
Name string `json:"name"`
Type DocumentType `json:"_type"`
// The ID of the account
AccountId *string `json:"accountId,omitempty"`
Source *Source1 `json:"source,omitempty"`
// Indicates if the account is disabled
Disabled *bool `json:"disabled,omitempty"`
// Indicates if the account is locked
Locked *bool `json:"locked,omitempty"`
Privileged *bool `json:"privileged,omitempty"`
// Indicates if the account has been manually correlated to an identity
ManuallyCorrelated *bool `json:"manuallyCorrelated,omitempty"`
// A date-time in ISO-8601 format
PasswordLastSet NullableTime `json:"passwordLastSet,omitempty"`
// a map or dictionary of key/value pairs
EntitlementAttributes map[string]interface{} `json:"entitlementAttributes,omitempty"`
// A date-time in ISO-8601 format
Created NullableTime `json:"created,omitempty"`
// A date-time in ISO-8601 format
Modified NullableTime `json:"modified,omitempty"`
// a map or dictionary of key/value pairs
Attributes map[string]interface{} `json:"attributes,omitempty"`
Identity *DisplayReference `json:"identity,omitempty"`
Access []Entitlement1 `json:"access,omitempty"`
// The number of entitlements assigned to the account
EntitlementCount *int32 `json:"entitlementCount,omitempty"`
// Indicates if the account is not correlated to an identity
Uncorrelated *bool `json:"uncorrelated,omitempty"`
Tags []string `json:"tags,omitempty"`
AdditionalProperties map[string]interface{}
}
type _AccountDocument AccountDocument
// NewAccountDocument instantiates a new AccountDocument 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 NewAccountDocument(id string, name string, type_ DocumentType) *AccountDocument {
this := AccountDocument{}
this.Id = id
this.Name = name
this.Type = type_
return &this
}
// NewAccountDocumentWithDefaults instantiates a new AccountDocument 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 NewAccountDocumentWithDefaults() *AccountDocument {
this := AccountDocument{}
return &this
}
// GetId returns the Id field value
func (o *AccountDocument) GetId() string {
if o == nil {
var ret string
return ret
}
return o.Id
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *AccountDocument) SetId(v string) {
o.Id = v
}
// GetName returns the Name field value
func (o *AccountDocument) GetName() string {
if o == nil {
var ret string
return ret
}
return o.Name
}
// GetNameOk returns a tuple with the Name field value
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *AccountDocument) SetName(v string) {
o.Name = v
}
// GetType returns the Type field value
func (o *AccountDocument) GetType() DocumentType {
if o == nil {
var ret DocumentType
return ret
}
return o.Type
}
// GetTypeOk returns a tuple with the Type field value
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetTypeOk() (*DocumentType, bool) {
if o == nil {
return nil, false
}
return &o.Type, true
}
// SetType sets field value
func (o *AccountDocument) SetType(v DocumentType) {
o.Type = v
}
// GetAccountId returns the AccountId field value if set, zero value otherwise.
func (o *AccountDocument) GetAccountId() string {
if o == nil || o.AccountId == nil {
var ret string
return ret
}
return *o.AccountId
}
// GetAccountIdOk returns a tuple with the AccountId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetAccountIdOk() (*string, bool) {
if o == nil || o.AccountId == nil {
return nil, false
}
return o.AccountId, true
}
// HasAccountId returns a boolean if a field has been set.
func (o *AccountDocument) HasAccountId() bool {
if o != nil && o.AccountId != nil {
return true
}
return false
}
// SetAccountId gets a reference to the given string and assigns it to the AccountId field.
func (o *AccountDocument) SetAccountId(v string) {
o.AccountId = &v
}
// GetSource returns the Source field value if set, zero value otherwise.
func (o *AccountDocument) GetSource() Source1 {
if o == nil || o.Source == nil {
var ret Source1
return ret
}
return *o.Source
}
// GetSourceOk returns a tuple with the Source field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetSourceOk() (*Source1, bool) {
if o == nil || o.Source == nil {
return nil, false
}
return o.Source, true
}
// HasSource returns a boolean if a field has been set.
func (o *AccountDocument) HasSource() bool {
if o != nil && o.Source != nil {
return true
}
return false
}
// SetSource gets a reference to the given Source1 and assigns it to the Source field.
func (o *AccountDocument) SetSource(v Source1) {
o.Source = &v
}
// GetDisabled returns the Disabled field value if set, zero value otherwise.
func (o *AccountDocument) GetDisabled() bool {
if o == nil || o.Disabled == nil {
var ret bool
return ret
}
return *o.Disabled
}
// GetDisabledOk returns a tuple with the Disabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetDisabledOk() (*bool, bool) {
if o == nil || o.Disabled == nil {
return nil, false
}
return o.Disabled, true
}
// HasDisabled returns a boolean if a field has been set.
func (o *AccountDocument) HasDisabled() bool {
if o != nil && o.Disabled != nil {
return true
}
return false
}
// SetDisabled gets a reference to the given bool and assigns it to the Disabled field.
func (o *AccountDocument) SetDisabled(v bool) {
o.Disabled = &v
}
// GetLocked returns the Locked field value if set, zero value otherwise.
func (o *AccountDocument) GetLocked() bool {
if o == nil || o.Locked == nil {
var ret bool
return ret
}
return *o.Locked
}
// GetLockedOk returns a tuple with the Locked field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetLockedOk() (*bool, bool) {
if o == nil || o.Locked == nil {
return nil, false
}
return o.Locked, true
}
// HasLocked returns a boolean if a field has been set.
func (o *AccountDocument) HasLocked() bool {
if o != nil && o.Locked != nil {
return true
}
return false
}
// SetLocked gets a reference to the given bool and assigns it to the Locked field.
func (o *AccountDocument) SetLocked(v bool) {
o.Locked = &v
}
// GetPrivileged returns the Privileged field value if set, zero value otherwise.
func (o *AccountDocument) GetPrivileged() bool {
if o == nil || o.Privileged == nil {
var ret bool
return ret
}
return *o.Privileged
}
// GetPrivilegedOk returns a tuple with the Privileged field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetPrivilegedOk() (*bool, bool) {
if o == nil || o.Privileged == nil {
return nil, false
}
return o.Privileged, true
}
// HasPrivileged returns a boolean if a field has been set.
func (o *AccountDocument) HasPrivileged() bool {
if o != nil && o.Privileged != nil {
return true
}
return false
}
// SetPrivileged gets a reference to the given bool and assigns it to the Privileged field.
func (o *AccountDocument) SetPrivileged(v bool) {
o.Privileged = &v
}
// GetManuallyCorrelated returns the ManuallyCorrelated field value if set, zero value otherwise.
func (o *AccountDocument) GetManuallyCorrelated() bool {
if o == nil || o.ManuallyCorrelated == nil {
var ret bool
return ret
}
return *o.ManuallyCorrelated
}
// GetManuallyCorrelatedOk returns a tuple with the ManuallyCorrelated field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetManuallyCorrelatedOk() (*bool, bool) {
if o == nil || o.ManuallyCorrelated == nil {
return nil, false
}
return o.ManuallyCorrelated, true
}
// HasManuallyCorrelated returns a boolean if a field has been set.
func (o *AccountDocument) HasManuallyCorrelated() bool {
if o != nil && o.ManuallyCorrelated != nil {
return true
}
return false
}
// SetManuallyCorrelated gets a reference to the given bool and assigns it to the ManuallyCorrelated field.
func (o *AccountDocument) SetManuallyCorrelated(v bool) {
o.ManuallyCorrelated = &v
}
// GetPasswordLastSet returns the PasswordLastSet field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AccountDocument) GetPasswordLastSet() time.Time {
if o == nil || o.PasswordLastSet.Get() == nil {
var ret time.Time
return ret
}
return *o.PasswordLastSet.Get()
}
// GetPasswordLastSetOk returns a tuple with the PasswordLastSet field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AccountDocument) GetPasswordLastSetOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.PasswordLastSet.Get(), o.PasswordLastSet.IsSet()
}
// HasPasswordLastSet returns a boolean if a field has been set.
func (o *AccountDocument) HasPasswordLastSet() bool {
if o != nil && o.PasswordLastSet.IsSet() {
return true
}
return false
}
// SetPasswordLastSet gets a reference to the given NullableTime and assigns it to the PasswordLastSet field.
func (o *AccountDocument) SetPasswordLastSet(v time.Time) {
o.PasswordLastSet.Set(&v)
}
// SetPasswordLastSetNil sets the value for PasswordLastSet to be an explicit nil
func (o *AccountDocument) SetPasswordLastSetNil() {
o.PasswordLastSet.Set(nil)
}
// UnsetPasswordLastSet ensures that no value is present for PasswordLastSet, not even an explicit nil
func (o *AccountDocument) UnsetPasswordLastSet() {
o.PasswordLastSet.Unset()
}
// GetEntitlementAttributes returns the EntitlementAttributes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AccountDocument) GetEntitlementAttributes() map[string]interface{} {
if o == nil {
var ret map[string]interface{}
return ret
}
return o.EntitlementAttributes
}
// GetEntitlementAttributesOk returns a tuple with the EntitlementAttributes field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AccountDocument) GetEntitlementAttributesOk() (map[string]interface{}, bool) {
if o == nil || o.EntitlementAttributes == nil {
return nil, false
}
return o.EntitlementAttributes, true
}
// HasEntitlementAttributes returns a boolean if a field has been set.
func (o *AccountDocument) HasEntitlementAttributes() bool {
if o != nil && o.EntitlementAttributes != nil {
return true
}
return false
}
// SetEntitlementAttributes gets a reference to the given map[string]interface{} and assigns it to the EntitlementAttributes field.
func (o *AccountDocument) SetEntitlementAttributes(v map[string]interface{}) {
o.EntitlementAttributes = v
}
// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AccountDocument) GetCreated() time.Time {
if o == nil || o.Created.Get() == nil {
var ret time.Time
return ret
}
return *o.Created.Get()
}
// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AccountDocument) GetCreatedOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.Created.Get(), o.Created.IsSet()
}
// HasCreated returns a boolean if a field has been set.
func (o *AccountDocument) HasCreated() bool {
if o != nil && o.Created.IsSet() {
return true
}
return false
}
// SetCreated gets a reference to the given NullableTime and assigns it to the Created field.
func (o *AccountDocument) SetCreated(v time.Time) {
o.Created.Set(&v)
}
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *AccountDocument) SetCreatedNil() {
o.Created.Set(nil)
}
// UnsetCreated ensures that no value is present for Created, not even an explicit nil
func (o *AccountDocument) UnsetCreated() {
o.Created.Unset()
}
// GetModified returns the Modified field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *AccountDocument) GetModified() time.Time {
if o == nil || o.Modified.Get() == nil {
var ret time.Time
return ret
}
return *o.Modified.Get()
}
// GetModifiedOk returns a tuple with the Modified field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *AccountDocument) GetModifiedOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.Modified.Get(), o.Modified.IsSet()
}
// HasModified returns a boolean if a field has been set.
func (o *AccountDocument) HasModified() bool {
if o != nil && o.Modified.IsSet() {
return true
}
return false
}
// SetModified gets a reference to the given NullableTime and assigns it to the Modified field.
func (o *AccountDocument) SetModified(v time.Time) {
o.Modified.Set(&v)
}
// SetModifiedNil sets the value for Modified to be an explicit nil
func (o *AccountDocument) SetModifiedNil() {
o.Modified.Set(nil)
}
// UnsetModified ensures that no value is present for Modified, not even an explicit nil
func (o *AccountDocument) UnsetModified() {
o.Modified.Unset()
}
// GetAttributes returns the Attributes field value if set, zero value otherwise.
func (o *AccountDocument) GetAttributes() map[string]interface{} {
if o == nil || o.Attributes == nil {
var ret map[string]interface{}
return ret
}
return o.Attributes
}
// GetAttributesOk returns a tuple with the Attributes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetAttributesOk() (map[string]interface{}, bool) {
if o == nil || o.Attributes == nil {
return nil, false
}
return o.Attributes, true
}
// HasAttributes returns a boolean if a field has been set.
func (o *AccountDocument) HasAttributes() bool {
if o != nil && o.Attributes != nil {
return true
}
return false
}
// SetAttributes gets a reference to the given map[string]interface{} and assigns it to the Attributes field.
func (o *AccountDocument) SetAttributes(v map[string]interface{}) {
o.Attributes = v
}
// GetIdentity returns the Identity field value if set, zero value otherwise.
func (o *AccountDocument) GetIdentity() DisplayReference {
if o == nil || o.Identity == nil {
var ret DisplayReference
return ret
}
return *o.Identity
}
// GetIdentityOk returns a tuple with the Identity field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetIdentityOk() (*DisplayReference, bool) {
if o == nil || o.Identity == nil {
return nil, false
}
return o.Identity, true
}
// HasIdentity returns a boolean if a field has been set.
func (o *AccountDocument) HasIdentity() bool {
if o != nil && o.Identity != nil {
return true
}
return false
}
// SetIdentity gets a reference to the given DisplayReference and assigns it to the Identity field.
func (o *AccountDocument) SetIdentity(v DisplayReference) {
o.Identity = &v
}
// GetAccess returns the Access field value if set, zero value otherwise.
func (o *AccountDocument) GetAccess() []Entitlement1 {
if o == nil || o.Access == nil {
var ret []Entitlement1
return ret
}
return o.Access
}
// GetAccessOk returns a tuple with the Access field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetAccessOk() ([]Entitlement1, bool) {
if o == nil || o.Access == nil {
return nil, false
}
return o.Access, true
}
// HasAccess returns a boolean if a field has been set.
func (o *AccountDocument) HasAccess() bool {
if o != nil && o.Access != nil {
return true
}
return false
}
// SetAccess gets a reference to the given []Entitlement1 and assigns it to the Access field.
func (o *AccountDocument) SetAccess(v []Entitlement1) {
o.Access = v
}
// GetEntitlementCount returns the EntitlementCount field value if set, zero value otherwise.
func (o *AccountDocument) GetEntitlementCount() int32 {
if o == nil || o.EntitlementCount == nil {
var ret int32
return ret
}
return *o.EntitlementCount
}
// GetEntitlementCountOk returns a tuple with the EntitlementCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetEntitlementCountOk() (*int32, bool) {
if o == nil || o.EntitlementCount == nil {
return nil, false
}
return o.EntitlementCount, true
}
// HasEntitlementCount returns a boolean if a field has been set.
func (o *AccountDocument) HasEntitlementCount() bool {
if o != nil && o.EntitlementCount != nil {
return true
}
return false
}
// SetEntitlementCount gets a reference to the given int32 and assigns it to the EntitlementCount field.
func (o *AccountDocument) SetEntitlementCount(v int32) {
o.EntitlementCount = &v
}
// GetUncorrelated returns the Uncorrelated field value if set, zero value otherwise.
func (o *AccountDocument) GetUncorrelated() bool {
if o == nil || o.Uncorrelated == nil {
var ret bool
return ret
}
return *o.Uncorrelated
}
// GetUncorrelatedOk returns a tuple with the Uncorrelated field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetUncorrelatedOk() (*bool, bool) {
if o == nil || o.Uncorrelated == nil {
return nil, false
}
return o.Uncorrelated, true
}
// HasUncorrelated returns a boolean if a field has been set.
func (o *AccountDocument) HasUncorrelated() bool {
if o != nil && o.Uncorrelated != nil {
return true
}
return false
}
// SetUncorrelated gets a reference to the given bool and assigns it to the Uncorrelated field.
func (o *AccountDocument) SetUncorrelated(v bool) {
o.Uncorrelated = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *AccountDocument) GetTags() []string {
if o == nil || o.Tags == nil {
var ret []string
return ret
}
return o.Tags
}
// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountDocument) GetTagsOk() ([]string, bool) {
if o == nil || o.Tags == nil {
return nil, false
}
return o.Tags, true
}
// HasTags returns a boolean if a field has been set.
func (o *AccountDocument) HasTags() bool {
if o != nil && o.Tags != nil {
return true
}
return false
}
// SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *AccountDocument) SetTags(v []string) {
o.Tags = v
}
func (o AccountDocument) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["id"] = o.Id
}
if true {
toSerialize["name"] = o.Name
}
if true {
toSerialize["_type"] = o.Type
}
if o.AccountId != nil {
toSerialize["accountId"] = o.AccountId
}
if o.Source != nil {
toSerialize["source"] = o.Source
}
if o.Disabled != nil {
toSerialize["disabled"] = o.Disabled
}
if o.Locked != nil {
toSerialize["locked"] = o.Locked
}
if o.Privileged != nil {
toSerialize["privileged"] = o.Privileged
}
if o.ManuallyCorrelated != nil {
toSerialize["manuallyCorrelated"] = o.ManuallyCorrelated
}
if o.PasswordLastSet.IsSet() {
toSerialize["passwordLastSet"] = o.PasswordLastSet.Get()
}
if o.EntitlementAttributes != nil {
toSerialize["entitlementAttributes"] = o.EntitlementAttributes
}
if o.Created.IsSet() {
toSerialize["created"] = o.Created.Get()
}
if o.Modified.IsSet() {
toSerialize["modified"] = o.Modified.Get()
}
if o.Attributes != nil {
toSerialize["attributes"] = o.Attributes
}
if o.Identity != nil {
toSerialize["identity"] = o.Identity
}
if o.Access != nil {
toSerialize["access"] = o.Access
}
if o.EntitlementCount != nil {
toSerialize["entitlementCount"] = o.EntitlementCount
}
if o.Uncorrelated != nil {
toSerialize["uncorrelated"] = o.Uncorrelated
}
if o.Tags != nil {
toSerialize["tags"] = o.Tags
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return json.Marshal(toSerialize)
}
func (o *AccountDocument) UnmarshalJSON(bytes []byte) (err error) {
varAccountDocument := _AccountDocument{}
if err = json.Unmarshal(bytes, &varAccountDocument); err == nil {
*o = AccountDocument(varAccountDocument)
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "id")
delete(additionalProperties, "name")
delete(additionalProperties, "_type")
delete(additionalProperties, "accountId")
delete(additionalProperties, "source")
delete(additionalProperties, "disabled")
delete(additionalProperties, "locked")
delete(additionalProperties, "privileged")
delete(additionalProperties, "manuallyCorrelated")
delete(additionalProperties, "passwordLastSet")
delete(additionalProperties, "entitlementAttributes")
delete(additionalProperties, "created")
delete(additionalProperties, "modified")
delete(additionalProperties, "attributes")
delete(additionalProperties, "identity")
delete(additionalProperties, "access")
delete(additionalProperties, "entitlementCount")
delete(additionalProperties, "uncorrelated")
delete(additionalProperties, "tags")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableAccountDocument struct {
value *AccountDocument
isSet bool
}
func (v NullableAccountDocument) Get() *AccountDocument {
return v.value
}
func (v *NullableAccountDocument) Set(val *AccountDocument) {
v.value = val
v.isSet = true
}
func (v NullableAccountDocument) IsSet() bool {
return v.isSet
}
func (v *NullableAccountDocument) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAccountDocument(val *AccountDocument) *NullableAccountDocument {
return &NullableAccountDocument{value: val, isSet: true}
}
func (v NullableAccountDocument) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAccountDocument) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}