-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel_dynamic_secret_update_my_sql.go
1096 lines (945 loc) · 32.4 KB
/
model_dynamic_secret_update_my_sql.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"
)
// DynamicSecretUpdateMySql dynamicSecretUpdateMySql is a command that updates mysql dynamic secret
type DynamicSecretUpdateMySql struct {
// (Optional) DB server certificates
DbServerCertificates *string `json:"db-server-certificates,omitempty"`
// (Optional) Server name for certificate verification
DbServerName *string `json:"db-server-name,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"`
// MySQL DB Name
MysqlDbname *string `json:"mysql-dbname,omitempty"`
// MySQL Host
MysqlHost *string `json:"mysql-host,omitempty"`
// MySQL Password
MysqlPassword *string `json:"mysql-password,omitempty"`
// MySQL Port
MysqlPort *string `json:"mysql-port,omitempty"`
// MySQL Revocation statements
MysqlRevocationStatements *string `json:"mysql-revocation-statements,omitempty"`
// MySQL Creation statements
MysqlScreationStatements *string `json:"mysql-screation-statements,omitempty"`
// MySQL Username
MysqlUsername *string `json:"mysql-username,omitempty"`
// Dynamic secret name
Name string `json:"name"`
// Dynamic secret name
NewName *string `json:"new-name,omitempty"`
// The length of the password to be generated
PasswordLength *string `json:"password-length,omitempty"`
// Dynamic producer encryption key
ProducerEncryptionKeyName *string `json:"producer-encryption-key-name,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 DB servers for connections (In case of Linked Target association, host(s) will inherit Linked Target hosts)
SecureAccessHost *[]string `json:"secure-access-host,omitempty"`
// Enable Web Secure Remote Access
SecureAccessWeb *bool `json:"secure-access-web,omitempty"`
// Enable/Disable SSL [true/false]
Ssl *bool `json:"ssl,omitempty"`
// SSL connection certificate
SslCertificate *string `json:"ssl-certificate,omitempty"`
// Add tags attached to this object
Tags *[]string `json:"tags,omitempty"`
// Target name
TargetName *string `json:"target-name,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"`
// User TTL
UserTtl *string `json:"user-ttl,omitempty"`
}
// NewDynamicSecretUpdateMySql instantiates a new DynamicSecretUpdateMySql 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 NewDynamicSecretUpdateMySql(name string, ) *DynamicSecretUpdateMySql {
this := DynamicSecretUpdateMySql{}
var json bool = false
this.Json = &json
var mysqlHost string = "127.0.0.1"
this.MysqlHost = &mysqlHost
var mysqlPort string = "3306"
this.MysqlPort = &mysqlPort
this.Name = name
var secureAccessWeb bool = false
this.SecureAccessWeb = &secureAccessWeb
var ssl bool = false
this.Ssl = &ssl
var userTtl string = "60m"
this.UserTtl = &userTtl
return &this
}
// NewDynamicSecretUpdateMySqlWithDefaults instantiates a new DynamicSecretUpdateMySql 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 NewDynamicSecretUpdateMySqlWithDefaults() *DynamicSecretUpdateMySql {
this := DynamicSecretUpdateMySql{}
var json bool = false
this.Json = &json
var mysqlHost string = "127.0.0.1"
this.MysqlHost = &mysqlHost
var mysqlPort string = "3306"
this.MysqlPort = &mysqlPort
var secureAccessWeb bool = false
this.SecureAccessWeb = &secureAccessWeb
var ssl bool = false
this.Ssl = &ssl
var userTtl string = "60m"
this.UserTtl = &userTtl
return &this
}
// GetDbServerCertificates returns the DbServerCertificates field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) GetDbServerCertificates() string {
if o == nil || o.DbServerCertificates == nil {
var ret string
return ret
}
return *o.DbServerCertificates
}
// GetDbServerCertificatesOk returns a tuple with the DbServerCertificates field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DynamicSecretUpdateMySql) GetDbServerCertificatesOk() (*string, bool) {
if o == nil || o.DbServerCertificates == nil {
return nil, false
}
return o.DbServerCertificates, true
}
// HasDbServerCertificates returns a boolean if a field has been set.
func (o *DynamicSecretUpdateMySql) HasDbServerCertificates() bool {
if o != nil && o.DbServerCertificates != nil {
return true
}
return false
}
// SetDbServerCertificates gets a reference to the given string and assigns it to the DbServerCertificates field.
func (o *DynamicSecretUpdateMySql) SetDbServerCertificates(v string) {
o.DbServerCertificates = &v
}
// GetDbServerName returns the DbServerName field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) GetDbServerName() string {
if o == nil || o.DbServerName == nil {
var ret string
return ret
}
return *o.DbServerName
}
// GetDbServerNameOk returns a tuple with the DbServerName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DynamicSecretUpdateMySql) GetDbServerNameOk() (*string, bool) {
if o == nil || o.DbServerName == nil {
return nil, false
}
return o.DbServerName, true
}
// HasDbServerName returns a boolean if a field has been set.
func (o *DynamicSecretUpdateMySql) HasDbServerName() bool {
if o != nil && o.DbServerName != nil {
return true
}
return false
}
// SetDbServerName gets a reference to the given string and assigns it to the DbServerName field.
func (o *DynamicSecretUpdateMySql) SetDbServerName(v string) {
o.DbServerName = &v
}
// GetDeleteProtection returns the DeleteProtection field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) SetDeleteProtection(v string) {
o.DeleteProtection = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) SetDescription(v string) {
o.Description = &v
}
// GetJson returns the Json field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) SetJson(v bool) {
o.Json = &v
}
// GetMysqlDbname returns the MysqlDbname field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) GetMysqlDbname() string {
if o == nil || o.MysqlDbname == nil {
var ret string
return ret
}
return *o.MysqlDbname
}
// GetMysqlDbnameOk returns a tuple with the MysqlDbname field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DynamicSecretUpdateMySql) GetMysqlDbnameOk() (*string, bool) {
if o == nil || o.MysqlDbname == nil {
return nil, false
}
return o.MysqlDbname, true
}
// HasMysqlDbname returns a boolean if a field has been set.
func (o *DynamicSecretUpdateMySql) HasMysqlDbname() bool {
if o != nil && o.MysqlDbname != nil {
return true
}
return false
}
// SetMysqlDbname gets a reference to the given string and assigns it to the MysqlDbname field.
func (o *DynamicSecretUpdateMySql) SetMysqlDbname(v string) {
o.MysqlDbname = &v
}
// GetMysqlHost returns the MysqlHost field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) GetMysqlHost() string {
if o == nil || o.MysqlHost == nil {
var ret string
return ret
}
return *o.MysqlHost
}
// GetMysqlHostOk returns a tuple with the MysqlHost field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DynamicSecretUpdateMySql) GetMysqlHostOk() (*string, bool) {
if o == nil || o.MysqlHost == nil {
return nil, false
}
return o.MysqlHost, true
}
// HasMysqlHost returns a boolean if a field has been set.
func (o *DynamicSecretUpdateMySql) HasMysqlHost() bool {
if o != nil && o.MysqlHost != nil {
return true
}
return false
}
// SetMysqlHost gets a reference to the given string and assigns it to the MysqlHost field.
func (o *DynamicSecretUpdateMySql) SetMysqlHost(v string) {
o.MysqlHost = &v
}
// GetMysqlPassword returns the MysqlPassword field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) GetMysqlPassword() string {
if o == nil || o.MysqlPassword == nil {
var ret string
return ret
}
return *o.MysqlPassword
}
// GetMysqlPasswordOk returns a tuple with the MysqlPassword field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DynamicSecretUpdateMySql) GetMysqlPasswordOk() (*string, bool) {
if o == nil || o.MysqlPassword == nil {
return nil, false
}
return o.MysqlPassword, true
}
// HasMysqlPassword returns a boolean if a field has been set.
func (o *DynamicSecretUpdateMySql) HasMysqlPassword() bool {
if o != nil && o.MysqlPassword != nil {
return true
}
return false
}
// SetMysqlPassword gets a reference to the given string and assigns it to the MysqlPassword field.
func (o *DynamicSecretUpdateMySql) SetMysqlPassword(v string) {
o.MysqlPassword = &v
}
// GetMysqlPort returns the MysqlPort field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) GetMysqlPort() string {
if o == nil || o.MysqlPort == nil {
var ret string
return ret
}
return *o.MysqlPort
}
// GetMysqlPortOk returns a tuple with the MysqlPort field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DynamicSecretUpdateMySql) GetMysqlPortOk() (*string, bool) {
if o == nil || o.MysqlPort == nil {
return nil, false
}
return o.MysqlPort, true
}
// HasMysqlPort returns a boolean if a field has been set.
func (o *DynamicSecretUpdateMySql) HasMysqlPort() bool {
if o != nil && o.MysqlPort != nil {
return true
}
return false
}
// SetMysqlPort gets a reference to the given string and assigns it to the MysqlPort field.
func (o *DynamicSecretUpdateMySql) SetMysqlPort(v string) {
o.MysqlPort = &v
}
// GetMysqlRevocationStatements returns the MysqlRevocationStatements field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) GetMysqlRevocationStatements() string {
if o == nil || o.MysqlRevocationStatements == nil {
var ret string
return ret
}
return *o.MysqlRevocationStatements
}
// GetMysqlRevocationStatementsOk returns a tuple with the MysqlRevocationStatements field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DynamicSecretUpdateMySql) GetMysqlRevocationStatementsOk() (*string, bool) {
if o == nil || o.MysqlRevocationStatements == nil {
return nil, false
}
return o.MysqlRevocationStatements, true
}
// HasMysqlRevocationStatements returns a boolean if a field has been set.
func (o *DynamicSecretUpdateMySql) HasMysqlRevocationStatements() bool {
if o != nil && o.MysqlRevocationStatements != nil {
return true
}
return false
}
// SetMysqlRevocationStatements gets a reference to the given string and assigns it to the MysqlRevocationStatements field.
func (o *DynamicSecretUpdateMySql) SetMysqlRevocationStatements(v string) {
o.MysqlRevocationStatements = &v
}
// GetMysqlScreationStatements returns the MysqlScreationStatements field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) GetMysqlScreationStatements() string {
if o == nil || o.MysqlScreationStatements == nil {
var ret string
return ret
}
return *o.MysqlScreationStatements
}
// GetMysqlScreationStatementsOk returns a tuple with the MysqlScreationStatements field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DynamicSecretUpdateMySql) GetMysqlScreationStatementsOk() (*string, bool) {
if o == nil || o.MysqlScreationStatements == nil {
return nil, false
}
return o.MysqlScreationStatements, true
}
// HasMysqlScreationStatements returns a boolean if a field has been set.
func (o *DynamicSecretUpdateMySql) HasMysqlScreationStatements() bool {
if o != nil && o.MysqlScreationStatements != nil {
return true
}
return false
}
// SetMysqlScreationStatements gets a reference to the given string and assigns it to the MysqlScreationStatements field.
func (o *DynamicSecretUpdateMySql) SetMysqlScreationStatements(v string) {
o.MysqlScreationStatements = &v
}
// GetMysqlUsername returns the MysqlUsername field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) GetMysqlUsername() string {
if o == nil || o.MysqlUsername == nil {
var ret string
return ret
}
return *o.MysqlUsername
}
// GetMysqlUsernameOk returns a tuple with the MysqlUsername field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DynamicSecretUpdateMySql) GetMysqlUsernameOk() (*string, bool) {
if o == nil || o.MysqlUsername == nil {
return nil, false
}
return o.MysqlUsername, true
}
// HasMysqlUsername returns a boolean if a field has been set.
func (o *DynamicSecretUpdateMySql) HasMysqlUsername() bool {
if o != nil && o.MysqlUsername != nil {
return true
}
return false
}
// SetMysqlUsername gets a reference to the given string and assigns it to the MysqlUsername field.
func (o *DynamicSecretUpdateMySql) SetMysqlUsername(v string) {
o.MysqlUsername = &v
}
// GetName returns the Name field value
func (o *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *DynamicSecretUpdateMySql) SetName(v string) {
o.Name = v
}
// GetNewName returns the NewName field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) SetNewName(v string) {
o.NewName = &v
}
// GetPasswordLength returns the PasswordLength field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) SetPasswordLength(v string) {
o.PasswordLength = &v
}
// GetProducerEncryptionKeyName returns the ProducerEncryptionKeyName field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) GetProducerEncryptionKeyName() string {
if o == nil || o.ProducerEncryptionKeyName == nil {
var ret string
return ret
}
return *o.ProducerEncryptionKeyName
}
// GetProducerEncryptionKeyNameOk returns a tuple with the ProducerEncryptionKeyName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DynamicSecretUpdateMySql) GetProducerEncryptionKeyNameOk() (*string, bool) {
if o == nil || o.ProducerEncryptionKeyName == nil {
return nil, false
}
return o.ProducerEncryptionKeyName, true
}
// HasProducerEncryptionKeyName returns a boolean if a field has been set.
func (o *DynamicSecretUpdateMySql) HasProducerEncryptionKeyName() bool {
if o != nil && o.ProducerEncryptionKeyName != nil {
return true
}
return false
}
// SetProducerEncryptionKeyName gets a reference to the given string and assigns it to the ProducerEncryptionKeyName field.
func (o *DynamicSecretUpdateMySql) SetProducerEncryptionKeyName(v string) {
o.ProducerEncryptionKeyName = &v
}
// GetSecureAccessBastionIssuer returns the SecureAccessBastionIssuer field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) SetSecureAccessBastionIssuer(v string) {
o.SecureAccessBastionIssuer = &v
}
// GetSecureAccessEnable returns the SecureAccessEnable field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) SetSecureAccessEnable(v string) {
o.SecureAccessEnable = &v
}
// GetSecureAccessHost returns the SecureAccessHost field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) SetSecureAccessHost(v []string) {
o.SecureAccessHost = &v
}
// GetSecureAccessWeb returns the SecureAccessWeb field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) SetSecureAccessWeb(v bool) {
o.SecureAccessWeb = &v
}
// GetSsl returns the Ssl field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) GetSsl() bool {
if o == nil || o.Ssl == nil {
var ret bool
return ret
}
return *o.Ssl
}
// GetSslOk returns a tuple with the Ssl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DynamicSecretUpdateMySql) GetSslOk() (*bool, bool) {
if o == nil || o.Ssl == nil {
return nil, false
}
return o.Ssl, true
}
// HasSsl returns a boolean if a field has been set.
func (o *DynamicSecretUpdateMySql) HasSsl() bool {
if o != nil && o.Ssl != nil {
return true
}
return false
}
// SetSsl gets a reference to the given bool and assigns it to the Ssl field.
func (o *DynamicSecretUpdateMySql) SetSsl(v bool) {
o.Ssl = &v
}
// GetSslCertificate returns the SslCertificate field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) GetSslCertificate() string {
if o == nil || o.SslCertificate == nil {
var ret string
return ret
}
return *o.SslCertificate
}
// GetSslCertificateOk returns a tuple with the SslCertificate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DynamicSecretUpdateMySql) GetSslCertificateOk() (*string, bool) {
if o == nil || o.SslCertificate == nil {
return nil, false
}
return o.SslCertificate, true
}
// HasSslCertificate returns a boolean if a field has been set.
func (o *DynamicSecretUpdateMySql) HasSslCertificate() bool {
if o != nil && o.SslCertificate != nil {
return true
}
return false
}
// SetSslCertificate gets a reference to the given string and assigns it to the SslCertificate field.
func (o *DynamicSecretUpdateMySql) SetSslCertificate(v string) {
o.SslCertificate = &v
}
// GetTags returns the Tags field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) SetTags(v []string) {
o.Tags = &v
}
// GetTargetName returns the TargetName field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) GetTargetName() string {
if o == nil || o.TargetName == nil {
var ret string
return ret
}
return *o.TargetName
}
// GetTargetNameOk returns a tuple with the TargetName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DynamicSecretUpdateMySql) GetTargetNameOk() (*string, bool) {
if o == nil || o.TargetName == nil {
return nil, false
}
return o.TargetName, true
}
// HasTargetName returns a boolean if a field has been set.
func (o *DynamicSecretUpdateMySql) HasTargetName() bool {
if o != nil && o.TargetName != nil {
return true
}
return false
}
// SetTargetName gets a reference to the given string and assigns it to the TargetName field.
func (o *DynamicSecretUpdateMySql) SetTargetName(v string) {
o.TargetName = &v
}
// GetToken returns the Token field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) SetToken(v string) {
o.Token = &v
}
// GetUidToken returns the UidToken field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) 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 *DynamicSecretUpdateMySql) SetUidToken(v string) {
o.UidToken = &v
}
// GetUserTtl returns the UserTtl field value if set, zero value otherwise.
func (o *DynamicSecretUpdateMySql) GetUserTtl() string {
if o == nil || o.UserTtl == nil {
var ret string
return ret
}
return *o.UserTtl
}
// GetUserTtlOk returns a tuple with the UserTtl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DynamicSecretUpdateMySql) GetUserTtlOk() (*string, bool) {
if o == nil || o.UserTtl == nil {
return nil, false
}
return o.UserTtl, true
}
// HasUserTtl returns a boolean if a field has been set.
func (o *DynamicSecretUpdateMySql) HasUserTtl() bool {
if o != nil && o.UserTtl != nil {
return true
}
return false
}
// SetUserTtl gets a reference to the given string and assigns it to the UserTtl field.
func (o *DynamicSecretUpdateMySql) SetUserTtl(v string) {
o.UserTtl = &v
}
func (o DynamicSecretUpdateMySql) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.DbServerCertificates != nil {
toSerialize["db-server-certificates"] = o.DbServerCertificates
}
if o.DbServerName != nil {
toSerialize["db-server-name"] = o.DbServerName
}
if o.DeleteProtection != nil {
toSerialize["delete_protection"] = o.DeleteProtection
}
if o.Description != nil {
toSerialize["description"] = o.Description
}
if o.Json != nil {
toSerialize["json"] = o.Json
}
if o.MysqlDbname != nil {
toSerialize["mysql-dbname"] = o.MysqlDbname
}
if o.MysqlHost != nil {
toSerialize["mysql-host"] = o.MysqlHost
}
if o.MysqlPassword != nil {
toSerialize["mysql-password"] = o.MysqlPassword
}
if o.MysqlPort != nil {