/
model_subscription_patch_request.go
942 lines (807 loc) · 27 KB
/
model_subscription_patch_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
/*
* Account Management Service API
*
* Manage user subscriptions and clusters
*
* API version: 0.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package amsclient
import (
"encoding/json"
"time"
)
// SubscriptionPatchRequest struct for SubscriptionPatchRequest
type SubscriptionPatchRequest struct {
CloudAccountId *string `json:"cloud_account_id,omitempty"`
CloudProviderId *string `json:"cloud_provider_id,omitempty"`
ClusterBillingModel *string `json:"cluster_billing_model,omitempty"`
ClusterId *string `json:"cluster_id,omitempty"`
ConsoleUrl *string `json:"console_url,omitempty"`
ConsumerUuid *string `json:"consumer_uuid,omitempty"`
CpuTotal *int32 `json:"cpu_total,omitempty"`
CreatorId *string `json:"creator_id,omitempty"`
DisplayName *string `json:"display_name,omitempty"`
ExternalClusterId *string `json:"external_cluster_id,omitempty"`
Managed *bool `json:"managed,omitempty"`
OrganizationId *string `json:"organization_id,omitempty"`
PlanId *string `json:"plan_id,omitempty"`
ProductBundle *string `json:"product_bundle,omitempty"`
Provenance *string `json:"provenance,omitempty"`
RegionId *string `json:"region_id,omitempty"`
Released *bool `json:"released,omitempty"`
ServiceLevel *string `json:"service_level,omitempty"`
SocketTotal *int32 `json:"socket_total,omitempty"`
Status *string `json:"status,omitempty"`
SupportLevel *string `json:"support_level,omitempty"`
SystemUnits *string `json:"system_units,omitempty"`
TrialEndDate *time.Time `json:"trial_end_date,omitempty"`
Usage *string `json:"usage,omitempty"`
}
// NewSubscriptionPatchRequest instantiates a new SubscriptionPatchRequest 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 NewSubscriptionPatchRequest() *SubscriptionPatchRequest {
this := SubscriptionPatchRequest{}
return &this
}
// NewSubscriptionPatchRequestWithDefaults instantiates a new SubscriptionPatchRequest 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 NewSubscriptionPatchRequestWithDefaults() *SubscriptionPatchRequest {
this := SubscriptionPatchRequest{}
return &this
}
// GetCloudAccountId returns the CloudAccountId field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetCloudAccountId() string {
if o == nil || o.CloudAccountId == nil {
var ret string
return ret
}
return *o.CloudAccountId
}
// GetCloudAccountIdOk returns a tuple with the CloudAccountId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetCloudAccountIdOk() (*string, bool) {
if o == nil || o.CloudAccountId == nil {
return nil, false
}
return o.CloudAccountId, true
}
// HasCloudAccountId returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasCloudAccountId() bool {
if o != nil && o.CloudAccountId != nil {
return true
}
return false
}
// SetCloudAccountId gets a reference to the given string and assigns it to the CloudAccountId field.
func (o *SubscriptionPatchRequest) SetCloudAccountId(v string) {
o.CloudAccountId = &v
}
// GetCloudProviderId returns the CloudProviderId field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetCloudProviderId() string {
if o == nil || o.CloudProviderId == nil {
var ret string
return ret
}
return *o.CloudProviderId
}
// GetCloudProviderIdOk returns a tuple with the CloudProviderId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetCloudProviderIdOk() (*string, bool) {
if o == nil || o.CloudProviderId == nil {
return nil, false
}
return o.CloudProviderId, true
}
// HasCloudProviderId returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasCloudProviderId() bool {
if o != nil && o.CloudProviderId != nil {
return true
}
return false
}
// SetCloudProviderId gets a reference to the given string and assigns it to the CloudProviderId field.
func (o *SubscriptionPatchRequest) SetCloudProviderId(v string) {
o.CloudProviderId = &v
}
// GetClusterBillingModel returns the ClusterBillingModel field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetClusterBillingModel() string {
if o == nil || o.ClusterBillingModel == nil {
var ret string
return ret
}
return *o.ClusterBillingModel
}
// GetClusterBillingModelOk returns a tuple with the ClusterBillingModel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetClusterBillingModelOk() (*string, bool) {
if o == nil || o.ClusterBillingModel == nil {
return nil, false
}
return o.ClusterBillingModel, true
}
// HasClusterBillingModel returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasClusterBillingModel() bool {
if o != nil && o.ClusterBillingModel != nil {
return true
}
return false
}
// SetClusterBillingModel gets a reference to the given string and assigns it to the ClusterBillingModel field.
func (o *SubscriptionPatchRequest) SetClusterBillingModel(v string) {
o.ClusterBillingModel = &v
}
// GetClusterId returns the ClusterId field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetClusterId() string {
if o == nil || o.ClusterId == nil {
var ret string
return ret
}
return *o.ClusterId
}
// GetClusterIdOk returns a tuple with the ClusterId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetClusterIdOk() (*string, bool) {
if o == nil || o.ClusterId == nil {
return nil, false
}
return o.ClusterId, true
}
// HasClusterId returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasClusterId() bool {
if o != nil && o.ClusterId != nil {
return true
}
return false
}
// SetClusterId gets a reference to the given string and assigns it to the ClusterId field.
func (o *SubscriptionPatchRequest) SetClusterId(v string) {
o.ClusterId = &v
}
// GetConsoleUrl returns the ConsoleUrl field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetConsoleUrl() string {
if o == nil || o.ConsoleUrl == nil {
var ret string
return ret
}
return *o.ConsoleUrl
}
// GetConsoleUrlOk returns a tuple with the ConsoleUrl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetConsoleUrlOk() (*string, bool) {
if o == nil || o.ConsoleUrl == nil {
return nil, false
}
return o.ConsoleUrl, true
}
// HasConsoleUrl returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasConsoleUrl() bool {
if o != nil && o.ConsoleUrl != nil {
return true
}
return false
}
// SetConsoleUrl gets a reference to the given string and assigns it to the ConsoleUrl field.
func (o *SubscriptionPatchRequest) SetConsoleUrl(v string) {
o.ConsoleUrl = &v
}
// GetConsumerUuid returns the ConsumerUuid field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetConsumerUuid() string {
if o == nil || o.ConsumerUuid == nil {
var ret string
return ret
}
return *o.ConsumerUuid
}
// GetConsumerUuidOk returns a tuple with the ConsumerUuid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetConsumerUuidOk() (*string, bool) {
if o == nil || o.ConsumerUuid == nil {
return nil, false
}
return o.ConsumerUuid, true
}
// HasConsumerUuid returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasConsumerUuid() bool {
if o != nil && o.ConsumerUuid != nil {
return true
}
return false
}
// SetConsumerUuid gets a reference to the given string and assigns it to the ConsumerUuid field.
func (o *SubscriptionPatchRequest) SetConsumerUuid(v string) {
o.ConsumerUuid = &v
}
// GetCpuTotal returns the CpuTotal field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetCpuTotal() int32 {
if o == nil || o.CpuTotal == nil {
var ret int32
return ret
}
return *o.CpuTotal
}
// GetCpuTotalOk returns a tuple with the CpuTotal field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetCpuTotalOk() (*int32, bool) {
if o == nil || o.CpuTotal == nil {
return nil, false
}
return o.CpuTotal, true
}
// HasCpuTotal returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasCpuTotal() bool {
if o != nil && o.CpuTotal != nil {
return true
}
return false
}
// SetCpuTotal gets a reference to the given int32 and assigns it to the CpuTotal field.
func (o *SubscriptionPatchRequest) SetCpuTotal(v int32) {
o.CpuTotal = &v
}
// GetCreatorId returns the CreatorId field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetCreatorId() string {
if o == nil || o.CreatorId == nil {
var ret string
return ret
}
return *o.CreatorId
}
// GetCreatorIdOk returns a tuple with the CreatorId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetCreatorIdOk() (*string, bool) {
if o == nil || o.CreatorId == nil {
return nil, false
}
return o.CreatorId, true
}
// HasCreatorId returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasCreatorId() bool {
if o != nil && o.CreatorId != nil {
return true
}
return false
}
// SetCreatorId gets a reference to the given string and assigns it to the CreatorId field.
func (o *SubscriptionPatchRequest) SetCreatorId(v string) {
o.CreatorId = &v
}
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetDisplayName() string {
if o == nil || o.DisplayName == nil {
var ret string
return ret
}
return *o.DisplayName
}
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetDisplayNameOk() (*string, bool) {
if o == nil || o.DisplayName == nil {
return nil, false
}
return o.DisplayName, true
}
// HasDisplayName returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasDisplayName() bool {
if o != nil && o.DisplayName != nil {
return true
}
return false
}
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
func (o *SubscriptionPatchRequest) SetDisplayName(v string) {
o.DisplayName = &v
}
// GetExternalClusterId returns the ExternalClusterId field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetExternalClusterId() string {
if o == nil || o.ExternalClusterId == nil {
var ret string
return ret
}
return *o.ExternalClusterId
}
// GetExternalClusterIdOk returns a tuple with the ExternalClusterId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetExternalClusterIdOk() (*string, bool) {
if o == nil || o.ExternalClusterId == nil {
return nil, false
}
return o.ExternalClusterId, true
}
// HasExternalClusterId returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasExternalClusterId() bool {
if o != nil && o.ExternalClusterId != nil {
return true
}
return false
}
// SetExternalClusterId gets a reference to the given string and assigns it to the ExternalClusterId field.
func (o *SubscriptionPatchRequest) SetExternalClusterId(v string) {
o.ExternalClusterId = &v
}
// GetManaged returns the Managed field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetManaged() bool {
if o == nil || o.Managed == nil {
var ret bool
return ret
}
return *o.Managed
}
// GetManagedOk returns a tuple with the Managed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetManagedOk() (*bool, bool) {
if o == nil || o.Managed == nil {
return nil, false
}
return o.Managed, true
}
// HasManaged returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasManaged() bool {
if o != nil && o.Managed != nil {
return true
}
return false
}
// SetManaged gets a reference to the given bool and assigns it to the Managed field.
func (o *SubscriptionPatchRequest) SetManaged(v bool) {
o.Managed = &v
}
// GetOrganizationId returns the OrganizationId field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetOrganizationId() string {
if o == nil || o.OrganizationId == nil {
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 *SubscriptionPatchRequest) GetOrganizationIdOk() (*string, bool) {
if o == nil || o.OrganizationId == nil {
return nil, false
}
return o.OrganizationId, true
}
// HasOrganizationId returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasOrganizationId() bool {
if o != nil && o.OrganizationId != nil {
return true
}
return false
}
// SetOrganizationId gets a reference to the given string and assigns it to the OrganizationId field.
func (o *SubscriptionPatchRequest) SetOrganizationId(v string) {
o.OrganizationId = &v
}
// GetPlanId returns the PlanId field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetPlanId() string {
if o == nil || o.PlanId == nil {
var ret string
return ret
}
return *o.PlanId
}
// GetPlanIdOk returns a tuple with the PlanId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetPlanIdOk() (*string, bool) {
if o == nil || o.PlanId == nil {
return nil, false
}
return o.PlanId, true
}
// HasPlanId returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasPlanId() bool {
if o != nil && o.PlanId != nil {
return true
}
return false
}
// SetPlanId gets a reference to the given string and assigns it to the PlanId field.
func (o *SubscriptionPatchRequest) SetPlanId(v string) {
o.PlanId = &v
}
// GetProductBundle returns the ProductBundle field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetProductBundle() string {
if o == nil || o.ProductBundle == nil {
var ret string
return ret
}
return *o.ProductBundle
}
// GetProductBundleOk returns a tuple with the ProductBundle field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetProductBundleOk() (*string, bool) {
if o == nil || o.ProductBundle == nil {
return nil, false
}
return o.ProductBundle, true
}
// HasProductBundle returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasProductBundle() bool {
if o != nil && o.ProductBundle != nil {
return true
}
return false
}
// SetProductBundle gets a reference to the given string and assigns it to the ProductBundle field.
func (o *SubscriptionPatchRequest) SetProductBundle(v string) {
o.ProductBundle = &v
}
// GetProvenance returns the Provenance field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetProvenance() string {
if o == nil || o.Provenance == nil {
var ret string
return ret
}
return *o.Provenance
}
// GetProvenanceOk returns a tuple with the Provenance field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetProvenanceOk() (*string, bool) {
if o == nil || o.Provenance == nil {
return nil, false
}
return o.Provenance, true
}
// HasProvenance returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasProvenance() bool {
if o != nil && o.Provenance != nil {
return true
}
return false
}
// SetProvenance gets a reference to the given string and assigns it to the Provenance field.
func (o *SubscriptionPatchRequest) SetProvenance(v string) {
o.Provenance = &v
}
// GetRegionId returns the RegionId field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetRegionId() string {
if o == nil || o.RegionId == nil {
var ret string
return ret
}
return *o.RegionId
}
// GetRegionIdOk returns a tuple with the RegionId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetRegionIdOk() (*string, bool) {
if o == nil || o.RegionId == nil {
return nil, false
}
return o.RegionId, true
}
// HasRegionId returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasRegionId() bool {
if o != nil && o.RegionId != nil {
return true
}
return false
}
// SetRegionId gets a reference to the given string and assigns it to the RegionId field.
func (o *SubscriptionPatchRequest) SetRegionId(v string) {
o.RegionId = &v
}
// GetReleased returns the Released field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetReleased() bool {
if o == nil || o.Released == nil {
var ret bool
return ret
}
return *o.Released
}
// GetReleasedOk returns a tuple with the Released field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetReleasedOk() (*bool, bool) {
if o == nil || o.Released == nil {
return nil, false
}
return o.Released, true
}
// HasReleased returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasReleased() bool {
if o != nil && o.Released != nil {
return true
}
return false
}
// SetReleased gets a reference to the given bool and assigns it to the Released field.
func (o *SubscriptionPatchRequest) SetReleased(v bool) {
o.Released = &v
}
// GetServiceLevel returns the ServiceLevel field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetServiceLevel() string {
if o == nil || o.ServiceLevel == nil {
var ret string
return ret
}
return *o.ServiceLevel
}
// GetServiceLevelOk returns a tuple with the ServiceLevel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetServiceLevelOk() (*string, bool) {
if o == nil || o.ServiceLevel == nil {
return nil, false
}
return o.ServiceLevel, true
}
// HasServiceLevel returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasServiceLevel() bool {
if o != nil && o.ServiceLevel != nil {
return true
}
return false
}
// SetServiceLevel gets a reference to the given string and assigns it to the ServiceLevel field.
func (o *SubscriptionPatchRequest) SetServiceLevel(v string) {
o.ServiceLevel = &v
}
// GetSocketTotal returns the SocketTotal field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetSocketTotal() int32 {
if o == nil || o.SocketTotal == nil {
var ret int32
return ret
}
return *o.SocketTotal
}
// GetSocketTotalOk returns a tuple with the SocketTotal field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetSocketTotalOk() (*int32, bool) {
if o == nil || o.SocketTotal == nil {
return nil, false
}
return o.SocketTotal, true
}
// HasSocketTotal returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasSocketTotal() bool {
if o != nil && o.SocketTotal != nil {
return true
}
return false
}
// SetSocketTotal gets a reference to the given int32 and assigns it to the SocketTotal field.
func (o *SubscriptionPatchRequest) SetSocketTotal(v int32) {
o.SocketTotal = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetStatus() string {
if o == nil || o.Status == nil {
var ret string
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 *SubscriptionPatchRequest) GetStatusOk() (*string, bool) {
if o == nil || o.Status == nil {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasStatus() bool {
if o != nil && o.Status != nil {
return true
}
return false
}
// SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *SubscriptionPatchRequest) SetStatus(v string) {
o.Status = &v
}
// GetSupportLevel returns the SupportLevel field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetSupportLevel() string {
if o == nil || o.SupportLevel == nil {
var ret string
return ret
}
return *o.SupportLevel
}
// GetSupportLevelOk returns a tuple with the SupportLevel field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetSupportLevelOk() (*string, bool) {
if o == nil || o.SupportLevel == nil {
return nil, false
}
return o.SupportLevel, true
}
// HasSupportLevel returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasSupportLevel() bool {
if o != nil && o.SupportLevel != nil {
return true
}
return false
}
// SetSupportLevel gets a reference to the given string and assigns it to the SupportLevel field.
func (o *SubscriptionPatchRequest) SetSupportLevel(v string) {
o.SupportLevel = &v
}
// GetSystemUnits returns the SystemUnits field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetSystemUnits() string {
if o == nil || o.SystemUnits == nil {
var ret string
return ret
}
return *o.SystemUnits
}
// GetSystemUnitsOk returns a tuple with the SystemUnits field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetSystemUnitsOk() (*string, bool) {
if o == nil || o.SystemUnits == nil {
return nil, false
}
return o.SystemUnits, true
}
// HasSystemUnits returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasSystemUnits() bool {
if o != nil && o.SystemUnits != nil {
return true
}
return false
}
// SetSystemUnits gets a reference to the given string and assigns it to the SystemUnits field.
func (o *SubscriptionPatchRequest) SetSystemUnits(v string) {
o.SystemUnits = &v
}
// GetTrialEndDate returns the TrialEndDate field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetTrialEndDate() time.Time {
if o == nil || o.TrialEndDate == nil {
var ret time.Time
return ret
}
return *o.TrialEndDate
}
// GetTrialEndDateOk returns a tuple with the TrialEndDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetTrialEndDateOk() (*time.Time, bool) {
if o == nil || o.TrialEndDate == nil {
return nil, false
}
return o.TrialEndDate, true
}
// HasTrialEndDate returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasTrialEndDate() bool {
if o != nil && o.TrialEndDate != nil {
return true
}
return false
}
// SetTrialEndDate gets a reference to the given time.Time and assigns it to the TrialEndDate field.
func (o *SubscriptionPatchRequest) SetTrialEndDate(v time.Time) {
o.TrialEndDate = &v
}
// GetUsage returns the Usage field value if set, zero value otherwise.
func (o *SubscriptionPatchRequest) GetUsage() string {
if o == nil || o.Usage == nil {
var ret string
return ret
}
return *o.Usage
}
// GetUsageOk returns a tuple with the Usage field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SubscriptionPatchRequest) GetUsageOk() (*string, bool) {
if o == nil || o.Usage == nil {
return nil, false
}
return o.Usage, true
}
// HasUsage returns a boolean if a field has been set.
func (o *SubscriptionPatchRequest) HasUsage() bool {
if o != nil && o.Usage != nil {
return true
}
return false
}
// SetUsage gets a reference to the given string and assigns it to the Usage field.
func (o *SubscriptionPatchRequest) SetUsage(v string) {
o.Usage = &v
}
func (o SubscriptionPatchRequest) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.CloudAccountId != nil {
toSerialize["cloud_account_id"] = o.CloudAccountId
}
if o.CloudProviderId != nil {
toSerialize["cloud_provider_id"] = o.CloudProviderId
}
if o.ClusterBillingModel != nil {
toSerialize["cluster_billing_model"] = o.ClusterBillingModel
}
if o.ClusterId != nil {
toSerialize["cluster_id"] = o.ClusterId
}
if o.ConsoleUrl != nil {
toSerialize["console_url"] = o.ConsoleUrl
}
if o.ConsumerUuid != nil {
toSerialize["consumer_uuid"] = o.ConsumerUuid
}
if o.CpuTotal != nil {
toSerialize["cpu_total"] = o.CpuTotal
}
if o.CreatorId != nil {
toSerialize["creator_id"] = o.CreatorId
}
if o.DisplayName != nil {
toSerialize["display_name"] = o.DisplayName
}
if o.ExternalClusterId != nil {
toSerialize["external_cluster_id"] = o.ExternalClusterId
}
if o.Managed != nil {
toSerialize["managed"] = o.Managed
}
if o.OrganizationId != nil {
toSerialize["organization_id"] = o.OrganizationId
}
if o.PlanId != nil {
toSerialize["plan_id"] = o.PlanId
}
if o.ProductBundle != nil {
toSerialize["product_bundle"] = o.ProductBundle
}
if o.Provenance != nil {
toSerialize["provenance"] = o.Provenance
}
if o.RegionId != nil {
toSerialize["region_id"] = o.RegionId
}
if o.Released != nil {
toSerialize["released"] = o.Released
}
if o.ServiceLevel != nil {
toSerialize["service_level"] = o.ServiceLevel
}
if o.SocketTotal != nil {
toSerialize["socket_total"] = o.SocketTotal
}
if o.Status != nil {
toSerialize["status"] = o.Status
}
if o.SupportLevel != nil {
toSerialize["support_level"] = o.SupportLevel
}
if o.SystemUnits != nil {
toSerialize["system_units"] = o.SystemUnits
}
if o.TrialEndDate != nil {
toSerialize["trial_end_date"] = o.TrialEndDate
}
if o.Usage != nil {
toSerialize["usage"] = o.Usage
}
return json.Marshal(toSerialize)
}
type NullableSubscriptionPatchRequest struct {
value *SubscriptionPatchRequest
isSet bool
}
func (v NullableSubscriptionPatchRequest) Get() *SubscriptionPatchRequest {
return v.value
}
func (v *NullableSubscriptionPatchRequest) Set(val *SubscriptionPatchRequest) {
v.value = val
v.isSet = true
}
func (v NullableSubscriptionPatchRequest) IsSet() bool {
return v.isSet
}
func (v *NullableSubscriptionPatchRequest) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSubscriptionPatchRequest(val *SubscriptionPatchRequest) *NullableSubscriptionPatchRequest {
return &NullableSubscriptionPatchRequest{value: val, isSet: true}
}
func (v NullableSubscriptionPatchRequest) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSubscriptionPatchRequest) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}