This repository has been archived by the owner on Oct 25, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmodel_instance.go
1378 lines (1190 loc) · 37.5 KB
/
model_instance.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
/*
Corellium API
REST API to manage your virtual devices.
API version: 5.5.0-18750
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package corellium
import (
"encoding/json"
"time"
)
// checks if the Instance type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &Instance{}
// Instance
type Instance struct {
// Instance Identifier
Id NullableString `json:"id,omitempty"`
// Instance Name
Name NullableString `json:"name,omitempty"`
// Key used to encrypt the Instance
Key NullableString `json:"key,omitempty"`
// The type of virtual machine this is
Flavor NullableString `json:"flavor,omitempty"`
//
Type NullableString `json:"type,omitempty"`
// The projectId of the project this instance belongs to
Project NullableString `json:"project,omitempty"`
State *InstanceState `json:"state,omitempty"`
// Time the state of the instance last changed
StateChanged NullableTime `json:"stateChanged,omitempty"`
// Time the instance was started
StartedAt NullableString `json:"startedAt,omitempty"`
// Currently executing User Task
UserTask NullableString `json:"userTask,omitempty"`
// Current task state if any
TaskState NullableString `json:"taskState,omitempty"`
// Current error state if any
Error NullableString `json:"error,omitempty"`
BootOptions *InstanceBootOptions `json:"bootOptions,omitempty"`
// Services IP Address
ServiceIp NullableString `json:"serviceIp,omitempty"`
// LAN IP Address
WifiIp NullableString `json:"wifiIp,omitempty"`
// Secondary Inteface LAN IP Address (if supported)
SecondaryIp NullableString `json:"secondaryIp,omitempty"`
Services *InstanceServices `json:"services,omitempty"`
//
Panicked NullableBool `json:"panicked,omitempty"`
// Time instance was created
Created NullableTime `json:"created,omitempty"`
// Model of virtual machine device
Model NullableString `json:"model,omitempty"`
// URL that package used to create this instance is available at
Fwpackage NullableString `json:"fwpackage,omitempty"`
//
Os NullableString `json:"os,omitempty"`
Agent NullableInstanceAgentState `json:"agent,omitempty"`
Netmon *InstanceNetmonState `json:"netmon,omitempty"`
Netdump *InstanceNetdumpState `json:"netdump,omitempty"`
//
ExposePort NullableString `json:"exposePort,omitempty"`
//
Fault NullableBool `json:"fault,omitempty"`
//
Patches []string `json:"patches,omitempty"`
CreatedBy *CreatedBy `json:"createdBy,omitempty"`
}
// NewInstance instantiates a new Instance 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 NewInstance() *Instance {
this := Instance{}
return &this
}
// NewInstanceWithDefaults instantiates a new Instance 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 NewInstanceWithDefaults() *Instance {
this := Instance{}
return &this
}
// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetId() string {
if o == nil || IsNil(o.Id.Get()) {
var ret string
return ret
}
return *o.Id.Get()
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Id.Get(), o.Id.IsSet()
}
// HasId returns a boolean if a field has been set.
func (o *Instance) HasId() bool {
if o != nil && o.Id.IsSet() {
return true
}
return false
}
// SetId gets a reference to the given NullableString and assigns it to the Id field.
func (o *Instance) SetId(v string) {
o.Id.Set(&v)
}
// SetIdNil sets the value for Id to be an explicit nil
func (o *Instance) SetIdNil() {
o.Id.Set(nil)
}
// UnsetId ensures that no value is present for Id, not even an explicit nil
func (o *Instance) UnsetId() {
o.Id.Unset()
}
// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetName() string {
if o == nil || IsNil(o.Name.Get()) {
var ret string
return ret
}
return *o.Name.Get()
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetNameOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Name.Get(), o.Name.IsSet()
}
// HasName returns a boolean if a field has been set.
func (o *Instance) HasName() bool {
if o != nil && o.Name.IsSet() {
return true
}
return false
}
// SetName gets a reference to the given NullableString and assigns it to the Name field.
func (o *Instance) SetName(v string) {
o.Name.Set(&v)
}
// SetNameNil sets the value for Name to be an explicit nil
func (o *Instance) SetNameNil() {
o.Name.Set(nil)
}
// UnsetName ensures that no value is present for Name, not even an explicit nil
func (o *Instance) UnsetName() {
o.Name.Unset()
}
// GetKey returns the Key field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetKey() string {
if o == nil || IsNil(o.Key.Get()) {
var ret string
return ret
}
return *o.Key.Get()
}
// GetKeyOk returns a tuple with the Key field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetKeyOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Key.Get(), o.Key.IsSet()
}
// HasKey returns a boolean if a field has been set.
func (o *Instance) HasKey() bool {
if o != nil && o.Key.IsSet() {
return true
}
return false
}
// SetKey gets a reference to the given NullableString and assigns it to the Key field.
func (o *Instance) SetKey(v string) {
o.Key.Set(&v)
}
// SetKeyNil sets the value for Key to be an explicit nil
func (o *Instance) SetKeyNil() {
o.Key.Set(nil)
}
// UnsetKey ensures that no value is present for Key, not even an explicit nil
func (o *Instance) UnsetKey() {
o.Key.Unset()
}
// GetFlavor returns the Flavor field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetFlavor() string {
if o == nil || IsNil(o.Flavor.Get()) {
var ret string
return ret
}
return *o.Flavor.Get()
}
// GetFlavorOk returns a tuple with the Flavor field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetFlavorOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Flavor.Get(), o.Flavor.IsSet()
}
// HasFlavor returns a boolean if a field has been set.
func (o *Instance) HasFlavor() bool {
if o != nil && o.Flavor.IsSet() {
return true
}
return false
}
// SetFlavor gets a reference to the given NullableString and assigns it to the Flavor field.
func (o *Instance) SetFlavor(v string) {
o.Flavor.Set(&v)
}
// SetFlavorNil sets the value for Flavor to be an explicit nil
func (o *Instance) SetFlavorNil() {
o.Flavor.Set(nil)
}
// UnsetFlavor ensures that no value is present for Flavor, not even an explicit nil
func (o *Instance) UnsetFlavor() {
o.Flavor.Unset()
}
// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetType() string {
if o == nil || IsNil(o.Type.Get()) {
var ret string
return ret
}
return *o.Type.Get()
}
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetTypeOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Type.Get(), o.Type.IsSet()
}
// HasType returns a boolean if a field has been set.
func (o *Instance) HasType() bool {
if o != nil && o.Type.IsSet() {
return true
}
return false
}
// SetType gets a reference to the given NullableString and assigns it to the Type field.
func (o *Instance) SetType(v string) {
o.Type.Set(&v)
}
// SetTypeNil sets the value for Type to be an explicit nil
func (o *Instance) SetTypeNil() {
o.Type.Set(nil)
}
// UnsetType ensures that no value is present for Type, not even an explicit nil
func (o *Instance) UnsetType() {
o.Type.Unset()
}
// GetProject returns the Project field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetProject() string {
if o == nil || IsNil(o.Project.Get()) {
var ret string
return ret
}
return *o.Project.Get()
}
// GetProjectOk returns a tuple with the Project field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetProjectOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Project.Get(), o.Project.IsSet()
}
// HasProject returns a boolean if a field has been set.
func (o *Instance) HasProject() bool {
if o != nil && o.Project.IsSet() {
return true
}
return false
}
// SetProject gets a reference to the given NullableString and assigns it to the Project field.
func (o *Instance) SetProject(v string) {
o.Project.Set(&v)
}
// SetProjectNil sets the value for Project to be an explicit nil
func (o *Instance) SetProjectNil() {
o.Project.Set(nil)
}
// UnsetProject ensures that no value is present for Project, not even an explicit nil
func (o *Instance) UnsetProject() {
o.Project.Unset()
}
// GetState returns the State field value if set, zero value otherwise.
func (o *Instance) GetState() InstanceState {
if o == nil || IsNil(o.State) {
var ret InstanceState
return ret
}
return *o.State
}
// 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 *Instance) GetStateOk() (*InstanceState, bool) {
if o == nil || IsNil(o.State) {
return nil, false
}
return o.State, true
}
// HasState returns a boolean if a field has been set.
func (o *Instance) HasState() bool {
if o != nil && !IsNil(o.State) {
return true
}
return false
}
// SetState gets a reference to the given InstanceState and assigns it to the State field.
func (o *Instance) SetState(v InstanceState) {
o.State = &v
}
// GetStateChanged returns the StateChanged field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetStateChanged() time.Time {
if o == nil || IsNil(o.StateChanged.Get()) {
var ret time.Time
return ret
}
return *o.StateChanged.Get()
}
// GetStateChangedOk returns a tuple with the StateChanged field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetStateChangedOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.StateChanged.Get(), o.StateChanged.IsSet()
}
// HasStateChanged returns a boolean if a field has been set.
func (o *Instance) HasStateChanged() bool {
if o != nil && o.StateChanged.IsSet() {
return true
}
return false
}
// SetStateChanged gets a reference to the given NullableTime and assigns it to the StateChanged field.
func (o *Instance) SetStateChanged(v time.Time) {
o.StateChanged.Set(&v)
}
// SetStateChangedNil sets the value for StateChanged to be an explicit nil
func (o *Instance) SetStateChangedNil() {
o.StateChanged.Set(nil)
}
// UnsetStateChanged ensures that no value is present for StateChanged, not even an explicit nil
func (o *Instance) UnsetStateChanged() {
o.StateChanged.Unset()
}
// GetStartedAt returns the StartedAt field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetStartedAt() string {
if o == nil || IsNil(o.StartedAt.Get()) {
var ret string
return ret
}
return *o.StartedAt.Get()
}
// GetStartedAtOk returns a tuple with the StartedAt field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetStartedAtOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.StartedAt.Get(), o.StartedAt.IsSet()
}
// HasStartedAt returns a boolean if a field has been set.
func (o *Instance) HasStartedAt() bool {
if o != nil && o.StartedAt.IsSet() {
return true
}
return false
}
// SetStartedAt gets a reference to the given NullableString and assigns it to the StartedAt field.
func (o *Instance) SetStartedAt(v string) {
o.StartedAt.Set(&v)
}
// SetStartedAtNil sets the value for StartedAt to be an explicit nil
func (o *Instance) SetStartedAtNil() {
o.StartedAt.Set(nil)
}
// UnsetStartedAt ensures that no value is present for StartedAt, not even an explicit nil
func (o *Instance) UnsetStartedAt() {
o.StartedAt.Unset()
}
// GetUserTask returns the UserTask field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetUserTask() string {
if o == nil || IsNil(o.UserTask.Get()) {
var ret string
return ret
}
return *o.UserTask.Get()
}
// GetUserTaskOk returns a tuple with the UserTask field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetUserTaskOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.UserTask.Get(), o.UserTask.IsSet()
}
// HasUserTask returns a boolean if a field has been set.
func (o *Instance) HasUserTask() bool {
if o != nil && o.UserTask.IsSet() {
return true
}
return false
}
// SetUserTask gets a reference to the given NullableString and assigns it to the UserTask field.
func (o *Instance) SetUserTask(v string) {
o.UserTask.Set(&v)
}
// SetUserTaskNil sets the value for UserTask to be an explicit nil
func (o *Instance) SetUserTaskNil() {
o.UserTask.Set(nil)
}
// UnsetUserTask ensures that no value is present for UserTask, not even an explicit nil
func (o *Instance) UnsetUserTask() {
o.UserTask.Unset()
}
// GetTaskState returns the TaskState field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetTaskState() string {
if o == nil || IsNil(o.TaskState.Get()) {
var ret string
return ret
}
return *o.TaskState.Get()
}
// GetTaskStateOk returns a tuple with the TaskState field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetTaskStateOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.TaskState.Get(), o.TaskState.IsSet()
}
// HasTaskState returns a boolean if a field has been set.
func (o *Instance) HasTaskState() bool {
if o != nil && o.TaskState.IsSet() {
return true
}
return false
}
// SetTaskState gets a reference to the given NullableString and assigns it to the TaskState field.
func (o *Instance) SetTaskState(v string) {
o.TaskState.Set(&v)
}
// SetTaskStateNil sets the value for TaskState to be an explicit nil
func (o *Instance) SetTaskStateNil() {
o.TaskState.Set(nil)
}
// UnsetTaskState ensures that no value is present for TaskState, not even an explicit nil
func (o *Instance) UnsetTaskState() {
o.TaskState.Unset()
}
// GetError returns the Error field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetError() string {
if o == nil || IsNil(o.Error.Get()) {
var ret string
return ret
}
return *o.Error.Get()
}
// GetErrorOk returns a tuple with the Error field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetErrorOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Error.Get(), o.Error.IsSet()
}
// HasError returns a boolean if a field has been set.
func (o *Instance) HasError() bool {
if o != nil && o.Error.IsSet() {
return true
}
return false
}
// SetError gets a reference to the given NullableString and assigns it to the Error field.
func (o *Instance) SetError(v string) {
o.Error.Set(&v)
}
// SetErrorNil sets the value for Error to be an explicit nil
func (o *Instance) SetErrorNil() {
o.Error.Set(nil)
}
// UnsetError ensures that no value is present for Error, not even an explicit nil
func (o *Instance) UnsetError() {
o.Error.Unset()
}
// GetBootOptions returns the BootOptions field value if set, zero value otherwise.
func (o *Instance) GetBootOptions() InstanceBootOptions {
if o == nil || IsNil(o.BootOptions) {
var ret InstanceBootOptions
return ret
}
return *o.BootOptions
}
// GetBootOptionsOk returns a tuple with the BootOptions field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Instance) GetBootOptionsOk() (*InstanceBootOptions, bool) {
if o == nil || IsNil(o.BootOptions) {
return nil, false
}
return o.BootOptions, true
}
// HasBootOptions returns a boolean if a field has been set.
func (o *Instance) HasBootOptions() bool {
if o != nil && !IsNil(o.BootOptions) {
return true
}
return false
}
// SetBootOptions gets a reference to the given InstanceBootOptions and assigns it to the BootOptions field.
func (o *Instance) SetBootOptions(v InstanceBootOptions) {
o.BootOptions = &v
}
// GetServiceIp returns the ServiceIp field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetServiceIp() string {
if o == nil || IsNil(o.ServiceIp.Get()) {
var ret string
return ret
}
return *o.ServiceIp.Get()
}
// GetServiceIpOk returns a tuple with the ServiceIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetServiceIpOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.ServiceIp.Get(), o.ServiceIp.IsSet()
}
// HasServiceIp returns a boolean if a field has been set.
func (o *Instance) HasServiceIp() bool {
if o != nil && o.ServiceIp.IsSet() {
return true
}
return false
}
// SetServiceIp gets a reference to the given NullableString and assigns it to the ServiceIp field.
func (o *Instance) SetServiceIp(v string) {
o.ServiceIp.Set(&v)
}
// SetServiceIpNil sets the value for ServiceIp to be an explicit nil
func (o *Instance) SetServiceIpNil() {
o.ServiceIp.Set(nil)
}
// UnsetServiceIp ensures that no value is present for ServiceIp, not even an explicit nil
func (o *Instance) UnsetServiceIp() {
o.ServiceIp.Unset()
}
// GetWifiIp returns the WifiIp field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetWifiIp() string {
if o == nil || IsNil(o.WifiIp.Get()) {
var ret string
return ret
}
return *o.WifiIp.Get()
}
// GetWifiIpOk returns a tuple with the WifiIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetWifiIpOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.WifiIp.Get(), o.WifiIp.IsSet()
}
// HasWifiIp returns a boolean if a field has been set.
func (o *Instance) HasWifiIp() bool {
if o != nil && o.WifiIp.IsSet() {
return true
}
return false
}
// SetWifiIp gets a reference to the given NullableString and assigns it to the WifiIp field.
func (o *Instance) SetWifiIp(v string) {
o.WifiIp.Set(&v)
}
// SetWifiIpNil sets the value for WifiIp to be an explicit nil
func (o *Instance) SetWifiIpNil() {
o.WifiIp.Set(nil)
}
// UnsetWifiIp ensures that no value is present for WifiIp, not even an explicit nil
func (o *Instance) UnsetWifiIp() {
o.WifiIp.Unset()
}
// GetSecondaryIp returns the SecondaryIp field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetSecondaryIp() string {
if o == nil || IsNil(o.SecondaryIp.Get()) {
var ret string
return ret
}
return *o.SecondaryIp.Get()
}
// GetSecondaryIpOk returns a tuple with the SecondaryIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetSecondaryIpOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.SecondaryIp.Get(), o.SecondaryIp.IsSet()
}
// HasSecondaryIp returns a boolean if a field has been set.
func (o *Instance) HasSecondaryIp() bool {
if o != nil && o.SecondaryIp.IsSet() {
return true
}
return false
}
// SetSecondaryIp gets a reference to the given NullableString and assigns it to the SecondaryIp field.
func (o *Instance) SetSecondaryIp(v string) {
o.SecondaryIp.Set(&v)
}
// SetSecondaryIpNil sets the value for SecondaryIp to be an explicit nil
func (o *Instance) SetSecondaryIpNil() {
o.SecondaryIp.Set(nil)
}
// UnsetSecondaryIp ensures that no value is present for SecondaryIp, not even an explicit nil
func (o *Instance) UnsetSecondaryIp() {
o.SecondaryIp.Unset()
}
// GetServices returns the Services field value if set, zero value otherwise.
func (o *Instance) GetServices() InstanceServices {
if o == nil || IsNil(o.Services) {
var ret InstanceServices
return ret
}
return *o.Services
}
// GetServicesOk returns a tuple with the Services field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *Instance) GetServicesOk() (*InstanceServices, bool) {
if o == nil || IsNil(o.Services) {
return nil, false
}
return o.Services, true
}
// HasServices returns a boolean if a field has been set.
func (o *Instance) HasServices() bool {
if o != nil && !IsNil(o.Services) {
return true
}
return false
}
// SetServices gets a reference to the given InstanceServices and assigns it to the Services field.
func (o *Instance) SetServices(v InstanceServices) {
o.Services = &v
}
// GetPanicked returns the Panicked field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetPanicked() bool {
if o == nil || IsNil(o.Panicked.Get()) {
var ret bool
return ret
}
return *o.Panicked.Get()
}
// GetPanickedOk returns a tuple with the Panicked field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetPanickedOk() (*bool, bool) {
if o == nil {
return nil, false
}
return o.Panicked.Get(), o.Panicked.IsSet()
}
// HasPanicked returns a boolean if a field has been set.
func (o *Instance) HasPanicked() bool {
if o != nil && o.Panicked.IsSet() {
return true
}
return false
}
// SetPanicked gets a reference to the given NullableBool and assigns it to the Panicked field.
func (o *Instance) SetPanicked(v bool) {
o.Panicked.Set(&v)
}
// SetPanickedNil sets the value for Panicked to be an explicit nil
func (o *Instance) SetPanickedNil() {
o.Panicked.Set(nil)
}
// UnsetPanicked ensures that no value is present for Panicked, not even an explicit nil
func (o *Instance) UnsetPanicked() {
o.Panicked.Unset()
}
// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetCreated() time.Time {
if o == nil || IsNil(o.Created.Get()) {
var ret time.Time
return ret
}
return *o.Created.Get()
}
// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetCreatedOk() (*time.Time, bool) {
if o == nil {
return nil, false
}
return o.Created.Get(), o.Created.IsSet()
}
// HasCreated returns a boolean if a field has been set.
func (o *Instance) HasCreated() bool {
if o != nil && o.Created.IsSet() {
return true
}
return false
}
// SetCreated gets a reference to the given NullableTime and assigns it to the Created field.
func (o *Instance) SetCreated(v time.Time) {
o.Created.Set(&v)
}
// SetCreatedNil sets the value for Created to be an explicit nil
func (o *Instance) SetCreatedNil() {
o.Created.Set(nil)
}
// UnsetCreated ensures that no value is present for Created, not even an explicit nil
func (o *Instance) UnsetCreated() {
o.Created.Unset()
}
// GetModel returns the Model field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetModel() string {
if o == nil || IsNil(o.Model.Get()) {
var ret string
return ret
}
return *o.Model.Get()
}
// GetModelOk returns a tuple with the Model field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetModelOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Model.Get(), o.Model.IsSet()
}
// HasModel returns a boolean if a field has been set.
func (o *Instance) HasModel() bool {
if o != nil && o.Model.IsSet() {
return true
}
return false
}
// SetModel gets a reference to the given NullableString and assigns it to the Model field.
func (o *Instance) SetModel(v string) {
o.Model.Set(&v)
}
// SetModelNil sets the value for Model to be an explicit nil
func (o *Instance) SetModelNil() {
o.Model.Set(nil)
}
// UnsetModel ensures that no value is present for Model, not even an explicit nil
func (o *Instance) UnsetModel() {
o.Model.Unset()
}
// GetFwpackage returns the Fwpackage field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetFwpackage() string {
if o == nil || IsNil(o.Fwpackage.Get()) {
var ret string
return ret
}
return *o.Fwpackage.Get()
}
// GetFwpackageOk returns a tuple with the Fwpackage field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetFwpackageOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Fwpackage.Get(), o.Fwpackage.IsSet()
}
// HasFwpackage returns a boolean if a field has been set.
func (o *Instance) HasFwpackage() bool {
if o != nil && o.Fwpackage.IsSet() {
return true
}
return false
}
// SetFwpackage gets a reference to the given NullableString and assigns it to the Fwpackage field.
func (o *Instance) SetFwpackage(v string) {
o.Fwpackage.Set(&v)
}
// SetFwpackageNil sets the value for Fwpackage to be an explicit nil
func (o *Instance) SetFwpackageNil() {
o.Fwpackage.Set(nil)
}
// UnsetFwpackage ensures that no value is present for Fwpackage, not even an explicit nil
func (o *Instance) UnsetFwpackage() {
o.Fwpackage.Unset()
}
// GetOs returns the Os field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetOs() string {
if o == nil || IsNil(o.Os.Get()) {
var ret string
return ret
}
return *o.Os.Get()
}
// GetOsOk returns a tuple with the Os field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetOsOk() (*string, bool) {
if o == nil {
return nil, false
}
return o.Os.Get(), o.Os.IsSet()
}
// HasOs returns a boolean if a field has been set.
func (o *Instance) HasOs() bool {
if o != nil && o.Os.IsSet() {
return true
}
return false
}
// SetOs gets a reference to the given NullableString and assigns it to the Os field.
func (o *Instance) SetOs(v string) {
o.Os.Set(&v)
}
// SetOsNil sets the value for Os to be an explicit nil
func (o *Instance) SetOsNil() {
o.Os.Set(nil)
}
// UnsetOs ensures that no value is present for Os, not even an explicit nil
func (o *Instance) UnsetOs() {
o.Os.Unset()
}
// GetAgent returns the Agent field value if set, zero value otherwise (both if not set or set to explicit null).
func (o *Instance) GetAgent() InstanceAgentState {
if o == nil || IsNil(o.Agent.Get()) {
var ret InstanceAgentState
return ret
}
return *o.Agent.Get()
}
// GetAgentOk returns a tuple with the Agent field value if set, nil otherwise
// and a boolean to check if the value has been set.
// NOTE: If the value is an explicit nil, `nil, true` will be returned
func (o *Instance) GetAgentOk() (*InstanceAgentState, bool) {
if o == nil {