-
-
Notifications
You must be signed in to change notification settings - Fork 23
/
model_oidc_user_info.go
841 lines (715 loc) · 25.9 KB
/
model_oidc_user_info.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
/*
Ory Hydra API
Documentation for all of Ory Hydra's APIs.
API version: v2.2.1
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
)
// checks if the OidcUserInfo type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &OidcUserInfo{}
// OidcUserInfo OpenID Connect Userinfo
type OidcUserInfo struct {
// End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates.
Birthdate *string `json:"birthdate,omitempty"`
// End-User's preferred e-mail address. Its value MUST conform to the RFC 5322 [RFC5322] addr-spec syntax. The RP MUST NOT rely upon this value being unique, as discussed in Section 5.7.
Email *string `json:"email,omitempty"`
// True if the End-User's e-mail address has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this e-mail address was controlled by the End-User at the time the verification was performed. The means by which an e-mail address is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating.
EmailVerified *bool `json:"email_verified,omitempty"`
// Surname(s) or last name(s) of the End-User. Note that in some cultures, people can have multiple family names or no family name; all can be present, with the names being separated by space characters.
FamilyName *string `json:"family_name,omitempty"`
// End-User's gender. Values defined by this specification are female and male. Other values MAY be used when neither of the defined values are applicable.
Gender *string `json:"gender,omitempty"`
// Given name(s) or first name(s) of the End-User. Note that in some cultures, people can have multiple given names; all can be present, with the names being separated by space characters.
GivenName *string `json:"given_name,omitempty"`
// End-User's locale, represented as a BCP47 [RFC5646] language tag. This is typically an ISO 639-1 Alpha-2 [ISO639‑1] language code in lowercase and an ISO 3166-1 Alpha-2 [ISO3166‑1] country code in uppercase, separated by a dash. For example, en-US or fr-CA. As a compatibility note, some implementations have used an underscore as the separator rather than a dash, for example, en_US; Relying Parties MAY choose to accept this locale syntax as well.
Locale *string `json:"locale,omitempty"`
// Middle name(s) of the End-User. Note that in some cultures, people can have multiple middle names; all can be present, with the names being separated by space characters. Also note that in some cultures, middle names are not used.
MiddleName *string `json:"middle_name,omitempty"`
// End-User's full name in displayable form including all name parts, possibly including titles and suffixes, ordered according to the End-User's locale and preferences.
Name *string `json:"name,omitempty"`
// Casual name of the End-User that may or may not be the same as the given_name. For instance, a nickname value of Mike might be returned alongside a given_name value of Michael.
Nickname *string `json:"nickname,omitempty"`
// End-User's preferred telephone number. E.164 [E.164] is RECOMMENDED as the format of this Claim, for example, +1 (425) 555-1212 or +56 (2) 687 2400. If the phone number contains an extension, it is RECOMMENDED that the extension be represented using the RFC 3966 [RFC3966] extension syntax, for example, +1 (604) 555-1234;ext=5678.
PhoneNumber *string `json:"phone_number,omitempty"`
// True if the End-User's phone number has been verified; otherwise false. When this Claim Value is true, this means that the OP took affirmative steps to ensure that this phone number was controlled by the End-User at the time the verification was performed. The means by which a phone number is verified is context-specific, and dependent upon the trust framework or contractual agreements within which the parties are operating. When true, the phone_number Claim MUST be in E.164 format and any extensions MUST be represented in RFC 3966 format.
PhoneNumberVerified *bool `json:"phone_number_verified,omitempty"`
// URL of the End-User's profile picture. This URL MUST refer to an image file (for example, a PNG, JPEG, or GIF image file), rather than to a Web page containing an image. Note that this URL SHOULD specifically reference a profile photo of the End-User suitable for displaying when describing the End-User, rather than an arbitrary photo taken by the End-User.
Picture *string `json:"picture,omitempty"`
// Non-unique shorthand name by which the End-User wishes to be referred to at the RP, such as janedoe or j.doe. This value MAY be any valid JSON string including special characters such as @, /, or whitespace.
PreferredUsername *string `json:"preferred_username,omitempty"`
// URL of the End-User's profile page. The contents of this Web page SHOULD be about the End-User.
Profile *string `json:"profile,omitempty"`
// Subject - Identifier for the End-User at the IssuerURL.
Sub *string `json:"sub,omitempty"`
// Time the End-User's information was last updated. Its value is a JSON number representing the number of seconds from 1970-01-01T0:0:0Z as measured in UTC until the date/time.
UpdatedAt *int64 `json:"updated_at,omitempty"`
// URL of the End-User's Web page or blog. This Web page SHOULD contain information published by the End-User or an organization that the End-User is affiliated with.
Website *string `json:"website,omitempty"`
// String from zoneinfo [zoneinfo] time zone database representing the End-User's time zone. For example, Europe/Paris or America/Los_Angeles.
Zoneinfo *string `json:"zoneinfo,omitempty"`
AdditionalProperties map[string]interface{}
}
type _OidcUserInfo OidcUserInfo
// NewOidcUserInfo instantiates a new OidcUserInfo 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 NewOidcUserInfo() *OidcUserInfo {
this := OidcUserInfo{}
return &this
}
// NewOidcUserInfoWithDefaults instantiates a new OidcUserInfo 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 NewOidcUserInfoWithDefaults() *OidcUserInfo {
this := OidcUserInfo{}
return &this
}
// GetBirthdate returns the Birthdate field value if set, zero value otherwise.
func (o *OidcUserInfo) GetBirthdate() string {
if o == nil || IsNil(o.Birthdate) {
var ret string
return ret
}
return *o.Birthdate
}
// GetBirthdateOk returns a tuple with the Birthdate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetBirthdateOk() (*string, bool) {
if o == nil || IsNil(o.Birthdate) {
return nil, false
}
return o.Birthdate, true
}
// HasBirthdate returns a boolean if a field has been set.
func (o *OidcUserInfo) HasBirthdate() bool {
if o != nil && !IsNil(o.Birthdate) {
return true
}
return false
}
// SetBirthdate gets a reference to the given string and assigns it to the Birthdate field.
func (o *OidcUserInfo) SetBirthdate(v string) {
o.Birthdate = &v
}
// GetEmail returns the Email field value if set, zero value otherwise.
func (o *OidcUserInfo) GetEmail() string {
if o == nil || IsNil(o.Email) {
var ret string
return ret
}
return *o.Email
}
// GetEmailOk returns a tuple with the Email field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetEmailOk() (*string, bool) {
if o == nil || IsNil(o.Email) {
return nil, false
}
return o.Email, true
}
// HasEmail returns a boolean if a field has been set.
func (o *OidcUserInfo) HasEmail() bool {
if o != nil && !IsNil(o.Email) {
return true
}
return false
}
// SetEmail gets a reference to the given string and assigns it to the Email field.
func (o *OidcUserInfo) SetEmail(v string) {
o.Email = &v
}
// GetEmailVerified returns the EmailVerified field value if set, zero value otherwise.
func (o *OidcUserInfo) GetEmailVerified() bool {
if o == nil || IsNil(o.EmailVerified) {
var ret bool
return ret
}
return *o.EmailVerified
}
// GetEmailVerifiedOk returns a tuple with the EmailVerified field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetEmailVerifiedOk() (*bool, bool) {
if o == nil || IsNil(o.EmailVerified) {
return nil, false
}
return o.EmailVerified, true
}
// HasEmailVerified returns a boolean if a field has been set.
func (o *OidcUserInfo) HasEmailVerified() bool {
if o != nil && !IsNil(o.EmailVerified) {
return true
}
return false
}
// SetEmailVerified gets a reference to the given bool and assigns it to the EmailVerified field.
func (o *OidcUserInfo) SetEmailVerified(v bool) {
o.EmailVerified = &v
}
// GetFamilyName returns the FamilyName field value if set, zero value otherwise.
func (o *OidcUserInfo) GetFamilyName() string {
if o == nil || IsNil(o.FamilyName) {
var ret string
return ret
}
return *o.FamilyName
}
// GetFamilyNameOk returns a tuple with the FamilyName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetFamilyNameOk() (*string, bool) {
if o == nil || IsNil(o.FamilyName) {
return nil, false
}
return o.FamilyName, true
}
// HasFamilyName returns a boolean if a field has been set.
func (o *OidcUserInfo) HasFamilyName() bool {
if o != nil && !IsNil(o.FamilyName) {
return true
}
return false
}
// SetFamilyName gets a reference to the given string and assigns it to the FamilyName field.
func (o *OidcUserInfo) SetFamilyName(v string) {
o.FamilyName = &v
}
// GetGender returns the Gender field value if set, zero value otherwise.
func (o *OidcUserInfo) GetGender() string {
if o == nil || IsNil(o.Gender) {
var ret string
return ret
}
return *o.Gender
}
// GetGenderOk returns a tuple with the Gender field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetGenderOk() (*string, bool) {
if o == nil || IsNil(o.Gender) {
return nil, false
}
return o.Gender, true
}
// HasGender returns a boolean if a field has been set.
func (o *OidcUserInfo) HasGender() bool {
if o != nil && !IsNil(o.Gender) {
return true
}
return false
}
// SetGender gets a reference to the given string and assigns it to the Gender field.
func (o *OidcUserInfo) SetGender(v string) {
o.Gender = &v
}
// GetGivenName returns the GivenName field value if set, zero value otherwise.
func (o *OidcUserInfo) GetGivenName() string {
if o == nil || IsNil(o.GivenName) {
var ret string
return ret
}
return *o.GivenName
}
// GetGivenNameOk returns a tuple with the GivenName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetGivenNameOk() (*string, bool) {
if o == nil || IsNil(o.GivenName) {
return nil, false
}
return o.GivenName, true
}
// HasGivenName returns a boolean if a field has been set.
func (o *OidcUserInfo) HasGivenName() bool {
if o != nil && !IsNil(o.GivenName) {
return true
}
return false
}
// SetGivenName gets a reference to the given string and assigns it to the GivenName field.
func (o *OidcUserInfo) SetGivenName(v string) {
o.GivenName = &v
}
// GetLocale returns the Locale field value if set, zero value otherwise.
func (o *OidcUserInfo) GetLocale() string {
if o == nil || IsNil(o.Locale) {
var ret string
return ret
}
return *o.Locale
}
// GetLocaleOk returns a tuple with the Locale field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetLocaleOk() (*string, bool) {
if o == nil || IsNil(o.Locale) {
return nil, false
}
return o.Locale, true
}
// HasLocale returns a boolean if a field has been set.
func (o *OidcUserInfo) HasLocale() bool {
if o != nil && !IsNil(o.Locale) {
return true
}
return false
}
// SetLocale gets a reference to the given string and assigns it to the Locale field.
func (o *OidcUserInfo) SetLocale(v string) {
o.Locale = &v
}
// GetMiddleName returns the MiddleName field value if set, zero value otherwise.
func (o *OidcUserInfo) GetMiddleName() string {
if o == nil || IsNil(o.MiddleName) {
var ret string
return ret
}
return *o.MiddleName
}
// GetMiddleNameOk returns a tuple with the MiddleName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetMiddleNameOk() (*string, bool) {
if o == nil || IsNil(o.MiddleName) {
return nil, false
}
return o.MiddleName, true
}
// HasMiddleName returns a boolean if a field has been set.
func (o *OidcUserInfo) HasMiddleName() bool {
if o != nil && !IsNil(o.MiddleName) {
return true
}
return false
}
// SetMiddleName gets a reference to the given string and assigns it to the MiddleName field.
func (o *OidcUserInfo) SetMiddleName(v string) {
o.MiddleName = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *OidcUserInfo) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *OidcUserInfo) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *OidcUserInfo) SetName(v string) {
o.Name = &v
}
// GetNickname returns the Nickname field value if set, zero value otherwise.
func (o *OidcUserInfo) GetNickname() string {
if o == nil || IsNil(o.Nickname) {
var ret string
return ret
}
return *o.Nickname
}
// GetNicknameOk returns a tuple with the Nickname field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetNicknameOk() (*string, bool) {
if o == nil || IsNil(o.Nickname) {
return nil, false
}
return o.Nickname, true
}
// HasNickname returns a boolean if a field has been set.
func (o *OidcUserInfo) HasNickname() bool {
if o != nil && !IsNil(o.Nickname) {
return true
}
return false
}
// SetNickname gets a reference to the given string and assigns it to the Nickname field.
func (o *OidcUserInfo) SetNickname(v string) {
o.Nickname = &v
}
// GetPhoneNumber returns the PhoneNumber field value if set, zero value otherwise.
func (o *OidcUserInfo) GetPhoneNumber() string {
if o == nil || IsNil(o.PhoneNumber) {
var ret string
return ret
}
return *o.PhoneNumber
}
// GetPhoneNumberOk returns a tuple with the PhoneNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetPhoneNumberOk() (*string, bool) {
if o == nil || IsNil(o.PhoneNumber) {
return nil, false
}
return o.PhoneNumber, true
}
// HasPhoneNumber returns a boolean if a field has been set.
func (o *OidcUserInfo) HasPhoneNumber() bool {
if o != nil && !IsNil(o.PhoneNumber) {
return true
}
return false
}
// SetPhoneNumber gets a reference to the given string and assigns it to the PhoneNumber field.
func (o *OidcUserInfo) SetPhoneNumber(v string) {
o.PhoneNumber = &v
}
// GetPhoneNumberVerified returns the PhoneNumberVerified field value if set, zero value otherwise.
func (o *OidcUserInfo) GetPhoneNumberVerified() bool {
if o == nil || IsNil(o.PhoneNumberVerified) {
var ret bool
return ret
}
return *o.PhoneNumberVerified
}
// GetPhoneNumberVerifiedOk returns a tuple with the PhoneNumberVerified field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetPhoneNumberVerifiedOk() (*bool, bool) {
if o == nil || IsNil(o.PhoneNumberVerified) {
return nil, false
}
return o.PhoneNumberVerified, true
}
// HasPhoneNumberVerified returns a boolean if a field has been set.
func (o *OidcUserInfo) HasPhoneNumberVerified() bool {
if o != nil && !IsNil(o.PhoneNumberVerified) {
return true
}
return false
}
// SetPhoneNumberVerified gets a reference to the given bool and assigns it to the PhoneNumberVerified field.
func (o *OidcUserInfo) SetPhoneNumberVerified(v bool) {
o.PhoneNumberVerified = &v
}
// GetPicture returns the Picture field value if set, zero value otherwise.
func (o *OidcUserInfo) GetPicture() string {
if o == nil || IsNil(o.Picture) {
var ret string
return ret
}
return *o.Picture
}
// GetPictureOk returns a tuple with the Picture field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetPictureOk() (*string, bool) {
if o == nil || IsNil(o.Picture) {
return nil, false
}
return o.Picture, true
}
// HasPicture returns a boolean if a field has been set.
func (o *OidcUserInfo) HasPicture() bool {
if o != nil && !IsNil(o.Picture) {
return true
}
return false
}
// SetPicture gets a reference to the given string and assigns it to the Picture field.
func (o *OidcUserInfo) SetPicture(v string) {
o.Picture = &v
}
// GetPreferredUsername returns the PreferredUsername field value if set, zero value otherwise.
func (o *OidcUserInfo) GetPreferredUsername() string {
if o == nil || IsNil(o.PreferredUsername) {
var ret string
return ret
}
return *o.PreferredUsername
}
// GetPreferredUsernameOk returns a tuple with the PreferredUsername field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetPreferredUsernameOk() (*string, bool) {
if o == nil || IsNil(o.PreferredUsername) {
return nil, false
}
return o.PreferredUsername, true
}
// HasPreferredUsername returns a boolean if a field has been set.
func (o *OidcUserInfo) HasPreferredUsername() bool {
if o != nil && !IsNil(o.PreferredUsername) {
return true
}
return false
}
// SetPreferredUsername gets a reference to the given string and assigns it to the PreferredUsername field.
func (o *OidcUserInfo) SetPreferredUsername(v string) {
o.PreferredUsername = &v
}
// GetProfile returns the Profile field value if set, zero value otherwise.
func (o *OidcUserInfo) GetProfile() string {
if o == nil || IsNil(o.Profile) {
var ret string
return ret
}
return *o.Profile
}
// GetProfileOk returns a tuple with the Profile field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetProfileOk() (*string, bool) {
if o == nil || IsNil(o.Profile) {
return nil, false
}
return o.Profile, true
}
// HasProfile returns a boolean if a field has been set.
func (o *OidcUserInfo) HasProfile() bool {
if o != nil && !IsNil(o.Profile) {
return true
}
return false
}
// SetProfile gets a reference to the given string and assigns it to the Profile field.
func (o *OidcUserInfo) SetProfile(v string) {
o.Profile = &v
}
// GetSub returns the Sub field value if set, zero value otherwise.
func (o *OidcUserInfo) GetSub() string {
if o == nil || IsNil(o.Sub) {
var ret string
return ret
}
return *o.Sub
}
// GetSubOk returns a tuple with the Sub field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetSubOk() (*string, bool) {
if o == nil || IsNil(o.Sub) {
return nil, false
}
return o.Sub, true
}
// HasSub returns a boolean if a field has been set.
func (o *OidcUserInfo) HasSub() bool {
if o != nil && !IsNil(o.Sub) {
return true
}
return false
}
// SetSub gets a reference to the given string and assigns it to the Sub field.
func (o *OidcUserInfo) SetSub(v string) {
o.Sub = &v
}
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
func (o *OidcUserInfo) GetUpdatedAt() int64 {
if o == nil || IsNil(o.UpdatedAt) {
var ret int64
return ret
}
return *o.UpdatedAt
}
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetUpdatedAtOk() (*int64, bool) {
if o == nil || IsNil(o.UpdatedAt) {
return nil, false
}
return o.UpdatedAt, true
}
// HasUpdatedAt returns a boolean if a field has been set.
func (o *OidcUserInfo) HasUpdatedAt() bool {
if o != nil && !IsNil(o.UpdatedAt) {
return true
}
return false
}
// SetUpdatedAt gets a reference to the given int64 and assigns it to the UpdatedAt field.
func (o *OidcUserInfo) SetUpdatedAt(v int64) {
o.UpdatedAt = &v
}
// GetWebsite returns the Website field value if set, zero value otherwise.
func (o *OidcUserInfo) GetWebsite() string {
if o == nil || IsNil(o.Website) {
var ret string
return ret
}
return *o.Website
}
// GetWebsiteOk returns a tuple with the Website field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetWebsiteOk() (*string, bool) {
if o == nil || IsNil(o.Website) {
return nil, false
}
return o.Website, true
}
// HasWebsite returns a boolean if a field has been set.
func (o *OidcUserInfo) HasWebsite() bool {
if o != nil && !IsNil(o.Website) {
return true
}
return false
}
// SetWebsite gets a reference to the given string and assigns it to the Website field.
func (o *OidcUserInfo) SetWebsite(v string) {
o.Website = &v
}
// GetZoneinfo returns the Zoneinfo field value if set, zero value otherwise.
func (o *OidcUserInfo) GetZoneinfo() string {
if o == nil || IsNil(o.Zoneinfo) {
var ret string
return ret
}
return *o.Zoneinfo
}
// GetZoneinfoOk returns a tuple with the Zoneinfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *OidcUserInfo) GetZoneinfoOk() (*string, bool) {
if o == nil || IsNil(o.Zoneinfo) {
return nil, false
}
return o.Zoneinfo, true
}
// HasZoneinfo returns a boolean if a field has been set.
func (o *OidcUserInfo) HasZoneinfo() bool {
if o != nil && !IsNil(o.Zoneinfo) {
return true
}
return false
}
// SetZoneinfo gets a reference to the given string and assigns it to the Zoneinfo field.
func (o *OidcUserInfo) SetZoneinfo(v string) {
o.Zoneinfo = &v
}
func (o OidcUserInfo) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o OidcUserInfo) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Birthdate) {
toSerialize["birthdate"] = o.Birthdate
}
if !IsNil(o.Email) {
toSerialize["email"] = o.Email
}
if !IsNil(o.EmailVerified) {
toSerialize["email_verified"] = o.EmailVerified
}
if !IsNil(o.FamilyName) {
toSerialize["family_name"] = o.FamilyName
}
if !IsNil(o.Gender) {
toSerialize["gender"] = o.Gender
}
if !IsNil(o.GivenName) {
toSerialize["given_name"] = o.GivenName
}
if !IsNil(o.Locale) {
toSerialize["locale"] = o.Locale
}
if !IsNil(o.MiddleName) {
toSerialize["middle_name"] = o.MiddleName
}
if !IsNil(o.Name) {
toSerialize["name"] = o.Name
}
if !IsNil(o.Nickname) {
toSerialize["nickname"] = o.Nickname
}
if !IsNil(o.PhoneNumber) {
toSerialize["phone_number"] = o.PhoneNumber
}
if !IsNil(o.PhoneNumberVerified) {
toSerialize["phone_number_verified"] = o.PhoneNumberVerified
}
if !IsNil(o.Picture) {
toSerialize["picture"] = o.Picture
}
if !IsNil(o.PreferredUsername) {
toSerialize["preferred_username"] = o.PreferredUsername
}
if !IsNil(o.Profile) {
toSerialize["profile"] = o.Profile
}
if !IsNil(o.Sub) {
toSerialize["sub"] = o.Sub
}
if !IsNil(o.UpdatedAt) {
toSerialize["updated_at"] = o.UpdatedAt
}
if !IsNil(o.Website) {
toSerialize["website"] = o.Website
}
if !IsNil(o.Zoneinfo) {
toSerialize["zoneinfo"] = o.Zoneinfo
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *OidcUserInfo) UnmarshalJSON(data []byte) (err error) {
varOidcUserInfo := _OidcUserInfo{}
err = json.Unmarshal(data, &varOidcUserInfo)
if err != nil {
return err
}
*o = OidcUserInfo(varOidcUserInfo)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "birthdate")
delete(additionalProperties, "email")
delete(additionalProperties, "email_verified")
delete(additionalProperties, "family_name")
delete(additionalProperties, "gender")
delete(additionalProperties, "given_name")
delete(additionalProperties, "locale")
delete(additionalProperties, "middle_name")
delete(additionalProperties, "name")
delete(additionalProperties, "nickname")
delete(additionalProperties, "phone_number")
delete(additionalProperties, "phone_number_verified")
delete(additionalProperties, "picture")
delete(additionalProperties, "preferred_username")
delete(additionalProperties, "profile")
delete(additionalProperties, "sub")
delete(additionalProperties, "updated_at")
delete(additionalProperties, "website")
delete(additionalProperties, "zoneinfo")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableOidcUserInfo struct {
value *OidcUserInfo
isSet bool
}
func (v NullableOidcUserInfo) Get() *OidcUserInfo {
return v.value
}
func (v *NullableOidcUserInfo) Set(val *OidcUserInfo) {
v.value = val
v.isSet = true
}
func (v NullableOidcUserInfo) IsSet() bool {
return v.isSet
}
func (v *NullableOidcUserInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableOidcUserInfo(val *OidcUserInfo) *NullableOidcUserInfo {
return &NullableOidcUserInfo{value: val, isSet: true}
}
func (v NullableOidcUserInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableOidcUserInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}