-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathmodel_account_experience_configuration.go
More file actions
761 lines (640 loc) · 24.9 KB
/
model_account_experience_configuration.go
File metadata and controls
761 lines (640 loc) · 24.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
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
/*
Ory APIs
# Introduction Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. ## SDKs This document describes the APIs available in the Ory Network. The APIs are available as SDKs for the following languages: | Language | Download SDK | Documentation | | -------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------ | | Dart | [pub.dev](https://pub.dev/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/dart/README.md) | | .NET | [nuget.org](https://www.nuget.org/packages/Ory.Client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/dotnet/README.md) | | Elixir | [hex.pm](https://hex.pm/packages/ory_client) | [README](https://github.com/ory/sdk/blob/master/clients/client/elixir/README.md) | | Go | [github.com](https://github.com/ory/client-go) | [README](https://github.com/ory/sdk/blob/master/clients/client/go/README.md) | | Java | [maven.org](https://search.maven.org/artifact/sh.ory/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/java/README.md) | | JavaScript | [npmjs.com](https://www.npmjs.com/package/@ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript/README.md) | | JavaScript (With fetch) | [npmjs.com](https://www.npmjs.com/package/@ory/client-fetch) | [README](https://github.com/ory/sdk/blob/master/clients/client/typescript-fetch/README.md) | | PHP | [packagist.org](https://packagist.org/packages/ory/client) | [README](https://github.com/ory/sdk/blob/master/clients/client/php/README.md) | | Python | [pypi.org](https://pypi.org/project/ory-client/) | [README](https://github.com/ory/sdk/blob/master/clients/client/python/README.md) | | Ruby | [rubygems.org](https://rubygems.org/gems/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/ruby/README.md) | | Rust | [crates.io](https://crates.io/crates/ory-client) | [README](https://github.com/ory/sdk/blob/master/clients/client/rust/README.md) |
API version: v1.22.26
Contact: support@ory.sh
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
"fmt"
)
// checks if the AccountExperienceConfiguration type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &AccountExperienceConfiguration{}
// AccountExperienceConfiguration struct for AccountExperienceConfiguration
type AccountExperienceConfiguration struct {
DefaultLocale string `json:"default_locale"`
DefaultRedirectUrl string `json:"default_redirect_url"`
EnabledLocales []string `json:"enabled_locales"`
ErrorUiUrl string `json:"error_ui_url"`
FaviconDarkUrl *string `json:"favicon_dark_url,omitempty"`
FaviconLightUrl *string `json:"favicon_light_url,omitempty"`
// force_default AccountExperienceLocaleBehaviorForceDefault respect_accept_language AccountExperienceLocaleBehaviorRespectAcceptLanguage
LocaleBehavior string `json:"locale_behavior"`
LoginUiUrl string `json:"login_ui_url"`
LogoDarkUrl *string `json:"logo_dark_url,omitempty"`
LogoLightUrl *string `json:"logo_light_url,omitempty"`
Name string `json:"name"`
RecoveryEnabled bool `json:"recovery_enabled"`
RecoveryUiUrl string `json:"recovery_ui_url"`
RegistrationEnabled bool `json:"registration_enabled"`
RegistrationUiUrl string `json:"registration_ui_url"`
SettingsUiUrl string `json:"settings_ui_url"`
Stylesheet *string `json:"stylesheet,omitempty"`
Translations []RevisionAccountExperienceCustomTranslation `json:"translations"`
VerificationEnabled bool `json:"verification_enabled"`
VerificationUiUrl string `json:"verification_ui_url"`
AdditionalProperties map[string]interface{}
}
type _AccountExperienceConfiguration AccountExperienceConfiguration
// NewAccountExperienceConfiguration instantiates a new AccountExperienceConfiguration 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 NewAccountExperienceConfiguration(defaultLocale string, defaultRedirectUrl string, enabledLocales []string, errorUiUrl string, localeBehavior string, loginUiUrl string, name string, recoveryEnabled bool, recoveryUiUrl string, registrationEnabled bool, registrationUiUrl string, settingsUiUrl string, translations []RevisionAccountExperienceCustomTranslation, verificationEnabled bool, verificationUiUrl string) *AccountExperienceConfiguration {
this := AccountExperienceConfiguration{}
this.DefaultLocale = defaultLocale
this.DefaultRedirectUrl = defaultRedirectUrl
this.EnabledLocales = enabledLocales
this.ErrorUiUrl = errorUiUrl
this.LocaleBehavior = localeBehavior
this.LoginUiUrl = loginUiUrl
this.Name = name
this.RecoveryEnabled = recoveryEnabled
this.RecoveryUiUrl = recoveryUiUrl
this.RegistrationEnabled = registrationEnabled
this.RegistrationUiUrl = registrationUiUrl
this.SettingsUiUrl = settingsUiUrl
this.Translations = translations
this.VerificationEnabled = verificationEnabled
this.VerificationUiUrl = verificationUiUrl
return &this
}
// NewAccountExperienceConfigurationWithDefaults instantiates a new AccountExperienceConfiguration 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 NewAccountExperienceConfigurationWithDefaults() *AccountExperienceConfiguration {
this := AccountExperienceConfiguration{}
return &this
}
// GetDefaultLocale returns the DefaultLocale field value
func (o *AccountExperienceConfiguration) GetDefaultLocale() string {
if o == nil {
var ret string
return ret
}
return o.DefaultLocale
}
// GetDefaultLocaleOk returns a tuple with the DefaultLocale field value
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetDefaultLocaleOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DefaultLocale, true
}
// SetDefaultLocale sets field value
func (o *AccountExperienceConfiguration) SetDefaultLocale(v string) {
o.DefaultLocale = v
}
// GetDefaultRedirectUrl returns the DefaultRedirectUrl field value
func (o *AccountExperienceConfiguration) GetDefaultRedirectUrl() string {
if o == nil {
var ret string
return ret
}
return o.DefaultRedirectUrl
}
// GetDefaultRedirectUrlOk returns a tuple with the DefaultRedirectUrl field value
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetDefaultRedirectUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DefaultRedirectUrl, true
}
// SetDefaultRedirectUrl sets field value
func (o *AccountExperienceConfiguration) SetDefaultRedirectUrl(v string) {
o.DefaultRedirectUrl = v
}
// GetEnabledLocales returns the EnabledLocales field value
func (o *AccountExperienceConfiguration) GetEnabledLocales() []string {
if o == nil {
var ret []string
return ret
}
return o.EnabledLocales
}
// GetEnabledLocalesOk returns a tuple with the EnabledLocales field value
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetEnabledLocalesOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.EnabledLocales, true
}
// SetEnabledLocales sets field value
func (o *AccountExperienceConfiguration) SetEnabledLocales(v []string) {
o.EnabledLocales = v
}
// GetErrorUiUrl returns the ErrorUiUrl field value
func (o *AccountExperienceConfiguration) GetErrorUiUrl() string {
if o == nil {
var ret string
return ret
}
return o.ErrorUiUrl
}
// GetErrorUiUrlOk returns a tuple with the ErrorUiUrl field value
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetErrorUiUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ErrorUiUrl, true
}
// SetErrorUiUrl sets field value
func (o *AccountExperienceConfiguration) SetErrorUiUrl(v string) {
o.ErrorUiUrl = v
}
// GetFaviconDarkUrl returns the FaviconDarkUrl field value if set, zero value otherwise.
func (o *AccountExperienceConfiguration) GetFaviconDarkUrl() string {
if o == nil || IsNil(o.FaviconDarkUrl) {
var ret string
return ret
}
return *o.FaviconDarkUrl
}
// GetFaviconDarkUrlOk returns a tuple with the FaviconDarkUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetFaviconDarkUrlOk() (*string, bool) {
if o == nil || IsNil(o.FaviconDarkUrl) {
return nil, false
}
return o.FaviconDarkUrl, true
}
// HasFaviconDarkUrl returns a boolean if a field has been set.
func (o *AccountExperienceConfiguration) HasFaviconDarkUrl() bool {
if o != nil && !IsNil(o.FaviconDarkUrl) {
return true
}
return false
}
// SetFaviconDarkUrl gets a reference to the given string and assigns it to the FaviconDarkUrl field.
func (o *AccountExperienceConfiguration) SetFaviconDarkUrl(v string) {
o.FaviconDarkUrl = &v
}
// GetFaviconLightUrl returns the FaviconLightUrl field value if set, zero value otherwise.
func (o *AccountExperienceConfiguration) GetFaviconLightUrl() string {
if o == nil || IsNil(o.FaviconLightUrl) {
var ret string
return ret
}
return *o.FaviconLightUrl
}
// GetFaviconLightUrlOk returns a tuple with the FaviconLightUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetFaviconLightUrlOk() (*string, bool) {
if o == nil || IsNil(o.FaviconLightUrl) {
return nil, false
}
return o.FaviconLightUrl, true
}
// HasFaviconLightUrl returns a boolean if a field has been set.
func (o *AccountExperienceConfiguration) HasFaviconLightUrl() bool {
if o != nil && !IsNil(o.FaviconLightUrl) {
return true
}
return false
}
// SetFaviconLightUrl gets a reference to the given string and assigns it to the FaviconLightUrl field.
func (o *AccountExperienceConfiguration) SetFaviconLightUrl(v string) {
o.FaviconLightUrl = &v
}
// GetLocaleBehavior returns the LocaleBehavior field value
func (o *AccountExperienceConfiguration) GetLocaleBehavior() string {
if o == nil {
var ret string
return ret
}
return o.LocaleBehavior
}
// GetLocaleBehaviorOk returns a tuple with the LocaleBehavior field value
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetLocaleBehaviorOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.LocaleBehavior, true
}
// SetLocaleBehavior sets field value
func (o *AccountExperienceConfiguration) SetLocaleBehavior(v string) {
o.LocaleBehavior = v
}
// GetLoginUiUrl returns the LoginUiUrl field value
func (o *AccountExperienceConfiguration) GetLoginUiUrl() string {
if o == nil {
var ret string
return ret
}
return o.LoginUiUrl
}
// GetLoginUiUrlOk returns a tuple with the LoginUiUrl field value
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetLoginUiUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.LoginUiUrl, true
}
// SetLoginUiUrl sets field value
func (o *AccountExperienceConfiguration) SetLoginUiUrl(v string) {
o.LoginUiUrl = v
}
// GetLogoDarkUrl returns the LogoDarkUrl field value if set, zero value otherwise.
func (o *AccountExperienceConfiguration) GetLogoDarkUrl() string {
if o == nil || IsNil(o.LogoDarkUrl) {
var ret string
return ret
}
return *o.LogoDarkUrl
}
// GetLogoDarkUrlOk returns a tuple with the LogoDarkUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetLogoDarkUrlOk() (*string, bool) {
if o == nil || IsNil(o.LogoDarkUrl) {
return nil, false
}
return o.LogoDarkUrl, true
}
// HasLogoDarkUrl returns a boolean if a field has been set.
func (o *AccountExperienceConfiguration) HasLogoDarkUrl() bool {
if o != nil && !IsNil(o.LogoDarkUrl) {
return true
}
return false
}
// SetLogoDarkUrl gets a reference to the given string and assigns it to the LogoDarkUrl field.
func (o *AccountExperienceConfiguration) SetLogoDarkUrl(v string) {
o.LogoDarkUrl = &v
}
// GetLogoLightUrl returns the LogoLightUrl field value if set, zero value otherwise.
func (o *AccountExperienceConfiguration) GetLogoLightUrl() string {
if o == nil || IsNil(o.LogoLightUrl) {
var ret string
return ret
}
return *o.LogoLightUrl
}
// GetLogoLightUrlOk returns a tuple with the LogoLightUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetLogoLightUrlOk() (*string, bool) {
if o == nil || IsNil(o.LogoLightUrl) {
return nil, false
}
return o.LogoLightUrl, true
}
// HasLogoLightUrl returns a boolean if a field has been set.
func (o *AccountExperienceConfiguration) HasLogoLightUrl() bool {
if o != nil && !IsNil(o.LogoLightUrl) {
return true
}
return false
}
// SetLogoLightUrl gets a reference to the given string and assigns it to the LogoLightUrl field.
func (o *AccountExperienceConfiguration) SetLogoLightUrl(v string) {
o.LogoLightUrl = &v
}
// GetName returns the Name field value
func (o *AccountExperienceConfiguration) 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 *AccountExperienceConfiguration) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *AccountExperienceConfiguration) SetName(v string) {
o.Name = v
}
// GetRecoveryEnabled returns the RecoveryEnabled field value
func (o *AccountExperienceConfiguration) GetRecoveryEnabled() bool {
if o == nil {
var ret bool
return ret
}
return o.RecoveryEnabled
}
// GetRecoveryEnabledOk returns a tuple with the RecoveryEnabled field value
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetRecoveryEnabledOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.RecoveryEnabled, true
}
// SetRecoveryEnabled sets field value
func (o *AccountExperienceConfiguration) SetRecoveryEnabled(v bool) {
o.RecoveryEnabled = v
}
// GetRecoveryUiUrl returns the RecoveryUiUrl field value
func (o *AccountExperienceConfiguration) GetRecoveryUiUrl() string {
if o == nil {
var ret string
return ret
}
return o.RecoveryUiUrl
}
// GetRecoveryUiUrlOk returns a tuple with the RecoveryUiUrl field value
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetRecoveryUiUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.RecoveryUiUrl, true
}
// SetRecoveryUiUrl sets field value
func (o *AccountExperienceConfiguration) SetRecoveryUiUrl(v string) {
o.RecoveryUiUrl = v
}
// GetRegistrationEnabled returns the RegistrationEnabled field value
func (o *AccountExperienceConfiguration) GetRegistrationEnabled() bool {
if o == nil {
var ret bool
return ret
}
return o.RegistrationEnabled
}
// GetRegistrationEnabledOk returns a tuple with the RegistrationEnabled field value
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetRegistrationEnabledOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.RegistrationEnabled, true
}
// SetRegistrationEnabled sets field value
func (o *AccountExperienceConfiguration) SetRegistrationEnabled(v bool) {
o.RegistrationEnabled = v
}
// GetRegistrationUiUrl returns the RegistrationUiUrl field value
func (o *AccountExperienceConfiguration) GetRegistrationUiUrl() string {
if o == nil {
var ret string
return ret
}
return o.RegistrationUiUrl
}
// GetRegistrationUiUrlOk returns a tuple with the RegistrationUiUrl field value
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetRegistrationUiUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.RegistrationUiUrl, true
}
// SetRegistrationUiUrl sets field value
func (o *AccountExperienceConfiguration) SetRegistrationUiUrl(v string) {
o.RegistrationUiUrl = v
}
// GetSettingsUiUrl returns the SettingsUiUrl field value
func (o *AccountExperienceConfiguration) GetSettingsUiUrl() string {
if o == nil {
var ret string
return ret
}
return o.SettingsUiUrl
}
// GetSettingsUiUrlOk returns a tuple with the SettingsUiUrl field value
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetSettingsUiUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.SettingsUiUrl, true
}
// SetSettingsUiUrl sets field value
func (o *AccountExperienceConfiguration) SetSettingsUiUrl(v string) {
o.SettingsUiUrl = v
}
// GetStylesheet returns the Stylesheet field value if set, zero value otherwise.
func (o *AccountExperienceConfiguration) GetStylesheet() string {
if o == nil || IsNil(o.Stylesheet) {
var ret string
return ret
}
return *o.Stylesheet
}
// GetStylesheetOk returns a tuple with the Stylesheet field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetStylesheetOk() (*string, bool) {
if o == nil || IsNil(o.Stylesheet) {
return nil, false
}
return o.Stylesheet, true
}
// HasStylesheet returns a boolean if a field has been set.
func (o *AccountExperienceConfiguration) HasStylesheet() bool {
if o != nil && !IsNil(o.Stylesheet) {
return true
}
return false
}
// SetStylesheet gets a reference to the given string and assigns it to the Stylesheet field.
func (o *AccountExperienceConfiguration) SetStylesheet(v string) {
o.Stylesheet = &v
}
// GetTranslations returns the Translations field value
func (o *AccountExperienceConfiguration) GetTranslations() []RevisionAccountExperienceCustomTranslation {
if o == nil {
var ret []RevisionAccountExperienceCustomTranslation
return ret
}
return o.Translations
}
// GetTranslationsOk returns a tuple with the Translations field value
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetTranslationsOk() ([]RevisionAccountExperienceCustomTranslation, bool) {
if o == nil {
return nil, false
}
return o.Translations, true
}
// SetTranslations sets field value
func (o *AccountExperienceConfiguration) SetTranslations(v []RevisionAccountExperienceCustomTranslation) {
o.Translations = v
}
// GetVerificationEnabled returns the VerificationEnabled field value
func (o *AccountExperienceConfiguration) GetVerificationEnabled() bool {
if o == nil {
var ret bool
return ret
}
return o.VerificationEnabled
}
// GetVerificationEnabledOk returns a tuple with the VerificationEnabled field value
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetVerificationEnabledOk() (*bool, bool) {
if o == nil {
return nil, false
}
return &o.VerificationEnabled, true
}
// SetVerificationEnabled sets field value
func (o *AccountExperienceConfiguration) SetVerificationEnabled(v bool) {
o.VerificationEnabled = v
}
// GetVerificationUiUrl returns the VerificationUiUrl field value
func (o *AccountExperienceConfiguration) GetVerificationUiUrl() string {
if o == nil {
var ret string
return ret
}
return o.VerificationUiUrl
}
// GetVerificationUiUrlOk returns a tuple with the VerificationUiUrl field value
// and a boolean to check if the value has been set.
func (o *AccountExperienceConfiguration) GetVerificationUiUrlOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.VerificationUiUrl, true
}
// SetVerificationUiUrl sets field value
func (o *AccountExperienceConfiguration) SetVerificationUiUrl(v string) {
o.VerificationUiUrl = v
}
func (o AccountExperienceConfiguration) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o AccountExperienceConfiguration) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["default_locale"] = o.DefaultLocale
toSerialize["default_redirect_url"] = o.DefaultRedirectUrl
toSerialize["enabled_locales"] = o.EnabledLocales
toSerialize["error_ui_url"] = o.ErrorUiUrl
if !IsNil(o.FaviconDarkUrl) {
toSerialize["favicon_dark_url"] = o.FaviconDarkUrl
}
if !IsNil(o.FaviconLightUrl) {
toSerialize["favicon_light_url"] = o.FaviconLightUrl
}
toSerialize["locale_behavior"] = o.LocaleBehavior
toSerialize["login_ui_url"] = o.LoginUiUrl
if !IsNil(o.LogoDarkUrl) {
toSerialize["logo_dark_url"] = o.LogoDarkUrl
}
if !IsNil(o.LogoLightUrl) {
toSerialize["logo_light_url"] = o.LogoLightUrl
}
toSerialize["name"] = o.Name
toSerialize["recovery_enabled"] = o.RecoveryEnabled
toSerialize["recovery_ui_url"] = o.RecoveryUiUrl
toSerialize["registration_enabled"] = o.RegistrationEnabled
toSerialize["registration_ui_url"] = o.RegistrationUiUrl
toSerialize["settings_ui_url"] = o.SettingsUiUrl
if !IsNil(o.Stylesheet) {
toSerialize["stylesheet"] = o.Stylesheet
}
toSerialize["translations"] = o.Translations
toSerialize["verification_enabled"] = o.VerificationEnabled
toSerialize["verification_ui_url"] = o.VerificationUiUrl
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return toSerialize, nil
}
func (o *AccountExperienceConfiguration) UnmarshalJSON(data []byte) (err error) {
// This validates that all required properties are included in the JSON object
// by unmarshalling the object into a generic map with string keys and checking
// that every required field exists as a key in the generic map.
requiredProperties := []string{
"default_locale",
"default_redirect_url",
"enabled_locales",
"error_ui_url",
"locale_behavior",
"login_ui_url",
"name",
"recovery_enabled",
"recovery_ui_url",
"registration_enabled",
"registration_ui_url",
"settings_ui_url",
"translations",
"verification_enabled",
"verification_ui_url",
}
allProperties := make(map[string]interface{})
err = json.Unmarshal(data, &allProperties)
if err != nil {
return err;
}
for _, requiredProperty := range(requiredProperties) {
if _, exists := allProperties[requiredProperty]; !exists {
return fmt.Errorf("no value given for required property %v", requiredProperty)
}
}
varAccountExperienceConfiguration := _AccountExperienceConfiguration{}
err = json.Unmarshal(data, &varAccountExperienceConfiguration)
if err != nil {
return err
}
*o = AccountExperienceConfiguration(varAccountExperienceConfiguration)
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(data, &additionalProperties); err == nil {
delete(additionalProperties, "default_locale")
delete(additionalProperties, "default_redirect_url")
delete(additionalProperties, "enabled_locales")
delete(additionalProperties, "error_ui_url")
delete(additionalProperties, "favicon_dark_url")
delete(additionalProperties, "favicon_light_url")
delete(additionalProperties, "locale_behavior")
delete(additionalProperties, "login_ui_url")
delete(additionalProperties, "logo_dark_url")
delete(additionalProperties, "logo_light_url")
delete(additionalProperties, "name")
delete(additionalProperties, "recovery_enabled")
delete(additionalProperties, "recovery_ui_url")
delete(additionalProperties, "registration_enabled")
delete(additionalProperties, "registration_ui_url")
delete(additionalProperties, "settings_ui_url")
delete(additionalProperties, "stylesheet")
delete(additionalProperties, "translations")
delete(additionalProperties, "verification_enabled")
delete(additionalProperties, "verification_ui_url")
o.AdditionalProperties = additionalProperties
}
return err
}
type NullableAccountExperienceConfiguration struct {
value *AccountExperienceConfiguration
isSet bool
}
func (v NullableAccountExperienceConfiguration) Get() *AccountExperienceConfiguration {
return v.value
}
func (v *NullableAccountExperienceConfiguration) Set(val *AccountExperienceConfiguration) {
v.value = val
v.isSet = true
}
func (v NullableAccountExperienceConfiguration) IsSet() bool {
return v.isSet
}
func (v *NullableAccountExperienceConfiguration) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAccountExperienceConfiguration(val *AccountExperienceConfiguration) *NullableAccountExperienceConfiguration {
return &NullableAccountExperienceConfiguration{value: val, isSet: true}
}
func (v NullableAccountExperienceConfiguration) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAccountExperienceConfiguration) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}