-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel_auth_method_update_k8s.go
825 lines (709 loc) · 23.1 KB
/
model_auth_method_update_k8s.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
/*
* 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"
)
// AuthMethodUpdateK8s authMethodUpdateK8s is a command that updates a new auth method that will be able to authenticate using K8S.
type AuthMethodUpdateK8s struct {
// Access expiration date in Unix timestamp (select 0 for access without expiry date)
AccessExpires *int64 `json:"access-expires,omitempty"`
// The audience in the Kubernetes JWT that the access is restricted to
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"`
// A CIDR whitelist with the IPs that the access is restricted to
BoundIps *[]string `json:"bound-ips,omitempty"`
// A list of namespaces that the access is restricted to
BoundNamespaces *[]string `json:"bound-namespaces,omitempty"`
// A list of pod names that the access is restricted to
BoundPodNames *[]string `json:"bound-pod-names,omitempty"`
// A list of service account names that the access is restricted to
BoundSaNames *[]string `json:"bound-sa-names,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"`
// Automatically generate key-pair for K8S configuration. If set to false, a public key needs to be provided [true/false]
GenKey *string `json:"gen-key,omitempty"`
// A CIDR whitelist with the GW IPs that the access is restricted to
GwBoundIps *[]string `json:"gw-bound-ips,omitempty"`
// Set output format to JSON
Json *bool `json:"json,omitempty"`
// 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"`
// Base64-encoded or PEM formatted public key data for K8S authentication method is required [RSA2048]
PublicKey *string `json:"public-key,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"`
}
// NewAuthMethodUpdateK8s instantiates a new AuthMethodUpdateK8s 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 NewAuthMethodUpdateK8s(name string, ) *AuthMethodUpdateK8s {
this := AuthMethodUpdateK8s{}
var accessExpires int64 = 0
this.AccessExpires = &accessExpires
var json bool = false
this.Json = &json
var jwtTtl int64 = 0
this.JwtTtl = &jwtTtl
this.Name = name
return &this
}
// NewAuthMethodUpdateK8sWithDefaults instantiates a new AuthMethodUpdateK8s 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 NewAuthMethodUpdateK8sWithDefaults() *AuthMethodUpdateK8s {
this := AuthMethodUpdateK8s{}
var accessExpires int64 = 0
this.AccessExpires = &accessExpires
var json bool = false
this.Json = &json
var jwtTtl int64 = 0
this.JwtTtl = &jwtTtl
return &this
}
// GetAccessExpires returns the AccessExpires field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) SetAccessExpires(v int64) {
o.AccessExpires = &v
}
// GetAudience returns the Audience field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) SetAudience(v string) {
o.Audience = &v
}
// GetAuditLogsClaims returns the AuditLogsClaims field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) SetAuditLogsClaims(v []string) {
o.AuditLogsClaims = &v
}
// GetBoundIps returns the BoundIps field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) SetBoundIps(v []string) {
o.BoundIps = &v
}
// GetBoundNamespaces returns the BoundNamespaces field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) GetBoundNamespaces() []string {
if o == nil || o.BoundNamespaces == nil {
var ret []string
return ret
}
return *o.BoundNamespaces
}
// GetBoundNamespacesOk returns a tuple with the BoundNamespaces field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateK8s) GetBoundNamespacesOk() (*[]string, bool) {
if o == nil || o.BoundNamespaces == nil {
return nil, false
}
return o.BoundNamespaces, true
}
// HasBoundNamespaces returns a boolean if a field has been set.
func (o *AuthMethodUpdateK8s) HasBoundNamespaces() bool {
if o != nil && o.BoundNamespaces != nil {
return true
}
return false
}
// SetBoundNamespaces gets a reference to the given []string and assigns it to the BoundNamespaces field.
func (o *AuthMethodUpdateK8s) SetBoundNamespaces(v []string) {
o.BoundNamespaces = &v
}
// GetBoundPodNames returns the BoundPodNames field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) GetBoundPodNames() []string {
if o == nil || o.BoundPodNames == nil {
var ret []string
return ret
}
return *o.BoundPodNames
}
// GetBoundPodNamesOk returns a tuple with the BoundPodNames field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateK8s) GetBoundPodNamesOk() (*[]string, bool) {
if o == nil || o.BoundPodNames == nil {
return nil, false
}
return o.BoundPodNames, true
}
// HasBoundPodNames returns a boolean if a field has been set.
func (o *AuthMethodUpdateK8s) HasBoundPodNames() bool {
if o != nil && o.BoundPodNames != nil {
return true
}
return false
}
// SetBoundPodNames gets a reference to the given []string and assigns it to the BoundPodNames field.
func (o *AuthMethodUpdateK8s) SetBoundPodNames(v []string) {
o.BoundPodNames = &v
}
// GetBoundSaNames returns the BoundSaNames field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) GetBoundSaNames() []string {
if o == nil || o.BoundSaNames == nil {
var ret []string
return ret
}
return *o.BoundSaNames
}
// GetBoundSaNamesOk returns a tuple with the BoundSaNames field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateK8s) GetBoundSaNamesOk() (*[]string, bool) {
if o == nil || o.BoundSaNames == nil {
return nil, false
}
return o.BoundSaNames, true
}
// HasBoundSaNames returns a boolean if a field has been set.
func (o *AuthMethodUpdateK8s) HasBoundSaNames() bool {
if o != nil && o.BoundSaNames != nil {
return true
}
return false
}
// SetBoundSaNames gets a reference to the given []string and assigns it to the BoundSaNames field.
func (o *AuthMethodUpdateK8s) SetBoundSaNames(v []string) {
o.BoundSaNames = &v
}
// GetDeleteProtection returns the DeleteProtection field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) SetDeleteProtection(v string) {
o.DeleteProtection = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) SetDescription(v string) {
o.Description = &v
}
// GetForceSubClaims returns the ForceSubClaims field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) SetForceSubClaims(v bool) {
o.ForceSubClaims = &v
}
// GetGenKey returns the GenKey field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) GetGenKey() string {
if o == nil || o.GenKey == nil {
var ret string
return ret
}
return *o.GenKey
}
// GetGenKeyOk returns a tuple with the GenKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateK8s) GetGenKeyOk() (*string, bool) {
if o == nil || o.GenKey == nil {
return nil, false
}
return o.GenKey, true
}
// HasGenKey returns a boolean if a field has been set.
func (o *AuthMethodUpdateK8s) HasGenKey() bool {
if o != nil && o.GenKey != nil {
return true
}
return false
}
// SetGenKey gets a reference to the given string and assigns it to the GenKey field.
func (o *AuthMethodUpdateK8s) SetGenKey(v string) {
o.GenKey = &v
}
// GetGwBoundIps returns the GwBoundIps field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) SetGwBoundIps(v []string) {
o.GwBoundIps = &v
}
// GetJson returns the Json field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) SetJson(v bool) {
o.Json = &v
}
// GetJwtTtl returns the JwtTtl field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) SetJwtTtl(v int64) {
o.JwtTtl = &v
}
// GetName returns the Name field value
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *AuthMethodUpdateK8s) SetName(v string) {
o.Name = v
}
// GetNewName returns the NewName field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) SetNewName(v string) {
o.NewName = &v
}
// GetProductType returns the ProductType field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) SetProductType(v []string) {
o.ProductType = &v
}
// GetPublicKey returns the PublicKey field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) GetPublicKey() string {
if o == nil || o.PublicKey == nil {
var ret string
return ret
}
return *o.PublicKey
}
// GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodUpdateK8s) GetPublicKeyOk() (*string, bool) {
if o == nil || o.PublicKey == nil {
return nil, false
}
return o.PublicKey, true
}
// HasPublicKey returns a boolean if a field has been set.
func (o *AuthMethodUpdateK8s) HasPublicKey() bool {
if o != nil && o.PublicKey != nil {
return true
}
return false
}
// SetPublicKey gets a reference to the given string and assigns it to the PublicKey field.
func (o *AuthMethodUpdateK8s) SetPublicKey(v string) {
o.PublicKey = &v
}
// GetToken returns the Token field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) SetToken(v string) {
o.Token = &v
}
// GetUidToken returns the UidToken field value if set, zero value otherwise.
func (o *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) 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 *AuthMethodUpdateK8s) SetUidToken(v string) {
o.UidToken = &v
}
func (o AuthMethodUpdateK8s) 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.BoundIps != nil {
toSerialize["bound-ips"] = o.BoundIps
}
if o.BoundNamespaces != nil {
toSerialize["bound-namespaces"] = o.BoundNamespaces
}
if o.BoundPodNames != nil {
toSerialize["bound-pod-names"] = o.BoundPodNames
}
if o.BoundSaNames != nil {
toSerialize["bound-sa-names"] = o.BoundSaNames
}
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.GenKey != nil {
toSerialize["gen-key"] = o.GenKey
}
if o.GwBoundIps != nil {
toSerialize["gw-bound-ips"] = o.GwBoundIps
}
if o.Json != nil {
toSerialize["json"] = o.Json
}
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.PublicKey != nil {
toSerialize["public-key"] = o.PublicKey
}
if o.Token != nil {
toSerialize["token"] = o.Token
}
if o.UidToken != nil {
toSerialize["uid-token"] = o.UidToken
}
return json.Marshal(toSerialize)
}
type NullableAuthMethodUpdateK8s struct {
value *AuthMethodUpdateK8s
isSet bool
}
func (v NullableAuthMethodUpdateK8s) Get() *AuthMethodUpdateK8s {
return v.value
}
func (v *NullableAuthMethodUpdateK8s) Set(val *AuthMethodUpdateK8s) {
v.value = val
v.isSet = true
}
func (v NullableAuthMethodUpdateK8s) IsSet() bool {
return v.isSet
}
func (v *NullableAuthMethodUpdateK8s) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAuthMethodUpdateK8s(val *AuthMethodUpdateK8s) *NullableAuthMethodUpdateK8s {
return &NullableAuthMethodUpdateK8s{value: val, isSet: true}
}
func (v NullableAuthMethodUpdateK8s) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAuthMethodUpdateK8s) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}