-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathmodel_proxy_outpost_config.go
802 lines (686 loc) · 24 KB
/
model_proxy_outpost_config.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
/*
authentik
Making authentication simple.
API version: 2025.2.3
Contact: hello@goauthentik.io
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package api
import (
"encoding/json"
)
// ProxyOutpostConfig Proxy provider serializer for outposts
type ProxyOutpostConfig struct {
Pk int32 `json:"pk"`
Name string `json:"name"`
InternalHost *string `json:"internal_host,omitempty"`
ExternalHost string `json:"external_host"`
// Validate SSL Certificates of upstream servers
InternalHostSslValidation *bool `json:"internal_host_ssl_validation,omitempty"`
ClientId *string `json:"client_id,omitempty"`
ClientSecret *string `json:"client_secret,omitempty"`
OidcConfiguration OpenIDConnectConfiguration `json:"oidc_configuration"`
CookieSecret *string `json:"cookie_secret,omitempty"`
Certificate NullableString `json:"certificate,omitempty"`
// Regular expressions for which authentication is not required. Each new line is interpreted as a new Regular Expression.
SkipPathRegex *string `json:"skip_path_regex,omitempty"`
// Set a custom HTTP-Basic Authentication header based on values from authentik.
BasicAuthEnabled *bool `json:"basic_auth_enabled,omitempty"`
// User/Group Attribute used for the password part of the HTTP-Basic Header.
BasicAuthPasswordAttribute *string `json:"basic_auth_password_attribute,omitempty"`
// User/Group Attribute used for the user part of the HTTP-Basic Header. If not set, the user's Email address is used.
BasicAuthUserAttribute *string `json:"basic_auth_user_attribute,omitempty"`
// Enable support for forwardAuth in traefik and nginx auth_request. Exclusive with internal_host.
Mode *ProxyMode `json:"mode,omitempty"`
CookieDomain *string `json:"cookie_domain,omitempty"`
// Get token validity as second count
AccessTokenValidity NullableFloat64 `json:"access_token_validity"`
// When enabled, this provider will intercept the authorization header and authenticate requests based on its value.
InterceptHeaderAuth *bool `json:"intercept_header_auth,omitempty"`
// Get all the scope names the outpost should request, including custom-defined ones
ScopesToRequest []string `json:"scopes_to_request"`
// Internal application name, used in URLs.
AssignedApplicationSlug string `json:"assigned_application_slug"`
// Application's display Name.
AssignedApplicationName string `json:"assigned_application_name"`
}
// NewProxyOutpostConfig instantiates a new ProxyOutpostConfig 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 NewProxyOutpostConfig(pk int32, name string, externalHost string, oidcConfiguration OpenIDConnectConfiguration, accessTokenValidity NullableFloat64, scopesToRequest []string, assignedApplicationSlug string, assignedApplicationName string) *ProxyOutpostConfig {
this := ProxyOutpostConfig{}
this.Pk = pk
this.Name = name
this.ExternalHost = externalHost
this.OidcConfiguration = oidcConfiguration
this.AccessTokenValidity = accessTokenValidity
this.ScopesToRequest = scopesToRequest
this.AssignedApplicationSlug = assignedApplicationSlug
this.AssignedApplicationName = assignedApplicationName
return &this
}
// NewProxyOutpostConfigWithDefaults instantiates a new ProxyOutpostConfig 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 NewProxyOutpostConfigWithDefaults() *ProxyOutpostConfig {
this := ProxyOutpostConfig{}
return &this
}
// GetPk returns the Pk field value
func (o *ProxyOutpostConfig) GetPk() int32 {
if o == nil {
var ret int32
return ret
}
return o.Pk
}
// GetPkOk returns a tuple with the Pk field value
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetPkOk() (*int32, bool) {
if o == nil {
return nil, false
}
return &o.Pk, true
}
// SetPk sets field value
func (o *ProxyOutpostConfig) SetPk(v int32) {
o.Pk = v
}
// GetName returns the Name field value
func (o *ProxyOutpostConfig) 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 *ProxyOutpostConfig) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *ProxyOutpostConfig) SetName(v string) {
o.Name = v
}
// GetInternalHost returns the InternalHost field value if set, zero value otherwise.
func (o *ProxyOutpostConfig) GetInternalHost() string {
if o == nil || o.InternalHost == nil {
var ret string
return ret
}
return *o.InternalHost
}
// GetInternalHostOk returns a tuple with the InternalHost field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetInternalHostOk() (*string, bool) {
if o == nil || o.InternalHost == nil {
return nil, false
}
return o.InternalHost, true
}
// HasInternalHost returns a boolean if a field has been set.
func (o *ProxyOutpostConfig) HasInternalHost() bool {
if o != nil && o.InternalHost != nil {
return true
}
return false
}
// SetInternalHost gets a reference to the given string and assigns it to the InternalHost field.
func (o *ProxyOutpostConfig) SetInternalHost(v string) {
o.InternalHost = &v
}
// GetExternalHost returns the ExternalHost field value
func (o *ProxyOutpostConfig) GetExternalHost() string {
if o == nil {
var ret string
return ret
}
return o.ExternalHost
}
// GetExternalHostOk returns a tuple with the ExternalHost field value
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetExternalHostOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ExternalHost, true
}
// SetExternalHost sets field value
func (o *ProxyOutpostConfig) SetExternalHost(v string) {
o.ExternalHost = v
}
// GetInternalHostSslValidation returns the InternalHostSslValidation field value if set, zero value otherwise.
func (o *ProxyOutpostConfig) GetInternalHostSslValidation() bool {
if o == nil || o.InternalHostSslValidation == nil {
var ret bool
return ret
}
return *o.InternalHostSslValidation
}
// GetInternalHostSslValidationOk returns a tuple with the InternalHostSslValidation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetInternalHostSslValidationOk() (*bool, bool) {
if o == nil || o.InternalHostSslValidation == nil {
return nil, false
}
return o.InternalHostSslValidation, true
}
// HasInternalHostSslValidation returns a boolean if a field has been set.
func (o *ProxyOutpostConfig) HasInternalHostSslValidation() bool {
if o != nil && o.InternalHostSslValidation != nil {
return true
}
return false
}
// SetInternalHostSslValidation gets a reference to the given bool and assigns it to the InternalHostSslValidation field.
func (o *ProxyOutpostConfig) SetInternalHostSslValidation(v bool) {
o.InternalHostSslValidation = &v
}
// GetClientId returns the ClientId field value if set, zero value otherwise.
func (o *ProxyOutpostConfig) GetClientId() string {
if o == nil || o.ClientId == nil {
var ret string
return ret
}
return *o.ClientId
}
// GetClientIdOk returns a tuple with the ClientId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetClientIdOk() (*string, bool) {
if o == nil || o.ClientId == nil {
return nil, false
}
return o.ClientId, true
}
// HasClientId returns a boolean if a field has been set.
func (o *ProxyOutpostConfig) HasClientId() bool {
if o != nil && o.ClientId != nil {
return true
}
return false
}
// SetClientId gets a reference to the given string and assigns it to the ClientId field.
func (o *ProxyOutpostConfig) SetClientId(v string) {
o.ClientId = &v
}
// GetClientSecret returns the ClientSecret field value if set, zero value otherwise.
func (o *ProxyOutpostConfig) GetClientSecret() string {
if o == nil || o.ClientSecret == nil {
var ret string
return ret
}
return *o.ClientSecret
}
// GetClientSecretOk returns a tuple with the ClientSecret field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetClientSecretOk() (*string, bool) {
if o == nil || o.ClientSecret == nil {
return nil, false
}
return o.ClientSecret, true
}
// HasClientSecret returns a boolean if a field has been set.
func (o *ProxyOutpostConfig) HasClientSecret() bool {
if o != nil && o.ClientSecret != nil {
return true
}
return false
}
// SetClientSecret gets a reference to the given string and assigns it to the ClientSecret field.
func (o *ProxyOutpostConfig) SetClientSecret(v string) {
o.ClientSecret = &v
}
// GetOidcConfiguration returns the OidcConfiguration field value
func (o *ProxyOutpostConfig) GetOidcConfiguration() OpenIDConnectConfiguration {
if o == nil {
var ret OpenIDConnectConfiguration
return ret
}
return o.OidcConfiguration
}
// GetOidcConfigurationOk returns a tuple with the OidcConfiguration field value
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetOidcConfigurationOk() (*OpenIDConnectConfiguration, bool) {
if o == nil {
return nil, false
}
return &o.OidcConfiguration, true
}
// SetOidcConfiguration sets field value
func (o *ProxyOutpostConfig) SetOidcConfiguration(v OpenIDConnectConfiguration) {
o.OidcConfiguration = v
}
// GetCookieSecret returns the CookieSecret field value if set, zero value otherwise.
func (o *ProxyOutpostConfig) GetCookieSecret() string {
if o == nil || o.CookieSecret == nil {
var ret string
return ret
}
return *o.CookieSecret
}
// GetCookieSecretOk returns a tuple with the CookieSecret field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetCookieSecretOk() (*string, bool) {
if o == nil || o.CookieSecret == nil {
return nil, false
}
return o.CookieSecret, true
}
// HasCookieSecret returns a boolean if a field has been set.
func (o *ProxyOutpostConfig) HasCookieSecret() bool {
if o != nil && o.CookieSecret != nil {
return true
}
return false
}
// SetCookieSecret gets a reference to the given string and assigns it to the CookieSecret field.
func (o *ProxyOutpostConfig) SetCookieSecret(v string) {
o.CookieSecret = &v
}
// GetCertificate returns the Certificate field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ProxyOutpostConfig) GetCertificate() string {
if o == nil || o.Certificate.Get() == nil {
var ret string
return ret
}
return *o.Certificate.Get()
}
// GetCertificateOk returns a tuple with the Certificate 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 *ProxyOutpostConfig) GetCertificateOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Certificate.Get(), o.Certificate.IsSet()
}
// HasCertificate returns a boolean if a field has been set.
func (o *ProxyOutpostConfig) HasCertificate() bool {
if o != nil && o.Certificate.IsSet() {
return true
}
return false
}
// SetCertificate gets a reference to the given NullableString and assigns it to the Certificate field.
func (o *ProxyOutpostConfig) SetCertificate(v string) {
o.Certificate.Set(&v)
}
// SetCertificateNil sets the value for Certificate to be an explicit nil
func (o *ProxyOutpostConfig) SetCertificateNil() {
o.Certificate.Set(nil)
}
// UnsetCertificate ensures that no value is present for Certificate, not even an explicit nil
func (o *ProxyOutpostConfig) UnsetCertificate() {
o.Certificate.Unset()
}
// GetSkipPathRegex returns the SkipPathRegex field value if set, zero value otherwise.
func (o *ProxyOutpostConfig) GetSkipPathRegex() string {
if o == nil || o.SkipPathRegex == nil {
var ret string
return ret
}
return *o.SkipPathRegex
}
// GetSkipPathRegexOk returns a tuple with the SkipPathRegex field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetSkipPathRegexOk() (*string, bool) {
if o == nil || o.SkipPathRegex == nil {
return nil, false
}
return o.SkipPathRegex, true
}
// HasSkipPathRegex returns a boolean if a field has been set.
func (o *ProxyOutpostConfig) HasSkipPathRegex() bool {
if o != nil && o.SkipPathRegex != nil {
return true
}
return false
}
// SetSkipPathRegex gets a reference to the given string and assigns it to the SkipPathRegex field.
func (o *ProxyOutpostConfig) SetSkipPathRegex(v string) {
o.SkipPathRegex = &v
}
// GetBasicAuthEnabled returns the BasicAuthEnabled field value if set, zero value otherwise.
func (o *ProxyOutpostConfig) GetBasicAuthEnabled() bool {
if o == nil || o.BasicAuthEnabled == nil {
var ret bool
return ret
}
return *o.BasicAuthEnabled
}
// GetBasicAuthEnabledOk returns a tuple with the BasicAuthEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetBasicAuthEnabledOk() (*bool, bool) {
if o == nil || o.BasicAuthEnabled == nil {
return nil, false
}
return o.BasicAuthEnabled, true
}
// HasBasicAuthEnabled returns a boolean if a field has been set.
func (o *ProxyOutpostConfig) HasBasicAuthEnabled() bool {
if o != nil && o.BasicAuthEnabled != nil {
return true
}
return false
}
// SetBasicAuthEnabled gets a reference to the given bool and assigns it to the BasicAuthEnabled field.
func (o *ProxyOutpostConfig) SetBasicAuthEnabled(v bool) {
o.BasicAuthEnabled = &v
}
// GetBasicAuthPasswordAttribute returns the BasicAuthPasswordAttribute field value if set, zero value otherwise.
func (o *ProxyOutpostConfig) GetBasicAuthPasswordAttribute() string {
if o == nil || o.BasicAuthPasswordAttribute == nil {
var ret string
return ret
}
return *o.BasicAuthPasswordAttribute
}
// GetBasicAuthPasswordAttributeOk returns a tuple with the BasicAuthPasswordAttribute field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetBasicAuthPasswordAttributeOk() (*string, bool) {
if o == nil || o.BasicAuthPasswordAttribute == nil {
return nil, false
}
return o.BasicAuthPasswordAttribute, true
}
// HasBasicAuthPasswordAttribute returns a boolean if a field has been set.
func (o *ProxyOutpostConfig) HasBasicAuthPasswordAttribute() bool {
if o != nil && o.BasicAuthPasswordAttribute != nil {
return true
}
return false
}
// SetBasicAuthPasswordAttribute gets a reference to the given string and assigns it to the BasicAuthPasswordAttribute field.
func (o *ProxyOutpostConfig) SetBasicAuthPasswordAttribute(v string) {
o.BasicAuthPasswordAttribute = &v
}
// GetBasicAuthUserAttribute returns the BasicAuthUserAttribute field value if set, zero value otherwise.
func (o *ProxyOutpostConfig) GetBasicAuthUserAttribute() string {
if o == nil || o.BasicAuthUserAttribute == nil {
var ret string
return ret
}
return *o.BasicAuthUserAttribute
}
// GetBasicAuthUserAttributeOk returns a tuple with the BasicAuthUserAttribute field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetBasicAuthUserAttributeOk() (*string, bool) {
if o == nil || o.BasicAuthUserAttribute == nil {
return nil, false
}
return o.BasicAuthUserAttribute, true
}
// HasBasicAuthUserAttribute returns a boolean if a field has been set.
func (o *ProxyOutpostConfig) HasBasicAuthUserAttribute() bool {
if o != nil && o.BasicAuthUserAttribute != nil {
return true
}
return false
}
// SetBasicAuthUserAttribute gets a reference to the given string and assigns it to the BasicAuthUserAttribute field.
func (o *ProxyOutpostConfig) SetBasicAuthUserAttribute(v string) {
o.BasicAuthUserAttribute = &v
}
// GetMode returns the Mode field value if set, zero value otherwise.
func (o *ProxyOutpostConfig) GetMode() ProxyMode {
if o == nil || o.Mode == nil {
var ret ProxyMode
return ret
}
return *o.Mode
}
// GetModeOk returns a tuple with the Mode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetModeOk() (*ProxyMode, bool) {
if o == nil || o.Mode == nil {
return nil, false
}
return o.Mode, true
}
// HasMode returns a boolean if a field has been set.
func (o *ProxyOutpostConfig) HasMode() bool {
if o != nil && o.Mode != nil {
return true
}
return false
}
// SetMode gets a reference to the given ProxyMode and assigns it to the Mode field.
func (o *ProxyOutpostConfig) SetMode(v ProxyMode) {
o.Mode = &v
}
// GetCookieDomain returns the CookieDomain field value if set, zero value otherwise.
func (o *ProxyOutpostConfig) GetCookieDomain() string {
if o == nil || o.CookieDomain == nil {
var ret string
return ret
}
return *o.CookieDomain
}
// GetCookieDomainOk returns a tuple with the CookieDomain field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetCookieDomainOk() (*string, bool) {
if o == nil || o.CookieDomain == nil {
return nil, false
}
return o.CookieDomain, true
}
// HasCookieDomain returns a boolean if a field has been set.
func (o *ProxyOutpostConfig) HasCookieDomain() bool {
if o != nil && o.CookieDomain != nil {
return true
}
return false
}
// SetCookieDomain gets a reference to the given string and assigns it to the CookieDomain field.
func (o *ProxyOutpostConfig) SetCookieDomain(v string) {
o.CookieDomain = &v
}
// GetAccessTokenValidity returns the AccessTokenValidity field value
// If the value is explicit nil, the zero value for float64 will be returned
func (o *ProxyOutpostConfig) GetAccessTokenValidity() float64 {
if o == nil || o.AccessTokenValidity.Get() == nil {
var ret float64
return ret
}
return *o.AccessTokenValidity.Get()
}
// GetAccessTokenValidityOk returns a tuple with the AccessTokenValidity field value
// 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 *ProxyOutpostConfig) GetAccessTokenValidityOk() (*float64, bool) {
if o == nil {
return nil, false
}
return o.AccessTokenValidity.Get(), o.AccessTokenValidity.IsSet()
}
// SetAccessTokenValidity sets field value
func (o *ProxyOutpostConfig) SetAccessTokenValidity(v float64) {
o.AccessTokenValidity.Set(&v)
}
// GetInterceptHeaderAuth returns the InterceptHeaderAuth field value if set, zero value otherwise.
func (o *ProxyOutpostConfig) GetInterceptHeaderAuth() bool {
if o == nil || o.InterceptHeaderAuth == nil {
var ret bool
return ret
}
return *o.InterceptHeaderAuth
}
// GetInterceptHeaderAuthOk returns a tuple with the InterceptHeaderAuth field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetInterceptHeaderAuthOk() (*bool, bool) {
if o == nil || o.InterceptHeaderAuth == nil {
return nil, false
}
return o.InterceptHeaderAuth, true
}
// HasInterceptHeaderAuth returns a boolean if a field has been set.
func (o *ProxyOutpostConfig) HasInterceptHeaderAuth() bool {
if o != nil && o.InterceptHeaderAuth != nil {
return true
}
return false
}
// SetInterceptHeaderAuth gets a reference to the given bool and assigns it to the InterceptHeaderAuth field.
func (o *ProxyOutpostConfig) SetInterceptHeaderAuth(v bool) {
o.InterceptHeaderAuth = &v
}
// GetScopesToRequest returns the ScopesToRequest field value
func (o *ProxyOutpostConfig) GetScopesToRequest() []string {
if o == nil {
var ret []string
return ret
}
return o.ScopesToRequest
}
// GetScopesToRequestOk returns a tuple with the ScopesToRequest field value
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetScopesToRequestOk() ([]string, bool) {
if o == nil {
return nil, false
}
return o.ScopesToRequest, true
}
// SetScopesToRequest sets field value
func (o *ProxyOutpostConfig) SetScopesToRequest(v []string) {
o.ScopesToRequest = v
}
// GetAssignedApplicationSlug returns the AssignedApplicationSlug field value
func (o *ProxyOutpostConfig) GetAssignedApplicationSlug() string {
if o == nil {
var ret string
return ret
}
return o.AssignedApplicationSlug
}
// GetAssignedApplicationSlugOk returns a tuple with the AssignedApplicationSlug field value
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetAssignedApplicationSlugOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AssignedApplicationSlug, true
}
// SetAssignedApplicationSlug sets field value
func (o *ProxyOutpostConfig) SetAssignedApplicationSlug(v string) {
o.AssignedApplicationSlug = v
}
// GetAssignedApplicationName returns the AssignedApplicationName field value
func (o *ProxyOutpostConfig) GetAssignedApplicationName() string {
if o == nil {
var ret string
return ret
}
return o.AssignedApplicationName
}
// GetAssignedApplicationNameOk returns a tuple with the AssignedApplicationName field value
// and a boolean to check if the value has been set.
func (o *ProxyOutpostConfig) GetAssignedApplicationNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.AssignedApplicationName, true
}
// SetAssignedApplicationName sets field value
func (o *ProxyOutpostConfig) SetAssignedApplicationName(v string) {
o.AssignedApplicationName = v
}
func (o ProxyOutpostConfig) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if true {
toSerialize["pk"] = o.Pk
}
if true {
toSerialize["name"] = o.Name
}
if o.InternalHost != nil {
toSerialize["internal_host"] = o.InternalHost
}
if true {
toSerialize["external_host"] = o.ExternalHost
}
if o.InternalHostSslValidation != nil {
toSerialize["internal_host_ssl_validation"] = o.InternalHostSslValidation
}
if o.ClientId != nil {
toSerialize["client_id"] = o.ClientId
}
if o.ClientSecret != nil {
toSerialize["client_secret"] = o.ClientSecret
}
if true {
toSerialize["oidc_configuration"] = o.OidcConfiguration
}
if o.CookieSecret != nil {
toSerialize["cookie_secret"] = o.CookieSecret
}
if o.Certificate.IsSet() {
toSerialize["certificate"] = o.Certificate.Get()
}
if o.SkipPathRegex != nil {
toSerialize["skip_path_regex"] = o.SkipPathRegex
}
if o.BasicAuthEnabled != nil {
toSerialize["basic_auth_enabled"] = o.BasicAuthEnabled
}
if o.BasicAuthPasswordAttribute != nil {
toSerialize["basic_auth_password_attribute"] = o.BasicAuthPasswordAttribute
}
if o.BasicAuthUserAttribute != nil {
toSerialize["basic_auth_user_attribute"] = o.BasicAuthUserAttribute
}
if o.Mode != nil {
toSerialize["mode"] = o.Mode
}
if o.CookieDomain != nil {
toSerialize["cookie_domain"] = o.CookieDomain
}
if true {
toSerialize["access_token_validity"] = o.AccessTokenValidity.Get()
}
if o.InterceptHeaderAuth != nil {
toSerialize["intercept_header_auth"] = o.InterceptHeaderAuth
}
if true {
toSerialize["scopes_to_request"] = o.ScopesToRequest
}
if true {
toSerialize["assigned_application_slug"] = o.AssignedApplicationSlug
}
if true {
toSerialize["assigned_application_name"] = o.AssignedApplicationName
}
return json.Marshal(toSerialize)
}
type NullableProxyOutpostConfig struct {
value *ProxyOutpostConfig
isSet bool
}
func (v NullableProxyOutpostConfig) Get() *ProxyOutpostConfig {
return v.value
}
func (v *NullableProxyOutpostConfig) Set(val *ProxyOutpostConfig) {
v.value = val
v.isSet = true
}
func (v NullableProxyOutpostConfig) IsSet() bool {
return v.isSet
}
func (v *NullableProxyOutpostConfig) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableProxyOutpostConfig(val *ProxyOutpostConfig) *NullableProxyOutpostConfig {
return &NullableProxyOutpostConfig{value: val, isSet: true}
}
func (v NullableProxyOutpostConfig) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableProxyOutpostConfig) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}