-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel_auth_method_update_oauth2.go
961 lines (827 loc) · 27.7 KB
/
model_auth_method_update_oauth2.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
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
/*
* Akeyless API
*
* The purpose of this application is to provide access to Akeyless API.
*
* API version: 2.0
* Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package akeyless
import (
"encoding/json"
)
// AuthMethodUpdateOauth2 authMethodUpdateOauth2 is a command that updates a new auth method that will be able to authenticate using Oauth2.
type AuthMethodUpdateOauth2 struct {
// Access expiration date in Unix timestamp (select 0 for access without expiry date)
AccessExpires *int64 `json:"access-expires,omitempty"`
// The audience in the JWT
Audience *string `json:"audience,omitempty"`
// Subclaims to include in audit logs, e.g \"--audit-logs-claims email --audit-logs-claims username\"
AuditLogsClaims *[]string `json:"audit-logs-claims,omitempty"`
// The clients ids that the access is restricted to
BoundClientIds *[]string `json:"bound-client-ids,omitempty"`
// A CIDR whitelist with the IPs that the access is restricted to
BoundIps *[]string `json:"bound-ips,omitempty"`
// CertificateFile Path to a file that contain the certificate in a PEM format.
Cert *string `json:"cert,omitempty"`
// CertificateFileData PEM Certificate in a Base64 format.
CertFileData *string `json:"cert-file-data,omitempty"`
// Protection from accidental deletion of this object [true/false]
DeleteProtection *string `json:"delete_protection,omitempty"`
// Auth Method description
Description *string `json:"description,omitempty"`
// if true: enforce role-association must include sub claims
ForceSubClaims *bool `json:"force-sub-claims,omitempty"`
// Akeyless Gateway URL (Configuration Management port). Relevant only when the jwks-uri is accessible only from the gateway.
GatewayUrl *string `json:"gateway-url,omitempty"`
// A CIDR whitelist with the GW IPs that the access is restricted to
GwBoundIps *[]string `json:"gw-bound-ips,omitempty"`
// Issuer URL
Issuer *string `json:"issuer,omitempty"`
// Set output format to JSON
Json *bool `json:"json,omitempty"`
// The JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server. base64 encoded string
JwksJsonData *string `json:"jwks-json-data,omitempty"`
// The URL to the JSON Web Key Set (JWKS) that containing the public keys that should be used to verify any JSON Web Token (JWT) issued by the authorization server.
JwksUri string `json:"jwks-uri"`
// Jwt TTL
JwtTtl *int64 `json:"jwt-ttl,omitempty"`
// Auth Method name
Name string `json:"name"`
// Auth Method new name
NewName *string `json:"new-name,omitempty"`
// Choose the relevant product type for the auth method [sm, sra, pm, dp, ca]
ProductType *[]string `json:"product-type,omitempty"`
// A list of additional sub claims delimiters (relevant only for SAML, OIDC, OAuth2/JWT)
SubclaimsDelimiters *[]string `json:"subclaims-delimiters,omitempty"`
// Authentication token (see `/auth` and `/configure`)
Token *string `json:"token,omitempty"`
// The universal identity token, Required only for universal_identity authentication
UidToken *string `json:"uid-token,omitempty"`
// A unique identifier (ID) value should be configured for OAuth2, LDAP and SAML authentication method types and is usually a value such as the email, username, or upn for example. Whenever a user logs in with a token, these authentication types issue a \"sub claim\" that contains details uniquely identifying that user. This sub claim includes a key containing the ID value that you configured, and is used to distinguish between different users from within the same organization.
UniqueIdentifier string `json:"unique-identifier"`
}
// NewAuthMethodUpdateOauth2 instantiates a new AuthMethodUpdateOauth2 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 NewAuthMethodUpdateOauth2(jwksUri string, name string, uniqueIdentifier string, ) *AuthMethodUpdateOauth2 {
this := AuthMethodUpdateOauth2{}
var accessExpires int64 = 0
this.AccessExpires = &accessExpires
var json bool = false
this.Json = &json
this.JwksUri = jwksUri
var jwtTtl int64 = 0
this.JwtTtl = &jwtTtl
this.Name = name
this.UniqueIdentifier = uniqueIdentifier
return &this
}
// NewAuthMethodUpdateOauth2WithDefaults instantiates a new AuthMethodUpdateOauth2 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 NewAuthMethodUpdateOauth2WithDefaults() *AuthMethodUpdateOauth2 {
this := AuthMethodUpdateOauth2{}
var accessExpires int64 = 0
this.AccessExpires = &accessExpires
var json bool = false
this.Json = &json
var jwksUri string = "default_jwks_url"
this.JwksUri = jwksUri
var jwtTtl int64 = 0
this.JwtTtl = &jwtTtl
return &this
}
// GetAccessExpires returns the AccessExpires field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetAccessExpires() int64 {
if o == nil || o.AccessExpires == nil {
var ret int64
return ret
}
return *o.AccessExpires
}
// GetAccessExpiresOk returns a tuple with the AccessExpires field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetAccessExpiresOk() (*int64, bool) {
if o == nil || o.AccessExpires == nil {
return nil, false
}
return o.AccessExpires, true
}
// HasAccessExpires returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasAccessExpires() bool {
if o != nil && o.AccessExpires != nil {
return true
}
return false
}
// SetAccessExpires gets a reference to the given int64 and assigns it to the AccessExpires field.
func (o *AuthMethodUpdateOauth2) SetAccessExpires(v int64) {
o.AccessExpires = &v
}
// GetAudience returns the Audience field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetAudience() string {
if o == nil || o.Audience == nil {
var ret string
return ret
}
return *o.Audience
}
// GetAudienceOk returns a tuple with the Audience field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetAudienceOk() (*string, bool) {
if o == nil || o.Audience == nil {
return nil, false
}
return o.Audience, true
}
// HasAudience returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasAudience() bool {
if o != nil && o.Audience != nil {
return true
}
return false
}
// SetAudience gets a reference to the given string and assigns it to the Audience field.
func (o *AuthMethodUpdateOauth2) SetAudience(v string) {
o.Audience = &v
}
// GetAuditLogsClaims returns the AuditLogsClaims field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetAuditLogsClaims() []string {
if o == nil || o.AuditLogsClaims == nil {
var ret []string
return ret
}
return *o.AuditLogsClaims
}
// GetAuditLogsClaimsOk returns a tuple with the AuditLogsClaims field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetAuditLogsClaimsOk() (*[]string, bool) {
if o == nil || o.AuditLogsClaims == nil {
return nil, false
}
return o.AuditLogsClaims, true
}
// HasAuditLogsClaims returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasAuditLogsClaims() bool {
if o != nil && o.AuditLogsClaims != nil {
return true
}
return false
}
// SetAuditLogsClaims gets a reference to the given []string and assigns it to the AuditLogsClaims field.
func (o *AuthMethodUpdateOauth2) SetAuditLogsClaims(v []string) {
o.AuditLogsClaims = &v
}
// GetBoundClientIds returns the BoundClientIds field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetBoundClientIds() []string {
if o == nil || o.BoundClientIds == nil {
var ret []string
return ret
}
return *o.BoundClientIds
}
// GetBoundClientIdsOk returns a tuple with the BoundClientIds field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetBoundClientIdsOk() (*[]string, bool) {
if o == nil || o.BoundClientIds == nil {
return nil, false
}
return o.BoundClientIds, true
}
// HasBoundClientIds returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasBoundClientIds() bool {
if o != nil && o.BoundClientIds != nil {
return true
}
return false
}
// SetBoundClientIds gets a reference to the given []string and assigns it to the BoundClientIds field.
func (o *AuthMethodUpdateOauth2) SetBoundClientIds(v []string) {
o.BoundClientIds = &v
}
// GetBoundIps returns the BoundIps field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetBoundIps() []string {
if o == nil || o.BoundIps == nil {
var ret []string
return ret
}
return *o.BoundIps
}
// GetBoundIpsOk returns a tuple with the BoundIps field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetBoundIpsOk() (*[]string, bool) {
if o == nil || o.BoundIps == nil {
return nil, false
}
return o.BoundIps, true
}
// HasBoundIps returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasBoundIps() bool {
if o != nil && o.BoundIps != nil {
return true
}
return false
}
// SetBoundIps gets a reference to the given []string and assigns it to the BoundIps field.
func (o *AuthMethodUpdateOauth2) SetBoundIps(v []string) {
o.BoundIps = &v
}
// GetCert returns the Cert field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetCert() string {
if o == nil || o.Cert == nil {
var ret string
return ret
}
return *o.Cert
}
// GetCertOk returns a tuple with the Cert field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetCertOk() (*string, bool) {
if o == nil || o.Cert == nil {
return nil, false
}
return o.Cert, true
}
// HasCert returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasCert() bool {
if o != nil && o.Cert != nil {
return true
}
return false
}
// SetCert gets a reference to the given string and assigns it to the Cert field.
func (o *AuthMethodUpdateOauth2) SetCert(v string) {
o.Cert = &v
}
// GetCertFileData returns the CertFileData field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetCertFileData() string {
if o == nil || o.CertFileData == nil {
var ret string
return ret
}
return *o.CertFileData
}
// GetCertFileDataOk returns a tuple with the CertFileData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetCertFileDataOk() (*string, bool) {
if o == nil || o.CertFileData == nil {
return nil, false
}
return o.CertFileData, true
}
// HasCertFileData returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasCertFileData() bool {
if o != nil && o.CertFileData != nil {
return true
}
return false
}
// SetCertFileData gets a reference to the given string and assigns it to the CertFileData field.
func (o *AuthMethodUpdateOauth2) SetCertFileData(v string) {
o.CertFileData = &v
}
// GetDeleteProtection returns the DeleteProtection field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetDeleteProtection() string {
if o == nil || o.DeleteProtection == nil {
var ret string
return ret
}
return *o.DeleteProtection
}
// GetDeleteProtectionOk returns a tuple with the DeleteProtection field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetDeleteProtectionOk() (*string, bool) {
if o == nil || o.DeleteProtection == nil {
return nil, false
}
return o.DeleteProtection, true
}
// HasDeleteProtection returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasDeleteProtection() bool {
if o != nil && o.DeleteProtection != nil {
return true
}
return false
}
// SetDeleteProtection gets a reference to the given string and assigns it to the DeleteProtection field.
func (o *AuthMethodUpdateOauth2) SetDeleteProtection(v string) {
o.DeleteProtection = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetDescription() string {
if o == nil || o.Description == nil {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetDescriptionOk() (*string, bool) {
if o == nil || o.Description == nil {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasDescription() bool {
if o != nil && o.Description != nil {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *AuthMethodUpdateOauth2) SetDescription(v string) {
o.Description = &v
}
// GetForceSubClaims returns the ForceSubClaims field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetForceSubClaims() bool {
if o == nil || o.ForceSubClaims == nil {
var ret bool
return ret
}
return *o.ForceSubClaims
}
// GetForceSubClaimsOk returns a tuple with the ForceSubClaims field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetForceSubClaimsOk() (*bool, bool) {
if o == nil || o.ForceSubClaims == nil {
return nil, false
}
return o.ForceSubClaims, true
}
// HasForceSubClaims returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasForceSubClaims() bool {
if o != nil && o.ForceSubClaims != nil {
return true
}
return false
}
// SetForceSubClaims gets a reference to the given bool and assigns it to the ForceSubClaims field.
func (o *AuthMethodUpdateOauth2) SetForceSubClaims(v bool) {
o.ForceSubClaims = &v
}
// GetGatewayUrl returns the GatewayUrl field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetGatewayUrl() string {
if o == nil || o.GatewayUrl == nil {
var ret string
return ret
}
return *o.GatewayUrl
}
// GetGatewayUrlOk returns a tuple with the GatewayUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetGatewayUrlOk() (*string, bool) {
if o == nil || o.GatewayUrl == nil {
return nil, false
}
return o.GatewayUrl, true
}
// HasGatewayUrl returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasGatewayUrl() bool {
if o != nil && o.GatewayUrl != nil {
return true
}
return false
}
// SetGatewayUrl gets a reference to the given string and assigns it to the GatewayUrl field.
func (o *AuthMethodUpdateOauth2) SetGatewayUrl(v string) {
o.GatewayUrl = &v
}
// GetGwBoundIps returns the GwBoundIps field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetGwBoundIps() []string {
if o == nil || o.GwBoundIps == nil {
var ret []string
return ret
}
return *o.GwBoundIps
}
// GetGwBoundIpsOk returns a tuple with the GwBoundIps field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetGwBoundIpsOk() (*[]string, bool) {
if o == nil || o.GwBoundIps == nil {
return nil, false
}
return o.GwBoundIps, true
}
// HasGwBoundIps returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasGwBoundIps() bool {
if o != nil && o.GwBoundIps != nil {
return true
}
return false
}
// SetGwBoundIps gets a reference to the given []string and assigns it to the GwBoundIps field.
func (o *AuthMethodUpdateOauth2) SetGwBoundIps(v []string) {
o.GwBoundIps = &v
}
// GetIssuer returns the Issuer field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetIssuer() string {
if o == nil || o.Issuer == nil {
var ret string
return ret
}
return *o.Issuer
}
// GetIssuerOk returns a tuple with the Issuer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetIssuerOk() (*string, bool) {
if o == nil || o.Issuer == nil {
return nil, false
}
return o.Issuer, true
}
// HasIssuer returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasIssuer() bool {
if o != nil && o.Issuer != nil {
return true
}
return false
}
// SetIssuer gets a reference to the given string and assigns it to the Issuer field.
func (o *AuthMethodUpdateOauth2) SetIssuer(v string) {
o.Issuer = &v
}
// GetJson returns the Json field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetJson() bool {
if o == nil || o.Json == nil {
var ret bool
return ret
}
return *o.Json
}
// GetJsonOk returns a tuple with the Json field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetJsonOk() (*bool, bool) {
if o == nil || o.Json == nil {
return nil, false
}
return o.Json, true
}
// HasJson returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasJson() bool {
if o != nil && o.Json != nil {
return true
}
return false
}
// SetJson gets a reference to the given bool and assigns it to the Json field.
func (o *AuthMethodUpdateOauth2) SetJson(v bool) {
o.Json = &v
}
// GetJwksJsonData returns the JwksJsonData field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetJwksJsonData() string {
if o == nil || o.JwksJsonData == nil {
var ret string
return ret
}
return *o.JwksJsonData
}
// GetJwksJsonDataOk returns a tuple with the JwksJsonData field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetJwksJsonDataOk() (*string, bool) {
if o == nil || o.JwksJsonData == nil {
return nil, false
}
return o.JwksJsonData, true
}
// HasJwksJsonData returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasJwksJsonData() bool {
if o != nil && o.JwksJsonData != nil {
return true
}
return false
}
// SetJwksJsonData gets a reference to the given string and assigns it to the JwksJsonData field.
func (o *AuthMethodUpdateOauth2) SetJwksJsonData(v string) {
o.JwksJsonData = &v
}
// GetJwksUri returns the JwksUri field value
func (o *AuthMethodUpdateOauth2) GetJwksUri() string {
if o == nil {
var ret string
return ret
}
return o.JwksUri
}
// GetJwksUriOk returns a tuple with the JwksUri field value
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetJwksUriOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.JwksUri, true
}
// SetJwksUri sets field value
func (o *AuthMethodUpdateOauth2) SetJwksUri(v string) {
o.JwksUri = v
}
// GetJwtTtl returns the JwtTtl field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetJwtTtl() int64 {
if o == nil || o.JwtTtl == nil {
var ret int64
return ret
}
return *o.JwtTtl
}
// GetJwtTtlOk returns a tuple with the JwtTtl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetJwtTtlOk() (*int64, bool) {
if o == nil || o.JwtTtl == nil {
return nil, false
}
return o.JwtTtl, true
}
// HasJwtTtl returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasJwtTtl() bool {
if o != nil && o.JwtTtl != nil {
return true
}
return false
}
// SetJwtTtl gets a reference to the given int64 and assigns it to the JwtTtl field.
func (o *AuthMethodUpdateOauth2) SetJwtTtl(v int64) {
o.JwtTtl = &v
}
// GetName returns the Name field value
func (o *AuthMethodUpdateOauth2) 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 *AuthMethodUpdateOauth2) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *AuthMethodUpdateOauth2) SetName(v string) {
o.Name = v
}
// GetNewName returns the NewName field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetNewName() string {
if o == nil || o.NewName == nil {
var ret string
return ret
}
return *o.NewName
}
// GetNewNameOk returns a tuple with the NewName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetNewNameOk() (*string, bool) {
if o == nil || o.NewName == nil {
return nil, false
}
return o.NewName, true
}
// HasNewName returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasNewName() bool {
if o != nil && o.NewName != nil {
return true
}
return false
}
// SetNewName gets a reference to the given string and assigns it to the NewName field.
func (o *AuthMethodUpdateOauth2) SetNewName(v string) {
o.NewName = &v
}
// GetProductType returns the ProductType field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetProductType() []string {
if o == nil || o.ProductType == nil {
var ret []string
return ret
}
return *o.ProductType
}
// GetProductTypeOk returns a tuple with the ProductType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetProductTypeOk() (*[]string, bool) {
if o == nil || o.ProductType == nil {
return nil, false
}
return o.ProductType, true
}
// HasProductType returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasProductType() bool {
if o != nil && o.ProductType != nil {
return true
}
return false
}
// SetProductType gets a reference to the given []string and assigns it to the ProductType field.
func (o *AuthMethodUpdateOauth2) SetProductType(v []string) {
o.ProductType = &v
}
// GetSubclaimsDelimiters returns the SubclaimsDelimiters field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetSubclaimsDelimiters() []string {
if o == nil || o.SubclaimsDelimiters == nil {
var ret []string
return ret
}
return *o.SubclaimsDelimiters
}
// GetSubclaimsDelimitersOk returns a tuple with the SubclaimsDelimiters field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetSubclaimsDelimitersOk() (*[]string, bool) {
if o == nil || o.SubclaimsDelimiters == nil {
return nil, false
}
return o.SubclaimsDelimiters, true
}
// HasSubclaimsDelimiters returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasSubclaimsDelimiters() bool {
if o != nil && o.SubclaimsDelimiters != nil {
return true
}
return false
}
// SetSubclaimsDelimiters gets a reference to the given []string and assigns it to the SubclaimsDelimiters field.
func (o *AuthMethodUpdateOauth2) SetSubclaimsDelimiters(v []string) {
o.SubclaimsDelimiters = &v
}
// GetToken returns the Token field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetToken() string {
if o == nil || o.Token == nil {
var ret string
return ret
}
return *o.Token
}
// GetTokenOk returns a tuple with the Token field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetTokenOk() (*string, bool) {
if o == nil || o.Token == nil {
return nil, false
}
return o.Token, true
}
// HasToken returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasToken() bool {
if o != nil && o.Token != nil {
return true
}
return false
}
// SetToken gets a reference to the given string and assigns it to the Token field.
func (o *AuthMethodUpdateOauth2) SetToken(v string) {
o.Token = &v
}
// GetUidToken returns the UidToken field value if set, zero value otherwise.
func (o *AuthMethodUpdateOauth2) GetUidToken() string {
if o == nil || o.UidToken == nil {
var ret string
return ret
}
return *o.UidToken
}
// GetUidTokenOk returns a tuple with the UidToken field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetUidTokenOk() (*string, bool) {
if o == nil || o.UidToken == nil {
return nil, false
}
return o.UidToken, true
}
// HasUidToken returns a boolean if a field has been set.
func (o *AuthMethodUpdateOauth2) HasUidToken() bool {
if o != nil && o.UidToken != nil {
return true
}
return false
}
// SetUidToken gets a reference to the given string and assigns it to the UidToken field.
func (o *AuthMethodUpdateOauth2) SetUidToken(v string) {
o.UidToken = &v
}
// GetUniqueIdentifier returns the UniqueIdentifier field value
func (o *AuthMethodUpdateOauth2) GetUniqueIdentifier() string {
if o == nil {
var ret string
return ret
}
return o.UniqueIdentifier
}
// GetUniqueIdentifierOk returns a tuple with the UniqueIdentifier field value
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateOauth2) GetUniqueIdentifierOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.UniqueIdentifier, true
}
// SetUniqueIdentifier sets field value
func (o *AuthMethodUpdateOauth2) SetUniqueIdentifier(v string) {
o.UniqueIdentifier = v
}
func (o AuthMethodUpdateOauth2) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.AccessExpires != nil {
toSerialize["access-expires"] = o.AccessExpires
}
if o.Audience != nil {
toSerialize["audience"] = o.Audience
}
if o.AuditLogsClaims != nil {
toSerialize["audit-logs-claims"] = o.AuditLogsClaims
}
if o.BoundClientIds != nil {
toSerialize["bound-client-ids"] = o.BoundClientIds
}
if o.BoundIps != nil {
toSerialize["bound-ips"] = o.BoundIps
}
if o.Cert != nil {
toSerialize["cert"] = o.Cert
}
if o.CertFileData != nil {
toSerialize["cert-file-data"] = o.CertFileData
}
if o.DeleteProtection != nil {
toSerialize["delete_protection"] = o.DeleteProtection
}
if o.Description != nil {
toSerialize["description"] = o.Description
}
if o.ForceSubClaims != nil {
toSerialize["force-sub-claims"] = o.ForceSubClaims
}
if o.GatewayUrl != nil {
toSerialize["gateway-url"] = o.GatewayUrl
}
if o.GwBoundIps != nil {
toSerialize["gw-bound-ips"] = o.GwBoundIps
}
if o.Issuer != nil {
toSerialize["issuer"] = o.Issuer
}
if o.Json != nil {
toSerialize["json"] = o.Json
}
if o.JwksJsonData != nil {
toSerialize["jwks-json-data"] = o.JwksJsonData
}
if true {
toSerialize["jwks-uri"] = o.JwksUri
}
if o.JwtTtl != nil {
toSerialize["jwt-ttl"] = o.JwtTtl
}
if true {
toSerialize["name"] = o.Name
}
if o.NewName != nil {
toSerialize["new-name"] = o.NewName
}
if o.ProductType != nil {
toSerialize["product-type"] = o.ProductType
}
if o.SubclaimsDelimiters != nil {
toSerialize["subclaims-delimiters"] = o.SubclaimsDelimiters
}
if o.Token != nil {
toSerialize["token"] = o.Token
}
if o.UidToken != nil {
toSerialize["uid-token"] = o.UidToken
}
if true {
toSerialize["unique-identifier"] = o.UniqueIdentifier
}
return json.Marshal(toSerialize)
}
type NullableAuthMethodUpdateOauth2 struct {
value *AuthMethodUpdateOauth2
isSet bool
}
func (v NullableAuthMethodUpdateOauth2) Get() *AuthMethodUpdateOauth2 {
return v.value
}
func (v *NullableAuthMethodUpdateOauth2) Set(val *AuthMethodUpdateOauth2) {
v.value = val
v.isSet = true
}
func (v NullableAuthMethodUpdateOauth2) IsSet() bool {
return v.isSet
}
func (v *NullableAuthMethodUpdateOauth2) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAuthMethodUpdateOauth2(val *AuthMethodUpdateOauth2) *NullableAuthMethodUpdateOauth2 {
return &NullableAuthMethodUpdateOauth2{value: val, isSet: true}
}
func (v NullableAuthMethodUpdateOauth2) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAuthMethodUpdateOauth2) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}