forked from Yohan460/go-jamf-api
/
model_computer_hardware.go
1020 lines (871 loc) · 29.6 KB
/
model_computer_hardware.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
Jamf Pro API
## Overview The Jamf Pro API is a RESTful API for Jamf Pro built to enable consistent and efficient programmatic access to Jamf Pro.<br/><br/> The swagger schema can be found [here](/api/schema/).
API version: production
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package api
import (
"encoding/json"
)
// ComputerHardware struct for ComputerHardware
type ComputerHardware struct {
Make *string `json:"make,omitempty"`
Model *string `json:"model,omitempty"`
ModelIdentifier *string `json:"modelIdentifier,omitempty"`
SerialNumber *string `json:"serialNumber,omitempty"`
// Processor Speed in MHz.
ProcessorSpeedMhz *int64 `json:"processorSpeedMhz,omitempty"`
ProcessorCount *int32 `json:"processorCount,omitempty"`
CoreCount *int32 `json:"coreCount,omitempty"`
ProcessorType *string `json:"processorType,omitempty"`
ProcessorArchitecture *string `json:"processorArchitecture,omitempty"`
BusSpeedMhz *int64 `json:"busSpeedMhz,omitempty"`
// Cache Size in KB.
CacheSizeKilobytes *int64 `json:"cacheSizeKilobytes,omitempty"`
NetworkAdapterType *string `json:"networkAdapterType,omitempty"`
MacAddress *string `json:"macAddress,omitempty"`
AltNetworkAdapterType *string `json:"altNetworkAdapterType,omitempty"`
AltMacAddress *string `json:"altMacAddress,omitempty"`
// Total RAM Size in MB.
TotalRamMegabytes *int64 `json:"totalRamMegabytes,omitempty"`
// Available RAM slots.
OpenRamSlots *int32 `json:"openRamSlots,omitempty"`
// Remaining percentage of battery power.
BatteryCapacityPercent *int32 `json:"batteryCapacityPercent,omitempty"`
SmcVersion *string `json:"smcVersion,omitempty"`
NicSpeed *string `json:"nicSpeed,omitempty"`
OpticalDrive *string `json:"opticalDrive,omitempty"`
BootRom *string `json:"bootRom,omitempty"`
BleCapable *bool `json:"bleCapable,omitempty"`
SupportsIosAppInstalls *bool `json:"supportsIosAppInstalls,omitempty"`
AppleSilicon *bool `json:"appleSilicon,omitempty"`
ExtensionAttributes []ComputerExtensionAttribute `json:"extensionAttributes,omitempty"`
}
// NewComputerHardware instantiates a new ComputerHardware 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 NewComputerHardware() *ComputerHardware {
this := ComputerHardware{}
return &this
}
// NewComputerHardwareWithDefaults instantiates a new ComputerHardware 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 NewComputerHardwareWithDefaults() *ComputerHardware {
this := ComputerHardware{}
return &this
}
// GetMake returns the Make field value if set, zero value otherwise.
func (o *ComputerHardware) GetMake() string {
if o == nil || o.Make == nil {
var ret string
return ret
}
return *o.Make
}
// GetMakeOk returns a tuple with the Make field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetMakeOk() (*string, bool) {
if o == nil || o.Make == nil {
return nil, false
}
return o.Make, true
}
// HasMake returns a boolean if a field has been set.
func (o *ComputerHardware) HasMake() bool {
if o != nil && o.Make != nil {
return true
}
return false
}
// SetMake gets a reference to the given string and assigns it to the Make field.
func (o *ComputerHardware) SetMake(v string) {
o.Make = &v
}
// GetModel returns the Model field value if set, zero value otherwise.
func (o *ComputerHardware) GetModel() string {
if o == nil || o.Model == nil {
var ret string
return ret
}
return *o.Model
}
// GetModelOk returns a tuple with the Model field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetModelOk() (*string, bool) {
if o == nil || o.Model == nil {
return nil, false
}
return o.Model, true
}
// HasModel returns a boolean if a field has been set.
func (o *ComputerHardware) HasModel() bool {
if o != nil && o.Model != nil {
return true
}
return false
}
// SetModel gets a reference to the given string and assigns it to the Model field.
func (o *ComputerHardware) SetModel(v string) {
o.Model = &v
}
// GetModelIdentifier returns the ModelIdentifier field value if set, zero value otherwise.
func (o *ComputerHardware) GetModelIdentifier() string {
if o == nil || o.ModelIdentifier == nil {
var ret string
return ret
}
return *o.ModelIdentifier
}
// GetModelIdentifierOk returns a tuple with the ModelIdentifier field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetModelIdentifierOk() (*string, bool) {
if o == nil || o.ModelIdentifier == nil {
return nil, false
}
return o.ModelIdentifier, true
}
// HasModelIdentifier returns a boolean if a field has been set.
func (o *ComputerHardware) HasModelIdentifier() bool {
if o != nil && o.ModelIdentifier != nil {
return true
}
return false
}
// SetModelIdentifier gets a reference to the given string and assigns it to the ModelIdentifier field.
func (o *ComputerHardware) SetModelIdentifier(v string) {
o.ModelIdentifier = &v
}
// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise.
func (o *ComputerHardware) GetSerialNumber() string {
if o == nil || o.SerialNumber == nil {
var ret string
return ret
}
return *o.SerialNumber
}
// GetSerialNumberOk returns a tuple with the SerialNumber field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetSerialNumberOk() (*string, bool) {
if o == nil || o.SerialNumber == nil {
return nil, false
}
return o.SerialNumber, true
}
// HasSerialNumber returns a boolean if a field has been set.
func (o *ComputerHardware) HasSerialNumber() bool {
if o != nil && o.SerialNumber != nil {
return true
}
return false
}
// SetSerialNumber gets a reference to the given string and assigns it to the SerialNumber field.
func (o *ComputerHardware) SetSerialNumber(v string) {
o.SerialNumber = &v
}
// GetProcessorSpeedMhz returns the ProcessorSpeedMhz field value if set, zero value otherwise.
func (o *ComputerHardware) GetProcessorSpeedMhz() int64 {
if o == nil || o.ProcessorSpeedMhz == nil {
var ret int64
return ret
}
return *o.ProcessorSpeedMhz
}
// GetProcessorSpeedMhzOk returns a tuple with the ProcessorSpeedMhz field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetProcessorSpeedMhzOk() (*int64, bool) {
if o == nil || o.ProcessorSpeedMhz == nil {
return nil, false
}
return o.ProcessorSpeedMhz, true
}
// HasProcessorSpeedMhz returns a boolean if a field has been set.
func (o *ComputerHardware) HasProcessorSpeedMhz() bool {
if o != nil && o.ProcessorSpeedMhz != nil {
return true
}
return false
}
// SetProcessorSpeedMhz gets a reference to the given int64 and assigns it to the ProcessorSpeedMhz field.
func (o *ComputerHardware) SetProcessorSpeedMhz(v int64) {
o.ProcessorSpeedMhz = &v
}
// GetProcessorCount returns the ProcessorCount field value if set, zero value otherwise.
func (o *ComputerHardware) GetProcessorCount() int32 {
if o == nil || o.ProcessorCount == nil {
var ret int32
return ret
}
return *o.ProcessorCount
}
// GetProcessorCountOk returns a tuple with the ProcessorCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetProcessorCountOk() (*int32, bool) {
if o == nil || o.ProcessorCount == nil {
return nil, false
}
return o.ProcessorCount, true
}
// HasProcessorCount returns a boolean if a field has been set.
func (o *ComputerHardware) HasProcessorCount() bool {
if o != nil && o.ProcessorCount != nil {
return true
}
return false
}
// SetProcessorCount gets a reference to the given int32 and assigns it to the ProcessorCount field.
func (o *ComputerHardware) SetProcessorCount(v int32) {
o.ProcessorCount = &v
}
// GetCoreCount returns the CoreCount field value if set, zero value otherwise.
func (o *ComputerHardware) GetCoreCount() int32 {
if o == nil || o.CoreCount == nil {
var ret int32
return ret
}
return *o.CoreCount
}
// GetCoreCountOk returns a tuple with the CoreCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetCoreCountOk() (*int32, bool) {
if o == nil || o.CoreCount == nil {
return nil, false
}
return o.CoreCount, true
}
// HasCoreCount returns a boolean if a field has been set.
func (o *ComputerHardware) HasCoreCount() bool {
if o != nil && o.CoreCount != nil {
return true
}
return false
}
// SetCoreCount gets a reference to the given int32 and assigns it to the CoreCount field.
func (o *ComputerHardware) SetCoreCount(v int32) {
o.CoreCount = &v
}
// GetProcessorType returns the ProcessorType field value if set, zero value otherwise.
func (o *ComputerHardware) GetProcessorType() string {
if o == nil || o.ProcessorType == nil {
var ret string
return ret
}
return *o.ProcessorType
}
// GetProcessorTypeOk returns a tuple with the ProcessorType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetProcessorTypeOk() (*string, bool) {
if o == nil || o.ProcessorType == nil {
return nil, false
}
return o.ProcessorType, true
}
// HasProcessorType returns a boolean if a field has been set.
func (o *ComputerHardware) HasProcessorType() bool {
if o != nil && o.ProcessorType != nil {
return true
}
return false
}
// SetProcessorType gets a reference to the given string and assigns it to the ProcessorType field.
func (o *ComputerHardware) SetProcessorType(v string) {
o.ProcessorType = &v
}
// GetProcessorArchitecture returns the ProcessorArchitecture field value if set, zero value otherwise.
func (o *ComputerHardware) GetProcessorArchitecture() string {
if o == nil || o.ProcessorArchitecture == nil {
var ret string
return ret
}
return *o.ProcessorArchitecture
}
// GetProcessorArchitectureOk returns a tuple with the ProcessorArchitecture field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetProcessorArchitectureOk() (*string, bool) {
if o == nil || o.ProcessorArchitecture == nil {
return nil, false
}
return o.ProcessorArchitecture, true
}
// HasProcessorArchitecture returns a boolean if a field has been set.
func (o *ComputerHardware) HasProcessorArchitecture() bool {
if o != nil && o.ProcessorArchitecture != nil {
return true
}
return false
}
// SetProcessorArchitecture gets a reference to the given string and assigns it to the ProcessorArchitecture field.
func (o *ComputerHardware) SetProcessorArchitecture(v string) {
o.ProcessorArchitecture = &v
}
// GetBusSpeedMhz returns the BusSpeedMhz field value if set, zero value otherwise.
func (o *ComputerHardware) GetBusSpeedMhz() int64 {
if o == nil || o.BusSpeedMhz == nil {
var ret int64
return ret
}
return *o.BusSpeedMhz
}
// GetBusSpeedMhzOk returns a tuple with the BusSpeedMhz field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetBusSpeedMhzOk() (*int64, bool) {
if o == nil || o.BusSpeedMhz == nil {
return nil, false
}
return o.BusSpeedMhz, true
}
// HasBusSpeedMhz returns a boolean if a field has been set.
func (o *ComputerHardware) HasBusSpeedMhz() bool {
if o != nil && o.BusSpeedMhz != nil {
return true
}
return false
}
// SetBusSpeedMhz gets a reference to the given int64 and assigns it to the BusSpeedMhz field.
func (o *ComputerHardware) SetBusSpeedMhz(v int64) {
o.BusSpeedMhz = &v
}
// GetCacheSizeKilobytes returns the CacheSizeKilobytes field value if set, zero value otherwise.
func (o *ComputerHardware) GetCacheSizeKilobytes() int64 {
if o == nil || o.CacheSizeKilobytes == nil {
var ret int64
return ret
}
return *o.CacheSizeKilobytes
}
// GetCacheSizeKilobytesOk returns a tuple with the CacheSizeKilobytes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetCacheSizeKilobytesOk() (*int64, bool) {
if o == nil || o.CacheSizeKilobytes == nil {
return nil, false
}
return o.CacheSizeKilobytes, true
}
// HasCacheSizeKilobytes returns a boolean if a field has been set.
func (o *ComputerHardware) HasCacheSizeKilobytes() bool {
if o != nil && o.CacheSizeKilobytes != nil {
return true
}
return false
}
// SetCacheSizeKilobytes gets a reference to the given int64 and assigns it to the CacheSizeKilobytes field.
func (o *ComputerHardware) SetCacheSizeKilobytes(v int64) {
o.CacheSizeKilobytes = &v
}
// GetNetworkAdapterType returns the NetworkAdapterType field value if set, zero value otherwise.
func (o *ComputerHardware) GetNetworkAdapterType() string {
if o == nil || o.NetworkAdapterType == nil {
var ret string
return ret
}
return *o.NetworkAdapterType
}
// GetNetworkAdapterTypeOk returns a tuple with the NetworkAdapterType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetNetworkAdapterTypeOk() (*string, bool) {
if o == nil || o.NetworkAdapterType == nil {
return nil, false
}
return o.NetworkAdapterType, true
}
// HasNetworkAdapterType returns a boolean if a field has been set.
func (o *ComputerHardware) HasNetworkAdapterType() bool {
if o != nil && o.NetworkAdapterType != nil {
return true
}
return false
}
// SetNetworkAdapterType gets a reference to the given string and assigns it to the NetworkAdapterType field.
func (o *ComputerHardware) SetNetworkAdapterType(v string) {
o.NetworkAdapterType = &v
}
// GetMacAddress returns the MacAddress field value if set, zero value otherwise.
func (o *ComputerHardware) GetMacAddress() string {
if o == nil || o.MacAddress == nil {
var ret string
return ret
}
return *o.MacAddress
}
// GetMacAddressOk returns a tuple with the MacAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetMacAddressOk() (*string, bool) {
if o == nil || o.MacAddress == nil {
return nil, false
}
return o.MacAddress, true
}
// HasMacAddress returns a boolean if a field has been set.
func (o *ComputerHardware) HasMacAddress() bool {
if o != nil && o.MacAddress != nil {
return true
}
return false
}
// SetMacAddress gets a reference to the given string and assigns it to the MacAddress field.
func (o *ComputerHardware) SetMacAddress(v string) {
o.MacAddress = &v
}
// GetAltNetworkAdapterType returns the AltNetworkAdapterType field value if set, zero value otherwise.
func (o *ComputerHardware) GetAltNetworkAdapterType() string {
if o == nil || o.AltNetworkAdapterType == nil {
var ret string
return ret
}
return *o.AltNetworkAdapterType
}
// GetAltNetworkAdapterTypeOk returns a tuple with the AltNetworkAdapterType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetAltNetworkAdapterTypeOk() (*string, bool) {
if o == nil || o.AltNetworkAdapterType == nil {
return nil, false
}
return o.AltNetworkAdapterType, true
}
// HasAltNetworkAdapterType returns a boolean if a field has been set.
func (o *ComputerHardware) HasAltNetworkAdapterType() bool {
if o != nil && o.AltNetworkAdapterType != nil {
return true
}
return false
}
// SetAltNetworkAdapterType gets a reference to the given string and assigns it to the AltNetworkAdapterType field.
func (o *ComputerHardware) SetAltNetworkAdapterType(v string) {
o.AltNetworkAdapterType = &v
}
// GetAltMacAddress returns the AltMacAddress field value if set, zero value otherwise.
func (o *ComputerHardware) GetAltMacAddress() string {
if o == nil || o.AltMacAddress == nil {
var ret string
return ret
}
return *o.AltMacAddress
}
// GetAltMacAddressOk returns a tuple with the AltMacAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetAltMacAddressOk() (*string, bool) {
if o == nil || o.AltMacAddress == nil {
return nil, false
}
return o.AltMacAddress, true
}
// HasAltMacAddress returns a boolean if a field has been set.
func (o *ComputerHardware) HasAltMacAddress() bool {
if o != nil && o.AltMacAddress != nil {
return true
}
return false
}
// SetAltMacAddress gets a reference to the given string and assigns it to the AltMacAddress field.
func (o *ComputerHardware) SetAltMacAddress(v string) {
o.AltMacAddress = &v
}
// GetTotalRamMegabytes returns the TotalRamMegabytes field value if set, zero value otherwise.
func (o *ComputerHardware) GetTotalRamMegabytes() int64 {
if o == nil || o.TotalRamMegabytes == nil {
var ret int64
return ret
}
return *o.TotalRamMegabytes
}
// GetTotalRamMegabytesOk returns a tuple with the TotalRamMegabytes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetTotalRamMegabytesOk() (*int64, bool) {
if o == nil || o.TotalRamMegabytes == nil {
return nil, false
}
return o.TotalRamMegabytes, true
}
// HasTotalRamMegabytes returns a boolean if a field has been set.
func (o *ComputerHardware) HasTotalRamMegabytes() bool {
if o != nil && o.TotalRamMegabytes != nil {
return true
}
return false
}
// SetTotalRamMegabytes gets a reference to the given int64 and assigns it to the TotalRamMegabytes field.
func (o *ComputerHardware) SetTotalRamMegabytes(v int64) {
o.TotalRamMegabytes = &v
}
// GetOpenRamSlots returns the OpenRamSlots field value if set, zero value otherwise.
func (o *ComputerHardware) GetOpenRamSlots() int32 {
if o == nil || o.OpenRamSlots == nil {
var ret int32
return ret
}
return *o.OpenRamSlots
}
// GetOpenRamSlotsOk returns a tuple with the OpenRamSlots field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetOpenRamSlotsOk() (*int32, bool) {
if o == nil || o.OpenRamSlots == nil {
return nil, false
}
return o.OpenRamSlots, true
}
// HasOpenRamSlots returns a boolean if a field has been set.
func (o *ComputerHardware) HasOpenRamSlots() bool {
if o != nil && o.OpenRamSlots != nil {
return true
}
return false
}
// SetOpenRamSlots gets a reference to the given int32 and assigns it to the OpenRamSlots field.
func (o *ComputerHardware) SetOpenRamSlots(v int32) {
o.OpenRamSlots = &v
}
// GetBatteryCapacityPercent returns the BatteryCapacityPercent field value if set, zero value otherwise.
func (o *ComputerHardware) GetBatteryCapacityPercent() int32 {
if o == nil || o.BatteryCapacityPercent == nil {
var ret int32
return ret
}
return *o.BatteryCapacityPercent
}
// GetBatteryCapacityPercentOk returns a tuple with the BatteryCapacityPercent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetBatteryCapacityPercentOk() (*int32, bool) {
if o == nil || o.BatteryCapacityPercent == nil {
return nil, false
}
return o.BatteryCapacityPercent, true
}
// HasBatteryCapacityPercent returns a boolean if a field has been set.
func (o *ComputerHardware) HasBatteryCapacityPercent() bool {
if o != nil && o.BatteryCapacityPercent != nil {
return true
}
return false
}
// SetBatteryCapacityPercent gets a reference to the given int32 and assigns it to the BatteryCapacityPercent field.
func (o *ComputerHardware) SetBatteryCapacityPercent(v int32) {
o.BatteryCapacityPercent = &v
}
// GetSmcVersion returns the SmcVersion field value if set, zero value otherwise.
func (o *ComputerHardware) GetSmcVersion() string {
if o == nil || o.SmcVersion == nil {
var ret string
return ret
}
return *o.SmcVersion
}
// GetSmcVersionOk returns a tuple with the SmcVersion field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetSmcVersionOk() (*string, bool) {
if o == nil || o.SmcVersion == nil {
return nil, false
}
return o.SmcVersion, true
}
// HasSmcVersion returns a boolean if a field has been set.
func (o *ComputerHardware) HasSmcVersion() bool {
if o != nil && o.SmcVersion != nil {
return true
}
return false
}
// SetSmcVersion gets a reference to the given string and assigns it to the SmcVersion field.
func (o *ComputerHardware) SetSmcVersion(v string) {
o.SmcVersion = &v
}
// GetNicSpeed returns the NicSpeed field value if set, zero value otherwise.
func (o *ComputerHardware) GetNicSpeed() string {
if o == nil || o.NicSpeed == nil {
var ret string
return ret
}
return *o.NicSpeed
}
// GetNicSpeedOk returns a tuple with the NicSpeed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetNicSpeedOk() (*string, bool) {
if o == nil || o.NicSpeed == nil {
return nil, false
}
return o.NicSpeed, true
}
// HasNicSpeed returns a boolean if a field has been set.
func (o *ComputerHardware) HasNicSpeed() bool {
if o != nil && o.NicSpeed != nil {
return true
}
return false
}
// SetNicSpeed gets a reference to the given string and assigns it to the NicSpeed field.
func (o *ComputerHardware) SetNicSpeed(v string) {
o.NicSpeed = &v
}
// GetOpticalDrive returns the OpticalDrive field value if set, zero value otherwise.
func (o *ComputerHardware) GetOpticalDrive() string {
if o == nil || o.OpticalDrive == nil {
var ret string
return ret
}
return *o.OpticalDrive
}
// GetOpticalDriveOk returns a tuple with the OpticalDrive field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetOpticalDriveOk() (*string, bool) {
if o == nil || o.OpticalDrive == nil {
return nil, false
}
return o.OpticalDrive, true
}
// HasOpticalDrive returns a boolean if a field has been set.
func (o *ComputerHardware) HasOpticalDrive() bool {
if o != nil && o.OpticalDrive != nil {
return true
}
return false
}
// SetOpticalDrive gets a reference to the given string and assigns it to the OpticalDrive field.
func (o *ComputerHardware) SetOpticalDrive(v string) {
o.OpticalDrive = &v
}
// GetBootRom returns the BootRom field value if set, zero value otherwise.
func (o *ComputerHardware) GetBootRom() string {
if o == nil || o.BootRom == nil {
var ret string
return ret
}
return *o.BootRom
}
// GetBootRomOk returns a tuple with the BootRom field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetBootRomOk() (*string, bool) {
if o == nil || o.BootRom == nil {
return nil, false
}
return o.BootRom, true
}
// HasBootRom returns a boolean if a field has been set.
func (o *ComputerHardware) HasBootRom() bool {
if o != nil && o.BootRom != nil {
return true
}
return false
}
// SetBootRom gets a reference to the given string and assigns it to the BootRom field.
func (o *ComputerHardware) SetBootRom(v string) {
o.BootRom = &v
}
// GetBleCapable returns the BleCapable field value if set, zero value otherwise.
func (o *ComputerHardware) GetBleCapable() bool {
if o == nil || o.BleCapable == nil {
var ret bool
return ret
}
return *o.BleCapable
}
// GetBleCapableOk returns a tuple with the BleCapable field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetBleCapableOk() (*bool, bool) {
if o == nil || o.BleCapable == nil {
return nil, false
}
return o.BleCapable, true
}
// HasBleCapable returns a boolean if a field has been set.
func (o *ComputerHardware) HasBleCapable() bool {
if o != nil && o.BleCapable != nil {
return true
}
return false
}
// SetBleCapable gets a reference to the given bool and assigns it to the BleCapable field.
func (o *ComputerHardware) SetBleCapable(v bool) {
o.BleCapable = &v
}
// GetSupportsIosAppInstalls returns the SupportsIosAppInstalls field value if set, zero value otherwise.
func (o *ComputerHardware) GetSupportsIosAppInstalls() bool {
if o == nil || o.SupportsIosAppInstalls == nil {
var ret bool
return ret
}
return *o.SupportsIosAppInstalls
}
// GetSupportsIosAppInstallsOk returns a tuple with the SupportsIosAppInstalls field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetSupportsIosAppInstallsOk() (*bool, bool) {
if o == nil || o.SupportsIosAppInstalls == nil {
return nil, false
}
return o.SupportsIosAppInstalls, true
}
// HasSupportsIosAppInstalls returns a boolean if a field has been set.
func (o *ComputerHardware) HasSupportsIosAppInstalls() bool {
if o != nil && o.SupportsIosAppInstalls != nil {
return true
}
return false
}
// SetSupportsIosAppInstalls gets a reference to the given bool and assigns it to the SupportsIosAppInstalls field.
func (o *ComputerHardware) SetSupportsIosAppInstalls(v bool) {
o.SupportsIosAppInstalls = &v
}
// GetAppleSilicon returns the AppleSilicon field value if set, zero value otherwise.
func (o *ComputerHardware) GetAppleSilicon() bool {
if o == nil || o.AppleSilicon == nil {
var ret bool
return ret
}
return *o.AppleSilicon
}
// GetAppleSiliconOk returns a tuple with the AppleSilicon field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetAppleSiliconOk() (*bool, bool) {
if o == nil || o.AppleSilicon == nil {
return nil, false
}
return o.AppleSilicon, true
}
// HasAppleSilicon returns a boolean if a field has been set.
func (o *ComputerHardware) HasAppleSilicon() bool {
if o != nil && o.AppleSilicon != nil {
return true
}
return false
}
// SetAppleSilicon gets a reference to the given bool and assigns it to the AppleSilicon field.
func (o *ComputerHardware) SetAppleSilicon(v bool) {
o.AppleSilicon = &v
}
// GetExtensionAttributes returns the ExtensionAttributes field value if set, zero value otherwise.
func (o *ComputerHardware) GetExtensionAttributes() []ComputerExtensionAttribute {
if o == nil || o.ExtensionAttributes == nil {
var ret []ComputerExtensionAttribute
return ret
}
return o.ExtensionAttributes
}
// GetExtensionAttributesOk returns a tuple with the ExtensionAttributes field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ComputerHardware) GetExtensionAttributesOk() ([]ComputerExtensionAttribute, bool) {
if o == nil || o.ExtensionAttributes == nil {
return nil, false
}
return o.ExtensionAttributes, true
}
// HasExtensionAttributes returns a boolean if a field has been set.
func (o *ComputerHardware) HasExtensionAttributes() bool {
if o != nil && o.ExtensionAttributes != nil {
return true
}
return false
}
// SetExtensionAttributes gets a reference to the given []ComputerExtensionAttribute and assigns it to the ExtensionAttributes field.
func (o *ComputerHardware) SetExtensionAttributes(v []ComputerExtensionAttribute) {
o.ExtensionAttributes = v
}
func (o ComputerHardware) MarshalJSON() ([]byte, error) {
toSerialize := map[string]interface{}{}
if o.Make != nil {
toSerialize["make"] = o.Make
}
if o.Model != nil {
toSerialize["model"] = o.Model
}
if o.ModelIdentifier != nil {
toSerialize["modelIdentifier"] = o.ModelIdentifier
}
if o.SerialNumber != nil {
toSerialize["serialNumber"] = o.SerialNumber
}
if o.ProcessorSpeedMhz != nil {
toSerialize["processorSpeedMhz"] = o.ProcessorSpeedMhz
}
if o.ProcessorCount != nil {
toSerialize["processorCount"] = o.ProcessorCount
}
if o.CoreCount != nil {
toSerialize["coreCount"] = o.CoreCount
}
if o.ProcessorType != nil {
toSerialize["processorType"] = o.ProcessorType
}
if o.ProcessorArchitecture != nil {
toSerialize["processorArchitecture"] = o.ProcessorArchitecture
}
if o.BusSpeedMhz != nil {
toSerialize["busSpeedMhz"] = o.BusSpeedMhz
}
if o.CacheSizeKilobytes != nil {
toSerialize["cacheSizeKilobytes"] = o.CacheSizeKilobytes
}
if o.NetworkAdapterType != nil {
toSerialize["networkAdapterType"] = o.NetworkAdapterType
}
if o.MacAddress != nil {
toSerialize["macAddress"] = o.MacAddress
}
if o.AltNetworkAdapterType != nil {
toSerialize["altNetworkAdapterType"] = o.AltNetworkAdapterType
}
if o.AltMacAddress != nil {
toSerialize["altMacAddress"] = o.AltMacAddress
}
if o.TotalRamMegabytes != nil {
toSerialize["totalRamMegabytes"] = o.TotalRamMegabytes
}
if o.OpenRamSlots != nil {
toSerialize["openRamSlots"] = o.OpenRamSlots
}
if o.BatteryCapacityPercent != nil {
toSerialize["batteryCapacityPercent"] = o.BatteryCapacityPercent
}
if o.SmcVersion != nil {
toSerialize["smcVersion"] = o.SmcVersion
}
if o.NicSpeed != nil {
toSerialize["nicSpeed"] = o.NicSpeed
}
if o.OpticalDrive != nil {
toSerialize["opticalDrive"] = o.OpticalDrive
}
if o.BootRom != nil {
toSerialize["bootRom"] = o.BootRom
}
if o.BleCapable != nil {
toSerialize["bleCapable"] = o.BleCapable
}
if o.SupportsIosAppInstalls != nil {
toSerialize["supportsIosAppInstalls"] = o.SupportsIosAppInstalls
}
if o.AppleSilicon != nil {
toSerialize["appleSilicon"] = o.AppleSilicon
}
if o.ExtensionAttributes != nil {
toSerialize["extensionAttributes"] = o.ExtensionAttributes
}
return json.Marshal(toSerialize)
}
type NullableComputerHardware struct {
value *ComputerHardware
isSet bool
}
func (v NullableComputerHardware) Get() *ComputerHardware {
return v.value
}
func (v *NullableComputerHardware) Set(val *ComputerHardware) {
v.value = val
v.isSet = true
}
func (v NullableComputerHardware) IsSet() bool {
return v.isSet
}