-
Notifications
You must be signed in to change notification settings - Fork 5
/
model_legacy_atlas_tenant_cluster_upgrade_request.go
1337 lines (1129 loc) · 46.6 KB
/
model_legacy_atlas_tenant_cluster_upgrade_request.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
// Code based on the AtlasAPI V2 OpenAPI file
package admin
import (
"encoding/json"
"time"
)
// LegacyAtlasTenantClusterUpgradeRequest Request containing target state of tenant cluster to be upgraded
type LegacyAtlasTenantClusterUpgradeRequest struct {
// If reconfiguration is necessary to regain a primary due to a regional outage, submit this field alongside your topology reconfiguration to request a new regional outage resistant topology. Forced reconfigurations during an outage of the majority of electable nodes carry a risk of data loss if replicated writes (even majority committed writes) have not been replicated to the new primary node. MongoDB Atlas docs contain more information. To proceed with an operation which carries that risk, set **acceptDataRisksAndForceReplicaSetReconfig** to the current date.
AcceptDataRisksAndForceReplicaSetReconfig *time.Time `json:"acceptDataRisksAndForceReplicaSetReconfig,omitempty"`
AutoScaling *ClusterAutoScalingSettings `json:"autoScaling,omitempty"`
// Flag that indicates whether the cluster can perform backups. If set to `true`, the cluster can perform backups. You must set this value to `true` for NVMe clusters. Backup uses Cloud Backups for dedicated clusters and Shared Cluster Backups for tenant clusters. If set to `false`, the cluster doesn't use MongoDB Cloud backups.
BackupEnabled *bool `json:"backupEnabled,omitempty"`
BiConnector *BiConnector `json:"biConnector,omitempty"`
// Configuration of nodes that comprise the cluster.
ClusterType *string `json:"clusterType,omitempty"`
ConnectionStrings *ClusterConnectionStrings `json:"connectionStrings,omitempty"`
// Date and time when MongoDB Cloud created this serverless instance. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
// Read only field.
CreateDate *time.Time `json:"createDate,omitempty"`
// Storage capacity that the host's root volume possesses expressed in gigabytes. Increase this number to add capacity. MongoDB Cloud requires this parameter if you set **replicationSpecs**. If you specify a disk size below the minimum (10 GB), this parameter defaults to the minimum disk size value. Storage charge calculations depend on whether you choose the default value or a custom value. The maximum value for disk storage cannot exceed 50 times the maximum RAM for the selected cluster. If you require more storage space, consider upgrading your cluster to a higher tier.
DiskSizeGB *float64 `json:"diskSizeGB,omitempty"`
// Disk warming mode selection.
DiskWarmingMode *string `json:"diskWarmingMode,omitempty"`
// Cloud service provider that manages your customer keys to provide an additional layer of Encryption at Rest for the cluster.
EncryptionAtRestProvider *string `json:"encryptionAtRestProvider,omitempty"`
// Unique 24-hexadecimal character string that identifies the project.
// Read only field.
GroupId *string `json:"groupId,omitempty"`
// Unique 24-hexadecimal digit string that identifies the cluster.
// Read only field.
Id *string `json:"id,omitempty"`
// Collection of key-value pairs between 1 to 255 characters in length that tag and categorize the cluster. The MongoDB Cloud console doesn't display your labels. Cluster labels are deprecated and will be removed in a future release. We strongly recommend that you use [resource tags](https://dochub.mongodb.org/core/add-cluster-tag-atlas) instead.
// Deprecated
Labels *[]ComponentLabel `json:"labels,omitempty"`
// List of one or more Uniform Resource Locators (URLs) that point to API sub-resources, related API resources, or both. RFC 5988 outlines these relationships.
// Read only field.
Links *[]Link `json:"links,omitempty"`
// Major MongoDB version of the cluster. MongoDB Cloud deploys the cluster with the latest stable release of the specified version.
MongoDBMajorVersion *string `json:"mongoDBMajorVersion,omitempty"`
// Version of MongoDB that the cluster runs.
MongoDBVersion *string `json:"mongoDBVersion,omitempty"`
// Base connection string that you can use to connect to the cluster. MongoDB Cloud displays the string only after the cluster starts, not while it builds the cluster.
// Read only field.
MongoURI *string `json:"mongoURI,omitempty"`
// Date and time when someone last updated the connection string. MongoDB Cloud represents this timestamp in ISO 8601 format in UTC.
// Read only field.
MongoURIUpdated *time.Time `json:"mongoURIUpdated,omitempty"`
// Connection string that you can use to connect to the cluster including the `replicaSet`, `ssl`, and `authSource` query parameters with values appropriate for the cluster. You may need to add MongoDB database users. The response returns this parameter once the cluster can receive requests, not while it builds the cluster.
// Read only field.
MongoURIWithOptions *string `json:"mongoURIWithOptions,omitempty"`
// Human-readable label that identifies the cluster.
Name string `json:"name"`
// Number of shards up to 50 to deploy for a sharded cluster. The resource returns `1` to indicate a replica set and values of `2` and higher to indicate a sharded cluster. The returned value equals the number of shards in the cluster.
NumShards *int `json:"numShards,omitempty"`
// Flag that indicates whether the cluster is paused.
Paused *bool `json:"paused,omitempty"`
// Flag that indicates whether the cluster uses continuous cloud backups.
PitEnabled *bool `json:"pitEnabled,omitempty"`
// Flag that indicates whether the M10 or higher cluster can perform Cloud Backups. If set to `true`, the cluster can perform backups. If this and **backupEnabled** are set to `false`, the cluster doesn't use MongoDB Cloud backups.
ProviderBackupEnabled *bool `json:"providerBackupEnabled,omitempty"`
ProviderSettings *ClusterProviderSettings `json:"providerSettings,omitempty"`
// Number of members that belong to the replica set. Each member retains a copy of your databases, providing high availability and data redundancy. Use **replicationSpecs** instead.
// Deprecated
ReplicationFactor *int `json:"replicationFactor,omitempty"`
// Physical location where MongoDB Cloud provisions cluster nodes.
ReplicationSpec *map[string]RegionSpec `json:"replicationSpec,omitempty"`
// List of settings that configure your cluster regions. - For Global Clusters, each object in the array represents one zone where MongoDB Cloud deploys your clusters nodes. - For non-Global sharded clusters and replica sets, the single object represents where MongoDB Cloud deploys your clusters nodes.
ReplicationSpecs *[]LegacyReplicationSpec `json:"replicationSpecs,omitempty"`
// Root Certificate Authority that MongoDB Atlas clusters uses. MongoDB Cloud supports Internet Security Research Group.
RootCertType *string `json:"rootCertType,omitempty"`
// Connection string that you can use to connect to the cluster. The `+srv` modifier forces the connection to use Transport Layer Security (TLS). The `mongoURI` parameter lists additional options.
// Read only field.
SrvAddress *string `json:"srvAddress,omitempty"`
// Human-readable label that indicates the current operating condition of the cluster.
// Read only field.
StateName *string `json:"stateName,omitempty"`
// List that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the cluster.
Tags *[]ResourceTag `json:"tags,omitempty"`
// Flag that indicates whether termination protection is enabled on the cluster. If set to `true`, MongoDB Cloud won't delete the cluster. If set to `false`, MongoDB Cloud will delete the cluster.
TerminationProtectionEnabled *bool `json:"terminationProtectionEnabled,omitempty"`
// Method by which the cluster maintains the MongoDB versions. If value is `CONTINUOUS`, you must not specify **mongoDBMajorVersion**.
VersionReleaseSystem *string `json:"versionReleaseSystem,omitempty"`
}
// NewLegacyAtlasTenantClusterUpgradeRequest instantiates a new LegacyAtlasTenantClusterUpgradeRequest 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 NewLegacyAtlasTenantClusterUpgradeRequest(name string) *LegacyAtlasTenantClusterUpgradeRequest {
this := LegacyAtlasTenantClusterUpgradeRequest{}
var diskWarmingMode string = "FULLY_WARMED"
this.DiskWarmingMode = &diskWarmingMode
var mongoDBMajorVersion string = "6.0"
this.MongoDBMajorVersion = &mongoDBMajorVersion
this.Name = name
var numShards int = 1
this.NumShards = &numShards
var replicationFactor int = 3
this.ReplicationFactor = &replicationFactor
var rootCertType string = "ISRGROOTX1"
this.RootCertType = &rootCertType
var terminationProtectionEnabled bool = false
this.TerminationProtectionEnabled = &terminationProtectionEnabled
var versionReleaseSystem string = "LTS"
this.VersionReleaseSystem = &versionReleaseSystem
return &this
}
// NewLegacyAtlasTenantClusterUpgradeRequestWithDefaults instantiates a new LegacyAtlasTenantClusterUpgradeRequest 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 NewLegacyAtlasTenantClusterUpgradeRequestWithDefaults() *LegacyAtlasTenantClusterUpgradeRequest {
this := LegacyAtlasTenantClusterUpgradeRequest{}
var diskWarmingMode string = "FULLY_WARMED"
this.DiskWarmingMode = &diskWarmingMode
var mongoDBMajorVersion string = "6.0"
this.MongoDBMajorVersion = &mongoDBMajorVersion
var numShards int = 1
this.NumShards = &numShards
var replicationFactor int = 3
this.ReplicationFactor = &replicationFactor
var rootCertType string = "ISRGROOTX1"
this.RootCertType = &rootCertType
var terminationProtectionEnabled bool = false
this.TerminationProtectionEnabled = &terminationProtectionEnabled
var versionReleaseSystem string = "LTS"
this.VersionReleaseSystem = &versionReleaseSystem
return &this
}
// GetAcceptDataRisksAndForceReplicaSetReconfig returns the AcceptDataRisksAndForceReplicaSetReconfig field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetAcceptDataRisksAndForceReplicaSetReconfig() time.Time {
if o == nil || IsNil(o.AcceptDataRisksAndForceReplicaSetReconfig) {
var ret time.Time
return ret
}
return *o.AcceptDataRisksAndForceReplicaSetReconfig
}
// GetAcceptDataRisksAndForceReplicaSetReconfigOk returns a tuple with the AcceptDataRisksAndForceReplicaSetReconfig field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetAcceptDataRisksAndForceReplicaSetReconfigOk() (*time.Time, bool) {
if o == nil || IsNil(o.AcceptDataRisksAndForceReplicaSetReconfig) {
return nil, false
}
return o.AcceptDataRisksAndForceReplicaSetReconfig, true
}
// HasAcceptDataRisksAndForceReplicaSetReconfig returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasAcceptDataRisksAndForceReplicaSetReconfig() bool {
if o != nil && !IsNil(o.AcceptDataRisksAndForceReplicaSetReconfig) {
return true
}
return false
}
// SetAcceptDataRisksAndForceReplicaSetReconfig gets a reference to the given time.Time and assigns it to the AcceptDataRisksAndForceReplicaSetReconfig field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetAcceptDataRisksAndForceReplicaSetReconfig(v time.Time) {
o.AcceptDataRisksAndForceReplicaSetReconfig = &v
}
// GetAutoScaling returns the AutoScaling field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetAutoScaling() ClusterAutoScalingSettings {
if o == nil || IsNil(o.AutoScaling) {
var ret ClusterAutoScalingSettings
return ret
}
return *o.AutoScaling
}
// GetAutoScalingOk returns a tuple with the AutoScaling field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetAutoScalingOk() (*ClusterAutoScalingSettings, bool) {
if o == nil || IsNil(o.AutoScaling) {
return nil, false
}
return o.AutoScaling, true
}
// HasAutoScaling returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasAutoScaling() bool {
if o != nil && !IsNil(o.AutoScaling) {
return true
}
return false
}
// SetAutoScaling gets a reference to the given ClusterAutoScalingSettings and assigns it to the AutoScaling field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetAutoScaling(v ClusterAutoScalingSettings) {
o.AutoScaling = &v
}
// GetBackupEnabled returns the BackupEnabled field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetBackupEnabled() bool {
if o == nil || IsNil(o.BackupEnabled) {
var ret bool
return ret
}
return *o.BackupEnabled
}
// GetBackupEnabledOk returns a tuple with the BackupEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetBackupEnabledOk() (*bool, bool) {
if o == nil || IsNil(o.BackupEnabled) {
return nil, false
}
return o.BackupEnabled, true
}
// HasBackupEnabled returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasBackupEnabled() bool {
if o != nil && !IsNil(o.BackupEnabled) {
return true
}
return false
}
// SetBackupEnabled gets a reference to the given bool and assigns it to the BackupEnabled field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetBackupEnabled(v bool) {
o.BackupEnabled = &v
}
// GetBiConnector returns the BiConnector field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetBiConnector() BiConnector {
if o == nil || IsNil(o.BiConnector) {
var ret BiConnector
return ret
}
return *o.BiConnector
}
// GetBiConnectorOk returns a tuple with the BiConnector field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetBiConnectorOk() (*BiConnector, bool) {
if o == nil || IsNil(o.BiConnector) {
return nil, false
}
return o.BiConnector, true
}
// HasBiConnector returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasBiConnector() bool {
if o != nil && !IsNil(o.BiConnector) {
return true
}
return false
}
// SetBiConnector gets a reference to the given BiConnector and assigns it to the BiConnector field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetBiConnector(v BiConnector) {
o.BiConnector = &v
}
// GetClusterType returns the ClusterType field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetClusterType() string {
if o == nil || IsNil(o.ClusterType) {
var ret string
return ret
}
return *o.ClusterType
}
// GetClusterTypeOk returns a tuple with the ClusterType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetClusterTypeOk() (*string, bool) {
if o == nil || IsNil(o.ClusterType) {
return nil, false
}
return o.ClusterType, true
}
// HasClusterType returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasClusterType() bool {
if o != nil && !IsNil(o.ClusterType) {
return true
}
return false
}
// SetClusterType gets a reference to the given string and assigns it to the ClusterType field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetClusterType(v string) {
o.ClusterType = &v
}
// GetConnectionStrings returns the ConnectionStrings field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetConnectionStrings() ClusterConnectionStrings {
if o == nil || IsNil(o.ConnectionStrings) {
var ret ClusterConnectionStrings
return ret
}
return *o.ConnectionStrings
}
// GetConnectionStringsOk returns a tuple with the ConnectionStrings field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetConnectionStringsOk() (*ClusterConnectionStrings, bool) {
if o == nil || IsNil(o.ConnectionStrings) {
return nil, false
}
return o.ConnectionStrings, true
}
// HasConnectionStrings returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasConnectionStrings() bool {
if o != nil && !IsNil(o.ConnectionStrings) {
return true
}
return false
}
// SetConnectionStrings gets a reference to the given ClusterConnectionStrings and assigns it to the ConnectionStrings field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetConnectionStrings(v ClusterConnectionStrings) {
o.ConnectionStrings = &v
}
// GetCreateDate returns the CreateDate field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetCreateDate() time.Time {
if o == nil || IsNil(o.CreateDate) {
var ret time.Time
return ret
}
return *o.CreateDate
}
// GetCreateDateOk returns a tuple with the CreateDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetCreateDateOk() (*time.Time, bool) {
if o == nil || IsNil(o.CreateDate) {
return nil, false
}
return o.CreateDate, true
}
// HasCreateDate returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasCreateDate() bool {
if o != nil && !IsNil(o.CreateDate) {
return true
}
return false
}
// SetCreateDate gets a reference to the given time.Time and assigns it to the CreateDate field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetCreateDate(v time.Time) {
o.CreateDate = &v
}
// GetDiskSizeGB returns the DiskSizeGB field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetDiskSizeGB() float64 {
if o == nil || IsNil(o.DiskSizeGB) {
var ret float64
return ret
}
return *o.DiskSizeGB
}
// GetDiskSizeGBOk returns a tuple with the DiskSizeGB field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetDiskSizeGBOk() (*float64, bool) {
if o == nil || IsNil(o.DiskSizeGB) {
return nil, false
}
return o.DiskSizeGB, true
}
// HasDiskSizeGB returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasDiskSizeGB() bool {
if o != nil && !IsNil(o.DiskSizeGB) {
return true
}
return false
}
// SetDiskSizeGB gets a reference to the given float64 and assigns it to the DiskSizeGB field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetDiskSizeGB(v float64) {
o.DiskSizeGB = &v
}
// GetDiskWarmingMode returns the DiskWarmingMode field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetDiskWarmingMode() string {
if o == nil || IsNil(o.DiskWarmingMode) {
var ret string
return ret
}
return *o.DiskWarmingMode
}
// GetDiskWarmingModeOk returns a tuple with the DiskWarmingMode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetDiskWarmingModeOk() (*string, bool) {
if o == nil || IsNil(o.DiskWarmingMode) {
return nil, false
}
return o.DiskWarmingMode, true
}
// HasDiskWarmingMode returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasDiskWarmingMode() bool {
if o != nil && !IsNil(o.DiskWarmingMode) {
return true
}
return false
}
// SetDiskWarmingMode gets a reference to the given string and assigns it to the DiskWarmingMode field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetDiskWarmingMode(v string) {
o.DiskWarmingMode = &v
}
// GetEncryptionAtRestProvider returns the EncryptionAtRestProvider field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetEncryptionAtRestProvider() string {
if o == nil || IsNil(o.EncryptionAtRestProvider) {
var ret string
return ret
}
return *o.EncryptionAtRestProvider
}
// GetEncryptionAtRestProviderOk returns a tuple with the EncryptionAtRestProvider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetEncryptionAtRestProviderOk() (*string, bool) {
if o == nil || IsNil(o.EncryptionAtRestProvider) {
return nil, false
}
return o.EncryptionAtRestProvider, true
}
// HasEncryptionAtRestProvider returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasEncryptionAtRestProvider() bool {
if o != nil && !IsNil(o.EncryptionAtRestProvider) {
return true
}
return false
}
// SetEncryptionAtRestProvider gets a reference to the given string and assigns it to the EncryptionAtRestProvider field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetEncryptionAtRestProvider(v string) {
o.EncryptionAtRestProvider = &v
}
// GetGroupId returns the GroupId field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetGroupId() string {
if o == nil || IsNil(o.GroupId) {
var ret string
return ret
}
return *o.GroupId
}
// GetGroupIdOk returns a tuple with the GroupId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetGroupIdOk() (*string, bool) {
if o == nil || IsNil(o.GroupId) {
return nil, false
}
return o.GroupId, true
}
// HasGroupId returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasGroupId() bool {
if o != nil && !IsNil(o.GroupId) {
return true
}
return false
}
// SetGroupId gets a reference to the given string and assigns it to the GroupId field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetGroupId(v string) {
o.GroupId = &v
}
// GetId returns the Id field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetId() string {
if o == nil || IsNil(o.Id) {
var ret string
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 *LegacyAtlasTenantClusterUpgradeRequest) GetIdOk() (*string, 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 *LegacyAtlasTenantClusterUpgradeRequest) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetId(v string) {
o.Id = &v
}
// GetLabels returns the Labels field value if set, zero value otherwise
// Deprecated
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetLabels() []ComponentLabel {
if o == nil || IsNil(o.Labels) {
var ret []ComponentLabel
return ret
}
return *o.Labels
}
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetLabelsOk() (*[]ComponentLabel, bool) {
if o == nil || IsNil(o.Labels) {
return nil, false
}
return o.Labels, true
}
// HasLabels returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasLabels() bool {
if o != nil && !IsNil(o.Labels) {
return true
}
return false
}
// SetLabels gets a reference to the given []ComponentLabel and assigns it to the Labels field.
// Deprecated
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetLabels(v []ComponentLabel) {
o.Labels = &v
}
// GetLinks returns the Links field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetLinks() []Link {
if o == nil || IsNil(o.Links) {
var ret []Link
return ret
}
return *o.Links
}
// GetLinksOk returns a tuple with the Links field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetLinksOk() (*[]Link, bool) {
if o == nil || IsNil(o.Links) {
return nil, false
}
return o.Links, true
}
// HasLinks returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasLinks() bool {
if o != nil && !IsNil(o.Links) {
return true
}
return false
}
// SetLinks gets a reference to the given []Link and assigns it to the Links field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetLinks(v []Link) {
o.Links = &v
}
// GetMongoDBMajorVersion returns the MongoDBMajorVersion field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetMongoDBMajorVersion() string {
if o == nil || IsNil(o.MongoDBMajorVersion) {
var ret string
return ret
}
return *o.MongoDBMajorVersion
}
// GetMongoDBMajorVersionOk returns a tuple with the MongoDBMajorVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetMongoDBMajorVersionOk() (*string, bool) {
if o == nil || IsNil(o.MongoDBMajorVersion) {
return nil, false
}
return o.MongoDBMajorVersion, true
}
// HasMongoDBMajorVersion returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasMongoDBMajorVersion() bool {
if o != nil && !IsNil(o.MongoDBMajorVersion) {
return true
}
return false
}
// SetMongoDBMajorVersion gets a reference to the given string and assigns it to the MongoDBMajorVersion field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetMongoDBMajorVersion(v string) {
o.MongoDBMajorVersion = &v
}
// GetMongoDBVersion returns the MongoDBVersion field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetMongoDBVersion() string {
if o == nil || IsNil(o.MongoDBVersion) {
var ret string
return ret
}
return *o.MongoDBVersion
}
// GetMongoDBVersionOk returns a tuple with the MongoDBVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetMongoDBVersionOk() (*string, bool) {
if o == nil || IsNil(o.MongoDBVersion) {
return nil, false
}
return o.MongoDBVersion, true
}
// HasMongoDBVersion returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasMongoDBVersion() bool {
if o != nil && !IsNil(o.MongoDBVersion) {
return true
}
return false
}
// SetMongoDBVersion gets a reference to the given string and assigns it to the MongoDBVersion field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetMongoDBVersion(v string) {
o.MongoDBVersion = &v
}
// GetMongoURI returns the MongoURI field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetMongoURI() string {
if o == nil || IsNil(o.MongoURI) {
var ret string
return ret
}
return *o.MongoURI
}
// GetMongoURIOk returns a tuple with the MongoURI field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetMongoURIOk() (*string, bool) {
if o == nil || IsNil(o.MongoURI) {
return nil, false
}
return o.MongoURI, true
}
// HasMongoURI returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasMongoURI() bool {
if o != nil && !IsNil(o.MongoURI) {
return true
}
return false
}
// SetMongoURI gets a reference to the given string and assigns it to the MongoURI field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetMongoURI(v string) {
o.MongoURI = &v
}
// GetMongoURIUpdated returns the MongoURIUpdated field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetMongoURIUpdated() time.Time {
if o == nil || IsNil(o.MongoURIUpdated) {
var ret time.Time
return ret
}
return *o.MongoURIUpdated
}
// GetMongoURIUpdatedOk returns a tuple with the MongoURIUpdated field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetMongoURIUpdatedOk() (*time.Time, bool) {
if o == nil || IsNil(o.MongoURIUpdated) {
return nil, false
}
return o.MongoURIUpdated, true
}
// HasMongoURIUpdated returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasMongoURIUpdated() bool {
if o != nil && !IsNil(o.MongoURIUpdated) {
return true
}
return false
}
// SetMongoURIUpdated gets a reference to the given time.Time and assigns it to the MongoURIUpdated field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetMongoURIUpdated(v time.Time) {
o.MongoURIUpdated = &v
}
// GetMongoURIWithOptions returns the MongoURIWithOptions field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetMongoURIWithOptions() string {
if o == nil || IsNil(o.MongoURIWithOptions) {
var ret string
return ret
}
return *o.MongoURIWithOptions
}
// GetMongoURIWithOptionsOk returns a tuple with the MongoURIWithOptions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetMongoURIWithOptionsOk() (*string, bool) {
if o == nil || IsNil(o.MongoURIWithOptions) {
return nil, false
}
return o.MongoURIWithOptions, true
}
// HasMongoURIWithOptions returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasMongoURIWithOptions() bool {
if o != nil && !IsNil(o.MongoURIWithOptions) {
return true
}
return false
}
// SetMongoURIWithOptions gets a reference to the given string and assigns it to the MongoURIWithOptions field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetMongoURIWithOptions(v string) {
o.MongoURIWithOptions = &v
}
// GetName returns the Name field value
func (o *LegacyAtlasTenantClusterUpgradeRequest) 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 *LegacyAtlasTenantClusterUpgradeRequest) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Name, true
}
// SetName sets field value
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetName(v string) {
o.Name = v
}
// GetNumShards returns the NumShards field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetNumShards() int {
if o == nil || IsNil(o.NumShards) {
var ret int
return ret
}
return *o.NumShards
}
// GetNumShardsOk returns a tuple with the NumShards field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetNumShardsOk() (*int, bool) {
if o == nil || IsNil(o.NumShards) {
return nil, false
}
return o.NumShards, true
}
// HasNumShards returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasNumShards() bool {
if o != nil && !IsNil(o.NumShards) {
return true
}
return false
}
// SetNumShards gets a reference to the given int and assigns it to the NumShards field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetNumShards(v int) {
o.NumShards = &v
}
// GetPaused returns the Paused field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetPaused() bool {
if o == nil || IsNil(o.Paused) {
var ret bool
return ret
}
return *o.Paused
}
// GetPausedOk returns a tuple with the Paused field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetPausedOk() (*bool, bool) {
if o == nil || IsNil(o.Paused) {
return nil, false
}
return o.Paused, true
}
// HasPaused returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasPaused() bool {
if o != nil && !IsNil(o.Paused) {
return true
}
return false
}
// SetPaused gets a reference to the given bool and assigns it to the Paused field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetPaused(v bool) {
o.Paused = &v
}
// GetPitEnabled returns the PitEnabled field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetPitEnabled() bool {
if o == nil || IsNil(o.PitEnabled) {
var ret bool
return ret
}
return *o.PitEnabled
}
// GetPitEnabledOk returns a tuple with the PitEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetPitEnabledOk() (*bool, bool) {
if o == nil || IsNil(o.PitEnabled) {
return nil, false
}
return o.PitEnabled, true
}
// HasPitEnabled returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasPitEnabled() bool {
if o != nil && !IsNil(o.PitEnabled) {
return true
}
return false
}
// SetPitEnabled gets a reference to the given bool and assigns it to the PitEnabled field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetPitEnabled(v bool) {
o.PitEnabled = &v
}
// GetProviderBackupEnabled returns the ProviderBackupEnabled field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetProviderBackupEnabled() bool {
if o == nil || IsNil(o.ProviderBackupEnabled) {
var ret bool
return ret
}
return *o.ProviderBackupEnabled
}
// GetProviderBackupEnabledOk returns a tuple with the ProviderBackupEnabled field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetProviderBackupEnabledOk() (*bool, bool) {
if o == nil || IsNil(o.ProviderBackupEnabled) {
return nil, false
}
return o.ProviderBackupEnabled, true
}
// HasProviderBackupEnabled returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasProviderBackupEnabled() bool {
if o != nil && !IsNil(o.ProviderBackupEnabled) {
return true
}
return false
}
// SetProviderBackupEnabled gets a reference to the given bool and assigns it to the ProviderBackupEnabled field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetProviderBackupEnabled(v bool) {
o.ProviderBackupEnabled = &v
}
// GetProviderSettings returns the ProviderSettings field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetProviderSettings() ClusterProviderSettings {
if o == nil || IsNil(o.ProviderSettings) {
var ret ClusterProviderSettings
return ret
}
return *o.ProviderSettings
}
// GetProviderSettingsOk returns a tuple with the ProviderSettings field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetProviderSettingsOk() (*ClusterProviderSettings, bool) {
if o == nil || IsNil(o.ProviderSettings) {
return nil, false
}
return o.ProviderSettings, true
}
// HasProviderSettings returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasProviderSettings() bool {
if o != nil && !IsNil(o.ProviderSettings) {
return true
}
return false
}
// SetProviderSettings gets a reference to the given ClusterProviderSettings and assigns it to the ProviderSettings field.
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetProviderSettings(v ClusterProviderSettings) {
o.ProviderSettings = &v
}
// GetReplicationFactor returns the ReplicationFactor field value if set, zero value otherwise
// Deprecated
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetReplicationFactor() int {
if o == nil || IsNil(o.ReplicationFactor) {
var ret int
return ret
}
return *o.ReplicationFactor
}
// GetReplicationFactorOk returns a tuple with the ReplicationFactor field value if set, nil otherwise
// and a boolean to check if the value has been set.
// Deprecated
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetReplicationFactorOk() (*int, bool) {
if o == nil || IsNil(o.ReplicationFactor) {
return nil, false
}
return o.ReplicationFactor, true
}
// HasReplicationFactor returns a boolean if a field has been set.
func (o *LegacyAtlasTenantClusterUpgradeRequest) HasReplicationFactor() bool {
if o != nil && !IsNil(o.ReplicationFactor) {
return true
}
return false
}
// SetReplicationFactor gets a reference to the given int and assigns it to the ReplicationFactor field.
// Deprecated
func (o *LegacyAtlasTenantClusterUpgradeRequest) SetReplicationFactor(v int) {
o.ReplicationFactor = &v
}
// GetReplicationSpec returns the ReplicationSpec field value if set, zero value otherwise
func (o *LegacyAtlasTenantClusterUpgradeRequest) GetReplicationSpec() map[string]RegionSpec {
if o == nil || IsNil(o.ReplicationSpec) {
var ret map[string]RegionSpec
return ret
}
return *o.ReplicationSpec
}
// GetReplicationSpecOk returns a tuple with the ReplicationSpec field value if set, nil otherwise
// and a boolean to check if the value has been set.