-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmodel_create_db_target.go
1354 lines (1165 loc) · 38.6 KB
/
model_create_db_target.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"
)
// CreateDBTarget createDBTarget is a command that creates a new target. [Deprecated: Use target-create-db command]
type CreateDBTarget struct {
DBDefinedConnectionType *string `json:"DBDefinedConnectionType,omitempty"`
// (Optional) Client id (relevant for \"cloud-service-provider\" only)
AzureClientId *string `json:"azure-client-id,omitempty"`
// (Optional) Client secret (relevant for \"cloud-service-provider\" only)
AzureClientSecret *string `json:"azure-client-secret,omitempty"`
// (Optional) Tenant id (relevant for \"cloud-service-provider\" only)
AzureTenantId *string `json:"azure-tenant-id,omitempty"`
// (Optional) Cloud service provider (currently only supports Azure)
CloudServiceProvider *string `json:"cloud-service-provider,omitempty"`
// Cluster Mode
ClusterMode *bool `json:"cluster-mode,omitempty"`
// Deprecated - use description
Comment *string `json:"comment,omitempty"`
// (Optional) Type of connection to mssql database [credentials/cloud-identity]
ConnectionType string `json:"connection-type"`
DbName *string `json:"db-name,omitempty"`
// (Optional) DB server certificates
DbServerCertificates *string `json:"db-server-certificates,omitempty"`
// (Optional) Server name for certificate verification
DbServerName *string `json:"db-server-name,omitempty"`
DbType string `json:"db-type"`
// Description of the object
Description *string `json:"description,omitempty"`
Host *string `json:"host,omitempty"`
// Set output format to JSON
Json *bool `json:"json,omitempty"`
// The name of a key that used to encrypt the target 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"`
MongodbAtlas *bool `json:"mongodb-atlas,omitempty"`
// MongoDB Atlas private key
MongodbAtlasApiPrivateKey *string `json:"mongodb-atlas-api-private-key,omitempty"`
// MongoDB Atlas public key
MongodbAtlasApiPublicKey *string `json:"mongodb-atlas-api-public-key,omitempty"`
// MongoDB Atlas project ID
MongodbAtlasProjectId *string `json:"mongodb-atlas-project-id,omitempty"`
// MongoDB server default authentication database
MongodbDefaultAuthDb *string `json:"mongodb-default-auth-db,omitempty"`
// MongoDB server URI options
MongodbUriOptions *string `json:"mongodb-uri-options,omitempty"`
// Target name
Name string `json:"name"`
OracleServiceName *string `json:"oracle-service-name,omitempty"`
Port *string `json:"port,omitempty"`
Pwd *string `json:"pwd,omitempty"`
SnowflakeAccount *string `json:"snowflake-account,omitempty"`
// RSA Private key (base64 encoded)
SnowflakeApiPrivateKey *string `json:"snowflake-api-private-key,omitempty"`
// The Private key passphrase
SnowflakeApiPrivateKeyPassword *string `json:"snowflake-api-private-key-password,omitempty"`
// Enable/Disable SSL [true/false]
Ssl *bool `json:"ssl,omitempty"`
// SSL connection certificate
SslCertificate *string `json:"ssl-certificate,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"`
UserName *string `json:"user-name,omitempty"`
}
// NewCreateDBTarget instantiates a new CreateDBTarget 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 NewCreateDBTarget(connectionType string, dbType string, name string, ) *CreateDBTarget {
this := CreateDBTarget{}
this.ConnectionType = connectionType
this.DbType = dbType
var json bool = false
this.Json = &json
this.Name = name
var ssl bool = false
this.Ssl = &ssl
return &this
}
// NewCreateDBTargetWithDefaults instantiates a new CreateDBTarget 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 NewCreateDBTargetWithDefaults() *CreateDBTarget {
this := CreateDBTarget{}
var connectionType string = "credentials"
this.ConnectionType = connectionType
var json bool = false
this.Json = &json
var ssl bool = false
this.Ssl = &ssl
return &this
}
// GetDBDefinedConnectionType returns the DBDefinedConnectionType field value if set, zero value otherwise.
func (o *CreateDBTarget) GetDBDefinedConnectionType() string {
if o == nil || o.DBDefinedConnectionType == nil {
var ret string
return ret
}
return *o.DBDefinedConnectionType
}
// GetDBDefinedConnectionTypeOk returns a tuple with the DBDefinedConnectionType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetDBDefinedConnectionTypeOk() (*string, bool) {
if o == nil || o.DBDefinedConnectionType == nil {
return nil, false
}
return o.DBDefinedConnectionType, true
}
// HasDBDefinedConnectionType returns a boolean if a field has been set.
func (o *CreateDBTarget) HasDBDefinedConnectionType() bool {
if o != nil && o.DBDefinedConnectionType != nil {
return true
}
return false
}
// SetDBDefinedConnectionType gets a reference to the given string and assigns it to the DBDefinedConnectionType field.
func (o *CreateDBTarget) SetDBDefinedConnectionType(v string) {
o.DBDefinedConnectionType = &v
}
// GetAzureClientId returns the AzureClientId field value if set, zero value otherwise.
func (o *CreateDBTarget) GetAzureClientId() string {
if o == nil || o.AzureClientId == nil {
var ret string
return ret
}
return *o.AzureClientId
}
// GetAzureClientIdOk returns a tuple with the AzureClientId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetAzureClientIdOk() (*string, bool) {
if o == nil || o.AzureClientId == nil {
return nil, false
}
return o.AzureClientId, true
}
// HasAzureClientId returns a boolean if a field has been set.
func (o *CreateDBTarget) HasAzureClientId() bool {
if o != nil && o.AzureClientId != nil {
return true
}
return false
}
// SetAzureClientId gets a reference to the given string and assigns it to the AzureClientId field.
func (o *CreateDBTarget) SetAzureClientId(v string) {
o.AzureClientId = &v
}
// GetAzureClientSecret returns the AzureClientSecret field value if set, zero value otherwise.
func (o *CreateDBTarget) GetAzureClientSecret() string {
if o == nil || o.AzureClientSecret == nil {
var ret string
return ret
}
return *o.AzureClientSecret
}
// GetAzureClientSecretOk returns a tuple with the AzureClientSecret field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetAzureClientSecretOk() (*string, bool) {
if o == nil || o.AzureClientSecret == nil {
return nil, false
}
return o.AzureClientSecret, true
}
// HasAzureClientSecret returns a boolean if a field has been set.
func (o *CreateDBTarget) HasAzureClientSecret() bool {
if o != nil && o.AzureClientSecret != nil {
return true
}
return false
}
// SetAzureClientSecret gets a reference to the given string and assigns it to the AzureClientSecret field.
func (o *CreateDBTarget) SetAzureClientSecret(v string) {
o.AzureClientSecret = &v
}
// GetAzureTenantId returns the AzureTenantId field value if set, zero value otherwise.
func (o *CreateDBTarget) GetAzureTenantId() string {
if o == nil || o.AzureTenantId == nil {
var ret string
return ret
}
return *o.AzureTenantId
}
// GetAzureTenantIdOk returns a tuple with the AzureTenantId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetAzureTenantIdOk() (*string, bool) {
if o == nil || o.AzureTenantId == nil {
return nil, false
}
return o.AzureTenantId, true
}
// HasAzureTenantId returns a boolean if a field has been set.
func (o *CreateDBTarget) HasAzureTenantId() bool {
if o != nil && o.AzureTenantId != nil {
return true
}
return false
}
// SetAzureTenantId gets a reference to the given string and assigns it to the AzureTenantId field.
func (o *CreateDBTarget) SetAzureTenantId(v string) {
o.AzureTenantId = &v
}
// GetCloudServiceProvider returns the CloudServiceProvider field value if set, zero value otherwise.
func (o *CreateDBTarget) GetCloudServiceProvider() string {
if o == nil || o.CloudServiceProvider == nil {
var ret string
return ret
}
return *o.CloudServiceProvider
}
// GetCloudServiceProviderOk returns a tuple with the CloudServiceProvider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetCloudServiceProviderOk() (*string, bool) {
if o == nil || o.CloudServiceProvider == nil {
return nil, false
}
return o.CloudServiceProvider, true
}
// HasCloudServiceProvider returns a boolean if a field has been set.
func (o *CreateDBTarget) HasCloudServiceProvider() bool {
if o != nil && o.CloudServiceProvider != nil {
return true
}
return false
}
// SetCloudServiceProvider gets a reference to the given string and assigns it to the CloudServiceProvider field.
func (o *CreateDBTarget) SetCloudServiceProvider(v string) {
o.CloudServiceProvider = &v
}
// GetClusterMode returns the ClusterMode field value if set, zero value otherwise.
func (o *CreateDBTarget) GetClusterMode() bool {
if o == nil || o.ClusterMode == nil {
var ret bool
return ret
}
return *o.ClusterMode
}
// GetClusterModeOk returns a tuple with the ClusterMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetClusterModeOk() (*bool, bool) {
if o == nil || o.ClusterMode == nil {
return nil, false
}
return o.ClusterMode, true
}
// HasClusterMode returns a boolean if a field has been set.
func (o *CreateDBTarget) HasClusterMode() bool {
if o != nil && o.ClusterMode != nil {
return true
}
return false
}
// SetClusterMode gets a reference to the given bool and assigns it to the ClusterMode field.
func (o *CreateDBTarget) SetClusterMode(v bool) {
o.ClusterMode = &v
}
// GetComment returns the Comment field value if set, zero value otherwise.
func (o *CreateDBTarget) GetComment() string {
if o == nil || o.Comment == nil {
var ret string
return ret
}
return *o.Comment
}
// GetCommentOk returns a tuple with the Comment field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetCommentOk() (*string, bool) {
if o == nil || o.Comment == nil {
return nil, false
}
return o.Comment, true
}
// HasComment returns a boolean if a field has been set.
func (o *CreateDBTarget) HasComment() bool {
if o != nil && o.Comment != nil {
return true
}
return false
}
// SetComment gets a reference to the given string and assigns it to the Comment field.
func (o *CreateDBTarget) SetComment(v string) {
o.Comment = &v
}
// GetConnectionType returns the ConnectionType field value
func (o *CreateDBTarget) GetConnectionType() string {
if o == nil {
var ret string
return ret
}
return o.ConnectionType
}
// GetConnectionTypeOk returns a tuple with the ConnectionType field value
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetConnectionTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.ConnectionType, true
}
// SetConnectionType sets field value
func (o *CreateDBTarget) SetConnectionType(v string) {
o.ConnectionType = v
}
// GetDbName returns the DbName field value if set, zero value otherwise.
func (o *CreateDBTarget) GetDbName() string {
if o == nil || o.DbName == nil {
var ret string
return ret
}
return *o.DbName
}
// GetDbNameOk returns a tuple with the DbName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetDbNameOk() (*string, bool) {
if o == nil || o.DbName == nil {
return nil, false
}
return o.DbName, true
}
// HasDbName returns a boolean if a field has been set.
func (o *CreateDBTarget) HasDbName() bool {
if o != nil && o.DbName != nil {
return true
}
return false
}
// SetDbName gets a reference to the given string and assigns it to the DbName field.
func (o *CreateDBTarget) SetDbName(v string) {
o.DbName = &v
}
// GetDbServerCertificates returns the DbServerCertificates field value if set, zero value otherwise.
func (o *CreateDBTarget) 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 *CreateDBTarget) 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 *CreateDBTarget) 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 *CreateDBTarget) SetDbServerCertificates(v string) {
o.DbServerCertificates = &v
}
// GetDbServerName returns the DbServerName field value if set, zero value otherwise.
func (o *CreateDBTarget) 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 *CreateDBTarget) 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 *CreateDBTarget) 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 *CreateDBTarget) SetDbServerName(v string) {
o.DbServerName = &v
}
// GetDbType returns the DbType field value
func (o *CreateDBTarget) GetDbType() string {
if o == nil {
var ret string
return ret
}
return o.DbType
}
// GetDbTypeOk returns a tuple with the DbType field value
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetDbTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.DbType, true
}
// SetDbType sets field value
func (o *CreateDBTarget) SetDbType(v string) {
o.DbType = v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *CreateDBTarget) 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 *CreateDBTarget) 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 *CreateDBTarget) 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 *CreateDBTarget) SetDescription(v string) {
o.Description = &v
}
// GetHost returns the Host field value if set, zero value otherwise.
func (o *CreateDBTarget) GetHost() string {
if o == nil || o.Host == nil {
var ret string
return ret
}
return *o.Host
}
// GetHostOk returns a tuple with the Host field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetHostOk() (*string, bool) {
if o == nil || o.Host == nil {
return nil, false
}
return o.Host, true
}
// HasHost returns a boolean if a field has been set.
func (o *CreateDBTarget) HasHost() bool {
if o != nil && o.Host != nil {
return true
}
return false
}
// SetHost gets a reference to the given string and assigns it to the Host field.
func (o *CreateDBTarget) SetHost(v string) {
o.Host = &v
}
// GetJson returns the Json field value if set, zero value otherwise.
func (o *CreateDBTarget) 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 *CreateDBTarget) 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 *CreateDBTarget) 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 *CreateDBTarget) SetJson(v bool) {
o.Json = &v
}
// GetKey returns the Key field value if set, zero value otherwise.
func (o *CreateDBTarget) 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 *CreateDBTarget) 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 *CreateDBTarget) 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 *CreateDBTarget) SetKey(v string) {
o.Key = &v
}
// GetMaxVersions returns the MaxVersions field value if set, zero value otherwise.
func (o *CreateDBTarget) 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 *CreateDBTarget) 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 *CreateDBTarget) 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 *CreateDBTarget) SetMaxVersions(v string) {
o.MaxVersions = &v
}
// GetMongodbAtlas returns the MongodbAtlas field value if set, zero value otherwise.
func (o *CreateDBTarget) GetMongodbAtlas() bool {
if o == nil || o.MongodbAtlas == nil {
var ret bool
return ret
}
return *o.MongodbAtlas
}
// GetMongodbAtlasOk returns a tuple with the MongodbAtlas field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetMongodbAtlasOk() (*bool, bool) {
if o == nil || o.MongodbAtlas == nil {
return nil, false
}
return o.MongodbAtlas, true
}
// HasMongodbAtlas returns a boolean if a field has been set.
func (o *CreateDBTarget) HasMongodbAtlas() bool {
if o != nil && o.MongodbAtlas != nil {
return true
}
return false
}
// SetMongodbAtlas gets a reference to the given bool and assigns it to the MongodbAtlas field.
func (o *CreateDBTarget) SetMongodbAtlas(v bool) {
o.MongodbAtlas = &v
}
// GetMongodbAtlasApiPrivateKey returns the MongodbAtlasApiPrivateKey field value if set, zero value otherwise.
func (o *CreateDBTarget) GetMongodbAtlasApiPrivateKey() string {
if o == nil || o.MongodbAtlasApiPrivateKey == nil {
var ret string
return ret
}
return *o.MongodbAtlasApiPrivateKey
}
// GetMongodbAtlasApiPrivateKeyOk returns a tuple with the MongodbAtlasApiPrivateKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetMongodbAtlasApiPrivateKeyOk() (*string, bool) {
if o == nil || o.MongodbAtlasApiPrivateKey == nil {
return nil, false
}
return o.MongodbAtlasApiPrivateKey, true
}
// HasMongodbAtlasApiPrivateKey returns a boolean if a field has been set.
func (o *CreateDBTarget) HasMongodbAtlasApiPrivateKey() bool {
if o != nil && o.MongodbAtlasApiPrivateKey != nil {
return true
}
return false
}
// SetMongodbAtlasApiPrivateKey gets a reference to the given string and assigns it to the MongodbAtlasApiPrivateKey field.
func (o *CreateDBTarget) SetMongodbAtlasApiPrivateKey(v string) {
o.MongodbAtlasApiPrivateKey = &v
}
// GetMongodbAtlasApiPublicKey returns the MongodbAtlasApiPublicKey field value if set, zero value otherwise.
func (o *CreateDBTarget) GetMongodbAtlasApiPublicKey() string {
if o == nil || o.MongodbAtlasApiPublicKey == nil {
var ret string
return ret
}
return *o.MongodbAtlasApiPublicKey
}
// GetMongodbAtlasApiPublicKeyOk returns a tuple with the MongodbAtlasApiPublicKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetMongodbAtlasApiPublicKeyOk() (*string, bool) {
if o == nil || o.MongodbAtlasApiPublicKey == nil {
return nil, false
}
return o.MongodbAtlasApiPublicKey, true
}
// HasMongodbAtlasApiPublicKey returns a boolean if a field has been set.
func (o *CreateDBTarget) HasMongodbAtlasApiPublicKey() bool {
if o != nil && o.MongodbAtlasApiPublicKey != nil {
return true
}
return false
}
// SetMongodbAtlasApiPublicKey gets a reference to the given string and assigns it to the MongodbAtlasApiPublicKey field.
func (o *CreateDBTarget) SetMongodbAtlasApiPublicKey(v string) {
o.MongodbAtlasApiPublicKey = &v
}
// GetMongodbAtlasProjectId returns the MongodbAtlasProjectId field value if set, zero value otherwise.
func (o *CreateDBTarget) GetMongodbAtlasProjectId() string {
if o == nil || o.MongodbAtlasProjectId == nil {
var ret string
return ret
}
return *o.MongodbAtlasProjectId
}
// GetMongodbAtlasProjectIdOk returns a tuple with the MongodbAtlasProjectId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetMongodbAtlasProjectIdOk() (*string, bool) {
if o == nil || o.MongodbAtlasProjectId == nil {
return nil, false
}
return o.MongodbAtlasProjectId, true
}
// HasMongodbAtlasProjectId returns a boolean if a field has been set.
func (o *CreateDBTarget) HasMongodbAtlasProjectId() bool {
if o != nil && o.MongodbAtlasProjectId != nil {
return true
}
return false
}
// SetMongodbAtlasProjectId gets a reference to the given string and assigns it to the MongodbAtlasProjectId field.
func (o *CreateDBTarget) SetMongodbAtlasProjectId(v string) {
o.MongodbAtlasProjectId = &v
}
// GetMongodbDefaultAuthDb returns the MongodbDefaultAuthDb field value if set, zero value otherwise.
func (o *CreateDBTarget) GetMongodbDefaultAuthDb() string {
if o == nil || o.MongodbDefaultAuthDb == nil {
var ret string
return ret
}
return *o.MongodbDefaultAuthDb
}
// GetMongodbDefaultAuthDbOk returns a tuple with the MongodbDefaultAuthDb field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetMongodbDefaultAuthDbOk() (*string, bool) {
if o == nil || o.MongodbDefaultAuthDb == nil {
return nil, false
}
return o.MongodbDefaultAuthDb, true
}
// HasMongodbDefaultAuthDb returns a boolean if a field has been set.
func (o *CreateDBTarget) HasMongodbDefaultAuthDb() bool {
if o != nil && o.MongodbDefaultAuthDb != nil {
return true
}
return false
}
// SetMongodbDefaultAuthDb gets a reference to the given string and assigns it to the MongodbDefaultAuthDb field.
func (o *CreateDBTarget) SetMongodbDefaultAuthDb(v string) {
o.MongodbDefaultAuthDb = &v
}
// GetMongodbUriOptions returns the MongodbUriOptions field value if set, zero value otherwise.
func (o *CreateDBTarget) GetMongodbUriOptions() string {
if o == nil || o.MongodbUriOptions == nil {
var ret string
return ret
}
return *o.MongodbUriOptions
}
// GetMongodbUriOptionsOk returns a tuple with the MongodbUriOptions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetMongodbUriOptionsOk() (*string, bool) {
if o == nil || o.MongodbUriOptions == nil {
return nil, false
}
return o.MongodbUriOptions, true
}
// HasMongodbUriOptions returns a boolean if a field has been set.
func (o *CreateDBTarget) HasMongodbUriOptions() bool {
if o != nil && o.MongodbUriOptions != nil {
return true
}
return false
}
// SetMongodbUriOptions gets a reference to the given string and assigns it to the MongodbUriOptions field.
func (o *CreateDBTarget) SetMongodbUriOptions(v string) {
o.MongodbUriOptions = &v
}
// GetName returns the Name field value
func (o *CreateDBTarget) 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 *CreateDBTarget) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *CreateDBTarget) SetName(v string) {
o.Name = v
}
// GetOracleServiceName returns the OracleServiceName field value if set, zero value otherwise.
func (o *CreateDBTarget) GetOracleServiceName() string {
if o == nil || o.OracleServiceName == nil {
var ret string
return ret
}
return *o.OracleServiceName
}
// GetOracleServiceNameOk returns a tuple with the OracleServiceName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetOracleServiceNameOk() (*string, bool) {
if o == nil || o.OracleServiceName == nil {
return nil, false
}
return o.OracleServiceName, true
}
// HasOracleServiceName returns a boolean if a field has been set.
func (o *CreateDBTarget) HasOracleServiceName() bool {
if o != nil && o.OracleServiceName != nil {
return true
}
return false
}
// SetOracleServiceName gets a reference to the given string and assigns it to the OracleServiceName field.
func (o *CreateDBTarget) SetOracleServiceName(v string) {
o.OracleServiceName = &v
}
// GetPort returns the Port field value if set, zero value otherwise.
func (o *CreateDBTarget) GetPort() string {
if o == nil || o.Port == nil {
var ret string
return ret
}
return *o.Port
}
// GetPortOk returns a tuple with the Port field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetPortOk() (*string, bool) {
if o == nil || o.Port == nil {
return nil, false
}
return o.Port, true
}
// HasPort returns a boolean if a field has been set.
func (o *CreateDBTarget) HasPort() bool {
if o != nil && o.Port != nil {
return true
}
return false
}
// SetPort gets a reference to the given string and assigns it to the Port field.
func (o *CreateDBTarget) SetPort(v string) {
o.Port = &v
}
// GetPwd returns the Pwd field value if set, zero value otherwise.
func (o *CreateDBTarget) GetPwd() string {
if o == nil || o.Pwd == nil {
var ret string
return ret
}
return *o.Pwd
}
// GetPwdOk returns a tuple with the Pwd field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetPwdOk() (*string, bool) {
if o == nil || o.Pwd == nil {
return nil, false
}
return o.Pwd, true
}
// HasPwd returns a boolean if a field has been set.
func (o *CreateDBTarget) HasPwd() bool {
if o != nil && o.Pwd != nil {
return true
}
return false
}
// SetPwd gets a reference to the given string and assigns it to the Pwd field.
func (o *CreateDBTarget) SetPwd(v string) {
o.Pwd = &v
}
// GetSnowflakeAccount returns the SnowflakeAccount field value if set, zero value otherwise.
func (o *CreateDBTarget) GetSnowflakeAccount() string {
if o == nil || o.SnowflakeAccount == nil {
var ret string
return ret
}
return *o.SnowflakeAccount
}
// GetSnowflakeAccountOk returns a tuple with the SnowflakeAccount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetSnowflakeAccountOk() (*string, bool) {
if o == nil || o.SnowflakeAccount == nil {
return nil, false
}
return o.SnowflakeAccount, true
}
// HasSnowflakeAccount returns a boolean if a field has been set.
func (o *CreateDBTarget) HasSnowflakeAccount() bool {
if o != nil && o.SnowflakeAccount != nil {
return true
}
return false
}
// SetSnowflakeAccount gets a reference to the given string and assigns it to the SnowflakeAccount field.
func (o *CreateDBTarget) SetSnowflakeAccount(v string) {
o.SnowflakeAccount = &v
}
// GetSnowflakeApiPrivateKey returns the SnowflakeApiPrivateKey field value if set, zero value otherwise.
func (o *CreateDBTarget) GetSnowflakeApiPrivateKey() string {
if o == nil || o.SnowflakeApiPrivateKey == nil {
var ret string
return ret
}
return *o.SnowflakeApiPrivateKey
}
// GetSnowflakeApiPrivateKeyOk returns a tuple with the SnowflakeApiPrivateKey field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *CreateDBTarget) GetSnowflakeApiPrivateKeyOk() (*string, bool) {
if o == nil || o.SnowflakeApiPrivateKey == nil {
return nil, false
}
return o.SnowflakeApiPrivateKey, true
}