-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_create_token_response.go
842 lines (715 loc) · 24.9 KB
/
model_create_token_response.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
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
/*
Basis Theory API
## Getting Started * Sign-in to [Basis Theory](https://basistheory.com) and go to [Applications](https://portal.basistheory.com/applications) * Create a Basis Theory Private Application * All permissions should be selected * Paste the API Key into the `BT-API-KEY` variable
API version: v1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package basistheory
import (
"encoding/json"
"time"
)
// checks if the CreateTokenResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &CreateTokenResponse{}
// CreateTokenResponse struct for CreateTokenResponse
type CreateTokenResponse struct {
Id NullableString `json:"id,omitempty"`
TenantId *string `json:"tenant_id,omitempty"`
Type NullableString `json:"type,omitempty"`
Fingerprint NullableString `json:"fingerprint,omitempty"`
FingerprintExpression NullableString `json:"fingerprint_expression,omitempty"`
Mask interface{} `json:"mask,omitempty"`
Data interface{} `json:"data,omitempty"`
Metadata map[string]string `json:"metadata,omitempty"`
Enrichments *TokenEnrichments `json:"enrichments,omitempty"`
Privacy *Privacy `json:"privacy,omitempty"`
SearchIndexes []string `json:"search_indexes,omitempty"`
CreatedBy NullableString `json:"created_by,omitempty"`
CreatedAt NullableTime `json:"created_at,omitempty"`
ModifiedBy NullableString `json:"modified_by,omitempty"`
ModifiedAt NullableTime `json:"modified_at,omitempty"`
ExpiresAt NullableTime `json:"expires_at,omitempty"`
Containers []string `json:"containers,omitempty"`
Aliases []string `json:"aliases,omitempty"`
}
// NewCreateTokenResponse instantiates a new CreateTokenResponse 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 NewCreateTokenResponse() *CreateTokenResponse {
this := CreateTokenResponse{}
return &this
}
// NewCreateTokenResponseWithDefaults instantiates a new CreateTokenResponse 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 NewCreateTokenResponseWithDefaults() *CreateTokenResponse {
this := CreateTokenResponse{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetId() string {
if o == nil || IsNil(o.Id.Get()) {
var ret string
return ret
}
return *o.Id.Get()
}
// GetIdOk returns a tuple with the Id 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 *CreateTokenResponse) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Id.Get(), o.Id.IsSet()
}
// HasId returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given NullableString and assigns it to the Id field.
func (o *CreateTokenResponse) SetId(v string) {
o.Id.Set(&v)
}
// SetIdNil sets the value for Id to be an explicit nil
func (o *CreateTokenResponse) SetIdNil() {
o.Id.Set(nil)
}
// UnsetId ensures that no value is present for Id, not even an explicit nil
func (o *CreateTokenResponse) UnsetId() {
o.Id.Unset()
}
// GetTenantId returns the TenantId field value if set, zero value otherwise.
func (o *CreateTokenResponse) GetTenantId() string {
if o == nil || IsNil(o.TenantId) {
var ret string
return ret
}
return *o.TenantId
}
// GetTenantIdOk returns a tuple with the TenantId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTokenResponse) GetTenantIdOk() (*string, bool) {
if o == nil || IsNil(o.TenantId) {
return nil, false
}
return o.TenantId, true
}
// HasTenantId returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasTenantId() bool {
if o != nil && !IsNil(o.TenantId) {
return true
}
return false
}
// SetTenantId gets a reference to the given string and assigns it to the TenantId field.
func (o *CreateTokenResponse) SetTenantId(v string) {
o.TenantId = &v
}
// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetType() string {
if o == nil || IsNil(o.Type.Get()) {
var ret string
return ret
}
return *o.Type.Get()
}
// GetTypeOk returns a tuple with the Type 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 *CreateTokenResponse) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Type.Get(), o.Type.IsSet()
}
// HasType returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasType() bool {
if o != nil && !IsNil(o.Type) {
return true
}
return false
}
// SetType gets a reference to the given NullableString and assigns it to the Type field.
func (o *CreateTokenResponse) SetType(v string) {
o.Type.Set(&v)
}
// SetTypeNil sets the value for Type to be an explicit nil
func (o *CreateTokenResponse) SetTypeNil() {
o.Type.Set(nil)
}
// UnsetType ensures that no value is present for Type, not even an explicit nil
func (o *CreateTokenResponse) UnsetType() {
o.Type.Unset()
}
// GetFingerprint returns the Fingerprint field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetFingerprint() string {
if o == nil || IsNil(o.Fingerprint.Get()) {
var ret string
return ret
}
return *o.Fingerprint.Get()
}
// GetFingerprintOk returns a tuple with the Fingerprint 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 *CreateTokenResponse) GetFingerprintOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Fingerprint.Get(), o.Fingerprint.IsSet()
}
// HasFingerprint returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasFingerprint() bool {
if o != nil && !IsNil(o.Fingerprint) {
return true
}
return false
}
// SetFingerprint gets a reference to the given NullableString and assigns it to the Fingerprint field.
func (o *CreateTokenResponse) SetFingerprint(v string) {
o.Fingerprint.Set(&v)
}
// SetFingerprintNil sets the value for Fingerprint to be an explicit nil
func (o *CreateTokenResponse) SetFingerprintNil() {
o.Fingerprint.Set(nil)
}
// UnsetFingerprint ensures that no value is present for Fingerprint, not even an explicit nil
func (o *CreateTokenResponse) UnsetFingerprint() {
o.Fingerprint.Unset()
}
// GetFingerprintExpression returns the FingerprintExpression field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetFingerprintExpression() string {
if o == nil || IsNil(o.FingerprintExpression.Get()) {
var ret string
return ret
}
return *o.FingerprintExpression.Get()
}
// GetFingerprintExpressionOk returns a tuple with the FingerprintExpression 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 *CreateTokenResponse) GetFingerprintExpressionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.FingerprintExpression.Get(), o.FingerprintExpression.IsSet()
}
// HasFingerprintExpression returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasFingerprintExpression() bool {
if o != nil && !IsNil(o.FingerprintExpression) {
return true
}
return false
}
// SetFingerprintExpression gets a reference to the given NullableString and assigns it to the FingerprintExpression field.
func (o *CreateTokenResponse) SetFingerprintExpression(v string) {
o.FingerprintExpression.Set(&v)
}
// SetFingerprintExpressionNil sets the value for FingerprintExpression to be an explicit nil
func (o *CreateTokenResponse) SetFingerprintExpressionNil() {
o.FingerprintExpression.Set(nil)
}
// UnsetFingerprintExpression ensures that no value is present for FingerprintExpression, not even an explicit nil
func (o *CreateTokenResponse) UnsetFingerprintExpression() {
o.FingerprintExpression.Unset()
}
// GetMask returns the Mask field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetMask() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.Mask
}
// GetMaskOk returns a tuple with the Mask 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 *CreateTokenResponse) GetMaskOk() (*interface{}, bool) {
if o == nil || IsNil(o.Mask) {
return nil, false
}
return &o.Mask, true
}
// HasMask returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasMask() bool {
if o != nil && !IsNil(o.Mask) {
return true
}
return false
}
// SetMask gets a reference to the given interface{} and assigns it to the Mask field.
func (o *CreateTokenResponse) SetMask(v interface{}) {
o.Mask = v
}
// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetData() interface{} {
if o == nil {
var ret interface{}
return ret
}
return o.Data
}
// GetDataOk returns a tuple with the Data 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 *CreateTokenResponse) GetDataOk() (*interface{}, bool) {
if o == nil || IsNil(o.Data) {
return nil, false
}
return &o.Data, true
}
// HasData returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasData() bool {
if o != nil && !IsNil(o.Data) {
return true
}
return false
}
// SetData gets a reference to the given interface{} and assigns it to the Data field.
func (o *CreateTokenResponse) SetData(v interface{}) {
o.Data = v
}
// GetMetadata returns the Metadata field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetMetadata() map[string]string {
if o == nil {
var ret map[string]string
return ret
}
return o.Metadata
}
// GetMetadataOk returns a tuple with the Metadata 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 *CreateTokenResponse) GetMetadataOk() (*map[string]string, bool) {
if o == nil || IsNil(o.Metadata) {
return nil, false
}
return &o.Metadata, true
}
// HasMetadata returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasMetadata() bool {
if o != nil && !IsNil(o.Metadata) {
return true
}
return false
}
// SetMetadata gets a reference to the given map[string]string and assigns it to the Metadata field.
func (o *CreateTokenResponse) SetMetadata(v map[string]string) {
o.Metadata = v
}
// GetEnrichments returns the Enrichments field value if set, zero value otherwise.
func (o *CreateTokenResponse) GetEnrichments() TokenEnrichments {
if o == nil || IsNil(o.Enrichments) {
var ret TokenEnrichments
return ret
}
return *o.Enrichments
}
// GetEnrichmentsOk returns a tuple with the Enrichments field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTokenResponse) GetEnrichmentsOk() (*TokenEnrichments, bool) {
if o == nil || IsNil(o.Enrichments) {
return nil, false
}
return o.Enrichments, true
}
// HasEnrichments returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasEnrichments() bool {
if o != nil && !IsNil(o.Enrichments) {
return true
}
return false
}
// SetEnrichments gets a reference to the given TokenEnrichments and assigns it to the Enrichments field.
func (o *CreateTokenResponse) SetEnrichments(v TokenEnrichments) {
o.Enrichments = &v
}
// GetPrivacy returns the Privacy field value if set, zero value otherwise.
func (o *CreateTokenResponse) GetPrivacy() Privacy {
if o == nil || IsNil(o.Privacy) {
var ret Privacy
return ret
}
return *o.Privacy
}
// GetPrivacyOk returns a tuple with the Privacy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateTokenResponse) GetPrivacyOk() (*Privacy, bool) {
if o == nil || IsNil(o.Privacy) {
return nil, false
}
return o.Privacy, true
}
// HasPrivacy returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasPrivacy() bool {
if o != nil && !IsNil(o.Privacy) {
return true
}
return false
}
// SetPrivacy gets a reference to the given Privacy and assigns it to the Privacy field.
func (o *CreateTokenResponse) SetPrivacy(v Privacy) {
o.Privacy = &v
}
// GetSearchIndexes returns the SearchIndexes field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetSearchIndexes() []string {
if o == nil {
var ret []string
return ret
}
return o.SearchIndexes
}
// GetSearchIndexesOk returns a tuple with the SearchIndexes 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 *CreateTokenResponse) GetSearchIndexesOk() ([]string, bool) {
if o == nil || IsNil(o.SearchIndexes) {
return nil, false
}
return o.SearchIndexes, true
}
// HasSearchIndexes returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasSearchIndexes() bool {
if o != nil && !IsNil(o.SearchIndexes) {
return true
}
return false
}
// SetSearchIndexes gets a reference to the given []string and assigns it to the SearchIndexes field.
func (o *CreateTokenResponse) SetSearchIndexes(v []string) {
o.SearchIndexes = v
}
// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetCreatedBy() string {
if o == nil || IsNil(o.CreatedBy.Get()) {
var ret string
return ret
}
return *o.CreatedBy.Get()
}
// GetCreatedByOk returns a tuple with the CreatedBy 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 *CreateTokenResponse) GetCreatedByOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CreatedBy.Get(), o.CreatedBy.IsSet()
}
// HasCreatedBy returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasCreatedBy() bool {
if o != nil && !IsNil(o.CreatedBy) {
return true
}
return false
}
// SetCreatedBy gets a reference to the given NullableString and assigns it to the CreatedBy field.
func (o *CreateTokenResponse) SetCreatedBy(v string) {
o.CreatedBy.Set(&v)
}
// SetCreatedByNil sets the value for CreatedBy to be an explicit nil
func (o *CreateTokenResponse) SetCreatedByNil() {
o.CreatedBy.Set(nil)
}
// UnsetCreatedBy ensures that no value is present for CreatedBy, not even an explicit nil
func (o *CreateTokenResponse) UnsetCreatedBy() {
o.CreatedBy.Unset()
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetCreatedAt() time.Time {
if o == nil || IsNil(o.CreatedAt.Get()) {
var ret time.Time
return ret
}
return *o.CreatedAt.Get()
}
// GetCreatedAtOk returns a tuple with the CreatedAt 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 *CreateTokenResponse) GetCreatedAtOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.CreatedAt.Get(), o.CreatedAt.IsSet()
}
// HasCreatedAt returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasCreatedAt() bool {
if o != nil && !IsNil(o.CreatedAt) {
return true
}
return false
}
// SetCreatedAt gets a reference to the given NullableTime and assigns it to the CreatedAt field.
func (o *CreateTokenResponse) SetCreatedAt(v time.Time) {
o.CreatedAt.Set(&v)
}
// SetCreatedAtNil sets the value for CreatedAt to be an explicit nil
func (o *CreateTokenResponse) SetCreatedAtNil() {
o.CreatedAt.Set(nil)
}
// UnsetCreatedAt ensures that no value is present for CreatedAt, not even an explicit nil
func (o *CreateTokenResponse) UnsetCreatedAt() {
o.CreatedAt.Unset()
}
// GetModifiedBy returns the ModifiedBy field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetModifiedBy() string {
if o == nil || IsNil(o.ModifiedBy.Get()) {
var ret string
return ret
}
return *o.ModifiedBy.Get()
}
// GetModifiedByOk returns a tuple with the ModifiedBy 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 *CreateTokenResponse) GetModifiedByOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ModifiedBy.Get(), o.ModifiedBy.IsSet()
}
// HasModifiedBy returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasModifiedBy() bool {
if o != nil && !IsNil(o.ModifiedBy) {
return true
}
return false
}
// SetModifiedBy gets a reference to the given NullableString and assigns it to the ModifiedBy field.
func (o *CreateTokenResponse) SetModifiedBy(v string) {
o.ModifiedBy.Set(&v)
}
// SetModifiedByNil sets the value for ModifiedBy to be an explicit nil
func (o *CreateTokenResponse) SetModifiedByNil() {
o.ModifiedBy.Set(nil)
}
// UnsetModifiedBy ensures that no value is present for ModifiedBy, not even an explicit nil
func (o *CreateTokenResponse) UnsetModifiedBy() {
o.ModifiedBy.Unset()
}
// GetModifiedAt returns the ModifiedAt field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetModifiedAt() time.Time {
if o == nil || IsNil(o.ModifiedAt.Get()) {
var ret time.Time
return ret
}
return *o.ModifiedAt.Get()
}
// GetModifiedAtOk returns a tuple with the ModifiedAt 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 *CreateTokenResponse) GetModifiedAtOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.ModifiedAt.Get(), o.ModifiedAt.IsSet()
}
// HasModifiedAt returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasModifiedAt() bool {
if o != nil && !IsNil(o.ModifiedAt) {
return true
}
return false
}
// SetModifiedAt gets a reference to the given NullableTime and assigns it to the ModifiedAt field.
func (o *CreateTokenResponse) SetModifiedAt(v time.Time) {
o.ModifiedAt.Set(&v)
}
// SetModifiedAtNil sets the value for ModifiedAt to be an explicit nil
func (o *CreateTokenResponse) SetModifiedAtNil() {
o.ModifiedAt.Set(nil)
}
// UnsetModifiedAt ensures that no value is present for ModifiedAt, not even an explicit nil
func (o *CreateTokenResponse) UnsetModifiedAt() {
o.ModifiedAt.Unset()
}
// GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetExpiresAt() time.Time {
if o == nil || IsNil(o.ExpiresAt.Get()) {
var ret time.Time
return ret
}
return *o.ExpiresAt.Get()
}
// GetExpiresAtOk returns a tuple with the ExpiresAt 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 *CreateTokenResponse) GetExpiresAtOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.ExpiresAt.Get(), o.ExpiresAt.IsSet()
}
// HasExpiresAt returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasExpiresAt() bool {
if o != nil && !IsNil(o.ExpiresAt) {
return true
}
return false
}
// SetExpiresAt gets a reference to the given NullableTime and assigns it to the ExpiresAt field.
func (o *CreateTokenResponse) SetExpiresAt(v time.Time) {
o.ExpiresAt.Set(&v)
}
// SetExpiresAtNil sets the value for ExpiresAt to be an explicit nil
func (o *CreateTokenResponse) SetExpiresAtNil() {
o.ExpiresAt.Set(nil)
}
// UnsetExpiresAt ensures that no value is present for ExpiresAt, not even an explicit nil
func (o *CreateTokenResponse) UnsetExpiresAt() {
o.ExpiresAt.Unset()
}
// GetContainers returns the Containers field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetContainers() []string {
if o == nil {
var ret []string
return ret
}
return o.Containers
}
// GetContainersOk returns a tuple with the Containers 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 *CreateTokenResponse) GetContainersOk() ([]string, bool) {
if o == nil || IsNil(o.Containers) {
return nil, false
}
return o.Containers, true
}
// HasContainers returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasContainers() bool {
if o != nil && !IsNil(o.Containers) {
return true
}
return false
}
// SetContainers gets a reference to the given []string and assigns it to the Containers field.
func (o *CreateTokenResponse) SetContainers(v []string) {
o.Containers = v
}
// GetAliases returns the Aliases field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *CreateTokenResponse) GetAliases() []string {
if o == nil {
var ret []string
return ret
}
return o.Aliases
}
// GetAliasesOk returns a tuple with the Aliases 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 *CreateTokenResponse) GetAliasesOk() ([]string, bool) {
if o == nil || IsNil(o.Aliases) {
return nil, false
}
return o.Aliases, true
}
// HasAliases returns a boolean if a field is not nil.
func (o *CreateTokenResponse) HasAliases() bool {
if o != nil && !IsNil(o.Aliases) {
return true
}
return false
}
// SetAliases gets a reference to the given []string and assigns it to the Aliases field.
func (o *CreateTokenResponse) SetAliases(v []string) {
o.Aliases = v
}
func (o CreateTokenResponse) MarshalJSON() ([]byte, error) {
toSerialize, err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o CreateTokenResponse) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.Id.IsSet() {
toSerialize["id"] = o.Id.Get()
}
if !IsNil(o.TenantId) {
toSerialize["tenant_id"] = o.TenantId
}
if o.Type.IsSet() {
toSerialize["type"] = o.Type.Get()
}
if o.Fingerprint.IsSet() {
toSerialize["fingerprint"] = o.Fingerprint.Get()
}
if o.FingerprintExpression.IsSet() {
toSerialize["fingerprint_expression"] = o.FingerprintExpression.Get()
}
if o.Mask != nil {
toSerialize["mask"] = o.Mask
}
if o.Data != nil {
toSerialize["data"] = o.Data
}
if o.Metadata != nil {
toSerialize["metadata"] = o.Metadata
}
if !IsNil(o.Enrichments) {
toSerialize["enrichments"] = o.Enrichments
}
if !IsNil(o.Privacy) {
toSerialize["privacy"] = o.Privacy
}
if o.SearchIndexes != nil {
toSerialize["search_indexes"] = o.SearchIndexes
}
if o.CreatedBy.IsSet() {
toSerialize["created_by"] = o.CreatedBy.Get()
}
if o.CreatedAt.IsSet() {
toSerialize["created_at"] = o.CreatedAt.Get()
}
if o.ModifiedBy.IsSet() {
toSerialize["modified_by"] = o.ModifiedBy.Get()
}
if o.ModifiedAt.IsSet() {
toSerialize["modified_at"] = o.ModifiedAt.Get()
}
if o.ExpiresAt.IsSet() {
toSerialize["expires_at"] = o.ExpiresAt.Get()
}
if o.Containers != nil {
toSerialize["containers"] = o.Containers
}
if o.Aliases != nil {
toSerialize["aliases"] = o.Aliases
}
return toSerialize, nil
}
type NullableCreateTokenResponse struct {
value *CreateTokenResponse
isSet bool
}
func (v NullableCreateTokenResponse) Get() *CreateTokenResponse {
return v.value
}
func (v *NullableCreateTokenResponse) Set(val *CreateTokenResponse) {
v.value = val
v.isSet = true
}
func (v NullableCreateTokenResponse) IsSet() bool {
return v.isSet
}
func (v *NullableCreateTokenResponse) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableCreateTokenResponse(val *CreateTokenResponse) *NullableCreateTokenResponse {
return &NullableCreateTokenResponse{value: val, isSet: true}
}
func (v NullableCreateTokenResponse) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableCreateTokenResponse) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}