-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel_rotated_secret_create_custom.go
1208 lines (1043 loc) · 38 KB
/
model_rotated_secret_create_custom.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
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* 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"
)
// RotatedSecretCreateCustom struct for RotatedSecretCreateCustom
type RotatedSecretCreateCustom struct {
// The credentials to connect with use-user-creds/use-target-creds
AuthenticationCredentials *string `json:"authentication-credentials,omitempty"`
// Whether to automatically rotate every --rotation-interval days, or disable existing automatic rotation [true/false]
AutoRotate *string `json:"auto-rotate,omitempty"`
// Secret payload to be sent with rotation request
CustomPayload *string `json:"custom-payload,omitempty"`
// Protection from accidental deletion of this object [true/false]
DeleteProtection *string `json:"delete_protection,omitempty"`
// Description of the object
Description *string `json:"description,omitempty"`
// Set output format to JSON
Json *bool `json:"json,omitempty"`
// The name of a key that used to encrypt the secret value (if empty, the account default protectionKey key will be used)
Key *string `json:"key,omitempty"`
// Set the maximum number of versions, limited by the account settings defaults.
MaxVersions *string `json:"max-versions,omitempty"`
// Rotated secret name
Name string `json:"name"`
// The length of the password to be generated
PasswordLength *string `json:"password-length,omitempty"`
// Rotate the value of the secret after SRA session ends [true/false]
RotateAfterDisconnect *string `json:"rotate-after-disconnect,omitempty"`
// How many days before the rotation of the item would you like to be notified
RotationEventIn *[]string `json:"rotation-event-in,omitempty"`
// The Hour of the rotation in UTC
RotationHour *int32 `json:"rotation-hour,omitempty"`
// The number of days to wait between every automatic key rotation (1-365)
RotationInterval *string `json:"rotation-interval,omitempty"`
// Allow providing external user for a domain users
SecureAccessAllowExternalUser *bool `json:"secure-access-allow-external-user,omitempty"`
// Path to the SSH Certificate Issuer for your Akeyless Bastion
SecureAccessBastionIssuer *string `json:"secure-access-bastion-issuer,omitempty"`
// Enable/Disable secure remote access [true/false]
SecureAccessEnable *string `json:"secure-access-enable,omitempty"`
// Target servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts - Relevant only for Dynamic Secrets/producers)
SecureAccessHost *[]string `json:"secure-access-host,omitempty"`
// Default domain name server. i.e. microsoft.com
SecureAccessRdpDomain *string `json:"secure-access-rdp-domain,omitempty"`
// Override the RDP Domain username
SecureAccessRdpUser *string `json:"secure-access-rdp-user,omitempty"`
// Override the SSH username as indicated in SSH Certificate Issuer
SecureAccessSshUser *string `json:"secure-access-ssh-user,omitempty"`
// Destination URL to inject secrets
SecureAccessUrl *string `json:"secure-access-url,omitempty"`
// Enable Web Secure Remote Access
SecureAccessWeb *bool `json:"secure-access-web,omitempty"`
// Secure browser via Akeyless Web Access Bastion
SecureAccessWebBrowsing *bool `json:"secure-access-web-browsing,omitempty"`
// Web-Proxy via Akeyless Web Access Bastion
SecureAccessWebProxy *bool `json:"secure-access-web-proxy,omitempty"`
// Add tags attached to this object
Tags *[]string `json:"tags,omitempty"`
// Target name
TargetName string `json:"target-name"`
// Maximum allowed time in seconds for the custom rotator to return the results
TimeoutSec *int64 `json:"timeout-sec,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"`
}
// NewRotatedSecretCreateCustom instantiates a new RotatedSecretCreateCustom 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 NewRotatedSecretCreateCustom(name string, targetName string, ) *RotatedSecretCreateCustom {
this := RotatedSecretCreateCustom{}
var authenticationCredentials string = "use-user-creds"
this.AuthenticationCredentials = &authenticationCredentials
var json bool = false
this.Json = &json
this.Name = name
var rotateAfterDisconnect string = "false"
this.RotateAfterDisconnect = &rotateAfterDisconnect
var secureAccessAllowExternalUser bool = false
this.SecureAccessAllowExternalUser = &secureAccessAllowExternalUser
var secureAccessWeb bool = false
this.SecureAccessWeb = &secureAccessWeb
var secureAccessWebBrowsing bool = false
this.SecureAccessWebBrowsing = &secureAccessWebBrowsing
var secureAccessWebProxy bool = false
this.SecureAccessWebProxy = &secureAccessWebProxy
this.TargetName = targetName
var timeoutSec int64 = 40
this.TimeoutSec = &timeoutSec
return &this
}
// NewRotatedSecretCreateCustomWithDefaults instantiates a new RotatedSecretCreateCustom 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 NewRotatedSecretCreateCustomWithDefaults() *RotatedSecretCreateCustom {
this := RotatedSecretCreateCustom{}
var authenticationCredentials string = "use-user-creds"
this.AuthenticationCredentials = &authenticationCredentials
var json bool = false
this.Json = &json
var rotateAfterDisconnect string = "false"
this.RotateAfterDisconnect = &rotateAfterDisconnect
var secureAccessAllowExternalUser bool = false
this.SecureAccessAllowExternalUser = &secureAccessAllowExternalUser
var secureAccessWeb bool = false
this.SecureAccessWeb = &secureAccessWeb
var secureAccessWebBrowsing bool = false
this.SecureAccessWebBrowsing = &secureAccessWebBrowsing
var secureAccessWebProxy bool = false
this.SecureAccessWebProxy = &secureAccessWebProxy
var timeoutSec int64 = 40
this.TimeoutSec = &timeoutSec
return &this
}
// GetAuthenticationCredentials returns the AuthenticationCredentials field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetAuthenticationCredentials() string {
if o == nil || o.AuthenticationCredentials == nil {
var ret string
return ret
}
return *o.AuthenticationCredentials
}
// GetAuthenticationCredentialsOk returns a tuple with the AuthenticationCredentials field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetAuthenticationCredentialsOk() (*string, bool) {
if o == nil || o.AuthenticationCredentials == nil {
return nil, false
}
return o.AuthenticationCredentials, true
}
// HasAuthenticationCredentials returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasAuthenticationCredentials() bool {
if o != nil && o.AuthenticationCredentials != nil {
return true
}
return false
}
// SetAuthenticationCredentials gets a reference to the given string and assigns it to the AuthenticationCredentials field.
func (o *RotatedSecretCreateCustom) SetAuthenticationCredentials(v string) {
o.AuthenticationCredentials = &v
}
// GetAutoRotate returns the AutoRotate field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetAutoRotate() string {
if o == nil || o.AutoRotate == nil {
var ret string
return ret
}
return *o.AutoRotate
}
// GetAutoRotateOk returns a tuple with the AutoRotate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetAutoRotateOk() (*string, bool) {
if o == nil || o.AutoRotate == nil {
return nil, false
}
return o.AutoRotate, true
}
// HasAutoRotate returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasAutoRotate() bool {
if o != nil && o.AutoRotate != nil {
return true
}
return false
}
// SetAutoRotate gets a reference to the given string and assigns it to the AutoRotate field.
func (o *RotatedSecretCreateCustom) SetAutoRotate(v string) {
o.AutoRotate = &v
}
// GetCustomPayload returns the CustomPayload field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetCustomPayload() string {
if o == nil || o.CustomPayload == nil {
var ret string
return ret
}
return *o.CustomPayload
}
// GetCustomPayloadOk returns a tuple with the CustomPayload field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetCustomPayloadOk() (*string, bool) {
if o == nil || o.CustomPayload == nil {
return nil, false
}
return o.CustomPayload, true
}
// HasCustomPayload returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasCustomPayload() bool {
if o != nil && o.CustomPayload != nil {
return true
}
return false
}
// SetCustomPayload gets a reference to the given string and assigns it to the CustomPayload field.
func (o *RotatedSecretCreateCustom) SetCustomPayload(v string) {
o.CustomPayload = &v
}
// GetDeleteProtection returns the DeleteProtection field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) 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 *RotatedSecretCreateCustom) 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 *RotatedSecretCreateCustom) 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 *RotatedSecretCreateCustom) SetDeleteProtection(v string) {
o.DeleteProtection = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) 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 *RotatedSecretCreateCustom) 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 *RotatedSecretCreateCustom) 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 *RotatedSecretCreateCustom) SetDescription(v string) {
o.Description = &v
}
// GetJson returns the Json field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) 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 *RotatedSecretCreateCustom) 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 *RotatedSecretCreateCustom) 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 *RotatedSecretCreateCustom) SetJson(v bool) {
o.Json = &v
}
// GetKey returns the Key field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetKey() string {
if o == nil || o.Key == nil {
var ret string
return ret
}
return *o.Key
}
// GetKeyOk returns a tuple with the Key field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetKeyOk() (*string, bool) {
if o == nil || o.Key == nil {
return nil, false
}
return o.Key, true
}
// HasKey returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasKey() bool {
if o != nil && o.Key != nil {
return true
}
return false
}
// SetKey gets a reference to the given string and assigns it to the Key field.
func (o *RotatedSecretCreateCustom) SetKey(v string) {
o.Key = &v
}
// GetMaxVersions returns the MaxVersions field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetMaxVersions() string {
if o == nil || o.MaxVersions == nil {
var ret string
return ret
}
return *o.MaxVersions
}
// GetMaxVersionsOk returns a tuple with the MaxVersions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetMaxVersionsOk() (*string, bool) {
if o == nil || o.MaxVersions == nil {
return nil, false
}
return o.MaxVersions, true
}
// HasMaxVersions returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasMaxVersions() bool {
if o != nil && o.MaxVersions != nil {
return true
}
return false
}
// SetMaxVersions gets a reference to the given string and assigns it to the MaxVersions field.
func (o *RotatedSecretCreateCustom) SetMaxVersions(v string) {
o.MaxVersions = &v
}
// GetName returns the Name field value
func (o *RotatedSecretCreateCustom) 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 *RotatedSecretCreateCustom) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *RotatedSecretCreateCustom) SetName(v string) {
o.Name = v
}
// GetPasswordLength returns the PasswordLength field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetPasswordLength() string {
if o == nil || o.PasswordLength == nil {
var ret string
return ret
}
return *o.PasswordLength
}
// GetPasswordLengthOk returns a tuple with the PasswordLength field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetPasswordLengthOk() (*string, bool) {
if o == nil || o.PasswordLength == nil {
return nil, false
}
return o.PasswordLength, true
}
// HasPasswordLength returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasPasswordLength() bool {
if o != nil && o.PasswordLength != nil {
return true
}
return false
}
// SetPasswordLength gets a reference to the given string and assigns it to the PasswordLength field.
func (o *RotatedSecretCreateCustom) SetPasswordLength(v string) {
o.PasswordLength = &v
}
// GetRotateAfterDisconnect returns the RotateAfterDisconnect field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetRotateAfterDisconnect() string {
if o == nil || o.RotateAfterDisconnect == nil {
var ret string
return ret
}
return *o.RotateAfterDisconnect
}
// GetRotateAfterDisconnectOk returns a tuple with the RotateAfterDisconnect field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetRotateAfterDisconnectOk() (*string, bool) {
if o == nil || o.RotateAfterDisconnect == nil {
return nil, false
}
return o.RotateAfterDisconnect, true
}
// HasRotateAfterDisconnect returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasRotateAfterDisconnect() bool {
if o != nil && o.RotateAfterDisconnect != nil {
return true
}
return false
}
// SetRotateAfterDisconnect gets a reference to the given string and assigns it to the RotateAfterDisconnect field.
func (o *RotatedSecretCreateCustom) SetRotateAfterDisconnect(v string) {
o.RotateAfterDisconnect = &v
}
// GetRotationEventIn returns the RotationEventIn field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetRotationEventIn() []string {
if o == nil || o.RotationEventIn == nil {
var ret []string
return ret
}
return *o.RotationEventIn
}
// GetRotationEventInOk returns a tuple with the RotationEventIn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetRotationEventInOk() (*[]string, bool) {
if o == nil || o.RotationEventIn == nil {
return nil, false
}
return o.RotationEventIn, true
}
// HasRotationEventIn returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasRotationEventIn() bool {
if o != nil && o.RotationEventIn != nil {
return true
}
return false
}
// SetRotationEventIn gets a reference to the given []string and assigns it to the RotationEventIn field.
func (o *RotatedSecretCreateCustom) SetRotationEventIn(v []string) {
o.RotationEventIn = &v
}
// GetRotationHour returns the RotationHour field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetRotationHour() int32 {
if o == nil || o.RotationHour == nil {
var ret int32
return ret
}
return *o.RotationHour
}
// GetRotationHourOk returns a tuple with the RotationHour field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetRotationHourOk() (*int32, bool) {
if o == nil || o.RotationHour == nil {
return nil, false
}
return o.RotationHour, true
}
// HasRotationHour returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasRotationHour() bool {
if o != nil && o.RotationHour != nil {
return true
}
return false
}
// SetRotationHour gets a reference to the given int32 and assigns it to the RotationHour field.
func (o *RotatedSecretCreateCustom) SetRotationHour(v int32) {
o.RotationHour = &v
}
// GetRotationInterval returns the RotationInterval field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetRotationInterval() string {
if o == nil || o.RotationInterval == nil {
var ret string
return ret
}
return *o.RotationInterval
}
// GetRotationIntervalOk returns a tuple with the RotationInterval field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetRotationIntervalOk() (*string, bool) {
if o == nil || o.RotationInterval == nil {
return nil, false
}
return o.RotationInterval, true
}
// HasRotationInterval returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasRotationInterval() bool {
if o != nil && o.RotationInterval != nil {
return true
}
return false
}
// SetRotationInterval gets a reference to the given string and assigns it to the RotationInterval field.
func (o *RotatedSecretCreateCustom) SetRotationInterval(v string) {
o.RotationInterval = &v
}
// GetSecureAccessAllowExternalUser returns the SecureAccessAllowExternalUser field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetSecureAccessAllowExternalUser() bool {
if o == nil || o.SecureAccessAllowExternalUser == nil {
var ret bool
return ret
}
return *o.SecureAccessAllowExternalUser
}
// GetSecureAccessAllowExternalUserOk returns a tuple with the SecureAccessAllowExternalUser field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetSecureAccessAllowExternalUserOk() (*bool, bool) {
if o == nil || o.SecureAccessAllowExternalUser == nil {
return nil, false
}
return o.SecureAccessAllowExternalUser, true
}
// HasSecureAccessAllowExternalUser returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasSecureAccessAllowExternalUser() bool {
if o != nil && o.SecureAccessAllowExternalUser != nil {
return true
}
return false
}
// SetSecureAccessAllowExternalUser gets a reference to the given bool and assigns it to the SecureAccessAllowExternalUser field.
func (o *RotatedSecretCreateCustom) SetSecureAccessAllowExternalUser(v bool) {
o.SecureAccessAllowExternalUser = &v
}
// GetSecureAccessBastionIssuer returns the SecureAccessBastionIssuer field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetSecureAccessBastionIssuer() string {
if o == nil || o.SecureAccessBastionIssuer == nil {
var ret string
return ret
}
return *o.SecureAccessBastionIssuer
}
// GetSecureAccessBastionIssuerOk returns a tuple with the SecureAccessBastionIssuer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetSecureAccessBastionIssuerOk() (*string, bool) {
if o == nil || o.SecureAccessBastionIssuer == nil {
return nil, false
}
return o.SecureAccessBastionIssuer, true
}
// HasSecureAccessBastionIssuer returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasSecureAccessBastionIssuer() bool {
if o != nil && o.SecureAccessBastionIssuer != nil {
return true
}
return false
}
// SetSecureAccessBastionIssuer gets a reference to the given string and assigns it to the SecureAccessBastionIssuer field.
func (o *RotatedSecretCreateCustom) SetSecureAccessBastionIssuer(v string) {
o.SecureAccessBastionIssuer = &v
}
// GetSecureAccessEnable returns the SecureAccessEnable field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetSecureAccessEnable() string {
if o == nil || o.SecureAccessEnable == nil {
var ret string
return ret
}
return *o.SecureAccessEnable
}
// GetSecureAccessEnableOk returns a tuple with the SecureAccessEnable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetSecureAccessEnableOk() (*string, bool) {
if o == nil || o.SecureAccessEnable == nil {
return nil, false
}
return o.SecureAccessEnable, true
}
// HasSecureAccessEnable returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasSecureAccessEnable() bool {
if o != nil && o.SecureAccessEnable != nil {
return true
}
return false
}
// SetSecureAccessEnable gets a reference to the given string and assigns it to the SecureAccessEnable field.
func (o *RotatedSecretCreateCustom) SetSecureAccessEnable(v string) {
o.SecureAccessEnable = &v
}
// GetSecureAccessHost returns the SecureAccessHost field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetSecureAccessHost() []string {
if o == nil || o.SecureAccessHost == nil {
var ret []string
return ret
}
return *o.SecureAccessHost
}
// GetSecureAccessHostOk returns a tuple with the SecureAccessHost field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetSecureAccessHostOk() (*[]string, bool) {
if o == nil || o.SecureAccessHost == nil {
return nil, false
}
return o.SecureAccessHost, true
}
// HasSecureAccessHost returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasSecureAccessHost() bool {
if o != nil && o.SecureAccessHost != nil {
return true
}
return false
}
// SetSecureAccessHost gets a reference to the given []string and assigns it to the SecureAccessHost field.
func (o *RotatedSecretCreateCustom) SetSecureAccessHost(v []string) {
o.SecureAccessHost = &v
}
// GetSecureAccessRdpDomain returns the SecureAccessRdpDomain field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetSecureAccessRdpDomain() string {
if o == nil || o.SecureAccessRdpDomain == nil {
var ret string
return ret
}
return *o.SecureAccessRdpDomain
}
// GetSecureAccessRdpDomainOk returns a tuple with the SecureAccessRdpDomain field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetSecureAccessRdpDomainOk() (*string, bool) {
if o == nil || o.SecureAccessRdpDomain == nil {
return nil, false
}
return o.SecureAccessRdpDomain, true
}
// HasSecureAccessRdpDomain returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasSecureAccessRdpDomain() bool {
if o != nil && o.SecureAccessRdpDomain != nil {
return true
}
return false
}
// SetSecureAccessRdpDomain gets a reference to the given string and assigns it to the SecureAccessRdpDomain field.
func (o *RotatedSecretCreateCustom) SetSecureAccessRdpDomain(v string) {
o.SecureAccessRdpDomain = &v
}
// GetSecureAccessRdpUser returns the SecureAccessRdpUser field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetSecureAccessRdpUser() string {
if o == nil || o.SecureAccessRdpUser == nil {
var ret string
return ret
}
return *o.SecureAccessRdpUser
}
// GetSecureAccessRdpUserOk returns a tuple with the SecureAccessRdpUser field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetSecureAccessRdpUserOk() (*string, bool) {
if o == nil || o.SecureAccessRdpUser == nil {
return nil, false
}
return o.SecureAccessRdpUser, true
}
// HasSecureAccessRdpUser returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasSecureAccessRdpUser() bool {
if o != nil && o.SecureAccessRdpUser != nil {
return true
}
return false
}
// SetSecureAccessRdpUser gets a reference to the given string and assigns it to the SecureAccessRdpUser field.
func (o *RotatedSecretCreateCustom) SetSecureAccessRdpUser(v string) {
o.SecureAccessRdpUser = &v
}
// GetSecureAccessSshUser returns the SecureAccessSshUser field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetSecureAccessSshUser() string {
if o == nil || o.SecureAccessSshUser == nil {
var ret string
return ret
}
return *o.SecureAccessSshUser
}
// GetSecureAccessSshUserOk returns a tuple with the SecureAccessSshUser field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetSecureAccessSshUserOk() (*string, bool) {
if o == nil || o.SecureAccessSshUser == nil {
return nil, false
}
return o.SecureAccessSshUser, true
}
// HasSecureAccessSshUser returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasSecureAccessSshUser() bool {
if o != nil && o.SecureAccessSshUser != nil {
return true
}
return false
}
// SetSecureAccessSshUser gets a reference to the given string and assigns it to the SecureAccessSshUser field.
func (o *RotatedSecretCreateCustom) SetSecureAccessSshUser(v string) {
o.SecureAccessSshUser = &v
}
// GetSecureAccessUrl returns the SecureAccessUrl field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetSecureAccessUrl() string {
if o == nil || o.SecureAccessUrl == nil {
var ret string
return ret
}
return *o.SecureAccessUrl
}
// GetSecureAccessUrlOk returns a tuple with the SecureAccessUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetSecureAccessUrlOk() (*string, bool) {
if o == nil || o.SecureAccessUrl == nil {
return nil, false
}
return o.SecureAccessUrl, true
}
// HasSecureAccessUrl returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasSecureAccessUrl() bool {
if o != nil && o.SecureAccessUrl != nil {
return true
}
return false
}
// SetSecureAccessUrl gets a reference to the given string and assigns it to the SecureAccessUrl field.
func (o *RotatedSecretCreateCustom) SetSecureAccessUrl(v string) {
o.SecureAccessUrl = &v
}
// GetSecureAccessWeb returns the SecureAccessWeb field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetSecureAccessWeb() bool {
if o == nil || o.SecureAccessWeb == nil {
var ret bool
return ret
}
return *o.SecureAccessWeb
}
// GetSecureAccessWebOk returns a tuple with the SecureAccessWeb field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetSecureAccessWebOk() (*bool, bool) {
if o == nil || o.SecureAccessWeb == nil {
return nil, false
}
return o.SecureAccessWeb, true
}
// HasSecureAccessWeb returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasSecureAccessWeb() bool {
if o != nil && o.SecureAccessWeb != nil {
return true
}
return false
}
// SetSecureAccessWeb gets a reference to the given bool and assigns it to the SecureAccessWeb field.
func (o *RotatedSecretCreateCustom) SetSecureAccessWeb(v bool) {
o.SecureAccessWeb = &v
}
// GetSecureAccessWebBrowsing returns the SecureAccessWebBrowsing field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetSecureAccessWebBrowsing() bool {
if o == nil || o.SecureAccessWebBrowsing == nil {
var ret bool
return ret
}
return *o.SecureAccessWebBrowsing
}
// GetSecureAccessWebBrowsingOk returns a tuple with the SecureAccessWebBrowsing field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetSecureAccessWebBrowsingOk() (*bool, bool) {
if o == nil || o.SecureAccessWebBrowsing == nil {
return nil, false
}
return o.SecureAccessWebBrowsing, true
}
// HasSecureAccessWebBrowsing returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasSecureAccessWebBrowsing() bool {
if o != nil && o.SecureAccessWebBrowsing != nil {
return true
}
return false
}
// SetSecureAccessWebBrowsing gets a reference to the given bool and assigns it to the SecureAccessWebBrowsing field.
func (o *RotatedSecretCreateCustom) SetSecureAccessWebBrowsing(v bool) {
o.SecureAccessWebBrowsing = &v
}
// GetSecureAccessWebProxy returns the SecureAccessWebProxy field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetSecureAccessWebProxy() bool {
if o == nil || o.SecureAccessWebProxy == nil {
var ret bool
return ret
}
return *o.SecureAccessWebProxy
}
// GetSecureAccessWebProxyOk returns a tuple with the SecureAccessWebProxy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetSecureAccessWebProxyOk() (*bool, bool) {
if o == nil || o.SecureAccessWebProxy == nil {
return nil, false
}
return o.SecureAccessWebProxy, true
}
// HasSecureAccessWebProxy returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasSecureAccessWebProxy() bool {
if o != nil && o.SecureAccessWebProxy != nil {
return true
}
return false
}
// SetSecureAccessWebProxy gets a reference to the given bool and assigns it to the SecureAccessWebProxy field.
func (o *RotatedSecretCreateCustom) SetSecureAccessWebProxy(v bool) {
o.SecureAccessWebProxy = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetTags() []string {
if o == nil || o.Tags == nil {
var ret []string
return ret
}
return *o.Tags
}
// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetTagsOk() (*[]string, bool) {
if o == nil || o.Tags == nil {
return nil, false
}
return o.Tags, true
}
// HasTags returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasTags() bool {
if o != nil && o.Tags != nil {
return true
}
return false
}
// SetTags gets a reference to the given []string and assigns it to the Tags field.
func (o *RotatedSecretCreateCustom) SetTags(v []string) {
o.Tags = &v
}
// GetTargetName returns the TargetName field value
func (o *RotatedSecretCreateCustom) GetTargetName() string {
if o == nil {
var ret string
return ret
}
return o.TargetName
}
// GetTargetNameOk returns a tuple with the TargetName field value
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetTargetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.TargetName, true
}
// SetTargetName sets field value
func (o *RotatedSecretCreateCustom) SetTargetName(v string) {
o.TargetName = v
}
// GetTimeoutSec returns the TimeoutSec field value if set, zero value otherwise.
func (o *RotatedSecretCreateCustom) GetTimeoutSec() int64 {
if o == nil || o.TimeoutSec == nil {
var ret int64
return ret
}
return *o.TimeoutSec
}
// GetTimeoutSecOk returns a tuple with the TimeoutSec field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RotatedSecretCreateCustom) GetTimeoutSecOk() (*int64, bool) {
if o == nil || o.TimeoutSec == nil {
return nil, false
}
return o.TimeoutSec, true
}
// HasTimeoutSec returns a boolean if a field has been set.
func (o *RotatedSecretCreateCustom) HasTimeoutSec() bool {