-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_asset.go
1411 lines (1207 loc) · 36.2 KB
/
model_asset.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
/*
External API
## Date type fields API endpoints expected date in UTC±0:00 timezone. Timezones in ISO8601 format will be ignored. API endpoints support date in two formats (one of): ISO8601 ('YYYY-MM-DDTHH:mm:SSZ') or Unix Timestamp (seconds count since January 1st, 1970 at UTC). ## Dropdown fields Some fields are configured as dropdown fields with a dedicated list of values within Oomnitza. You can review the list of available dropdown values within the customization page in Oomnitza. In case you want to be able to post any data into these fields, you should switch them to dropdown without value within the customization page.
API version: 3.0.3
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package oomnitza
import (
"encoding/json"
)
// Asset struct for Asset
type Asset struct {
EquipmentId *string `json:"equipment_id,omitempty"`
Version *string `json:"version,omitempty"`
CreationDate *int32 `json:"creation_date,omitempty"`
ChangeDate *int32 `json:"change_date,omitempty"`
CreatedBy *string `json:"created_by,omitempty"`
ChangedBy *string `json:"changed_by,omitempty"`
Location *string `json:"location,omitempty"`
Stockroom *string `json:"stockroom,omitempty"`
AssignedTo *string `json:"assigned_to,omitempty"`
Tickets *string `json:"tickets,omitempty"`
IsParent *string `json:"is_parent,omitempty"`
IsChild *string `json:"is_child,omitempty"`
Barcode *string `json:"barcode,omitempty"`
Deleted *string `json:"deleted,omitempty"`
OperatingSystem *string `json:"operating_system,omitempty"`
AssetType *string `json:"asset_type,omitempty"`
EndOfLifeDate *int32 `json:"end_of_life_date,omitempty"`
SerialNumber *string `json:"serial_number,omitempty"`
Department *string `json:"department,omitempty"`
Status *string `json:"status,omitempty"`
Manufacturer *string `json:"manufacturer,omitempty"`
Model *string `json:"model,omitempty"`
DeviceName *string `json:"device_name,omitempty"`
CurrentlyLoggedInUser *string `json:"currently_logged_in_user,omitempty"`
IpAddress *string `json:"ip_address,omitempty"`
MacAddress *string `json:"mac_address,omitempty"`
ImeiMeid *string `json:"imei__meid,omitempty"`
Vendor *string `json:"vendor,omitempty"`
PurchaseDate *int32 `json:"purchase_date,omitempty"`
PoNumber *string `json:"po_number,omitempty"`
PurchasePrice *string `json:"purchase_price,omitempty"`
WarrantyEndDate *int32 `json:"warranty_end_date,omitempty"`
Cpu *string `json:"cpu,omitempty"`
LoanDueDate *int32 `json:"loan_due_date,omitempty"`
Notes *string `json:"notes,omitempty"`
Condition *string `json:"condition,omitempty"`
Uid *int32 `json:"uid,omitempty"`
}
// NewAsset instantiates a new Asset 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 NewAsset() *Asset {
this := Asset{}
return &this
}
// NewAssetWithDefaults instantiates a new Asset 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 NewAssetWithDefaults() *Asset {
this := Asset{}
return &this
}
// GetEquipmentId returns the EquipmentId field value if set, zero value otherwise.
func (o *Asset) GetEquipmentId() string {
if o == nil || o.EquipmentId == nil {
var ret string
return ret
}
return *o.EquipmentId
}
// GetEquipmentIdOk returns a tuple with the EquipmentId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetEquipmentIdOk() (*string, bool) {
if o == nil || o.EquipmentId == nil {
return nil, false
}
return o.EquipmentId, true
}
// HasEquipmentId returns a boolean if a field has been set.
func (o *Asset) HasEquipmentId() bool {
if o != nil && o.EquipmentId != nil {
return true
}
return false
}
// SetEquipmentId gets a reference to the given string and assigns it to the EquipmentId field.
func (o *Asset) SetEquipmentId(v string) {
o.EquipmentId = &v
}
// GetVersion returns the Version field value if set, zero value otherwise.
func (o *Asset) GetVersion() string {
if o == nil || o.Version == nil {
var ret string
return ret
}
return *o.Version
}
// GetVersionOk returns a tuple with the Version field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetVersionOk() (*string, bool) {
if o == nil || o.Version == nil {
return nil, false
}
return o.Version, true
}
// HasVersion returns a boolean if a field has been set.
func (o *Asset) HasVersion() bool {
if o != nil && o.Version != nil {
return true
}
return false
}
// SetVersion gets a reference to the given string and assigns it to the Version field.
func (o *Asset) SetVersion(v string) {
o.Version = &v
}
// GetCreationDate returns the CreationDate field value if set, zero value otherwise.
func (o *Asset) GetCreationDate() int32 {
if o == nil || o.CreationDate == nil {
var ret int32
return ret
}
return *o.CreationDate
}
// GetCreationDateOk returns a tuple with the CreationDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetCreationDateOk() (*int32, bool) {
if o == nil || o.CreationDate == nil {
return nil, false
}
return o.CreationDate, true
}
// HasCreationDate returns a boolean if a field has been set.
func (o *Asset) HasCreationDate() bool {
if o != nil && o.CreationDate != nil {
return true
}
return false
}
// SetCreationDate gets a reference to the given int32 and assigns it to the CreationDate field.
func (o *Asset) SetCreationDate(v int32) {
o.CreationDate = &v
}
// GetChangeDate returns the ChangeDate field value if set, zero value otherwise.
func (o *Asset) GetChangeDate() int32 {
if o == nil || o.ChangeDate == nil {
var ret int32
return ret
}
return *o.ChangeDate
}
// GetChangeDateOk returns a tuple with the ChangeDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetChangeDateOk() (*int32, bool) {
if o == nil || o.ChangeDate == nil {
return nil, false
}
return o.ChangeDate, true
}
// HasChangeDate returns a boolean if a field has been set.
func (o *Asset) HasChangeDate() bool {
if o != nil && o.ChangeDate != nil {
return true
}
return false
}
// SetChangeDate gets a reference to the given int32 and assigns it to the ChangeDate field.
func (o *Asset) SetChangeDate(v int32) {
o.ChangeDate = &v
}
// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise.
func (o *Asset) GetCreatedBy() string {
if o == nil || o.CreatedBy == nil {
var ret string
return ret
}
return *o.CreatedBy
}
// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetCreatedByOk() (*string, bool) {
if o == nil || o.CreatedBy == nil {
return nil, false
}
return o.CreatedBy, true
}
// HasCreatedBy returns a boolean if a field has been set.
func (o *Asset) HasCreatedBy() bool {
if o != nil && o.CreatedBy != nil {
return true
}
return false
}
// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field.
func (o *Asset) SetCreatedBy(v string) {
o.CreatedBy = &v
}
// GetChangedBy returns the ChangedBy field value if set, zero value otherwise.
func (o *Asset) GetChangedBy() string {
if o == nil || o.ChangedBy == nil {
var ret string
return ret
}
return *o.ChangedBy
}
// GetChangedByOk returns a tuple with the ChangedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetChangedByOk() (*string, bool) {
if o == nil || o.ChangedBy == nil {
return nil, false
}
return o.ChangedBy, true
}
// HasChangedBy returns a boolean if a field has been set.
func (o *Asset) HasChangedBy() bool {
if o != nil && o.ChangedBy != nil {
return true
}
return false
}
// SetChangedBy gets a reference to the given string and assigns it to the ChangedBy field.
func (o *Asset) SetChangedBy(v string) {
o.ChangedBy = &v
}
// GetLocation returns the Location field value if set, zero value otherwise.
func (o *Asset) GetLocation() string {
if o == nil || o.Location == nil {
var ret string
return ret
}
return *o.Location
}
// GetLocationOk returns a tuple with the Location field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetLocationOk() (*string, bool) {
if o == nil || o.Location == nil {
return nil, false
}
return o.Location, true
}
// HasLocation returns a boolean if a field has been set.
func (o *Asset) HasLocation() bool {
if o != nil && o.Location != nil {
return true
}
return false
}
// SetLocation gets a reference to the given string and assigns it to the Location field.
func (o *Asset) SetLocation(v string) {
o.Location = &v
}
// GetStockroom returns the Stockroom field value if set, zero value otherwise.
func (o *Asset) GetStockroom() string {
if o == nil || o.Stockroom == nil {
var ret string
return ret
}
return *o.Stockroom
}
// GetStockroomOk returns a tuple with the Stockroom field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetStockroomOk() (*string, bool) {
if o == nil || o.Stockroom == nil {
return nil, false
}
return o.Stockroom, true
}
// HasStockroom returns a boolean if a field has been set.
func (o *Asset) HasStockroom() bool {
if o != nil && o.Stockroom != nil {
return true
}
return false
}
// SetStockroom gets a reference to the given string and assigns it to the Stockroom field.
func (o *Asset) SetStockroom(v string) {
o.Stockroom = &v
}
// GetAssignedTo returns the AssignedTo field value if set, zero value otherwise.
func (o *Asset) GetAssignedTo() string {
if o == nil || o.AssignedTo == nil {
var ret string
return ret
}
return *o.AssignedTo
}
// GetAssignedToOk returns a tuple with the AssignedTo field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetAssignedToOk() (*string, bool) {
if o == nil || o.AssignedTo == nil {
return nil, false
}
return o.AssignedTo, true
}
// HasAssignedTo returns a boolean if a field has been set.
func (o *Asset) HasAssignedTo() bool {
if o != nil && o.AssignedTo != nil {
return true
}
return false
}
// SetAssignedTo gets a reference to the given string and assigns it to the AssignedTo field.
func (o *Asset) SetAssignedTo(v string) {
o.AssignedTo = &v
}
// GetTickets returns the Tickets field value if set, zero value otherwise.
func (o *Asset) GetTickets() string {
if o == nil || o.Tickets == nil {
var ret string
return ret
}
return *o.Tickets
}
// GetTicketsOk returns a tuple with the Tickets field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetTicketsOk() (*string, bool) {
if o == nil || o.Tickets == nil {
return nil, false
}
return o.Tickets, true
}
// HasTickets returns a boolean if a field has been set.
func (o *Asset) HasTickets() bool {
if o != nil && o.Tickets != nil {
return true
}
return false
}
// SetTickets gets a reference to the given string and assigns it to the Tickets field.
func (o *Asset) SetTickets(v string) {
o.Tickets = &v
}
// GetIsParent returns the IsParent field value if set, zero value otherwise.
func (o *Asset) GetIsParent() string {
if o == nil || o.IsParent == nil {
var ret string
return ret
}
return *o.IsParent
}
// GetIsParentOk returns a tuple with the IsParent field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetIsParentOk() (*string, bool) {
if o == nil || o.IsParent == nil {
return nil, false
}
return o.IsParent, true
}
// HasIsParent returns a boolean if a field has been set.
func (o *Asset) HasIsParent() bool {
if o != nil && o.IsParent != nil {
return true
}
return false
}
// SetIsParent gets a reference to the given string and assigns it to the IsParent field.
func (o *Asset) SetIsParent(v string) {
o.IsParent = &v
}
// GetIsChild returns the IsChild field value if set, zero value otherwise.
func (o *Asset) GetIsChild() string {
if o == nil || o.IsChild == nil {
var ret string
return ret
}
return *o.IsChild
}
// GetIsChildOk returns a tuple with the IsChild field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetIsChildOk() (*string, bool) {
if o == nil || o.IsChild == nil {
return nil, false
}
return o.IsChild, true
}
// HasIsChild returns a boolean if a field has been set.
func (o *Asset) HasIsChild() bool {
if o != nil && o.IsChild != nil {
return true
}
return false
}
// SetIsChild gets a reference to the given string and assigns it to the IsChild field.
func (o *Asset) SetIsChild(v string) {
o.IsChild = &v
}
// GetBarcode returns the Barcode field value if set, zero value otherwise.
func (o *Asset) GetBarcode() string {
if o == nil || o.Barcode == nil {
var ret string
return ret
}
return *o.Barcode
}
// GetBarcodeOk returns a tuple with the Barcode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetBarcodeOk() (*string, bool) {
if o == nil || o.Barcode == nil {
return nil, false
}
return o.Barcode, true
}
// HasBarcode returns a boolean if a field has been set.
func (o *Asset) HasBarcode() bool {
if o != nil && o.Barcode != nil {
return true
}
return false
}
// SetBarcode gets a reference to the given string and assigns it to the Barcode field.
func (o *Asset) SetBarcode(v string) {
o.Barcode = &v
}
// GetDeleted returns the Deleted field value if set, zero value otherwise.
func (o *Asset) GetDeleted() string {
if o == nil || o.Deleted == nil {
var ret string
return ret
}
return *o.Deleted
}
// GetDeletedOk returns a tuple with the Deleted field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetDeletedOk() (*string, bool) {
if o == nil || o.Deleted == nil {
return nil, false
}
return o.Deleted, true
}
// HasDeleted returns a boolean if a field has been set.
func (o *Asset) HasDeleted() bool {
if o != nil && o.Deleted != nil {
return true
}
return false
}
// SetDeleted gets a reference to the given string and assigns it to the Deleted field.
func (o *Asset) SetDeleted(v string) {
o.Deleted = &v
}
// GetOperatingSystem returns the OperatingSystem field value if set, zero value otherwise.
func (o *Asset) GetOperatingSystem() string {
if o == nil || o.OperatingSystem == nil {
var ret string
return ret
}
return *o.OperatingSystem
}
// GetOperatingSystemOk returns a tuple with the OperatingSystem field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetOperatingSystemOk() (*string, bool) {
if o == nil || o.OperatingSystem == nil {
return nil, false
}
return o.OperatingSystem, true
}
// HasOperatingSystem returns a boolean if a field has been set.
func (o *Asset) HasOperatingSystem() bool {
if o != nil && o.OperatingSystem != nil {
return true
}
return false
}
// SetOperatingSystem gets a reference to the given string and assigns it to the OperatingSystem field.
func (o *Asset) SetOperatingSystem(v string) {
o.OperatingSystem = &v
}
// GetAssetType returns the AssetType field value if set, zero value otherwise.
func (o *Asset) GetAssetType() string {
if o == nil || o.AssetType == nil {
var ret string
return ret
}
return *o.AssetType
}
// GetAssetTypeOk returns a tuple with the AssetType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetAssetTypeOk() (*string, bool) {
if o == nil || o.AssetType == nil {
return nil, false
}
return o.AssetType, true
}
// HasAssetType returns a boolean if a field has been set.
func (o *Asset) HasAssetType() bool {
if o != nil && o.AssetType != nil {
return true
}
return false
}
// SetAssetType gets a reference to the given string and assigns it to the AssetType field.
func (o *Asset) SetAssetType(v string) {
o.AssetType = &v
}
// GetEndOfLifeDate returns the EndOfLifeDate field value if set, zero value otherwise.
func (o *Asset) GetEndOfLifeDate() int32 {
if o == nil || o.EndOfLifeDate == nil {
var ret int32
return ret
}
return *o.EndOfLifeDate
}
// GetEndOfLifeDateOk returns a tuple with the EndOfLifeDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetEndOfLifeDateOk() (*int32, bool) {
if o == nil || o.EndOfLifeDate == nil {
return nil, false
}
return o.EndOfLifeDate, true
}
// HasEndOfLifeDate returns a boolean if a field has been set.
func (o *Asset) HasEndOfLifeDate() bool {
if o != nil && o.EndOfLifeDate != nil {
return true
}
return false
}
// SetEndOfLifeDate gets a reference to the given int32 and assigns it to the EndOfLifeDate field.
func (o *Asset) SetEndOfLifeDate(v int32) {
o.EndOfLifeDate = &v
}
// GetSerialNumber returns the SerialNumber field value if set, zero value otherwise.
func (o *Asset) 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 *Asset) 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 *Asset) 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 *Asset) SetSerialNumber(v string) {
o.SerialNumber = &v
}
// GetDepartment returns the Department field value if set, zero value otherwise.
func (o *Asset) GetDepartment() string {
if o == nil || o.Department == nil {
var ret string
return ret
}
return *o.Department
}
// GetDepartmentOk returns a tuple with the Department field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetDepartmentOk() (*string, bool) {
if o == nil || o.Department == nil {
return nil, false
}
return o.Department, true
}
// HasDepartment returns a boolean if a field has been set.
func (o *Asset) HasDepartment() bool {
if o != nil && o.Department != nil {
return true
}
return false
}
// SetDepartment gets a reference to the given string and assigns it to the Department field.
func (o *Asset) SetDepartment(v string) {
o.Department = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *Asset) GetStatus() string {
if o == nil || o.Status == nil {
var ret string
return ret
}
return *o.Status
}
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetStatusOk() (*string, bool) {
if o == nil || o.Status == nil {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *Asset) HasStatus() bool {
if o != nil && o.Status != nil {
return true
}
return false
}
// SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *Asset) SetStatus(v string) {
o.Status = &v
}
// GetManufacturer returns the Manufacturer field value if set, zero value otherwise.
func (o *Asset) GetManufacturer() string {
if o == nil || o.Manufacturer == nil {
var ret string
return ret
}
return *o.Manufacturer
}
// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetManufacturerOk() (*string, bool) {
if o == nil || o.Manufacturer == nil {
return nil, false
}
return o.Manufacturer, true
}
// HasManufacturer returns a boolean if a field has been set.
func (o *Asset) HasManufacturer() bool {
if o != nil && o.Manufacturer != nil {
return true
}
return false
}
// SetManufacturer gets a reference to the given string and assigns it to the Manufacturer field.
func (o *Asset) SetManufacturer(v string) {
o.Manufacturer = &v
}
// GetModel returns the Model field value if set, zero value otherwise.
func (o *Asset) 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 *Asset) 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 *Asset) 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 *Asset) SetModel(v string) {
o.Model = &v
}
// GetDeviceName returns the DeviceName field value if set, zero value otherwise.
func (o *Asset) GetDeviceName() string {
if o == nil || o.DeviceName == nil {
var ret string
return ret
}
return *o.DeviceName
}
// GetDeviceNameOk returns a tuple with the DeviceName field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetDeviceNameOk() (*string, bool) {
if o == nil || o.DeviceName == nil {
return nil, false
}
return o.DeviceName, true
}
// HasDeviceName returns a boolean if a field has been set.
func (o *Asset) HasDeviceName() bool {
if o != nil && o.DeviceName != nil {
return true
}
return false
}
// SetDeviceName gets a reference to the given string and assigns it to the DeviceName field.
func (o *Asset) SetDeviceName(v string) {
o.DeviceName = &v
}
// GetCurrentlyLoggedInUser returns the CurrentlyLoggedInUser field value if set, zero value otherwise.
func (o *Asset) GetCurrentlyLoggedInUser() string {
if o == nil || o.CurrentlyLoggedInUser == nil {
var ret string
return ret
}
return *o.CurrentlyLoggedInUser
}
// GetCurrentlyLoggedInUserOk returns a tuple with the CurrentlyLoggedInUser field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetCurrentlyLoggedInUserOk() (*string, bool) {
if o == nil || o.CurrentlyLoggedInUser == nil {
return nil, false
}
return o.CurrentlyLoggedInUser, true
}
// HasCurrentlyLoggedInUser returns a boolean if a field has been set.
func (o *Asset) HasCurrentlyLoggedInUser() bool {
if o != nil && o.CurrentlyLoggedInUser != nil {
return true
}
return false
}
// SetCurrentlyLoggedInUser gets a reference to the given string and assigns it to the CurrentlyLoggedInUser field.
func (o *Asset) SetCurrentlyLoggedInUser(v string) {
o.CurrentlyLoggedInUser = &v
}
// GetIpAddress returns the IpAddress field value if set, zero value otherwise.
func (o *Asset) GetIpAddress() string {
if o == nil || o.IpAddress == nil {
var ret string
return ret
}
return *o.IpAddress
}
// GetIpAddressOk returns a tuple with the IpAddress field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetIpAddressOk() (*string, bool) {
if o == nil || o.IpAddress == nil {
return nil, false
}
return o.IpAddress, true
}
// HasIpAddress returns a boolean if a field has been set.
func (o *Asset) HasIpAddress() bool {
if o != nil && o.IpAddress != nil {
return true
}
return false
}
// SetIpAddress gets a reference to the given string and assigns it to the IpAddress field.
func (o *Asset) SetIpAddress(v string) {
o.IpAddress = &v
}
// GetMacAddress returns the MacAddress field value if set, zero value otherwise.
func (o *Asset) 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 *Asset) 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 *Asset) 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 *Asset) SetMacAddress(v string) {
o.MacAddress = &v
}
// GetImeiMeid returns the ImeiMeid field value if set, zero value otherwise.
func (o *Asset) GetImeiMeid() string {
if o == nil || o.ImeiMeid == nil {
var ret string
return ret
}
return *o.ImeiMeid
}
// GetImeiMeidOk returns a tuple with the ImeiMeid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetImeiMeidOk() (*string, bool) {
if o == nil || o.ImeiMeid == nil {
return nil, false
}
return o.ImeiMeid, true
}
// HasImeiMeid returns a boolean if a field has been set.
func (o *Asset) HasImeiMeid() bool {
if o != nil && o.ImeiMeid != nil {
return true
}
return false
}
// SetImeiMeid gets a reference to the given string and assigns it to the ImeiMeid field.
func (o *Asset) SetImeiMeid(v string) {
o.ImeiMeid = &v
}
// GetVendor returns the Vendor field value if set, zero value otherwise.
func (o *Asset) GetVendor() string {
if o == nil || o.Vendor == nil {
var ret string
return ret
}
return *o.Vendor
}
// GetVendorOk returns a tuple with the Vendor field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetVendorOk() (*string, bool) {
if o == nil || o.Vendor == nil {
return nil, false
}
return o.Vendor, true
}
// HasVendor returns a boolean if a field has been set.
func (o *Asset) HasVendor() bool {
if o != nil && o.Vendor != nil {
return true
}
return false
}
// SetVendor gets a reference to the given string and assigns it to the Vendor field.
func (o *Asset) SetVendor(v string) {
o.Vendor = &v
}
// GetPurchaseDate returns the PurchaseDate field value if set, zero value otherwise.
func (o *Asset) GetPurchaseDate() int32 {
if o == nil || o.PurchaseDate == nil {
var ret int32
return ret
}
return *o.PurchaseDate
}
// GetPurchaseDateOk returns a tuple with the PurchaseDate field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Asset) GetPurchaseDateOk() (*int32, bool) {
if o == nil || o.PurchaseDate == nil {
return nil, false
}
return o.PurchaseDate, true
}
// HasPurchaseDate returns a boolean if a field has been set.
func (o *Asset) HasPurchaseDate() bool {
if o != nil && o.PurchaseDate != nil {
return true
}
return false
}
// SetPurchaseDate gets a reference to the given int32 and assigns it to the PurchaseDate field.
func (o *Asset) SetPurchaseDate(v int32) {
o.PurchaseDate = &v