-
Notifications
You must be signed in to change notification settings - Fork 31
Expand file tree
/
Copy pathmodel_update_resource_pool_response_resource_pool.go
More file actions
757 lines (622 loc) · 34.2 KB
/
model_update_resource_pool_response_resource_pool.go
File metadata and controls
757 lines (622 loc) · 34.2 KB
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
/*
STACKIT File Storage (SFS)
API used to create and manage NFS Shares.
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package sfs
import (
"encoding/json"
"time"
)
// checks if the UpdateResourcePoolResponseResourcePool type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &UpdateResourcePoolResponseResourcePool{}
/*
types and functions for availabilityZone
*/
// isNotNullableString
type UpdateResourcePoolResponseResourcePoolGetAvailabilityZoneAttributeType = *string
func getUpdateResourcePoolResponseResourcePoolGetAvailabilityZoneAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolGetAvailabilityZoneAttributeType) (ret UpdateResourcePoolResponseResourcePoolGetAvailabilityZoneRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setUpdateResourcePoolResponseResourcePoolGetAvailabilityZoneAttributeType(arg *UpdateResourcePoolResponseResourcePoolGetAvailabilityZoneAttributeType, val UpdateResourcePoolResponseResourcePoolGetAvailabilityZoneRetType) {
*arg = &val
}
type UpdateResourcePoolResponseResourcePoolGetAvailabilityZoneArgType = string
type UpdateResourcePoolResponseResourcePoolGetAvailabilityZoneRetType = string
/*
types and functions for countShares
*/
// isInteger
type UpdateResourcePoolResponseResourcePoolGetCountSharesAttributeType = *int64
type UpdateResourcePoolResponseResourcePoolGetCountSharesArgType = int64
type UpdateResourcePoolResponseResourcePoolGetCountSharesRetType = int64
func getUpdateResourcePoolResponseResourcePoolGetCountSharesAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolGetCountSharesAttributeType) (ret UpdateResourcePoolResponseResourcePoolGetCountSharesRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setUpdateResourcePoolResponseResourcePoolGetCountSharesAttributeType(arg *UpdateResourcePoolResponseResourcePoolGetCountSharesAttributeType, val UpdateResourcePoolResponseResourcePoolGetCountSharesRetType) {
*arg = &val
}
/*
types and functions for createdAt
*/
// isDateTime
type UpdateResourcePoolResponseResourcePoolGetCreatedAtAttributeType = *time.Time
type UpdateResourcePoolResponseResourcePoolGetCreatedAtArgType = time.Time
type UpdateResourcePoolResponseResourcePoolGetCreatedAtRetType = time.Time
func getUpdateResourcePoolResponseResourcePoolGetCreatedAtAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolGetCreatedAtAttributeType) (ret UpdateResourcePoolResponseResourcePoolGetCreatedAtRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setUpdateResourcePoolResponseResourcePoolGetCreatedAtAttributeType(arg *UpdateResourcePoolResponseResourcePoolGetCreatedAtAttributeType, val UpdateResourcePoolResponseResourcePoolGetCreatedAtRetType) {
*arg = &val
}
/*
types and functions for id
*/
// isNotNullableString
type UpdateResourcePoolResponseResourcePoolGetIdAttributeType = *string
func getUpdateResourcePoolResponseResourcePoolGetIdAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolGetIdAttributeType) (ret UpdateResourcePoolResponseResourcePoolGetIdRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setUpdateResourcePoolResponseResourcePoolGetIdAttributeType(arg *UpdateResourcePoolResponseResourcePoolGetIdAttributeType, val UpdateResourcePoolResponseResourcePoolGetIdRetType) {
*arg = &val
}
type UpdateResourcePoolResponseResourcePoolGetIdArgType = string
type UpdateResourcePoolResponseResourcePoolGetIdRetType = string
/*
types and functions for ipAcl
*/
// isArray
type UpdateResourcePoolResponseResourcePoolGetIpAclAttributeType = *[]string
type UpdateResourcePoolResponseResourcePoolGetIpAclArgType = []string
type UpdateResourcePoolResponseResourcePoolGetIpAclRetType = []string
func getUpdateResourcePoolResponseResourcePoolGetIpAclAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolGetIpAclAttributeType) (ret UpdateResourcePoolResponseResourcePoolGetIpAclRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setUpdateResourcePoolResponseResourcePoolGetIpAclAttributeType(arg *UpdateResourcePoolResponseResourcePoolGetIpAclAttributeType, val UpdateResourcePoolResponseResourcePoolGetIpAclRetType) {
*arg = &val
}
/*
types and functions for labels
*/
// isContainer
type UpdateResourcePoolResponseResourcePoolGetLabelsAttributeType = *map[string]string
type UpdateResourcePoolResponseResourcePoolGetLabelsArgType = map[string]string
type UpdateResourcePoolResponseResourcePoolGetLabelsRetType = map[string]string
func getUpdateResourcePoolResponseResourcePoolGetLabelsAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolGetLabelsAttributeType) (ret UpdateResourcePoolResponseResourcePoolGetLabelsRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setUpdateResourcePoolResponseResourcePoolGetLabelsAttributeType(arg *UpdateResourcePoolResponseResourcePoolGetLabelsAttributeType, val UpdateResourcePoolResponseResourcePoolGetLabelsRetType) {
*arg = &val
}
/*
types and functions for mountPath
*/
// isNotNullableString
type UpdateResourcePoolResponseResourcePoolGetMountPathAttributeType = *string
func getUpdateResourcePoolResponseResourcePoolGetMountPathAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolGetMountPathAttributeType) (ret UpdateResourcePoolResponseResourcePoolGetMountPathRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setUpdateResourcePoolResponseResourcePoolGetMountPathAttributeType(arg *UpdateResourcePoolResponseResourcePoolGetMountPathAttributeType, val UpdateResourcePoolResponseResourcePoolGetMountPathRetType) {
*arg = &val
}
type UpdateResourcePoolResponseResourcePoolGetMountPathArgType = string
type UpdateResourcePoolResponseResourcePoolGetMountPathRetType = string
/*
types and functions for name
*/
// isNotNullableString
type UpdateResourcePoolResponseResourcePoolGetNameAttributeType = *string
func getUpdateResourcePoolResponseResourcePoolGetNameAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolGetNameAttributeType) (ret UpdateResourcePoolResponseResourcePoolGetNameRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setUpdateResourcePoolResponseResourcePoolGetNameAttributeType(arg *UpdateResourcePoolResponseResourcePoolGetNameAttributeType, val UpdateResourcePoolResponseResourcePoolGetNameRetType) {
*arg = &val
}
type UpdateResourcePoolResponseResourcePoolGetNameArgType = string
type UpdateResourcePoolResponseResourcePoolGetNameRetType = string
/*
types and functions for performanceClass
*/
// isModel
type UpdateResourcePoolResponseResourcePoolGetPerformanceClassAttributeType = *ResourcePoolPerformanceClass
type UpdateResourcePoolResponseResourcePoolGetPerformanceClassArgType = ResourcePoolPerformanceClass
type UpdateResourcePoolResponseResourcePoolGetPerformanceClassRetType = ResourcePoolPerformanceClass
func getUpdateResourcePoolResponseResourcePoolGetPerformanceClassAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolGetPerformanceClassAttributeType) (ret UpdateResourcePoolResponseResourcePoolGetPerformanceClassRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setUpdateResourcePoolResponseResourcePoolGetPerformanceClassAttributeType(arg *UpdateResourcePoolResponseResourcePoolGetPerformanceClassAttributeType, val UpdateResourcePoolResponseResourcePoolGetPerformanceClassRetType) {
*arg = &val
}
/*
types and functions for performanceClassDowngradableAt
*/
// isDateTime
type UpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtAttributeType = *time.Time
type UpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtArgType = time.Time
type UpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtRetType = time.Time
func getUpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtAttributeType) (ret UpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setUpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtAttributeType(arg *UpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtAttributeType, val UpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtRetType) {
*arg = &val
}
/*
types and functions for sizeReducibleAt
*/
// isDateTime
type UpdateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType = *time.Time
type UpdateResourcePoolResponseResourcePoolGetSizeReducibleAtArgType = time.Time
type UpdateResourcePoolResponseResourcePoolGetSizeReducibleAtRetType = time.Time
func getUpdateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType) (ret UpdateResourcePoolResponseResourcePoolGetSizeReducibleAtRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setUpdateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType(arg *UpdateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType, val UpdateResourcePoolResponseResourcePoolGetSizeReducibleAtRetType) {
*arg = &val
}
/*
types and functions for snapshotsAreVisible
*/
// isBoolean
type UpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeType = *bool
type UpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleArgType = bool
type UpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleRetType = bool
func getUpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeType) (ret UpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setUpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeType(arg *UpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeType, val UpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleRetType) {
*arg = &val
}
/*
types and functions for space
*/
// isModel
type UpdateResourcePoolResponseResourcePoolGetSpaceAttributeType = *ResourcePoolSpace
type UpdateResourcePoolResponseResourcePoolGetSpaceArgType = ResourcePoolSpace
type UpdateResourcePoolResponseResourcePoolGetSpaceRetType = ResourcePoolSpace
func getUpdateResourcePoolResponseResourcePoolGetSpaceAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolGetSpaceAttributeType) (ret UpdateResourcePoolResponseResourcePoolGetSpaceRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setUpdateResourcePoolResponseResourcePoolGetSpaceAttributeType(arg *UpdateResourcePoolResponseResourcePoolGetSpaceAttributeType, val UpdateResourcePoolResponseResourcePoolGetSpaceRetType) {
*arg = &val
}
/*
types and functions for state
*/
// isNotNullableString
type UpdateResourcePoolResponseResourcePoolGetStateAttributeType = *string
func getUpdateResourcePoolResponseResourcePoolGetStateAttributeTypeOk(arg UpdateResourcePoolResponseResourcePoolGetStateAttributeType) (ret UpdateResourcePoolResponseResourcePoolGetStateRetType, ok bool) {
if arg == nil {
return ret, false
}
return *arg, true
}
func setUpdateResourcePoolResponseResourcePoolGetStateAttributeType(arg *UpdateResourcePoolResponseResourcePoolGetStateAttributeType, val UpdateResourcePoolResponseResourcePoolGetStateRetType) {
*arg = &val
}
type UpdateResourcePoolResponseResourcePoolGetStateArgType = string
type UpdateResourcePoolResponseResourcePoolGetStateRetType = string
// UpdateResourcePoolResponseResourcePool Updated Resource Pool
type UpdateResourcePoolResponseResourcePool struct {
// Name of the respective availability zone
AvailabilityZone UpdateResourcePoolResponseResourcePoolGetAvailabilityZoneAttributeType `json:"availabilityZone,omitempty"`
// Number of Shares in the Resource Pool
// Can be cast to int32 without loss of precision.
CountShares UpdateResourcePoolResponseResourcePoolGetCountSharesAttributeType `json:"countShares,omitempty"`
CreatedAt UpdateResourcePoolResponseResourcePoolGetCreatedAtAttributeType `json:"createdAt,omitempty"`
// ID of the Resource Pool
Id UpdateResourcePoolResponseResourcePoolGetIdAttributeType `json:"id,omitempty"`
// List of IPs that can mount the Resource Pool in read-only; IPs must have a subnet mask (e.g. \"172.16.0.0/24\" for a range of IPs, or \"172.16.0.250/32\" for a specific IP)
IpAcl UpdateResourcePoolResponseResourcePoolGetIpAclAttributeType `json:"ipAcl,omitempty"`
Labels UpdateResourcePoolResponseResourcePoolGetLabelsAttributeType `json:"labels,omitempty"`
// Mount path of the Resource Pool, used to mount the Resource Pool Note that a Resource Pool can only be mounted in read-only
MountPath UpdateResourcePoolResponseResourcePoolGetMountPathAttributeType `json:"mountPath,omitempty"`
// Name of the Resource Pool
Name UpdateResourcePoolResponseResourcePoolGetNameAttributeType `json:"name,omitempty"`
PerformanceClass UpdateResourcePoolResponseResourcePoolGetPerformanceClassAttributeType `json:"performanceClass,omitempty"`
// Time when the performance class can be downgraded again.
PerformanceClassDowngradableAt UpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtAttributeType `json:"performanceClassDowngradableAt,omitempty"`
// Time when the size can be reduced again.
SizeReducibleAt UpdateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType `json:"sizeReducibleAt,omitempty"`
// Whether the .snapshot directory is visible when mounting the resource pool. Setting this value to false might prevent you from accessing the snapshots (e.g. for security reasons). Additionally, the access to the snapshots is always controlled by the export policy of the resource pool. That means, if snapshots are visible and the export policy allows for reading the resource pool, then it also allows reading the snapshot of all shares.
SnapshotsAreVisible UpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeType `json:"snapshotsAreVisible,omitempty"`
Space UpdateResourcePoolResponseResourcePoolGetSpaceAttributeType `json:"space,omitempty"`
// State of the Resource Pool (possible values: [\"pending\", \"creating\", \"created\", \"updating\", \"error\", \"deleting\"])
State UpdateResourcePoolResponseResourcePoolGetStateAttributeType `json:"state,omitempty"`
}
// NewUpdateResourcePoolResponseResourcePool instantiates a new UpdateResourcePoolResponseResourcePool 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 NewUpdateResourcePoolResponseResourcePool() *UpdateResourcePoolResponseResourcePool {
this := UpdateResourcePoolResponseResourcePool{}
return &this
}
// NewUpdateResourcePoolResponseResourcePoolWithDefaults instantiates a new UpdateResourcePoolResponseResourcePool 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 NewUpdateResourcePoolResponseResourcePoolWithDefaults() *UpdateResourcePoolResponseResourcePool {
this := UpdateResourcePoolResponseResourcePool{}
var snapshotsAreVisible bool = false
this.SnapshotsAreVisible = &snapshotsAreVisible
return &this
}
// GetAvailabilityZone returns the AvailabilityZone field value if set, zero value otherwise.
func (o *UpdateResourcePoolResponseResourcePool) GetAvailabilityZone() (res UpdateResourcePoolResponseResourcePoolGetAvailabilityZoneRetType) {
res, _ = o.GetAvailabilityZoneOk()
return
}
// GetAvailabilityZoneOk returns a tuple with the AvailabilityZone field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateResourcePoolResponseResourcePool) GetAvailabilityZoneOk() (ret UpdateResourcePoolResponseResourcePoolGetAvailabilityZoneRetType, ok bool) {
return getUpdateResourcePoolResponseResourcePoolGetAvailabilityZoneAttributeTypeOk(o.AvailabilityZone)
}
// HasAvailabilityZone returns a boolean if a field has been set.
func (o *UpdateResourcePoolResponseResourcePool) HasAvailabilityZone() bool {
_, ok := o.GetAvailabilityZoneOk()
return ok
}
// SetAvailabilityZone gets a reference to the given string and assigns it to the AvailabilityZone field.
func (o *UpdateResourcePoolResponseResourcePool) SetAvailabilityZone(v UpdateResourcePoolResponseResourcePoolGetAvailabilityZoneRetType) {
setUpdateResourcePoolResponseResourcePoolGetAvailabilityZoneAttributeType(&o.AvailabilityZone, v)
}
// GetCountShares returns the CountShares field value if set, zero value otherwise.
func (o *UpdateResourcePoolResponseResourcePool) GetCountShares() (res UpdateResourcePoolResponseResourcePoolGetCountSharesRetType) {
res, _ = o.GetCountSharesOk()
return
}
// GetCountSharesOk returns a tuple with the CountShares field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateResourcePoolResponseResourcePool) GetCountSharesOk() (ret UpdateResourcePoolResponseResourcePoolGetCountSharesRetType, ok bool) {
return getUpdateResourcePoolResponseResourcePoolGetCountSharesAttributeTypeOk(o.CountShares)
}
// HasCountShares returns a boolean if a field has been set.
func (o *UpdateResourcePoolResponseResourcePool) HasCountShares() bool {
_, ok := o.GetCountSharesOk()
return ok
}
// SetCountShares gets a reference to the given int64 and assigns it to the CountShares field.
func (o *UpdateResourcePoolResponseResourcePool) SetCountShares(v UpdateResourcePoolResponseResourcePoolGetCountSharesRetType) {
setUpdateResourcePoolResponseResourcePoolGetCountSharesAttributeType(&o.CountShares, v)
}
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
func (o *UpdateResourcePoolResponseResourcePool) GetCreatedAt() (res UpdateResourcePoolResponseResourcePoolGetCreatedAtRetType) {
res, _ = o.GetCreatedAtOk()
return
}
// 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 *UpdateResourcePoolResponseResourcePool) GetCreatedAtOk() (ret UpdateResourcePoolResponseResourcePoolGetCreatedAtRetType, ok bool) {
return getUpdateResourcePoolResponseResourcePoolGetCreatedAtAttributeTypeOk(o.CreatedAt)
}
// HasCreatedAt returns a boolean if a field has been set.
func (o *UpdateResourcePoolResponseResourcePool) HasCreatedAt() bool {
_, ok := o.GetCreatedAtOk()
return ok
}
// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field.
func (o *UpdateResourcePoolResponseResourcePool) SetCreatedAt(v UpdateResourcePoolResponseResourcePoolGetCreatedAtRetType) {
setUpdateResourcePoolResponseResourcePoolGetCreatedAtAttributeType(&o.CreatedAt, v)
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *UpdateResourcePoolResponseResourcePool) GetId() (res UpdateResourcePoolResponseResourcePoolGetIdRetType) {
res, _ = o.GetIdOk()
return
}
// 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 *UpdateResourcePoolResponseResourcePool) GetIdOk() (ret UpdateResourcePoolResponseResourcePoolGetIdRetType, ok bool) {
return getUpdateResourcePoolResponseResourcePoolGetIdAttributeTypeOk(o.Id)
}
// HasId returns a boolean if a field has been set.
func (o *UpdateResourcePoolResponseResourcePool) HasId() bool {
_, ok := o.GetIdOk()
return ok
}
// SetId gets a reference to the given string and assigns it to the Id field.
func (o *UpdateResourcePoolResponseResourcePool) SetId(v UpdateResourcePoolResponseResourcePoolGetIdRetType) {
setUpdateResourcePoolResponseResourcePoolGetIdAttributeType(&o.Id, v)
}
// GetIpAcl returns the IpAcl field value if set, zero value otherwise.
func (o *UpdateResourcePoolResponseResourcePool) GetIpAcl() (res UpdateResourcePoolResponseResourcePoolGetIpAclRetType) {
res, _ = o.GetIpAclOk()
return
}
// GetIpAclOk returns a tuple with the IpAcl field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateResourcePoolResponseResourcePool) GetIpAclOk() (ret UpdateResourcePoolResponseResourcePoolGetIpAclRetType, ok bool) {
return getUpdateResourcePoolResponseResourcePoolGetIpAclAttributeTypeOk(o.IpAcl)
}
// HasIpAcl returns a boolean if a field has been set.
func (o *UpdateResourcePoolResponseResourcePool) HasIpAcl() bool {
_, ok := o.GetIpAclOk()
return ok
}
// SetIpAcl gets a reference to the given []string and assigns it to the IpAcl field.
func (o *UpdateResourcePoolResponseResourcePool) SetIpAcl(v UpdateResourcePoolResponseResourcePoolGetIpAclRetType) {
setUpdateResourcePoolResponseResourcePoolGetIpAclAttributeType(&o.IpAcl, v)
}
// GetLabels returns the Labels field value if set, zero value otherwise.
func (o *UpdateResourcePoolResponseResourcePool) GetLabels() (res UpdateResourcePoolResponseResourcePoolGetLabelsRetType) {
res, _ = o.GetLabelsOk()
return
}
// GetLabelsOk returns a tuple with the Labels field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateResourcePoolResponseResourcePool) GetLabelsOk() (ret UpdateResourcePoolResponseResourcePoolGetLabelsRetType, ok bool) {
return getUpdateResourcePoolResponseResourcePoolGetLabelsAttributeTypeOk(o.Labels)
}
// HasLabels returns a boolean if a field has been set.
func (o *UpdateResourcePoolResponseResourcePool) HasLabels() bool {
_, ok := o.GetLabelsOk()
return ok
}
// SetLabels gets a reference to the given map[string]string and assigns it to the Labels field.
func (o *UpdateResourcePoolResponseResourcePool) SetLabels(v UpdateResourcePoolResponseResourcePoolGetLabelsRetType) {
setUpdateResourcePoolResponseResourcePoolGetLabelsAttributeType(&o.Labels, v)
}
// GetMountPath returns the MountPath field value if set, zero value otherwise.
func (o *UpdateResourcePoolResponseResourcePool) GetMountPath() (res UpdateResourcePoolResponseResourcePoolGetMountPathRetType) {
res, _ = o.GetMountPathOk()
return
}
// GetMountPathOk returns a tuple with the MountPath field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateResourcePoolResponseResourcePool) GetMountPathOk() (ret UpdateResourcePoolResponseResourcePoolGetMountPathRetType, ok bool) {
return getUpdateResourcePoolResponseResourcePoolGetMountPathAttributeTypeOk(o.MountPath)
}
// HasMountPath returns a boolean if a field has been set.
func (o *UpdateResourcePoolResponseResourcePool) HasMountPath() bool {
_, ok := o.GetMountPathOk()
return ok
}
// SetMountPath gets a reference to the given string and assigns it to the MountPath field.
func (o *UpdateResourcePoolResponseResourcePool) SetMountPath(v UpdateResourcePoolResponseResourcePoolGetMountPathRetType) {
setUpdateResourcePoolResponseResourcePoolGetMountPathAttributeType(&o.MountPath, v)
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *UpdateResourcePoolResponseResourcePool) GetName() (res UpdateResourcePoolResponseResourcePoolGetNameRetType) {
res, _ = o.GetNameOk()
return
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateResourcePoolResponseResourcePool) GetNameOk() (ret UpdateResourcePoolResponseResourcePoolGetNameRetType, ok bool) {
return getUpdateResourcePoolResponseResourcePoolGetNameAttributeTypeOk(o.Name)
}
// HasName returns a boolean if a field has been set.
func (o *UpdateResourcePoolResponseResourcePool) HasName() bool {
_, ok := o.GetNameOk()
return ok
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *UpdateResourcePoolResponseResourcePool) SetName(v UpdateResourcePoolResponseResourcePoolGetNameRetType) {
setUpdateResourcePoolResponseResourcePoolGetNameAttributeType(&o.Name, v)
}
// GetPerformanceClass returns the PerformanceClass field value if set, zero value otherwise.
func (o *UpdateResourcePoolResponseResourcePool) GetPerformanceClass() (res UpdateResourcePoolResponseResourcePoolGetPerformanceClassRetType) {
res, _ = o.GetPerformanceClassOk()
return
}
// GetPerformanceClassOk returns a tuple with the PerformanceClass field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateResourcePoolResponseResourcePool) GetPerformanceClassOk() (ret UpdateResourcePoolResponseResourcePoolGetPerformanceClassRetType, ok bool) {
return getUpdateResourcePoolResponseResourcePoolGetPerformanceClassAttributeTypeOk(o.PerformanceClass)
}
// HasPerformanceClass returns a boolean if a field has been set.
func (o *UpdateResourcePoolResponseResourcePool) HasPerformanceClass() bool {
_, ok := o.GetPerformanceClassOk()
return ok
}
// SetPerformanceClass gets a reference to the given ResourcePoolPerformanceClass and assigns it to the PerformanceClass field.
func (o *UpdateResourcePoolResponseResourcePool) SetPerformanceClass(v UpdateResourcePoolResponseResourcePoolGetPerformanceClassRetType) {
setUpdateResourcePoolResponseResourcePoolGetPerformanceClassAttributeType(&o.PerformanceClass, v)
}
// GetPerformanceClassDowngradableAt returns the PerformanceClassDowngradableAt field value if set, zero value otherwise.
func (o *UpdateResourcePoolResponseResourcePool) GetPerformanceClassDowngradableAt() (res UpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtRetType) {
res, _ = o.GetPerformanceClassDowngradableAtOk()
return
}
// GetPerformanceClassDowngradableAtOk returns a tuple with the PerformanceClassDowngradableAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateResourcePoolResponseResourcePool) GetPerformanceClassDowngradableAtOk() (ret UpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtRetType, ok bool) {
return getUpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtAttributeTypeOk(o.PerformanceClassDowngradableAt)
}
// HasPerformanceClassDowngradableAt returns a boolean if a field has been set.
func (o *UpdateResourcePoolResponseResourcePool) HasPerformanceClassDowngradableAt() bool {
_, ok := o.GetPerformanceClassDowngradableAtOk()
return ok
}
// SetPerformanceClassDowngradableAt gets a reference to the given time.Time and assigns it to the PerformanceClassDowngradableAt field.
func (o *UpdateResourcePoolResponseResourcePool) SetPerformanceClassDowngradableAt(v UpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtRetType) {
setUpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtAttributeType(&o.PerformanceClassDowngradableAt, v)
}
// GetSizeReducibleAt returns the SizeReducibleAt field value if set, zero value otherwise.
func (o *UpdateResourcePoolResponseResourcePool) GetSizeReducibleAt() (res UpdateResourcePoolResponseResourcePoolGetSizeReducibleAtRetType) {
res, _ = o.GetSizeReducibleAtOk()
return
}
// GetSizeReducibleAtOk returns a tuple with the SizeReducibleAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateResourcePoolResponseResourcePool) GetSizeReducibleAtOk() (ret UpdateResourcePoolResponseResourcePoolGetSizeReducibleAtRetType, ok bool) {
return getUpdateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeTypeOk(o.SizeReducibleAt)
}
// HasSizeReducibleAt returns a boolean if a field has been set.
func (o *UpdateResourcePoolResponseResourcePool) HasSizeReducibleAt() bool {
_, ok := o.GetSizeReducibleAtOk()
return ok
}
// SetSizeReducibleAt gets a reference to the given time.Time and assigns it to the SizeReducibleAt field.
func (o *UpdateResourcePoolResponseResourcePool) SetSizeReducibleAt(v UpdateResourcePoolResponseResourcePoolGetSizeReducibleAtRetType) {
setUpdateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeType(&o.SizeReducibleAt, v)
}
// GetSnapshotsAreVisible returns the SnapshotsAreVisible field value if set, zero value otherwise.
func (o *UpdateResourcePoolResponseResourcePool) GetSnapshotsAreVisible() (res UpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleRetType) {
res, _ = o.GetSnapshotsAreVisibleOk()
return
}
// GetSnapshotsAreVisibleOk returns a tuple with the SnapshotsAreVisible field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateResourcePoolResponseResourcePool) GetSnapshotsAreVisibleOk() (ret UpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleRetType, ok bool) {
return getUpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeTypeOk(o.SnapshotsAreVisible)
}
// HasSnapshotsAreVisible returns a boolean if a field has been set.
func (o *UpdateResourcePoolResponseResourcePool) HasSnapshotsAreVisible() bool {
_, ok := o.GetSnapshotsAreVisibleOk()
return ok
}
// SetSnapshotsAreVisible gets a reference to the given bool and assigns it to the SnapshotsAreVisible field.
func (o *UpdateResourcePoolResponseResourcePool) SetSnapshotsAreVisible(v UpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleRetType) {
setUpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeType(&o.SnapshotsAreVisible, v)
}
// GetSpace returns the Space field value if set, zero value otherwise.
func (o *UpdateResourcePoolResponseResourcePool) GetSpace() (res UpdateResourcePoolResponseResourcePoolGetSpaceRetType) {
res, _ = o.GetSpaceOk()
return
}
// GetSpaceOk returns a tuple with the Space field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateResourcePoolResponseResourcePool) GetSpaceOk() (ret UpdateResourcePoolResponseResourcePoolGetSpaceRetType, ok bool) {
return getUpdateResourcePoolResponseResourcePoolGetSpaceAttributeTypeOk(o.Space)
}
// HasSpace returns a boolean if a field has been set.
func (o *UpdateResourcePoolResponseResourcePool) HasSpace() bool {
_, ok := o.GetSpaceOk()
return ok
}
// SetSpace gets a reference to the given ResourcePoolSpace and assigns it to the Space field.
func (o *UpdateResourcePoolResponseResourcePool) SetSpace(v UpdateResourcePoolResponseResourcePoolGetSpaceRetType) {
setUpdateResourcePoolResponseResourcePoolGetSpaceAttributeType(&o.Space, v)
}
// GetState returns the State field value if set, zero value otherwise.
func (o *UpdateResourcePoolResponseResourcePool) GetState() (res UpdateResourcePoolResponseResourcePoolGetStateRetType) {
res, _ = o.GetStateOk()
return
}
// GetStateOk returns a tuple with the State field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *UpdateResourcePoolResponseResourcePool) GetStateOk() (ret UpdateResourcePoolResponseResourcePoolGetStateRetType, ok bool) {
return getUpdateResourcePoolResponseResourcePoolGetStateAttributeTypeOk(o.State)
}
// HasState returns a boolean if a field has been set.
func (o *UpdateResourcePoolResponseResourcePool) HasState() bool {
_, ok := o.GetStateOk()
return ok
}
// SetState gets a reference to the given string and assigns it to the State field.
func (o *UpdateResourcePoolResponseResourcePool) SetState(v UpdateResourcePoolResponseResourcePoolGetStateRetType) {
setUpdateResourcePoolResponseResourcePoolGetStateAttributeType(&o.State, v)
}
func (o UpdateResourcePoolResponseResourcePool) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if val, ok := getUpdateResourcePoolResponseResourcePoolGetAvailabilityZoneAttributeTypeOk(o.AvailabilityZone); ok {
toSerialize["AvailabilityZone"] = val
}
if val, ok := getUpdateResourcePoolResponseResourcePoolGetCountSharesAttributeTypeOk(o.CountShares); ok {
toSerialize["CountShares"] = val
}
if val, ok := getUpdateResourcePoolResponseResourcePoolGetCreatedAtAttributeTypeOk(o.CreatedAt); ok {
toSerialize["CreatedAt"] = val
}
if val, ok := getUpdateResourcePoolResponseResourcePoolGetIdAttributeTypeOk(o.Id); ok {
toSerialize["Id"] = val
}
if val, ok := getUpdateResourcePoolResponseResourcePoolGetIpAclAttributeTypeOk(o.IpAcl); ok {
toSerialize["IpAcl"] = val
}
if val, ok := getUpdateResourcePoolResponseResourcePoolGetLabelsAttributeTypeOk(o.Labels); ok {
toSerialize["Labels"] = val
}
if val, ok := getUpdateResourcePoolResponseResourcePoolGetMountPathAttributeTypeOk(o.MountPath); ok {
toSerialize["MountPath"] = val
}
if val, ok := getUpdateResourcePoolResponseResourcePoolGetNameAttributeTypeOk(o.Name); ok {
toSerialize["Name"] = val
}
if val, ok := getUpdateResourcePoolResponseResourcePoolGetPerformanceClassAttributeTypeOk(o.PerformanceClass); ok {
toSerialize["PerformanceClass"] = val
}
if val, ok := getUpdateResourcePoolResponseResourcePoolGetPerformanceClassDowngradableAtAttributeTypeOk(o.PerformanceClassDowngradableAt); ok {
toSerialize["PerformanceClassDowngradableAt"] = val
}
if val, ok := getUpdateResourcePoolResponseResourcePoolGetSizeReducibleAtAttributeTypeOk(o.SizeReducibleAt); ok {
toSerialize["SizeReducibleAt"] = val
}
if val, ok := getUpdateResourcePoolResponseResourcePoolgetSnapshotsAreVisibleAttributeTypeOk(o.SnapshotsAreVisible); ok {
toSerialize["SnapshotsAreVisible"] = val
}
if val, ok := getUpdateResourcePoolResponseResourcePoolGetSpaceAttributeTypeOk(o.Space); ok {
toSerialize["Space"] = val
}
if val, ok := getUpdateResourcePoolResponseResourcePoolGetStateAttributeTypeOk(o.State); ok {
toSerialize["State"] = val
}
return toSerialize, nil
}
type NullableUpdateResourcePoolResponseResourcePool struct {
value *UpdateResourcePoolResponseResourcePool
isSet bool
}
func (v NullableUpdateResourcePoolResponseResourcePool) Get() *UpdateResourcePoolResponseResourcePool {
return v.value
}
func (v *NullableUpdateResourcePoolResponseResourcePool) Set(val *UpdateResourcePoolResponseResourcePool) {
v.value = val
v.isSet = true
}
func (v NullableUpdateResourcePoolResponseResourcePool) IsSet() bool {
return v.isSet
}
func (v *NullableUpdateResourcePoolResponseResourcePool) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableUpdateResourcePoolResponseResourcePool(val *UpdateResourcePoolResponseResourcePool) *NullableUpdateResourcePoolResponseResourcePool {
return &NullableUpdateResourcePoolResponseResourcePool{value: val, isSet: true}
}
func (v NullableUpdateResourcePoolResponseResourcePool) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableUpdateResourcePoolResponseResourcePool) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}