-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel_auth_method_access_info.go
983 lines (841 loc) · 31.2 KB
/
model_auth_method_access_info.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
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
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
/*
* 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"
)
// AuthMethodAccessInfo struct for AuthMethodAccessInfo
type AuthMethodAccessInfo struct {
AccessExpires *int64 `json:"access_expires,omitempty"`
// for accounts where AccessId holds encrypted email this field will hold generated AccessId, for accounts based on regular AccessId it will be equal to accessId itself
AccessIdAlias *string `json:"access_id_alias,omitempty"`
ApiKeyAccessRules *APIKeyAccessRules `json:"api_key_access_rules,omitempty"`
AuditLogsClaims *[]string `json:"audit_logs_claims,omitempty"`
AwsIamAccessRules *AWSIAMAccessRules `json:"aws_iam_access_rules,omitempty"`
AzureAdAccessRules *AzureADAccessRules `json:"azure_ad_access_rules,omitempty"`
CertAccessRules *CertAccessRules `json:"cert_access_rules,omitempty"`
CidrWhitelist *string `json:"cidr_whitelist,omitempty"`
EmailPassAccessRules *EmailPassAccessRules `json:"email_pass_access_rules,omitempty"`
// if true the role associated with this auth method must include sub claims
ForceSubClaims *bool `json:"force_sub_claims,omitempty"`
GcpAccessRules *GCPAccessRules `json:"gcp_access_rules,omitempty"`
GwCidrWhitelist *string `json:"gw_cidr_whitelist,omitempty"`
HuaweiAccessRules *HuaweiAccessRules `json:"huawei_access_rules,omitempty"`
JwtTtl *int64 `json:"jwt_ttl,omitempty"`
K8sAccessRules *KubernetesAccessRules `json:"k8s_access_rules,omitempty"`
KerberosAccessRules *KerberosAccessRules `json:"kerberos_access_rules,omitempty"`
LdapAccessRules *LDAPAccessRules `json:"ldap_access_rules,omitempty"`
Oauth2AccessRules *OAuth2AccessRules `json:"oauth2_access_rules,omitempty"`
OciAccessRules *OCIAccessRules `json:"oci_access_rules,omitempty"`
OidcAccessRules *OIDCAccessRules `json:"oidc_access_rules,omitempty"`
// List of product types this auth method will be in use of
ProductTypes *[]string `json:"product_types,omitempty"`
RulesType *string `json:"rules_type,omitempty"`
SamlAccessRules *SAMLAccessRules `json:"saml_access_rules,omitempty"`
SubClaimsDelimiters *[]string `json:"sub_claims_delimiters,omitempty"`
UniversalIdentityAccessRules *UniversalIdentityAccessRules `json:"universal_identity_access_rules,omitempty"`
}
// NewAuthMethodAccessInfo instantiates a new AuthMethodAccessInfo 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 NewAuthMethodAccessInfo() *AuthMethodAccessInfo {
this := AuthMethodAccessInfo{}
return &this
}
// NewAuthMethodAccessInfoWithDefaults instantiates a new AuthMethodAccessInfo 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 NewAuthMethodAccessInfoWithDefaults() *AuthMethodAccessInfo {
this := AuthMethodAccessInfo{}
return &this
}
// GetAccessExpires returns the AccessExpires field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) SetAccessExpires(v int64) {
o.AccessExpires = &v
}
// GetAccessIdAlias returns the AccessIdAlias field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetAccessIdAlias() string {
if o == nil || o.AccessIdAlias == nil {
var ret string
return ret
}
return *o.AccessIdAlias
}
// GetAccessIdAliasOk returns a tuple with the AccessIdAlias field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetAccessIdAliasOk() (*string, bool) {
if o == nil || o.AccessIdAlias == nil {
return nil, false
}
return o.AccessIdAlias, true
}
// HasAccessIdAlias returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasAccessIdAlias() bool {
if o != nil && o.AccessIdAlias != nil {
return true
}
return false
}
// SetAccessIdAlias gets a reference to the given string and assigns it to the AccessIdAlias field.
func (o *AuthMethodAccessInfo) SetAccessIdAlias(v string) {
o.AccessIdAlias = &v
}
// GetApiKeyAccessRules returns the ApiKeyAccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetApiKeyAccessRules() APIKeyAccessRules {
if o == nil || o.ApiKeyAccessRules == nil {
var ret APIKeyAccessRules
return ret
}
return *o.ApiKeyAccessRules
}
// GetApiKeyAccessRulesOk returns a tuple with the ApiKeyAccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetApiKeyAccessRulesOk() (*APIKeyAccessRules, bool) {
if o == nil || o.ApiKeyAccessRules == nil {
return nil, false
}
return o.ApiKeyAccessRules, true
}
// HasApiKeyAccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasApiKeyAccessRules() bool {
if o != nil && o.ApiKeyAccessRules != nil {
return true
}
return false
}
// SetApiKeyAccessRules gets a reference to the given APIKeyAccessRules and assigns it to the ApiKeyAccessRules field.
func (o *AuthMethodAccessInfo) SetApiKeyAccessRules(v APIKeyAccessRules) {
o.ApiKeyAccessRules = &v
}
// GetAuditLogsClaims returns the AuditLogsClaims field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) SetAuditLogsClaims(v []string) {
o.AuditLogsClaims = &v
}
// GetAwsIamAccessRules returns the AwsIamAccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetAwsIamAccessRules() AWSIAMAccessRules {
if o == nil || o.AwsIamAccessRules == nil {
var ret AWSIAMAccessRules
return ret
}
return *o.AwsIamAccessRules
}
// GetAwsIamAccessRulesOk returns a tuple with the AwsIamAccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetAwsIamAccessRulesOk() (*AWSIAMAccessRules, bool) {
if o == nil || o.AwsIamAccessRules == nil {
return nil, false
}
return o.AwsIamAccessRules, true
}
// HasAwsIamAccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasAwsIamAccessRules() bool {
if o != nil && o.AwsIamAccessRules != nil {
return true
}
return false
}
// SetAwsIamAccessRules gets a reference to the given AWSIAMAccessRules and assigns it to the AwsIamAccessRules field.
func (o *AuthMethodAccessInfo) SetAwsIamAccessRules(v AWSIAMAccessRules) {
o.AwsIamAccessRules = &v
}
// GetAzureAdAccessRules returns the AzureAdAccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetAzureAdAccessRules() AzureADAccessRules {
if o == nil || o.AzureAdAccessRules == nil {
var ret AzureADAccessRules
return ret
}
return *o.AzureAdAccessRules
}
// GetAzureAdAccessRulesOk returns a tuple with the AzureAdAccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetAzureAdAccessRulesOk() (*AzureADAccessRules, bool) {
if o == nil || o.AzureAdAccessRules == nil {
return nil, false
}
return o.AzureAdAccessRules, true
}
// HasAzureAdAccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasAzureAdAccessRules() bool {
if o != nil && o.AzureAdAccessRules != nil {
return true
}
return false
}
// SetAzureAdAccessRules gets a reference to the given AzureADAccessRules and assigns it to the AzureAdAccessRules field.
func (o *AuthMethodAccessInfo) SetAzureAdAccessRules(v AzureADAccessRules) {
o.AzureAdAccessRules = &v
}
// GetCertAccessRules returns the CertAccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetCertAccessRules() CertAccessRules {
if o == nil || o.CertAccessRules == nil {
var ret CertAccessRules
return ret
}
return *o.CertAccessRules
}
// GetCertAccessRulesOk returns a tuple with the CertAccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetCertAccessRulesOk() (*CertAccessRules, bool) {
if o == nil || o.CertAccessRules == nil {
return nil, false
}
return o.CertAccessRules, true
}
// HasCertAccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasCertAccessRules() bool {
if o != nil && o.CertAccessRules != nil {
return true
}
return false
}
// SetCertAccessRules gets a reference to the given CertAccessRules and assigns it to the CertAccessRules field.
func (o *AuthMethodAccessInfo) SetCertAccessRules(v CertAccessRules) {
o.CertAccessRules = &v
}
// GetCidrWhitelist returns the CidrWhitelist field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetCidrWhitelist() string {
if o == nil || o.CidrWhitelist == nil {
var ret string
return ret
}
return *o.CidrWhitelist
}
// GetCidrWhitelistOk returns a tuple with the CidrWhitelist field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetCidrWhitelistOk() (*string, bool) {
if o == nil || o.CidrWhitelist == nil {
return nil, false
}
return o.CidrWhitelist, true
}
// HasCidrWhitelist returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasCidrWhitelist() bool {
if o != nil && o.CidrWhitelist != nil {
return true
}
return false
}
// SetCidrWhitelist gets a reference to the given string and assigns it to the CidrWhitelist field.
func (o *AuthMethodAccessInfo) SetCidrWhitelist(v string) {
o.CidrWhitelist = &v
}
// GetEmailPassAccessRules returns the EmailPassAccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetEmailPassAccessRules() EmailPassAccessRules {
if o == nil || o.EmailPassAccessRules == nil {
var ret EmailPassAccessRules
return ret
}
return *o.EmailPassAccessRules
}
// GetEmailPassAccessRulesOk returns a tuple with the EmailPassAccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetEmailPassAccessRulesOk() (*EmailPassAccessRules, bool) {
if o == nil || o.EmailPassAccessRules == nil {
return nil, false
}
return o.EmailPassAccessRules, true
}
// HasEmailPassAccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasEmailPassAccessRules() bool {
if o != nil && o.EmailPassAccessRules != nil {
return true
}
return false
}
// SetEmailPassAccessRules gets a reference to the given EmailPassAccessRules and assigns it to the EmailPassAccessRules field.
func (o *AuthMethodAccessInfo) SetEmailPassAccessRules(v EmailPassAccessRules) {
o.EmailPassAccessRules = &v
}
// GetForceSubClaims returns the ForceSubClaims field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) SetForceSubClaims(v bool) {
o.ForceSubClaims = &v
}
// GetGcpAccessRules returns the GcpAccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetGcpAccessRules() GCPAccessRules {
if o == nil || o.GcpAccessRules == nil {
var ret GCPAccessRules
return ret
}
return *o.GcpAccessRules
}
// GetGcpAccessRulesOk returns a tuple with the GcpAccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetGcpAccessRulesOk() (*GCPAccessRules, bool) {
if o == nil || o.GcpAccessRules == nil {
return nil, false
}
return o.GcpAccessRules, true
}
// HasGcpAccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasGcpAccessRules() bool {
if o != nil && o.GcpAccessRules != nil {
return true
}
return false
}
// SetGcpAccessRules gets a reference to the given GCPAccessRules and assigns it to the GcpAccessRules field.
func (o *AuthMethodAccessInfo) SetGcpAccessRules(v GCPAccessRules) {
o.GcpAccessRules = &v
}
// GetGwCidrWhitelist returns the GwCidrWhitelist field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetGwCidrWhitelist() string {
if o == nil || o.GwCidrWhitelist == nil {
var ret string
return ret
}
return *o.GwCidrWhitelist
}
// GetGwCidrWhitelistOk returns a tuple with the GwCidrWhitelist field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetGwCidrWhitelistOk() (*string, bool) {
if o == nil || o.GwCidrWhitelist == nil {
return nil, false
}
return o.GwCidrWhitelist, true
}
// HasGwCidrWhitelist returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasGwCidrWhitelist() bool {
if o != nil && o.GwCidrWhitelist != nil {
return true
}
return false
}
// SetGwCidrWhitelist gets a reference to the given string and assigns it to the GwCidrWhitelist field.
func (o *AuthMethodAccessInfo) SetGwCidrWhitelist(v string) {
o.GwCidrWhitelist = &v
}
// GetHuaweiAccessRules returns the HuaweiAccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetHuaweiAccessRules() HuaweiAccessRules {
if o == nil || o.HuaweiAccessRules == nil {
var ret HuaweiAccessRules
return ret
}
return *o.HuaweiAccessRules
}
// GetHuaweiAccessRulesOk returns a tuple with the HuaweiAccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetHuaweiAccessRulesOk() (*HuaweiAccessRules, bool) {
if o == nil || o.HuaweiAccessRules == nil {
return nil, false
}
return o.HuaweiAccessRules, true
}
// HasHuaweiAccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasHuaweiAccessRules() bool {
if o != nil && o.HuaweiAccessRules != nil {
return true
}
return false
}
// SetHuaweiAccessRules gets a reference to the given HuaweiAccessRules and assigns it to the HuaweiAccessRules field.
func (o *AuthMethodAccessInfo) SetHuaweiAccessRules(v HuaweiAccessRules) {
o.HuaweiAccessRules = &v
}
// GetJwtTtl returns the JwtTtl field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) SetJwtTtl(v int64) {
o.JwtTtl = &v
}
// GetK8sAccessRules returns the K8sAccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetK8sAccessRules() KubernetesAccessRules {
if o == nil || o.K8sAccessRules == nil {
var ret KubernetesAccessRules
return ret
}
return *o.K8sAccessRules
}
// GetK8sAccessRulesOk returns a tuple with the K8sAccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetK8sAccessRulesOk() (*KubernetesAccessRules, bool) {
if o == nil || o.K8sAccessRules == nil {
return nil, false
}
return o.K8sAccessRules, true
}
// HasK8sAccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasK8sAccessRules() bool {
if o != nil && o.K8sAccessRules != nil {
return true
}
return false
}
// SetK8sAccessRules gets a reference to the given KubernetesAccessRules and assigns it to the K8sAccessRules field.
func (o *AuthMethodAccessInfo) SetK8sAccessRules(v KubernetesAccessRules) {
o.K8sAccessRules = &v
}
// GetKerberosAccessRules returns the KerberosAccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetKerberosAccessRules() KerberosAccessRules {
if o == nil || o.KerberosAccessRules == nil {
var ret KerberosAccessRules
return ret
}
return *o.KerberosAccessRules
}
// GetKerberosAccessRulesOk returns a tuple with the KerberosAccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetKerberosAccessRulesOk() (*KerberosAccessRules, bool) {
if o == nil || o.KerberosAccessRules == nil {
return nil, false
}
return o.KerberosAccessRules, true
}
// HasKerberosAccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasKerberosAccessRules() bool {
if o != nil && o.KerberosAccessRules != nil {
return true
}
return false
}
// SetKerberosAccessRules gets a reference to the given KerberosAccessRules and assigns it to the KerberosAccessRules field.
func (o *AuthMethodAccessInfo) SetKerberosAccessRules(v KerberosAccessRules) {
o.KerberosAccessRules = &v
}
// GetLdapAccessRules returns the LdapAccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetLdapAccessRules() LDAPAccessRules {
if o == nil || o.LdapAccessRules == nil {
var ret LDAPAccessRules
return ret
}
return *o.LdapAccessRules
}
// GetLdapAccessRulesOk returns a tuple with the LdapAccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetLdapAccessRulesOk() (*LDAPAccessRules, bool) {
if o == nil || o.LdapAccessRules == nil {
return nil, false
}
return o.LdapAccessRules, true
}
// HasLdapAccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasLdapAccessRules() bool {
if o != nil && o.LdapAccessRules != nil {
return true
}
return false
}
// SetLdapAccessRules gets a reference to the given LDAPAccessRules and assigns it to the LdapAccessRules field.
func (o *AuthMethodAccessInfo) SetLdapAccessRules(v LDAPAccessRules) {
o.LdapAccessRules = &v
}
// GetOauth2AccessRules returns the Oauth2AccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetOauth2AccessRules() OAuth2AccessRules {
if o == nil || o.Oauth2AccessRules == nil {
var ret OAuth2AccessRules
return ret
}
return *o.Oauth2AccessRules
}
// GetOauth2AccessRulesOk returns a tuple with the Oauth2AccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetOauth2AccessRulesOk() (*OAuth2AccessRules, bool) {
if o == nil || o.Oauth2AccessRules == nil {
return nil, false
}
return o.Oauth2AccessRules, true
}
// HasOauth2AccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasOauth2AccessRules() bool {
if o != nil && o.Oauth2AccessRules != nil {
return true
}
return false
}
// SetOauth2AccessRules gets a reference to the given OAuth2AccessRules and assigns it to the Oauth2AccessRules field.
func (o *AuthMethodAccessInfo) SetOauth2AccessRules(v OAuth2AccessRules) {
o.Oauth2AccessRules = &v
}
// GetOciAccessRules returns the OciAccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetOciAccessRules() OCIAccessRules {
if o == nil || o.OciAccessRules == nil {
var ret OCIAccessRules
return ret
}
return *o.OciAccessRules
}
// GetOciAccessRulesOk returns a tuple with the OciAccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetOciAccessRulesOk() (*OCIAccessRules, bool) {
if o == nil || o.OciAccessRules == nil {
return nil, false
}
return o.OciAccessRules, true
}
// HasOciAccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasOciAccessRules() bool {
if o != nil && o.OciAccessRules != nil {
return true
}
return false
}
// SetOciAccessRules gets a reference to the given OCIAccessRules and assigns it to the OciAccessRules field.
func (o *AuthMethodAccessInfo) SetOciAccessRules(v OCIAccessRules) {
o.OciAccessRules = &v
}
// GetOidcAccessRules returns the OidcAccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetOidcAccessRules() OIDCAccessRules {
if o == nil || o.OidcAccessRules == nil {
var ret OIDCAccessRules
return ret
}
return *o.OidcAccessRules
}
// GetOidcAccessRulesOk returns a tuple with the OidcAccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetOidcAccessRulesOk() (*OIDCAccessRules, bool) {
if o == nil || o.OidcAccessRules == nil {
return nil, false
}
return o.OidcAccessRules, true
}
// HasOidcAccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasOidcAccessRules() bool {
if o != nil && o.OidcAccessRules != nil {
return true
}
return false
}
// SetOidcAccessRules gets a reference to the given OIDCAccessRules and assigns it to the OidcAccessRules field.
func (o *AuthMethodAccessInfo) SetOidcAccessRules(v OIDCAccessRules) {
o.OidcAccessRules = &v
}
// GetProductTypes returns the ProductTypes field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetProductTypes() []string {
if o == nil || o.ProductTypes == nil {
var ret []string
return ret
}
return *o.ProductTypes
}
// GetProductTypesOk returns a tuple with the ProductTypes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetProductTypesOk() (*[]string, bool) {
if o == nil || o.ProductTypes == nil {
return nil, false
}
return o.ProductTypes, true
}
// HasProductTypes returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasProductTypes() bool {
if o != nil && o.ProductTypes != nil {
return true
}
return false
}
// SetProductTypes gets a reference to the given []string and assigns it to the ProductTypes field.
func (o *AuthMethodAccessInfo) SetProductTypes(v []string) {
o.ProductTypes = &v
}
// GetRulesType returns the RulesType field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetRulesType() string {
if o == nil || o.RulesType == nil {
var ret string
return ret
}
return *o.RulesType
}
// GetRulesTypeOk returns a tuple with the RulesType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetRulesTypeOk() (*string, bool) {
if o == nil || o.RulesType == nil {
return nil, false
}
return o.RulesType, true
}
// HasRulesType returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasRulesType() bool {
if o != nil && o.RulesType != nil {
return true
}
return false
}
// SetRulesType gets a reference to the given string and assigns it to the RulesType field.
func (o *AuthMethodAccessInfo) SetRulesType(v string) {
o.RulesType = &v
}
// GetSamlAccessRules returns the SamlAccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetSamlAccessRules() SAMLAccessRules {
if o == nil || o.SamlAccessRules == nil {
var ret SAMLAccessRules
return ret
}
return *o.SamlAccessRules
}
// GetSamlAccessRulesOk returns a tuple with the SamlAccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetSamlAccessRulesOk() (*SAMLAccessRules, bool) {
if o == nil || o.SamlAccessRules == nil {
return nil, false
}
return o.SamlAccessRules, true
}
// HasSamlAccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasSamlAccessRules() bool {
if o != nil && o.SamlAccessRules != nil {
return true
}
return false
}
// SetSamlAccessRules gets a reference to the given SAMLAccessRules and assigns it to the SamlAccessRules field.
func (o *AuthMethodAccessInfo) SetSamlAccessRules(v SAMLAccessRules) {
o.SamlAccessRules = &v
}
// GetSubClaimsDelimiters returns the SubClaimsDelimiters field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) 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 *AuthMethodAccessInfo) SetSubClaimsDelimiters(v []string) {
o.SubClaimsDelimiters = &v
}
// GetUniversalIdentityAccessRules returns the UniversalIdentityAccessRules field value if set, zero value otherwise.
func (o *AuthMethodAccessInfo) GetUniversalIdentityAccessRules() UniversalIdentityAccessRules {
if o == nil || o.UniversalIdentityAccessRules == nil {
var ret UniversalIdentityAccessRules
return ret
}
return *o.UniversalIdentityAccessRules
}
// GetUniversalIdentityAccessRulesOk returns a tuple with the UniversalIdentityAccessRules field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *AuthMethodAccessInfo) GetUniversalIdentityAccessRulesOk() (*UniversalIdentityAccessRules, bool) {
if o == nil || o.UniversalIdentityAccessRules == nil {
return nil, false
}
return o.UniversalIdentityAccessRules, true
}
// HasUniversalIdentityAccessRules returns a boolean if a field has been set.
func (o *AuthMethodAccessInfo) HasUniversalIdentityAccessRules() bool {
if o != nil && o.UniversalIdentityAccessRules != nil {
return true
}
return false
}
// SetUniversalIdentityAccessRules gets a reference to the given UniversalIdentityAccessRules and assigns it to the UniversalIdentityAccessRules field.
func (o *AuthMethodAccessInfo) SetUniversalIdentityAccessRules(v UniversalIdentityAccessRules) {
o.UniversalIdentityAccessRules = &v
}
func (o AuthMethodAccessInfo) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.AccessExpires != nil {
toSerialize["access_expires"] = o.AccessExpires
}
if o.AccessIdAlias != nil {
toSerialize["access_id_alias"] = o.AccessIdAlias
}
if o.ApiKeyAccessRules != nil {
toSerialize["api_key_access_rules"] = o.ApiKeyAccessRules
}
if o.AuditLogsClaims != nil {
toSerialize["audit_logs_claims"] = o.AuditLogsClaims
}
if o.AwsIamAccessRules != nil {
toSerialize["aws_iam_access_rules"] = o.AwsIamAccessRules
}
if o.AzureAdAccessRules != nil {
toSerialize["azure_ad_access_rules"] = o.AzureAdAccessRules
}
if o.CertAccessRules != nil {
toSerialize["cert_access_rules"] = o.CertAccessRules
}
if o.CidrWhitelist != nil {
toSerialize["cidr_whitelist"] = o.CidrWhitelist
}
if o.EmailPassAccessRules != nil {
toSerialize["email_pass_access_rules"] = o.EmailPassAccessRules
}
if o.ForceSubClaims != nil {
toSerialize["force_sub_claims"] = o.ForceSubClaims
}
if o.GcpAccessRules != nil {
toSerialize["gcp_access_rules"] = o.GcpAccessRules
}
if o.GwCidrWhitelist != nil {
toSerialize["gw_cidr_whitelist"] = o.GwCidrWhitelist
}
if o.HuaweiAccessRules != nil {
toSerialize["huawei_access_rules"] = o.HuaweiAccessRules
}
if o.JwtTtl != nil {
toSerialize["jwt_ttl"] = o.JwtTtl
}
if o.K8sAccessRules != nil {
toSerialize["k8s_access_rules"] = o.K8sAccessRules
}
if o.KerberosAccessRules != nil {
toSerialize["kerberos_access_rules"] = o.KerberosAccessRules
}
if o.LdapAccessRules != nil {
toSerialize["ldap_access_rules"] = o.LdapAccessRules
}
if o.Oauth2AccessRules != nil {
toSerialize["oauth2_access_rules"] = o.Oauth2AccessRules
}
if o.OciAccessRules != nil {
toSerialize["oci_access_rules"] = o.OciAccessRules
}
if o.OidcAccessRules != nil {
toSerialize["oidc_access_rules"] = o.OidcAccessRules
}
if o.ProductTypes != nil {
toSerialize["product_types"] = o.ProductTypes
}
if o.RulesType != nil {
toSerialize["rules_type"] = o.RulesType
}
if o.SamlAccessRules != nil {
toSerialize["saml_access_rules"] = o.SamlAccessRules
}
if o.SubClaimsDelimiters != nil {
toSerialize["sub_claims_delimiters"] = o.SubClaimsDelimiters
}
if o.UniversalIdentityAccessRules != nil {
toSerialize["universal_identity_access_rules"] = o.UniversalIdentityAccessRules
}
return json.Marshal(toSerialize)
}
type NullableAuthMethodAccessInfo struct {
value *AuthMethodAccessInfo
isSet bool
}
func (v NullableAuthMethodAccessInfo) Get() *AuthMethodAccessInfo {
return v.value
}
func (v *NullableAuthMethodAccessInfo) Set(val *AuthMethodAccessInfo) {
v.value = val
v.isSet = true
}
func (v NullableAuthMethodAccessInfo) IsSet() bool {
return v.isSet
}
func (v *NullableAuthMethodAccessInfo) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableAuthMethodAccessInfo(val *AuthMethodAccessInfo) *NullableAuthMethodAccessInfo {
return &NullableAuthMethodAccessInfo{value: val, isSet: true}
}
func (v NullableAuthMethodAccessInfo) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableAuthMethodAccessInfo) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}