-
Notifications
You must be signed in to change notification settings - Fork 1
/
model_image_version_response_model.go
630 lines (538 loc) · 19.9 KB
/
model_image_version_response_model.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
/*
Citrix Virtual Apps and Desktops Rest API for Developer Portal
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
API version: devportal-onprem-ga
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package citrixorchestration
import (
"encoding/json"
)
// checks if the ImageVersionResponseModel type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &ImageVersionResponseModel{}
// ImageVersionResponseModel struct for ImageVersionResponseModel
type ImageVersionResponseModel struct {
// The version number associated with the image version.
Version NullableString `json:"Version,omitempty"`
// The Id of the image version.
Id *string `json:"Id,omitempty"`
// The MasterImageVM of the image version.
MasterImagePath NullableString `json:"MasterImagePath,omitempty"`
// The Description of the image version.
Description NullableString `json:"Description,omitempty"`
// Size of the VM's OS disk, in GB.
DiskSizeGB *int32 `json:"DiskSizeGB,omitempty"`
// The create time of the image version.
CreateTime NullableString `json:"CreateTime,omitempty"`
// The WriteBackCacheDiskSize of the image version.
WriteBackCacheDiskSize *int32 `json:"WriteBackCacheDiskSize,omitempty"`
// The WriteBackCacheMemorySize of the image version.
WriteBackCacheMemorySize *int32 `json:"WriteBackCacheMemorySize,omitempty"`
// The image status of the image version.
ImageStatus NullableString `json:"ImageStatus,omitempty"`
// The error info of the image version.
Error NullableString `json:"Error,omitempty"`
// The additional data of the image version.
AdditionalData map[string]string `json:"AdditionalData,omitempty"`
ImageDefinition *RefResponseModel `json:"ImageDefinition,omitempty"`
ImageScheme *ImageSchemeResponseModel `json:"ImageScheme,omitempty"`
}
// NewImageVersionResponseModel instantiates a new ImageVersionResponseModel 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 NewImageVersionResponseModel() *ImageVersionResponseModel {
this := ImageVersionResponseModel{}
return &this
}
// NewImageVersionResponseModelWithDefaults instantiates a new ImageVersionResponseModel 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 NewImageVersionResponseModelWithDefaults() *ImageVersionResponseModel {
this := ImageVersionResponseModel{}
return &this
}
// GetVersion returns the Version field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ImageVersionResponseModel) GetVersion() string {
if o == nil || IsNil(o.Version.Get()) {
var ret string
return ret
}
return *o.Version.Get()
}
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ImageVersionResponseModel) GetVersionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Version.Get(), o.Version.IsSet()
}
// HasVersion returns a boolean if a field has been set.
func (o *ImageVersionResponseModel) HasVersion() bool {
if o != nil && o.Version.IsSet() {
return true
}
return false
}
// SetVersion gets a reference to the given NullableString and assigns it to the Version field.
func (o *ImageVersionResponseModel) SetVersion(v string) {
o.Version.Set(&v)
}
// SetVersionNil sets the value for Version to be an explicit nil
func (o *ImageVersionResponseModel) SetVersionNil() {
o.Version.Set(nil)
}
// UnsetVersion ensures that no value is present for Version, not even an explicit nil
func (o *ImageVersionResponseModel) UnsetVersion() {
o.Version.Unset()
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *ImageVersionResponseModel) 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 *ImageVersionResponseModel) 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 *ImageVersionResponseModel) 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 *ImageVersionResponseModel) SetId(v string) {
o.Id = &v
}
// GetMasterImagePath returns the MasterImagePath field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ImageVersionResponseModel) GetMasterImagePath() string {
if o == nil || IsNil(o.MasterImagePath.Get()) {
var ret string
return ret
}
return *o.MasterImagePath.Get()
}
// GetMasterImagePathOk returns a tuple with the MasterImagePath field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ImageVersionResponseModel) GetMasterImagePathOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.MasterImagePath.Get(), o.MasterImagePath.IsSet()
}
// HasMasterImagePath returns a boolean if a field has been set.
func (o *ImageVersionResponseModel) HasMasterImagePath() bool {
if o != nil && o.MasterImagePath.IsSet() {
return true
}
return false
}
// SetMasterImagePath gets a reference to the given NullableString and assigns it to the MasterImagePath field.
func (o *ImageVersionResponseModel) SetMasterImagePath(v string) {
o.MasterImagePath.Set(&v)
}
// SetMasterImagePathNil sets the value for MasterImagePath to be an explicit nil
func (o *ImageVersionResponseModel) SetMasterImagePathNil() {
o.MasterImagePath.Set(nil)
}
// UnsetMasterImagePath ensures that no value is present for MasterImagePath, not even an explicit nil
func (o *ImageVersionResponseModel) UnsetMasterImagePath() {
o.MasterImagePath.Unset()
}
// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ImageVersionResponseModel) GetDescription() string {
if o == nil || IsNil(o.Description.Get()) {
var ret string
return ret
}
return *o.Description.Get()
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ImageVersionResponseModel) GetDescriptionOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Description.Get(), o.Description.IsSet()
}
// HasDescription returns a boolean if a field has been set.
func (o *ImageVersionResponseModel) HasDescription() bool {
if o != nil && o.Description.IsSet() {
return true
}
return false
}
// SetDescription gets a reference to the given NullableString and assigns it to the Description field.
func (o *ImageVersionResponseModel) SetDescription(v string) {
o.Description.Set(&v)
}
// SetDescriptionNil sets the value for Description to be an explicit nil
func (o *ImageVersionResponseModel) SetDescriptionNil() {
o.Description.Set(nil)
}
// UnsetDescription ensures that no value is present for Description, not even an explicit nil
func (o *ImageVersionResponseModel) UnsetDescription() {
o.Description.Unset()
}
// GetDiskSizeGB returns the DiskSizeGB field value if set, zero value otherwise.
func (o *ImageVersionResponseModel) GetDiskSizeGB() int32 {
if o == nil || IsNil(o.DiskSizeGB) {
var ret int32
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 *ImageVersionResponseModel) GetDiskSizeGBOk() (*int32, 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 *ImageVersionResponseModel) HasDiskSizeGB() bool {
if o != nil && !IsNil(o.DiskSizeGB) {
return true
}
return false
}
// SetDiskSizeGB gets a reference to the given int32 and assigns it to the DiskSizeGB field.
func (o *ImageVersionResponseModel) SetDiskSizeGB(v int32) {
o.DiskSizeGB = &v
}
// GetCreateTime returns the CreateTime field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ImageVersionResponseModel) GetCreateTime() string {
if o == nil || IsNil(o.CreateTime.Get()) {
var ret string
return ret
}
return *o.CreateTime.Get()
}
// GetCreateTimeOk returns a tuple with the CreateTime field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ImageVersionResponseModel) GetCreateTimeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.CreateTime.Get(), o.CreateTime.IsSet()
}
// HasCreateTime returns a boolean if a field has been set.
func (o *ImageVersionResponseModel) HasCreateTime() bool {
if o != nil && o.CreateTime.IsSet() {
return true
}
return false
}
// SetCreateTime gets a reference to the given NullableString and assigns it to the CreateTime field.
func (o *ImageVersionResponseModel) SetCreateTime(v string) {
o.CreateTime.Set(&v)
}
// SetCreateTimeNil sets the value for CreateTime to be an explicit nil
func (o *ImageVersionResponseModel) SetCreateTimeNil() {
o.CreateTime.Set(nil)
}
// UnsetCreateTime ensures that no value is present for CreateTime, not even an explicit nil
func (o *ImageVersionResponseModel) UnsetCreateTime() {
o.CreateTime.Unset()
}
// GetWriteBackCacheDiskSize returns the WriteBackCacheDiskSize field value if set, zero value otherwise.
func (o *ImageVersionResponseModel) GetWriteBackCacheDiskSize() int32 {
if o == nil || IsNil(o.WriteBackCacheDiskSize) {
var ret int32
return ret
}
return *o.WriteBackCacheDiskSize
}
// GetWriteBackCacheDiskSizeOk returns a tuple with the WriteBackCacheDiskSize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ImageVersionResponseModel) GetWriteBackCacheDiskSizeOk() (*int32, bool) {
if o == nil || IsNil(o.WriteBackCacheDiskSize) {
return nil, false
}
return o.WriteBackCacheDiskSize, true
}
// HasWriteBackCacheDiskSize returns a boolean if a field has been set.
func (o *ImageVersionResponseModel) HasWriteBackCacheDiskSize() bool {
if o != nil && !IsNil(o.WriteBackCacheDiskSize) {
return true
}
return false
}
// SetWriteBackCacheDiskSize gets a reference to the given int32 and assigns it to the WriteBackCacheDiskSize field.
func (o *ImageVersionResponseModel) SetWriteBackCacheDiskSize(v int32) {
o.WriteBackCacheDiskSize = &v
}
// GetWriteBackCacheMemorySize returns the WriteBackCacheMemorySize field value if set, zero value otherwise.
func (o *ImageVersionResponseModel) GetWriteBackCacheMemorySize() int32 {
if o == nil || IsNil(o.WriteBackCacheMemorySize) {
var ret int32
return ret
}
return *o.WriteBackCacheMemorySize
}
// GetWriteBackCacheMemorySizeOk returns a tuple with the WriteBackCacheMemorySize field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ImageVersionResponseModel) GetWriteBackCacheMemorySizeOk() (*int32, bool) {
if o == nil || IsNil(o.WriteBackCacheMemorySize) {
return nil, false
}
return o.WriteBackCacheMemorySize, true
}
// HasWriteBackCacheMemorySize returns a boolean if a field has been set.
func (o *ImageVersionResponseModel) HasWriteBackCacheMemorySize() bool {
if o != nil && !IsNil(o.WriteBackCacheMemorySize) {
return true
}
return false
}
// SetWriteBackCacheMemorySize gets a reference to the given int32 and assigns it to the WriteBackCacheMemorySize field.
func (o *ImageVersionResponseModel) SetWriteBackCacheMemorySize(v int32) {
o.WriteBackCacheMemorySize = &v
}
// GetImageStatus returns the ImageStatus field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ImageVersionResponseModel) GetImageStatus() string {
if o == nil || IsNil(o.ImageStatus.Get()) {
var ret string
return ret
}
return *o.ImageStatus.Get()
}
// GetImageStatusOk returns a tuple with the ImageStatus field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ImageVersionResponseModel) GetImageStatusOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ImageStatus.Get(), o.ImageStatus.IsSet()
}
// HasImageStatus returns a boolean if a field has been set.
func (o *ImageVersionResponseModel) HasImageStatus() bool {
if o != nil && o.ImageStatus.IsSet() {
return true
}
return false
}
// SetImageStatus gets a reference to the given NullableString and assigns it to the ImageStatus field.
func (o *ImageVersionResponseModel) SetImageStatus(v string) {
o.ImageStatus.Set(&v)
}
// SetImageStatusNil sets the value for ImageStatus to be an explicit nil
func (o *ImageVersionResponseModel) SetImageStatusNil() {
o.ImageStatus.Set(nil)
}
// UnsetImageStatus ensures that no value is present for ImageStatus, not even an explicit nil
func (o *ImageVersionResponseModel) UnsetImageStatus() {
o.ImageStatus.Unset()
}
// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ImageVersionResponseModel) GetError() string {
if o == nil || IsNil(o.Error.Get()) {
var ret string
return ret
}
return *o.Error.Get()
}
// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ImageVersionResponseModel) GetErrorOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Error.Get(), o.Error.IsSet()
}
// HasError returns a boolean if a field has been set.
func (o *ImageVersionResponseModel) HasError() bool {
if o != nil && o.Error.IsSet() {
return true
}
return false
}
// SetError gets a reference to the given NullableString and assigns it to the Error field.
func (o *ImageVersionResponseModel) SetError(v string) {
o.Error.Set(&v)
}
// SetErrorNil sets the value for Error to be an explicit nil
func (o *ImageVersionResponseModel) SetErrorNil() {
o.Error.Set(nil)
}
// UnsetError ensures that no value is present for Error, not even an explicit nil
func (o *ImageVersionResponseModel) UnsetError() {
o.Error.Unset()
}
// GetAdditionalData returns the AdditionalData field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *ImageVersionResponseModel) GetAdditionalData() map[string]string {
if o == nil {
var ret map[string]string
return ret
}
return o.AdditionalData
}
// GetAdditionalDataOk returns a tuple with the AdditionalData field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *ImageVersionResponseModel) GetAdditionalDataOk() (*map[string]string, bool) {
if o == nil || IsNil(o.AdditionalData) {
return nil, false
}
return &o.AdditionalData, true
}
// HasAdditionalData returns a boolean if a field has been set.
func (o *ImageVersionResponseModel) HasAdditionalData() bool {
if o != nil && IsNil(o.AdditionalData) {
return true
}
return false
}
// SetAdditionalData gets a reference to the given map[string]string and assigns it to the AdditionalData field.
func (o *ImageVersionResponseModel) SetAdditionalData(v map[string]string) {
o.AdditionalData = v
}
// GetImageDefinition returns the ImageDefinition field value if set, zero value otherwise.
func (o *ImageVersionResponseModel) GetImageDefinition() RefResponseModel {
if o == nil || IsNil(o.ImageDefinition) {
var ret RefResponseModel
return ret
}
return *o.ImageDefinition
}
// GetImageDefinitionOk returns a tuple with the ImageDefinition field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ImageVersionResponseModel) GetImageDefinitionOk() (*RefResponseModel, bool) {
if o == nil || IsNil(o.ImageDefinition) {
return nil, false
}
return o.ImageDefinition, true
}
// HasImageDefinition returns a boolean if a field has been set.
func (o *ImageVersionResponseModel) HasImageDefinition() bool {
if o != nil && !IsNil(o.ImageDefinition) {
return true
}
return false
}
// SetImageDefinition gets a reference to the given RefResponseModel and assigns it to the ImageDefinition field.
func (o *ImageVersionResponseModel) SetImageDefinition(v RefResponseModel) {
o.ImageDefinition = &v
}
// GetImageScheme returns the ImageScheme field value if set, zero value otherwise.
func (o *ImageVersionResponseModel) GetImageScheme() ImageSchemeResponseModel {
if o == nil || IsNil(o.ImageScheme) {
var ret ImageSchemeResponseModel
return ret
}
return *o.ImageScheme
}
// GetImageSchemeOk returns a tuple with the ImageScheme field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ImageVersionResponseModel) GetImageSchemeOk() (*ImageSchemeResponseModel, bool) {
if o == nil || IsNil(o.ImageScheme) {
return nil, false
}
return o.ImageScheme, true
}
// HasImageScheme returns a boolean if a field has been set.
func (o *ImageVersionResponseModel) HasImageScheme() bool {
if o != nil && !IsNil(o.ImageScheme) {
return true
}
return false
}
// SetImageScheme gets a reference to the given ImageSchemeResponseModel and assigns it to the ImageScheme field.
func (o *ImageVersionResponseModel) SetImageScheme(v ImageSchemeResponseModel) {
o.ImageScheme = &v
}
func (o ImageVersionResponseModel) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o ImageVersionResponseModel) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if o.Version.IsSet() {
toSerialize["Version"] = o.Version.Get()
}
if !IsNil(o.Id) {
toSerialize["Id"] = o.Id
}
if o.MasterImagePath.IsSet() {
toSerialize["MasterImagePath"] = o.MasterImagePath.Get()
}
if o.Description.IsSet() {
toSerialize["Description"] = o.Description.Get()
}
if !IsNil(o.DiskSizeGB) {
toSerialize["DiskSizeGB"] = o.DiskSizeGB
}
if o.CreateTime.IsSet() {
toSerialize["CreateTime"] = o.CreateTime.Get()
}
if !IsNil(o.WriteBackCacheDiskSize) {
toSerialize["WriteBackCacheDiskSize"] = o.WriteBackCacheDiskSize
}
if !IsNil(o.WriteBackCacheMemorySize) {
toSerialize["WriteBackCacheMemorySize"] = o.WriteBackCacheMemorySize
}
if o.ImageStatus.IsSet() {
toSerialize["ImageStatus"] = o.ImageStatus.Get()
}
if o.Error.IsSet() {
toSerialize["Error"] = o.Error.Get()
}
if o.AdditionalData != nil {
toSerialize["AdditionalData"] = o.AdditionalData
}
if !IsNil(o.ImageDefinition) {
toSerialize["ImageDefinition"] = o.ImageDefinition
}
if !IsNil(o.ImageScheme) {
toSerialize["ImageScheme"] = o.ImageScheme
}
return toSerialize, nil
}
type NullableImageVersionResponseModel struct {
value *ImageVersionResponseModel
isSet bool
}
func (v NullableImageVersionResponseModel) Get() *ImageVersionResponseModel {
return v.value
}
func (v *NullableImageVersionResponseModel) Set(val *ImageVersionResponseModel) {
v.value = val
v.isSet = true
}
func (v NullableImageVersionResponseModel) IsSet() bool {
return v.isSet
}
func (v *NullableImageVersionResponseModel) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableImageVersionResponseModel(val *ImageVersionResponseModel) *NullableImageVersionResponseModel {
return &NullableImageVersionResponseModel{value: val, isSet: true}
}
func (v NullableImageVersionResponseModel) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableImageVersionResponseModel) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}