-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_db_identity_source_dto.go
1066 lines (909 loc) · 31.3 KB
/
model_db_identity_source_dto.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
/*
Atricore Console :: Remote : API
# Atricore Console API
API version: 1.5.1-SNAPSHOT
Contact: [email protected]
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package jossoappi
import (
"encoding/json"
)
// DbIdentitySourceDTO struct for DbIdentitySourceDTO
type DbIdentitySourceDTO struct {
AcquireIncrement *int32 `json:"acquireIncrement,omitempty"`
Admin *string `json:"admin,omitempty"`
ConnectionUrl *string `json:"connectionUrl,omitempty"`
CredentialsQueryString *string `json:"credentialsQueryString,omitempty"`
CustomClass *CustomClassDTO `json:"customClass,omitempty"`
Description *string `json:"description,omitempty"`
Driver *ResourceDTO `json:"driver,omitempty"`
DriverName *string `json:"driverName,omitempty"`
ElementId *string `json:"elementId,omitempty"`
Id *int64 `json:"id,omitempty"`
IdleConnectionTestPeriod *int32 `json:"idleConnectionTestPeriod,omitempty"`
InitialPoolSize *int32 `json:"initialPoolSize,omitempty"`
MaxIdleTime *int32 `json:"maxIdleTime,omitempty"`
MaxPoolSize *int32 `json:"maxPoolSize,omitempty"`
MinPoolSize *int32 `json:"minPoolSize,omitempty"`
Name *string `json:"name,omitempty"`
Password *string `json:"password,omitempty"`
PooledDatasource *bool `json:"pooledDatasource,omitempty"`
RelayCredentialQueryString *string `json:"relayCredentialQueryString,omitempty"`
ResetCredentialDml *string `json:"resetCredentialDml,omitempty"`
RolesQueryString *string `json:"rolesQueryString,omitempty"`
UseColumnNamesAsPropertyNames *bool `json:"useColumnNamesAsPropertyNames,omitempty"`
UserPropertiesQueryString *string `json:"userPropertiesQueryString,omitempty"`
UserQueryString *string `json:"userQueryString,omitempty"`
X *float64 `json:"x,omitempty"`
Y *float64 `json:"y,omitempty"`
AdditionalProperties map[string]interface{}
}
type _DbIdentitySourceDTO DbIdentitySourceDTO
// NewDbIdentitySourceDTO instantiates a new DbIdentitySourceDTO 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 NewDbIdentitySourceDTO() *DbIdentitySourceDTO {
this := DbIdentitySourceDTO{}
return &this
}
// NewDbIdentitySourceDTOWithDefaults instantiates a new DbIdentitySourceDTO 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 NewDbIdentitySourceDTOWithDefaults() *DbIdentitySourceDTO {
this := DbIdentitySourceDTO{}
return &this
}
// GetAcquireIncrement returns the AcquireIncrement field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetAcquireIncrement() int32 {
if o == nil || isNil(o.AcquireIncrement) {
var ret int32
return ret
}
return *o.AcquireIncrement
}
// GetAcquireIncrementOk returns a tuple with the AcquireIncrement field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetAcquireIncrementOk() (*int32, bool) {
if o == nil || isNil(o.AcquireIncrement) {
return nil, false
}
return o.AcquireIncrement, true
}
// HasAcquireIncrement returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasAcquireIncrement() bool {
if o != nil && !isNil(o.AcquireIncrement) {
return true
}
return false
}
// SetAcquireIncrement gets a reference to the given int32 and assigns it to the AcquireIncrement field.
func (o *DbIdentitySourceDTO) SetAcquireIncrement(v int32) {
o.AcquireIncrement = &v
}
// GetAdmin returns the Admin field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetAdmin() string {
if o == nil || isNil(o.Admin) {
var ret string
return ret
}
return *o.Admin
}
// GetAdminOk returns a tuple with the Admin field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetAdminOk() (*string, bool) {
if o == nil || isNil(o.Admin) {
return nil, false
}
return o.Admin, true
}
// HasAdmin returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasAdmin() bool {
if o != nil && !isNil(o.Admin) {
return true
}
return false
}
// SetAdmin gets a reference to the given string and assigns it to the Admin field.
func (o *DbIdentitySourceDTO) SetAdmin(v string) {
o.Admin = &v
}
// GetConnectionUrl returns the ConnectionUrl field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetConnectionUrl() string {
if o == nil || isNil(o.ConnectionUrl) {
var ret string
return ret
}
return *o.ConnectionUrl
}
// GetConnectionUrlOk returns a tuple with the ConnectionUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetConnectionUrlOk() (*string, bool) {
if o == nil || isNil(o.ConnectionUrl) {
return nil, false
}
return o.ConnectionUrl, true
}
// HasConnectionUrl returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasConnectionUrl() bool {
if o != nil && !isNil(o.ConnectionUrl) {
return true
}
return false
}
// SetConnectionUrl gets a reference to the given string and assigns it to the ConnectionUrl field.
func (o *DbIdentitySourceDTO) SetConnectionUrl(v string) {
o.ConnectionUrl = &v
}
// GetCredentialsQueryString returns the CredentialsQueryString field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetCredentialsQueryString() string {
if o == nil || isNil(o.CredentialsQueryString) {
var ret string
return ret
}
return *o.CredentialsQueryString
}
// GetCredentialsQueryStringOk returns a tuple with the CredentialsQueryString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetCredentialsQueryStringOk() (*string, bool) {
if o == nil || isNil(o.CredentialsQueryString) {
return nil, false
}
return o.CredentialsQueryString, true
}
// HasCredentialsQueryString returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasCredentialsQueryString() bool {
if o != nil && !isNil(o.CredentialsQueryString) {
return true
}
return false
}
// SetCredentialsQueryString gets a reference to the given string and assigns it to the CredentialsQueryString field.
func (o *DbIdentitySourceDTO) SetCredentialsQueryString(v string) {
o.CredentialsQueryString = &v
}
// GetCustomClass returns the CustomClass field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetCustomClass() CustomClassDTO {
if o == nil || isNil(o.CustomClass) {
var ret CustomClassDTO
return ret
}
return *o.CustomClass
}
// GetCustomClassOk returns a tuple with the CustomClass field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetCustomClassOk() (*CustomClassDTO, bool) {
if o == nil || isNil(o.CustomClass) {
return nil, false
}
return o.CustomClass, true
}
// HasCustomClass returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasCustomClass() bool {
if o != nil && !isNil(o.CustomClass) {
return true
}
return false
}
// SetCustomClass gets a reference to the given CustomClassDTO and assigns it to the CustomClass field.
func (o *DbIdentitySourceDTO) SetCustomClass(v CustomClassDTO) {
o.CustomClass = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetDescription() string {
if o == nil || isNil(o.Description) {
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 *DbIdentitySourceDTO) GetDescriptionOk() (*string, bool) {
if o == nil || isNil(o.Description) {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasDescription() bool {
if o != nil && !isNil(o.Description) {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *DbIdentitySourceDTO) SetDescription(v string) {
o.Description = &v
}
// GetDriver returns the Driver field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetDriver() ResourceDTO {
if o == nil || isNil(o.Driver) {
var ret ResourceDTO
return ret
}
return *o.Driver
}
// GetDriverOk returns a tuple with the Driver field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetDriverOk() (*ResourceDTO, bool) {
if o == nil || isNil(o.Driver) {
return nil, false
}
return o.Driver, true
}
// HasDriver returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasDriver() bool {
if o != nil && !isNil(o.Driver) {
return true
}
return false
}
// SetDriver gets a reference to the given ResourceDTO and assigns it to the Driver field.
func (o *DbIdentitySourceDTO) SetDriver(v ResourceDTO) {
o.Driver = &v
}
// GetDriverName returns the DriverName field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetDriverName() string {
if o == nil || isNil(o.DriverName) {
var ret string
return ret
}
return *o.DriverName
}
// GetDriverNameOk returns a tuple with the DriverName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetDriverNameOk() (*string, bool) {
if o == nil || isNil(o.DriverName) {
return nil, false
}
return o.DriverName, true
}
// HasDriverName returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasDriverName() bool {
if o != nil && !isNil(o.DriverName) {
return true
}
return false
}
// SetDriverName gets a reference to the given string and assigns it to the DriverName field.
func (o *DbIdentitySourceDTO) SetDriverName(v string) {
o.DriverName = &v
}
// GetElementId returns the ElementId field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetElementId() string {
if o == nil || isNil(o.ElementId) {
var ret string
return ret
}
return *o.ElementId
}
// GetElementIdOk returns a tuple with the ElementId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetElementIdOk() (*string, bool) {
if o == nil || isNil(o.ElementId) {
return nil, false
}
return o.ElementId, true
}
// HasElementId returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasElementId() bool {
if o != nil && !isNil(o.ElementId) {
return true
}
return false
}
// SetElementId gets a reference to the given string and assigns it to the ElementId field.
func (o *DbIdentitySourceDTO) SetElementId(v string) {
o.ElementId = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetId() int64 {
if o == nil || isNil(o.Id) {
var ret int64
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetIdOk() (*int64, bool) {
if o == nil || isNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasId() bool {
if o != nil && !isNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given int64 and assigns it to the Id field.
func (o *DbIdentitySourceDTO) SetId(v int64) {
o.Id = &v
}
// GetIdleConnectionTestPeriod returns the IdleConnectionTestPeriod field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetIdleConnectionTestPeriod() int32 {
if o == nil || isNil(o.IdleConnectionTestPeriod) {
var ret int32
return ret
}
return *o.IdleConnectionTestPeriod
}
// GetIdleConnectionTestPeriodOk returns a tuple with the IdleConnectionTestPeriod field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetIdleConnectionTestPeriodOk() (*int32, bool) {
if o == nil || isNil(o.IdleConnectionTestPeriod) {
return nil, false
}
return o.IdleConnectionTestPeriod, true
}
// HasIdleConnectionTestPeriod returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasIdleConnectionTestPeriod() bool {
if o != nil && !isNil(o.IdleConnectionTestPeriod) {
return true
}
return false
}
// SetIdleConnectionTestPeriod gets a reference to the given int32 and assigns it to the IdleConnectionTestPeriod field.
func (o *DbIdentitySourceDTO) SetIdleConnectionTestPeriod(v int32) {
o.IdleConnectionTestPeriod = &v
}
// GetInitialPoolSize returns the InitialPoolSize field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetInitialPoolSize() int32 {
if o == nil || isNil(o.InitialPoolSize) {
var ret int32
return ret
}
return *o.InitialPoolSize
}
// GetInitialPoolSizeOk returns a tuple with the InitialPoolSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetInitialPoolSizeOk() (*int32, bool) {
if o == nil || isNil(o.InitialPoolSize) {
return nil, false
}
return o.InitialPoolSize, true
}
// HasInitialPoolSize returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasInitialPoolSize() bool {
if o != nil && !isNil(o.InitialPoolSize) {
return true
}
return false
}
// SetInitialPoolSize gets a reference to the given int32 and assigns it to the InitialPoolSize field.
func (o *DbIdentitySourceDTO) SetInitialPoolSize(v int32) {
o.InitialPoolSize = &v
}
// GetMaxIdleTime returns the MaxIdleTime field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetMaxIdleTime() int32 {
if o == nil || isNil(o.MaxIdleTime) {
var ret int32
return ret
}
return *o.MaxIdleTime
}
// GetMaxIdleTimeOk returns a tuple with the MaxIdleTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetMaxIdleTimeOk() (*int32, bool) {
if o == nil || isNil(o.MaxIdleTime) {
return nil, false
}
return o.MaxIdleTime, true
}
// HasMaxIdleTime returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasMaxIdleTime() bool {
if o != nil && !isNil(o.MaxIdleTime) {
return true
}
return false
}
// SetMaxIdleTime gets a reference to the given int32 and assigns it to the MaxIdleTime field.
func (o *DbIdentitySourceDTO) SetMaxIdleTime(v int32) {
o.MaxIdleTime = &v
}
// GetMaxPoolSize returns the MaxPoolSize field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetMaxPoolSize() int32 {
if o == nil || isNil(o.MaxPoolSize) {
var ret int32
return ret
}
return *o.MaxPoolSize
}
// GetMaxPoolSizeOk returns a tuple with the MaxPoolSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetMaxPoolSizeOk() (*int32, bool) {
if o == nil || isNil(o.MaxPoolSize) {
return nil, false
}
return o.MaxPoolSize, true
}
// HasMaxPoolSize returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasMaxPoolSize() bool {
if o != nil && !isNil(o.MaxPoolSize) {
return true
}
return false
}
// SetMaxPoolSize gets a reference to the given int32 and assigns it to the MaxPoolSize field.
func (o *DbIdentitySourceDTO) SetMaxPoolSize(v int32) {
o.MaxPoolSize = &v
}
// GetMinPoolSize returns the MinPoolSize field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetMinPoolSize() int32 {
if o == nil || isNil(o.MinPoolSize) {
var ret int32
return ret
}
return *o.MinPoolSize
}
// GetMinPoolSizeOk returns a tuple with the MinPoolSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetMinPoolSizeOk() (*int32, bool) {
if o == nil || isNil(o.MinPoolSize) {
return nil, false
}
return o.MinPoolSize, true
}
// HasMinPoolSize returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasMinPoolSize() bool {
if o != nil && !isNil(o.MinPoolSize) {
return true
}
return false
}
// SetMinPoolSize gets a reference to the given int32 and assigns it to the MinPoolSize field.
func (o *DbIdentitySourceDTO) SetMinPoolSize(v int32) {
o.MinPoolSize = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetName() string {
if o == nil || isNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetNameOk() (*string, bool) {
if o == nil || isNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasName() bool {
if o != nil && !isNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *DbIdentitySourceDTO) SetName(v string) {
o.Name = &v
}
// GetPassword returns the Password field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetPassword() string {
if o == nil || isNil(o.Password) {
var ret string
return ret
}
return *o.Password
}
// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetPasswordOk() (*string, bool) {
if o == nil || isNil(o.Password) {
return nil, false
}
return o.Password, true
}
// HasPassword returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasPassword() bool {
if o != nil && !isNil(o.Password) {
return true
}
return false
}
// SetPassword gets a reference to the given string and assigns it to the Password field.
func (o *DbIdentitySourceDTO) SetPassword(v string) {
o.Password = &v
}
// GetPooledDatasource returns the PooledDatasource field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetPooledDatasource() bool {
if o == nil || isNil(o.PooledDatasource) {
var ret bool
return ret
}
return *o.PooledDatasource
}
// GetPooledDatasourceOk returns a tuple with the PooledDatasource field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetPooledDatasourceOk() (*bool, bool) {
if o == nil || isNil(o.PooledDatasource) {
return nil, false
}
return o.PooledDatasource, true
}
// HasPooledDatasource returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasPooledDatasource() bool {
if o != nil && !isNil(o.PooledDatasource) {
return true
}
return false
}
// SetPooledDatasource gets a reference to the given bool and assigns it to the PooledDatasource field.
func (o *DbIdentitySourceDTO) SetPooledDatasource(v bool) {
o.PooledDatasource = &v
}
// GetRelayCredentialQueryString returns the RelayCredentialQueryString field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetRelayCredentialQueryString() string {
if o == nil || isNil(o.RelayCredentialQueryString) {
var ret string
return ret
}
return *o.RelayCredentialQueryString
}
// GetRelayCredentialQueryStringOk returns a tuple with the RelayCredentialQueryString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetRelayCredentialQueryStringOk() (*string, bool) {
if o == nil || isNil(o.RelayCredentialQueryString) {
return nil, false
}
return o.RelayCredentialQueryString, true
}
// HasRelayCredentialQueryString returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasRelayCredentialQueryString() bool {
if o != nil && !isNil(o.RelayCredentialQueryString) {
return true
}
return false
}
// SetRelayCredentialQueryString gets a reference to the given string and assigns it to the RelayCredentialQueryString field.
func (o *DbIdentitySourceDTO) SetRelayCredentialQueryString(v string) {
o.RelayCredentialQueryString = &v
}
// GetResetCredentialDml returns the ResetCredentialDml field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetResetCredentialDml() string {
if o == nil || isNil(o.ResetCredentialDml) {
var ret string
return ret
}
return *o.ResetCredentialDml
}
// GetResetCredentialDmlOk returns a tuple with the ResetCredentialDml field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetResetCredentialDmlOk() (*string, bool) {
if o == nil || isNil(o.ResetCredentialDml) {
return nil, false
}
return o.ResetCredentialDml, true
}
// HasResetCredentialDml returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasResetCredentialDml() bool {
if o != nil && !isNil(o.ResetCredentialDml) {
return true
}
return false
}
// SetResetCredentialDml gets a reference to the given string and assigns it to the ResetCredentialDml field.
func (o *DbIdentitySourceDTO) SetResetCredentialDml(v string) {
o.ResetCredentialDml = &v
}
// GetRolesQueryString returns the RolesQueryString field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetRolesQueryString() string {
if o == nil || isNil(o.RolesQueryString) {
var ret string
return ret
}
return *o.RolesQueryString
}
// GetRolesQueryStringOk returns a tuple with the RolesQueryString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetRolesQueryStringOk() (*string, bool) {
if o == nil || isNil(o.RolesQueryString) {
return nil, false
}
return o.RolesQueryString, true
}
// HasRolesQueryString returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasRolesQueryString() bool {
if o != nil && !isNil(o.RolesQueryString) {
return true
}
return false
}
// SetRolesQueryString gets a reference to the given string and assigns it to the RolesQueryString field.
func (o *DbIdentitySourceDTO) SetRolesQueryString(v string) {
o.RolesQueryString = &v
}
// GetUseColumnNamesAsPropertyNames returns the UseColumnNamesAsPropertyNames field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetUseColumnNamesAsPropertyNames() bool {
if o == nil || isNil(o.UseColumnNamesAsPropertyNames) {
var ret bool
return ret
}
return *o.UseColumnNamesAsPropertyNames
}
// GetUseColumnNamesAsPropertyNamesOk returns a tuple with the UseColumnNamesAsPropertyNames field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetUseColumnNamesAsPropertyNamesOk() (*bool, bool) {
if o == nil || isNil(o.UseColumnNamesAsPropertyNames) {
return nil, false
}
return o.UseColumnNamesAsPropertyNames, true
}
// HasUseColumnNamesAsPropertyNames returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasUseColumnNamesAsPropertyNames() bool {
if o != nil && !isNil(o.UseColumnNamesAsPropertyNames) {
return true
}
return false
}
// SetUseColumnNamesAsPropertyNames gets a reference to the given bool and assigns it to the UseColumnNamesAsPropertyNames field.
func (o *DbIdentitySourceDTO) SetUseColumnNamesAsPropertyNames(v bool) {
o.UseColumnNamesAsPropertyNames = &v
}
// GetUserPropertiesQueryString returns the UserPropertiesQueryString field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetUserPropertiesQueryString() string {
if o == nil || isNil(o.UserPropertiesQueryString) {
var ret string
return ret
}
return *o.UserPropertiesQueryString
}
// GetUserPropertiesQueryStringOk returns a tuple with the UserPropertiesQueryString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetUserPropertiesQueryStringOk() (*string, bool) {
if o == nil || isNil(o.UserPropertiesQueryString) {
return nil, false
}
return o.UserPropertiesQueryString, true
}
// HasUserPropertiesQueryString returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasUserPropertiesQueryString() bool {
if o != nil && !isNil(o.UserPropertiesQueryString) {
return true
}
return false
}
// SetUserPropertiesQueryString gets a reference to the given string and assigns it to the UserPropertiesQueryString field.
func (o *DbIdentitySourceDTO) SetUserPropertiesQueryString(v string) {
o.UserPropertiesQueryString = &v
}
// GetUserQueryString returns the UserQueryString field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetUserQueryString() string {
if o == nil || isNil(o.UserQueryString) {
var ret string
return ret
}
return *o.UserQueryString
}
// GetUserQueryStringOk returns a tuple with the UserQueryString field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetUserQueryStringOk() (*string, bool) {
if o == nil || isNil(o.UserQueryString) {
return nil, false
}
return o.UserQueryString, true
}
// HasUserQueryString returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasUserQueryString() bool {
if o != nil && !isNil(o.UserQueryString) {
return true
}
return false
}
// SetUserQueryString gets a reference to the given string and assigns it to the UserQueryString field.
func (o *DbIdentitySourceDTO) SetUserQueryString(v string) {
o.UserQueryString = &v
}
// GetX returns the X field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetX() float64 {
if o == nil || isNil(o.X) {
var ret float64
return ret
}
return *o.X
}
// GetXOk returns a tuple with the X field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetXOk() (*float64, bool) {
if o == nil || isNil(o.X) {
return nil, false
}
return o.X, true
}
// HasX returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasX() bool {
if o != nil && !isNil(o.X) {
return true
}
return false
}
// SetX gets a reference to the given float64 and assigns it to the X field.
func (o *DbIdentitySourceDTO) SetX(v float64) {
o.X = &v
}
// GetY returns the Y field value if set, zero value otherwise.
func (o *DbIdentitySourceDTO) GetY() float64 {
if o == nil || isNil(o.Y) {
var ret float64
return ret
}
return *o.Y
}
// GetYOk returns a tuple with the Y field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *DbIdentitySourceDTO) GetYOk() (*float64, bool) {
if o == nil || isNil(o.Y) {
return nil, false
}
return o.Y, true
}
// HasY returns a boolean if a field has been set.
func (o *DbIdentitySourceDTO) HasY() bool {
if o != nil && !isNil(o.Y) {
return true
}
return false
}
// SetY gets a reference to the given float64 and assigns it to the Y field.
func (o *DbIdentitySourceDTO) SetY(v float64) {
o.Y = &v
}
func (o DbIdentitySourceDTO) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.AcquireIncrement) {
toSerialize["acquireIncrement"] = o.AcquireIncrement
}
if !isNil(o.Admin) {
toSerialize["admin"] = o.Admin
}
if !isNil(o.ConnectionUrl) {
toSerialize["connectionUrl"] = o.ConnectionUrl
}
if !isNil(o.CredentialsQueryString) {
toSerialize["credentialsQueryString"] = o.CredentialsQueryString
}
if !isNil(o.CustomClass) {
toSerialize["customClass"] = o.CustomClass
}
if !isNil(o.Description) {
toSerialize["description"] = o.Description
}
if !isNil(o.Driver) {
toSerialize["driver"] = o.Driver
}
if !isNil(o.DriverName) {
toSerialize["driverName"] = o.DriverName
}
if !isNil(o.ElementId) {
toSerialize["elementId"] = o.ElementId
}
if !isNil(o.Id) {
toSerialize["id"] = o.Id
}
if !isNil(o.IdleConnectionTestPeriod) {
toSerialize["idleConnectionTestPeriod"] = o.IdleConnectionTestPeriod
}
if !isNil(o.InitialPoolSize) {
toSerialize["initialPoolSize"] = o.InitialPoolSize
}
if !isNil(o.MaxIdleTime) {
toSerialize["maxIdleTime"] = o.MaxIdleTime
}
if !isNil(o.MaxPoolSize) {
toSerialize["maxPoolSize"] = o.MaxPoolSize
}
if !isNil(o.MinPoolSize) {
toSerialize["minPoolSize"] = o.MinPoolSize
}
if !isNil(o.Name) {
toSerialize["name"] = o.Name
}
if !isNil(o.Password) {
toSerialize["password"] = o.Password
}
if !isNil(o.PooledDatasource) {
toSerialize["pooledDatasource"] = o.PooledDatasource
}
if !isNil(o.RelayCredentialQueryString) {
toSerialize["relayCredentialQueryString"] = o.RelayCredentialQueryString
}
if !isNil(o.ResetCredentialDml) {
toSerialize["resetCredentialDml"] = o.ResetCredentialDml
}
if !isNil(o.RolesQueryString) {
toSerialize["rolesQueryString"] = o.RolesQueryString
}
if !isNil(o.UseColumnNamesAsPropertyNames) {
toSerialize["useColumnNamesAsPropertyNames"] = o.UseColumnNamesAsPropertyNames
}
if !isNil(o.UserPropertiesQueryString) {
toSerialize["userPropertiesQueryString"] = o.UserPropertiesQueryString
}
if !isNil(o.UserQueryString) {
toSerialize["userQueryString"] = o.UserQueryString
}
if !isNil(o.X) {
toSerialize["x"] = o.X
}
if !isNil(o.Y) {
toSerialize["y"] = o.Y
}
for key, value := range o.AdditionalProperties {
toSerialize[key] = value
}
return json.Marshal(toSerialize)
}
func (o *DbIdentitySourceDTO) UnmarshalJSON(bytes []byte) (err error) {
varDbIdentitySourceDTO := _DbIdentitySourceDTO{}
if err = json.Unmarshal(bytes, &varDbIdentitySourceDTO); err == nil {
*o = DbIdentitySourceDTO(varDbIdentitySourceDTO)
}
additionalProperties := make(map[string]interface{})
if err = json.Unmarshal(bytes, &additionalProperties); err == nil {
delete(additionalProperties, "acquireIncrement")
delete(additionalProperties, "admin")
delete(additionalProperties, "connectionUrl")