-
Notifications
You must be signed in to change notification settings - Fork 4
/
model_regional_deployment.go
948 lines (809 loc) · 26.1 KB
/
model_regional_deployment.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
/*
Koyeb Rest API
The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package koyeb
import (
"encoding/json"
"time"
)
// RegionalDeployment struct for RegionalDeployment
type RegionalDeployment struct {
Id *string `json:"id,omitempty"`
CreatedAt *time.Time `json:"created_at,omitempty"`
UpdatedAt *time.Time `json:"updated_at,omitempty"`
AllocatedAt *time.Time `json:"allocated_at,omitempty"`
StartedAt *time.Time `json:"started_at,omitempty"`
SucceededAt *time.Time `json:"succeeded_at,omitempty"`
TerminatedAt *time.Time `json:"terminated_at,omitempty"`
OrganizationId *string `json:"organization_id,omitempty"`
AppId *string `json:"app_id,omitempty"`
ServiceId *string `json:"service_id,omitempty"`
Region *string `json:"region,omitempty"`
ParentId *string `json:"parent_id,omitempty"`
ChildId *string `json:"child_id,omitempty"`
Status *RegionalDeploymentStatus `json:"status,omitempty"`
Messages []string `json:"messages,omitempty"`
Definition *RegionalDeploymentDefinition `json:"definition,omitempty"`
Datacenters []string `json:"datacenters,omitempty"`
Metadata *RegionalDeploymentMetadata `json:"metadata,omitempty"`
ProvisioningInfo *DeploymentProvisioningInfo `json:"provisioning_info,omitempty"`
UseKumaV2 *bool `json:"use_kuma_v2,omitempty"`
UseKata *bool `json:"use_kata,omitempty"`
Version *string `json:"version,omitempty"`
DeploymentGroup *string `json:"deployment_group,omitempty"`
DeploymentId *string `json:"deployment_id,omitempty"`
}
// NewRegionalDeployment instantiates a new RegionalDeployment 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 NewRegionalDeployment() *RegionalDeployment {
this := RegionalDeployment{}
var status RegionalDeploymentStatus = REGIONALDEPLOYMENTSTATUS_PENDING
this.Status = &status
return &this
}
// NewRegionalDeploymentWithDefaults instantiates a new RegionalDeployment 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 NewRegionalDeploymentWithDefaults() *RegionalDeployment {
this := RegionalDeployment{}
var status RegionalDeploymentStatus = REGIONALDEPLOYMENTSTATUS_PENDING
this.Status = &status
return &this
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *RegionalDeployment) 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 *RegionalDeployment) 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 *RegionalDeployment) 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 *RegionalDeployment) SetId(v string) {
o.Id = &v
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *RegionalDeployment) GetCreatedAt() time.Time {
if o == nil || isNil(o.CreatedAt) {
var ret time.Time
return ret
}
return *o.CreatedAt
}
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetCreatedAtOk() (*time.Time, bool) {
if o == nil || isNil(o.CreatedAt) {
return nil, false
}
return o.CreatedAt, true
}
// HasCreatedAt returns a boolean if a field has been set.
func (o *RegionalDeployment) HasCreatedAt() bool {
if o != nil && !isNil(o.CreatedAt) {
return true
}
return false
}
// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *RegionalDeployment) SetCreatedAt(v time.Time) {
o.CreatedAt = &v
}
// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise.
func (o *RegionalDeployment) GetUpdatedAt() time.Time {
if o == nil || isNil(o.UpdatedAt) {
var ret time.Time
return ret
}
return *o.UpdatedAt
}
// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetUpdatedAtOk() (*time.Time, bool) {
if o == nil || isNil(o.UpdatedAt) {
return nil, false
}
return o.UpdatedAt, true
}
// HasUpdatedAt returns a boolean if a field has been set.
func (o *RegionalDeployment) HasUpdatedAt() bool {
if o != nil && !isNil(o.UpdatedAt) {
return true
}
return false
}
// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field.
func (o *RegionalDeployment) SetUpdatedAt(v time.Time) {
o.UpdatedAt = &v
}
// GetAllocatedAt returns the AllocatedAt field value if set, zero value otherwise.
func (o *RegionalDeployment) GetAllocatedAt() time.Time {
if o == nil || isNil(o.AllocatedAt) {
var ret time.Time
return ret
}
return *o.AllocatedAt
}
// GetAllocatedAtOk returns a tuple with the AllocatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetAllocatedAtOk() (*time.Time, bool) {
if o == nil || isNil(o.AllocatedAt) {
return nil, false
}
return o.AllocatedAt, true
}
// HasAllocatedAt returns a boolean if a field has been set.
func (o *RegionalDeployment) HasAllocatedAt() bool {
if o != nil && !isNil(o.AllocatedAt) {
return true
}
return false
}
// SetAllocatedAt gets a reference to the given time.Time and assigns it to the AllocatedAt field.
func (o *RegionalDeployment) SetAllocatedAt(v time.Time) {
o.AllocatedAt = &v
}
// GetStartedAt returns the StartedAt field value if set, zero value otherwise.
func (o *RegionalDeployment) GetStartedAt() time.Time {
if o == nil || isNil(o.StartedAt) {
var ret time.Time
return ret
}
return *o.StartedAt
}
// GetStartedAtOk returns a tuple with the StartedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetStartedAtOk() (*time.Time, bool) {
if o == nil || isNil(o.StartedAt) {
return nil, false
}
return o.StartedAt, true
}
// HasStartedAt returns a boolean if a field has been set.
func (o *RegionalDeployment) HasStartedAt() bool {
if o != nil && !isNil(o.StartedAt) {
return true
}
return false
}
// SetStartedAt gets a reference to the given time.Time and assigns it to the StartedAt field.
func (o *RegionalDeployment) SetStartedAt(v time.Time) {
o.StartedAt = &v
}
// GetSucceededAt returns the SucceededAt field value if set, zero value otherwise.
func (o *RegionalDeployment) GetSucceededAt() time.Time {
if o == nil || isNil(o.SucceededAt) {
var ret time.Time
return ret
}
return *o.SucceededAt
}
// GetSucceededAtOk returns a tuple with the SucceededAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetSucceededAtOk() (*time.Time, bool) {
if o == nil || isNil(o.SucceededAt) {
return nil, false
}
return o.SucceededAt, true
}
// HasSucceededAt returns a boolean if a field has been set.
func (o *RegionalDeployment) HasSucceededAt() bool {
if o != nil && !isNil(o.SucceededAt) {
return true
}
return false
}
// SetSucceededAt gets a reference to the given time.Time and assigns it to the SucceededAt field.
func (o *RegionalDeployment) SetSucceededAt(v time.Time) {
o.SucceededAt = &v
}
// GetTerminatedAt returns the TerminatedAt field value if set, zero value otherwise.
func (o *RegionalDeployment) GetTerminatedAt() time.Time {
if o == nil || isNil(o.TerminatedAt) {
var ret time.Time
return ret
}
return *o.TerminatedAt
}
// GetTerminatedAtOk returns a tuple with the TerminatedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetTerminatedAtOk() (*time.Time, bool) {
if o == nil || isNil(o.TerminatedAt) {
return nil, false
}
return o.TerminatedAt, true
}
// HasTerminatedAt returns a boolean if a field has been set.
func (o *RegionalDeployment) HasTerminatedAt() bool {
if o != nil && !isNil(o.TerminatedAt) {
return true
}
return false
}
// SetTerminatedAt gets a reference to the given time.Time and assigns it to the TerminatedAt field.
func (o *RegionalDeployment) SetTerminatedAt(v time.Time) {
o.TerminatedAt = &v
}
// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise.
func (o *RegionalDeployment) GetOrganizationId() string {
if o == nil || isNil(o.OrganizationId) {
var ret string
return ret
}
return *o.OrganizationId
}
// GetOrganizationIdOk returns a tuple with the OrganizationId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetOrganizationIdOk() (*string, bool) {
if o == nil || isNil(o.OrganizationId) {
return nil, false
}
return o.OrganizationId, true
}
// HasOrganizationId returns a boolean if a field has been set.
func (o *RegionalDeployment) HasOrganizationId() bool {
if o != nil && !isNil(o.OrganizationId) {
return true
}
return false
}
// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field.
func (o *RegionalDeployment) SetOrganizationId(v string) {
o.OrganizationId = &v
}
// GetAppId returns the AppId field value if set, zero value otherwise.
func (o *RegionalDeployment) GetAppId() string {
if o == nil || isNil(o.AppId) {
var ret string
return ret
}
return *o.AppId
}
// GetAppIdOk returns a tuple with the AppId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetAppIdOk() (*string, bool) {
if o == nil || isNil(o.AppId) {
return nil, false
}
return o.AppId, true
}
// HasAppId returns a boolean if a field has been set.
func (o *RegionalDeployment) HasAppId() bool {
if o != nil && !isNil(o.AppId) {
return true
}
return false
}
// SetAppId gets a reference to the given string and assigns it to the AppId field.
func (o *RegionalDeployment) SetAppId(v string) {
o.AppId = &v
}
// GetServiceId returns the ServiceId field value if set, zero value otherwise.
func (o *RegionalDeployment) GetServiceId() string {
if o == nil || isNil(o.ServiceId) {
var ret string
return ret
}
return *o.ServiceId
}
// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetServiceIdOk() (*string, bool) {
if o == nil || isNil(o.ServiceId) {
return nil, false
}
return o.ServiceId, true
}
// HasServiceId returns a boolean if a field has been set.
func (o *RegionalDeployment) HasServiceId() bool {
if o != nil && !isNil(o.ServiceId) {
return true
}
return false
}
// SetServiceId gets a reference to the given string and assigns it to the ServiceId field.
func (o *RegionalDeployment) SetServiceId(v string) {
o.ServiceId = &v
}
// GetRegion returns the Region field value if set, zero value otherwise.
func (o *RegionalDeployment) GetRegion() string {
if o == nil || isNil(o.Region) {
var ret string
return ret
}
return *o.Region
}
// GetRegionOk returns a tuple with the Region field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetRegionOk() (*string, bool) {
if o == nil || isNil(o.Region) {
return nil, false
}
return o.Region, true
}
// HasRegion returns a boolean if a field has been set.
func (o *RegionalDeployment) HasRegion() bool {
if o != nil && !isNil(o.Region) {
return true
}
return false
}
// SetRegion gets a reference to the given string and assigns it to the Region field.
func (o *RegionalDeployment) SetRegion(v string) {
o.Region = &v
}
// GetParentId returns the ParentId field value if set, zero value otherwise.
func (o *RegionalDeployment) GetParentId() string {
if o == nil || isNil(o.ParentId) {
var ret string
return ret
}
return *o.ParentId
}
// GetParentIdOk returns a tuple with the ParentId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetParentIdOk() (*string, bool) {
if o == nil || isNil(o.ParentId) {
return nil, false
}
return o.ParentId, true
}
// HasParentId returns a boolean if a field has been set.
func (o *RegionalDeployment) HasParentId() bool {
if o != nil && !isNil(o.ParentId) {
return true
}
return false
}
// SetParentId gets a reference to the given string and assigns it to the ParentId field.
func (o *RegionalDeployment) SetParentId(v string) {
o.ParentId = &v
}
// GetChildId returns the ChildId field value if set, zero value otherwise.
func (o *RegionalDeployment) GetChildId() string {
if o == nil || isNil(o.ChildId) {
var ret string
return ret
}
return *o.ChildId
}
// GetChildIdOk returns a tuple with the ChildId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetChildIdOk() (*string, bool) {
if o == nil || isNil(o.ChildId) {
return nil, false
}
return o.ChildId, true
}
// HasChildId returns a boolean if a field has been set.
func (o *RegionalDeployment) HasChildId() bool {
if o != nil && !isNil(o.ChildId) {
return true
}
return false
}
// SetChildId gets a reference to the given string and assigns it to the ChildId field.
func (o *RegionalDeployment) SetChildId(v string) {
o.ChildId = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *RegionalDeployment) GetStatus() RegionalDeploymentStatus {
if o == nil || isNil(o.Status) {
var ret RegionalDeploymentStatus
return ret
}
return *o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetStatusOk() (*RegionalDeploymentStatus, bool) {
if o == nil || isNil(o.Status) {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *RegionalDeployment) HasStatus() bool {
if o != nil && !isNil(o.Status) {
return true
}
return false
}
// SetStatus gets a reference to the given RegionalDeploymentStatus and assigns it to the Status field.
func (o *RegionalDeployment) SetStatus(v RegionalDeploymentStatus) {
o.Status = &v
}
// GetMessages returns the Messages field value if set, zero value otherwise.
func (o *RegionalDeployment) GetMessages() []string {
if o == nil || isNil(o.Messages) {
var ret []string
return ret
}
return o.Messages
}
// GetMessagesOk returns a tuple with the Messages field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetMessagesOk() ([]string, bool) {
if o == nil || isNil(o.Messages) {
return nil, false
}
return o.Messages, true
}
// HasMessages returns a boolean if a field has been set.
func (o *RegionalDeployment) HasMessages() bool {
if o != nil && !isNil(o.Messages) {
return true
}
return false
}
// SetMessages gets a reference to the given []string and assigns it to the Messages field.
func (o *RegionalDeployment) SetMessages(v []string) {
o.Messages = v
}
// GetDefinition returns the Definition field value if set, zero value otherwise.
func (o *RegionalDeployment) GetDefinition() RegionalDeploymentDefinition {
if o == nil || isNil(o.Definition) {
var ret RegionalDeploymentDefinition
return ret
}
return *o.Definition
}
// GetDefinitionOk returns a tuple with the Definition field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetDefinitionOk() (*RegionalDeploymentDefinition, bool) {
if o == nil || isNil(o.Definition) {
return nil, false
}
return o.Definition, true
}
// HasDefinition returns a boolean if a field has been set.
func (o *RegionalDeployment) HasDefinition() bool {
if o != nil && !isNil(o.Definition) {
return true
}
return false
}
// SetDefinition gets a reference to the given RegionalDeploymentDefinition and assigns it to the Definition field.
func (o *RegionalDeployment) SetDefinition(v RegionalDeploymentDefinition) {
o.Definition = &v
}
// GetDatacenters returns the Datacenters field value if set, zero value otherwise.
func (o *RegionalDeployment) GetDatacenters() []string {
if o == nil || isNil(o.Datacenters) {
var ret []string
return ret
}
return o.Datacenters
}
// GetDatacentersOk returns a tuple with the Datacenters field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetDatacentersOk() ([]string, bool) {
if o == nil || isNil(o.Datacenters) {
return nil, false
}
return o.Datacenters, true
}
// HasDatacenters returns a boolean if a field has been set.
func (o *RegionalDeployment) HasDatacenters() bool {
if o != nil && !isNil(o.Datacenters) {
return true
}
return false
}
// SetDatacenters gets a reference to the given []string and assigns it to the Datacenters field.
func (o *RegionalDeployment) SetDatacenters(v []string) {
o.Datacenters = v
}
// GetMetadata returns the Metadata field value if set, zero value otherwise.
func (o *RegionalDeployment) GetMetadata() RegionalDeploymentMetadata {
if o == nil || isNil(o.Metadata) {
var ret RegionalDeploymentMetadata
return ret
}
return *o.Metadata
}
// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetMetadataOk() (*RegionalDeploymentMetadata, bool) {
if o == nil || isNil(o.Metadata) {
return nil, false
}
return o.Metadata, true
}
// HasMetadata returns a boolean if a field has been set.
func (o *RegionalDeployment) HasMetadata() bool {
if o != nil && !isNil(o.Metadata) {
return true
}
return false
}
// SetMetadata gets a reference to the given RegionalDeploymentMetadata and assigns it to the Metadata field.
func (o *RegionalDeployment) SetMetadata(v RegionalDeploymentMetadata) {
o.Metadata = &v
}
// GetProvisioningInfo returns the ProvisioningInfo field value if set, zero value otherwise.
func (o *RegionalDeployment) GetProvisioningInfo() DeploymentProvisioningInfo {
if o == nil || isNil(o.ProvisioningInfo) {
var ret DeploymentProvisioningInfo
return ret
}
return *o.ProvisioningInfo
}
// GetProvisioningInfoOk returns a tuple with the ProvisioningInfo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetProvisioningInfoOk() (*DeploymentProvisioningInfo, bool) {
if o == nil || isNil(o.ProvisioningInfo) {
return nil, false
}
return o.ProvisioningInfo, true
}
// HasProvisioningInfo returns a boolean if a field has been set.
func (o *RegionalDeployment) HasProvisioningInfo() bool {
if o != nil && !isNil(o.ProvisioningInfo) {
return true
}
return false
}
// SetProvisioningInfo gets a reference to the given DeploymentProvisioningInfo and assigns it to the ProvisioningInfo field.
func (o *RegionalDeployment) SetProvisioningInfo(v DeploymentProvisioningInfo) {
o.ProvisioningInfo = &v
}
// GetUseKumaV2 returns the UseKumaV2 field value if set, zero value otherwise.
func (o *RegionalDeployment) GetUseKumaV2() bool {
if o == nil || isNil(o.UseKumaV2) {
var ret bool
return ret
}
return *o.UseKumaV2
}
// GetUseKumaV2Ok returns a tuple with the UseKumaV2 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetUseKumaV2Ok() (*bool, bool) {
if o == nil || isNil(o.UseKumaV2) {
return nil, false
}
return o.UseKumaV2, true
}
// HasUseKumaV2 returns a boolean if a field has been set.
func (o *RegionalDeployment) HasUseKumaV2() bool {
if o != nil && !isNil(o.UseKumaV2) {
return true
}
return false
}
// SetUseKumaV2 gets a reference to the given bool and assigns it to the UseKumaV2 field.
func (o *RegionalDeployment) SetUseKumaV2(v bool) {
o.UseKumaV2 = &v
}
// GetUseKata returns the UseKata field value if set, zero value otherwise.
func (o *RegionalDeployment) GetUseKata() bool {
if o == nil || isNil(o.UseKata) {
var ret bool
return ret
}
return *o.UseKata
}
// GetUseKataOk returns a tuple with the UseKata field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetUseKataOk() (*bool, bool) {
if o == nil || isNil(o.UseKata) {
return nil, false
}
return o.UseKata, true
}
// HasUseKata returns a boolean if a field has been set.
func (o *RegionalDeployment) HasUseKata() bool {
if o != nil && !isNil(o.UseKata) {
return true
}
return false
}
// SetUseKata gets a reference to the given bool and assigns it to the UseKata field.
func (o *RegionalDeployment) SetUseKata(v bool) {
o.UseKata = &v
}
// GetVersion returns the Version field value if set, zero value otherwise.
func (o *RegionalDeployment) GetVersion() string {
if o == nil || isNil(o.Version) {
var ret string
return ret
}
return *o.Version
}
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetVersionOk() (*string, bool) {
if o == nil || isNil(o.Version) {
return nil, false
}
return o.Version, true
}
// HasVersion returns a boolean if a field has been set.
func (o *RegionalDeployment) HasVersion() bool {
if o != nil && !isNil(o.Version) {
return true
}
return false
}
// SetVersion gets a reference to the given string and assigns it to the Version field.
func (o *RegionalDeployment) SetVersion(v string) {
o.Version = &v
}
// GetDeploymentGroup returns the DeploymentGroup field value if set, zero value otherwise.
func (o *RegionalDeployment) GetDeploymentGroup() string {
if o == nil || isNil(o.DeploymentGroup) {
var ret string
return ret
}
return *o.DeploymentGroup
}
// GetDeploymentGroupOk returns a tuple with the DeploymentGroup field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetDeploymentGroupOk() (*string, bool) {
if o == nil || isNil(o.DeploymentGroup) {
return nil, false
}
return o.DeploymentGroup, true
}
// HasDeploymentGroup returns a boolean if a field has been set.
func (o *RegionalDeployment) HasDeploymentGroup() bool {
if o != nil && !isNil(o.DeploymentGroup) {
return true
}
return false
}
// SetDeploymentGroup gets a reference to the given string and assigns it to the DeploymentGroup field.
func (o *RegionalDeployment) SetDeploymentGroup(v string) {
o.DeploymentGroup = &v
}
// GetDeploymentId returns the DeploymentId field value if set, zero value otherwise.
func (o *RegionalDeployment) GetDeploymentId() string {
if o == nil || isNil(o.DeploymentId) {
var ret string
return ret
}
return *o.DeploymentId
}
// GetDeploymentIdOk returns a tuple with the DeploymentId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *RegionalDeployment) GetDeploymentIdOk() (*string, bool) {
if o == nil || isNil(o.DeploymentId) {
return nil, false
}
return o.DeploymentId, true
}
// HasDeploymentId returns a boolean if a field has been set.
func (o *RegionalDeployment) HasDeploymentId() bool {
if o != nil && !isNil(o.DeploymentId) {
return true
}
return false
}
// SetDeploymentId gets a reference to the given string and assigns it to the DeploymentId field.
func (o *RegionalDeployment) SetDeploymentId(v string) {
o.DeploymentId = &v
}
func (o RegionalDeployment) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if !isNil(o.Id) {
toSerialize["id"] = o.Id
}
if !isNil(o.CreatedAt) {
toSerialize["created_at"] = o.CreatedAt
}
if !isNil(o.UpdatedAt) {
toSerialize["updated_at"] = o.UpdatedAt
}
if !isNil(o.AllocatedAt) {
toSerialize["allocated_at"] = o.AllocatedAt
}
if !isNil(o.StartedAt) {
toSerialize["started_at"] = o.StartedAt
}
if !isNil(o.SucceededAt) {
toSerialize["succeeded_at"] = o.SucceededAt
}
if !isNil(o.TerminatedAt) {
toSerialize["terminated_at"] = o.TerminatedAt
}
if !isNil(o.OrganizationId) {
toSerialize["organization_id"] = o.OrganizationId
}
if !isNil(o.AppId) {
toSerialize["app_id"] = o.AppId
}
if !isNil(o.ServiceId) {
toSerialize["service_id"] = o.ServiceId
}
if !isNil(o.Region) {
toSerialize["region"] = o.Region
}
if !isNil(o.ParentId) {
toSerialize["parent_id"] = o.ParentId
}
if !isNil(o.ChildId) {
toSerialize["child_id"] = o.ChildId
}
if !isNil(o.Status) {
toSerialize["status"] = o.Status
}
if !isNil(o.Messages) {
toSerialize["messages"] = o.Messages
}
if !isNil(o.Definition) {
toSerialize["definition"] = o.Definition
}
if !isNil(o.Datacenters) {
toSerialize["datacenters"] = o.Datacenters
}
if !isNil(o.Metadata) {
toSerialize["metadata"] = o.Metadata
}
if !isNil(o.ProvisioningInfo) {
toSerialize["provisioning_info"] = o.ProvisioningInfo
}
if !isNil(o.UseKumaV2) {
toSerialize["use_kuma_v2"] = o.UseKumaV2
}
if !isNil(o.UseKata) {
toSerialize["use_kata"] = o.UseKata
}
if !isNil(o.Version) {
toSerialize["version"] = o.Version
}
if !isNil(o.DeploymentGroup) {
toSerialize["deployment_group"] = o.DeploymentGroup
}
if !isNil(o.DeploymentId) {
toSerialize["deployment_id"] = o.DeploymentId
}
return json.Marshal(toSerialize)
}
type NullableRegionalDeployment struct {
value *RegionalDeployment
isSet bool
}
func (v NullableRegionalDeployment) Get() *RegionalDeployment {
return v.value
}
func (v *NullableRegionalDeployment) Set(val *RegionalDeployment) {
v.value = val
v.isSet = true
}
func (v NullableRegionalDeployment) IsSet() bool {
return v.isSet
}
func (v *NullableRegionalDeployment) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableRegionalDeployment(val *RegionalDeployment) *NullableRegionalDeployment {
return &NullableRegionalDeployment{value: val, isSet: true}
}
func (v NullableRegionalDeployment) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableRegionalDeployment) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}