forked from meraki/dashboard-api-go
/
model_get_organization_uplinks_statuses_200_response_inner_uplinks_inner.go
681 lines (580 loc) · 22 KB
/
model_get_organization_uplinks_statuses_200_response_inner_uplinks_inner.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
/*
Meraki Dashboard API
A RESTful API to programmatically manage and monitor Cisco Meraki networks at scale. > Date: 02 August, 2023 > > [Recent Updates](https://meraki.io/whats-new/) --- [API Documentation](https://meraki.io/api) [Community Support](https://meraki.io/community) [Meraki Homepage](https://www.meraki.com)
API version: 1.36.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package client
import (
"encoding/json"
)
// checks if the GetOrganizationUplinksStatuses200ResponseInnerUplinksInner type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &GetOrganizationUplinksStatuses200ResponseInnerUplinksInner{}
// GetOrganizationUplinksStatuses200ResponseInnerUplinksInner struct for GetOrganizationUplinksStatuses200ResponseInnerUplinksInner
type GetOrganizationUplinksStatuses200ResponseInnerUplinksInner struct {
// Uplink interface
Interface *string `json:"interface,omitempty"`
// Uplink status
Status *string `json:"status,omitempty"`
// Uplink IP
Ip *string `json:"ip,omitempty"`
// Gateway IP
Gateway *string `json:"gateway,omitempty"`
// Public IP
PublicIp *string `json:"publicIp,omitempty"`
// Primary DNS IP
PrimaryDns *string `json:"primaryDns,omitempty"`
// Secondary DNS IP
SecondaryDns *string `json:"secondaryDns,omitempty"`
// The way in which the IP is assigned
IpAssignedBy *string `json:"ipAssignedBy,omitempty"`
// Network Provider
Provider *string `json:"provider,omitempty"`
SignalStat *GetOrganizationCellularGatewayUplinkStatuses200ResponseInnerUplinksInnerSignalStat `json:"signalStat,omitempty"`
// Connection Type
ConnectionType *string `json:"connectionType,omitempty"`
// Access Point Name
Apn *string `json:"apn,omitempty"`
// Primary DNS IP
Dns1 *string `json:"dns1,omitempty"`
// Secondary DNS IP
Dns2 *string `json:"dns2,omitempty"`
// Signal Type
SignalType *string `json:"signalType,omitempty"`
// Integrated Circuit Card Identification Number
Iccid *string `json:"iccid,omitempty"`
}
// NewGetOrganizationUplinksStatuses200ResponseInnerUplinksInner instantiates a new GetOrganizationUplinksStatuses200ResponseInnerUplinksInner 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 NewGetOrganizationUplinksStatuses200ResponseInnerUplinksInner() *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner {
this := GetOrganizationUplinksStatuses200ResponseInnerUplinksInner{}
return &this
}
// NewGetOrganizationUplinksStatuses200ResponseInnerUplinksInnerWithDefaults instantiates a new GetOrganizationUplinksStatuses200ResponseInnerUplinksInner 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 NewGetOrganizationUplinksStatuses200ResponseInnerUplinksInnerWithDefaults() *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner {
this := GetOrganizationUplinksStatuses200ResponseInnerUplinksInner{}
return &this
}
// GetInterface returns the Interface field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetInterface() string {
if o == nil || IsNil(o.Interface) {
var ret string
return ret
}
return *o.Interface
}
// GetInterfaceOk returns a tuple with the Interface field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetInterfaceOk() (*string, bool) {
if o == nil || IsNil(o.Interface) {
return nil, false
}
return o.Interface, true
}
// HasInterface returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasInterface() bool {
if o != nil && !IsNil(o.Interface) {
return true
}
return false
}
// SetInterface gets a reference to the given string and assigns it to the Interface field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetInterface(v string) {
o.Interface = &v
}
// GetStatus returns the Status field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetStatus() string {
if o == nil || IsNil(o.Status) {
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 *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetStatusOk() (*string, bool) {
if o == nil || IsNil(o.Status) {
return nil, false
}
return o.Status, true
}
// HasStatus returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasStatus() bool {
if o != nil && !IsNil(o.Status) {
return true
}
return false
}
// SetStatus gets a reference to the given string and assigns it to the Status field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetStatus(v string) {
o.Status = &v
}
// GetIp returns the Ip field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetIp() string {
if o == nil || IsNil(o.Ip) {
var ret string
return ret
}
return *o.Ip
}
// GetIpOk returns a tuple with the Ip field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetIpOk() (*string, bool) {
if o == nil || IsNil(o.Ip) {
return nil, false
}
return o.Ip, true
}
// HasIp returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasIp() bool {
if o != nil && !IsNil(o.Ip) {
return true
}
return false
}
// SetIp gets a reference to the given string and assigns it to the Ip field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetIp(v string) {
o.Ip = &v
}
// GetGateway returns the Gateway field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetGateway() string {
if o == nil || IsNil(o.Gateway) {
var ret string
return ret
}
return *o.Gateway
}
// GetGatewayOk returns a tuple with the Gateway field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetGatewayOk() (*string, bool) {
if o == nil || IsNil(o.Gateway) {
return nil, false
}
return o.Gateway, true
}
// HasGateway returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasGateway() bool {
if o != nil && !IsNil(o.Gateway) {
return true
}
return false
}
// SetGateway gets a reference to the given string and assigns it to the Gateway field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetGateway(v string) {
o.Gateway = &v
}
// GetPublicIp returns the PublicIp field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetPublicIp() string {
if o == nil || IsNil(o.PublicIp) {
var ret string
return ret
}
return *o.PublicIp
}
// GetPublicIpOk returns a tuple with the PublicIp field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetPublicIpOk() (*string, bool) {
if o == nil || IsNil(o.PublicIp) {
return nil, false
}
return o.PublicIp, true
}
// HasPublicIp returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasPublicIp() bool {
if o != nil && !IsNil(o.PublicIp) {
return true
}
return false
}
// SetPublicIp gets a reference to the given string and assigns it to the PublicIp field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetPublicIp(v string) {
o.PublicIp = &v
}
// GetPrimaryDns returns the PrimaryDns field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetPrimaryDns() string {
if o == nil || IsNil(o.PrimaryDns) {
var ret string
return ret
}
return *o.PrimaryDns
}
// GetPrimaryDnsOk returns a tuple with the PrimaryDns field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetPrimaryDnsOk() (*string, bool) {
if o == nil || IsNil(o.PrimaryDns) {
return nil, false
}
return o.PrimaryDns, true
}
// HasPrimaryDns returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasPrimaryDns() bool {
if o != nil && !IsNil(o.PrimaryDns) {
return true
}
return false
}
// SetPrimaryDns gets a reference to the given string and assigns it to the PrimaryDns field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetPrimaryDns(v string) {
o.PrimaryDns = &v
}
// GetSecondaryDns returns the SecondaryDns field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetSecondaryDns() string {
if o == nil || IsNil(o.SecondaryDns) {
var ret string
return ret
}
return *o.SecondaryDns
}
// GetSecondaryDnsOk returns a tuple with the SecondaryDns field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetSecondaryDnsOk() (*string, bool) {
if o == nil || IsNil(o.SecondaryDns) {
return nil, false
}
return o.SecondaryDns, true
}
// HasSecondaryDns returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasSecondaryDns() bool {
if o != nil && !IsNil(o.SecondaryDns) {
return true
}
return false
}
// SetSecondaryDns gets a reference to the given string and assigns it to the SecondaryDns field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetSecondaryDns(v string) {
o.SecondaryDns = &v
}
// GetIpAssignedBy returns the IpAssignedBy field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetIpAssignedBy() string {
if o == nil || IsNil(o.IpAssignedBy) {
var ret string
return ret
}
return *o.IpAssignedBy
}
// GetIpAssignedByOk returns a tuple with the IpAssignedBy field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetIpAssignedByOk() (*string, bool) {
if o == nil || IsNil(o.IpAssignedBy) {
return nil, false
}
return o.IpAssignedBy, true
}
// HasIpAssignedBy returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasIpAssignedBy() bool {
if o != nil && !IsNil(o.IpAssignedBy) {
return true
}
return false
}
// SetIpAssignedBy gets a reference to the given string and assigns it to the IpAssignedBy field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetIpAssignedBy(v string) {
o.IpAssignedBy = &v
}
// GetProvider returns the Provider field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetProvider() string {
if o == nil || IsNil(o.Provider) {
var ret string
return ret
}
return *o.Provider
}
// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetProviderOk() (*string, bool) {
if o == nil || IsNil(o.Provider) {
return nil, false
}
return o.Provider, true
}
// HasProvider returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasProvider() bool {
if o != nil && !IsNil(o.Provider) {
return true
}
return false
}
// SetProvider gets a reference to the given string and assigns it to the Provider field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetProvider(v string) {
o.Provider = &v
}
// GetSignalStat returns the SignalStat field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetSignalStat() GetOrganizationCellularGatewayUplinkStatuses200ResponseInnerUplinksInnerSignalStat {
if o == nil || IsNil(o.SignalStat) {
var ret GetOrganizationCellularGatewayUplinkStatuses200ResponseInnerUplinksInnerSignalStat
return ret
}
return *o.SignalStat
}
// GetSignalStatOk returns a tuple with the SignalStat field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetSignalStatOk() (*GetOrganizationCellularGatewayUplinkStatuses200ResponseInnerUplinksInnerSignalStat, bool) {
if o == nil || IsNil(o.SignalStat) {
return nil, false
}
return o.SignalStat, true
}
// HasSignalStat returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasSignalStat() bool {
if o != nil && !IsNil(o.SignalStat) {
return true
}
return false
}
// SetSignalStat gets a reference to the given GetOrganizationCellularGatewayUplinkStatuses200ResponseInnerUplinksInnerSignalStat and assigns it to the SignalStat field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetSignalStat(v GetOrganizationCellularGatewayUplinkStatuses200ResponseInnerUplinksInnerSignalStat) {
o.SignalStat = &v
}
// GetConnectionType returns the ConnectionType field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetConnectionType() string {
if o == nil || IsNil(o.ConnectionType) {
var ret string
return ret
}
return *o.ConnectionType
}
// GetConnectionTypeOk returns a tuple with the ConnectionType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetConnectionTypeOk() (*string, bool) {
if o == nil || IsNil(o.ConnectionType) {
return nil, false
}
return o.ConnectionType, true
}
// HasConnectionType returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasConnectionType() bool {
if o != nil && !IsNil(o.ConnectionType) {
return true
}
return false
}
// SetConnectionType gets a reference to the given string and assigns it to the ConnectionType field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetConnectionType(v string) {
o.ConnectionType = &v
}
// GetApn returns the Apn field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetApn() string {
if o == nil || IsNil(o.Apn) {
var ret string
return ret
}
return *o.Apn
}
// GetApnOk returns a tuple with the Apn field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetApnOk() (*string, bool) {
if o == nil || IsNil(o.Apn) {
return nil, false
}
return o.Apn, true
}
// HasApn returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasApn() bool {
if o != nil && !IsNil(o.Apn) {
return true
}
return false
}
// SetApn gets a reference to the given string and assigns it to the Apn field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetApn(v string) {
o.Apn = &v
}
// GetDns1 returns the Dns1 field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetDns1() string {
if o == nil || IsNil(o.Dns1) {
var ret string
return ret
}
return *o.Dns1
}
// GetDns1Ok returns a tuple with the Dns1 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetDns1Ok() (*string, bool) {
if o == nil || IsNil(o.Dns1) {
return nil, false
}
return o.Dns1, true
}
// HasDns1 returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasDns1() bool {
if o != nil && !IsNil(o.Dns1) {
return true
}
return false
}
// SetDns1 gets a reference to the given string and assigns it to the Dns1 field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetDns1(v string) {
o.Dns1 = &v
}
// GetDns2 returns the Dns2 field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetDns2() string {
if o == nil || IsNil(o.Dns2) {
var ret string
return ret
}
return *o.Dns2
}
// GetDns2Ok returns a tuple with the Dns2 field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetDns2Ok() (*string, bool) {
if o == nil || IsNil(o.Dns2) {
return nil, false
}
return o.Dns2, true
}
// HasDns2 returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasDns2() bool {
if o != nil && !IsNil(o.Dns2) {
return true
}
return false
}
// SetDns2 gets a reference to the given string and assigns it to the Dns2 field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetDns2(v string) {
o.Dns2 = &v
}
// GetSignalType returns the SignalType field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetSignalType() string {
if o == nil || IsNil(o.SignalType) {
var ret string
return ret
}
return *o.SignalType
}
// GetSignalTypeOk returns a tuple with the SignalType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetSignalTypeOk() (*string, bool) {
if o == nil || IsNil(o.SignalType) {
return nil, false
}
return o.SignalType, true
}
// HasSignalType returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasSignalType() bool {
if o != nil && !IsNil(o.SignalType) {
return true
}
return false
}
// SetSignalType gets a reference to the given string and assigns it to the SignalType field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetSignalType(v string) {
o.SignalType = &v
}
// GetIccid returns the Iccid field value if set, zero value otherwise.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetIccid() string {
if o == nil || IsNil(o.Iccid) {
var ret string
return ret
}
return *o.Iccid
}
// GetIccidOk returns a tuple with the Iccid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) GetIccidOk() (*string, bool) {
if o == nil || IsNil(o.Iccid) {
return nil, false
}
return o.Iccid, true
}
// HasIccid returns a boolean if a field has been set.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) HasIccid() bool {
if o != nil && !IsNil(o.Iccid) {
return true
}
return false
}
// SetIccid gets a reference to the given string and assigns it to the Iccid field.
func (o *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) SetIccid(v string) {
o.Iccid = &v
}
func (o GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.Interface) {
toSerialize["interface"] = o.Interface
}
if !IsNil(o.Status) {
toSerialize["status"] = o.Status
}
if !IsNil(o.Ip) {
toSerialize["ip"] = o.Ip
}
if !IsNil(o.Gateway) {
toSerialize["gateway"] = o.Gateway
}
if !IsNil(o.PublicIp) {
toSerialize["publicIp"] = o.PublicIp
}
if !IsNil(o.PrimaryDns) {
toSerialize["primaryDns"] = o.PrimaryDns
}
if !IsNil(o.SecondaryDns) {
toSerialize["secondaryDns"] = o.SecondaryDns
}
if !IsNil(o.IpAssignedBy) {
toSerialize["ipAssignedBy"] = o.IpAssignedBy
}
if !IsNil(o.Provider) {
toSerialize["provider"] = o.Provider
}
if !IsNil(o.SignalStat) {
toSerialize["signalStat"] = o.SignalStat
}
if !IsNil(o.ConnectionType) {
toSerialize["connectionType"] = o.ConnectionType
}
if !IsNil(o.Apn) {
toSerialize["apn"] = o.Apn
}
if !IsNil(o.Dns1) {
toSerialize["dns1"] = o.Dns1
}
if !IsNil(o.Dns2) {
toSerialize["dns2"] = o.Dns2
}
if !IsNil(o.SignalType) {
toSerialize["signalType"] = o.SignalType
}
if !IsNil(o.Iccid) {
toSerialize["iccid"] = o.Iccid
}
return toSerialize, nil
}
type NullableGetOrganizationUplinksStatuses200ResponseInnerUplinksInner struct {
value *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner
isSet bool
}
func (v NullableGetOrganizationUplinksStatuses200ResponseInnerUplinksInner) Get() *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner {
return v.value
}
func (v *NullableGetOrganizationUplinksStatuses200ResponseInnerUplinksInner) Set(val *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) {
v.value = val
v.isSet = true
}
func (v NullableGetOrganizationUplinksStatuses200ResponseInnerUplinksInner) IsSet() bool {
return v.isSet
}
func (v *NullableGetOrganizationUplinksStatuses200ResponseInnerUplinksInner) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableGetOrganizationUplinksStatuses200ResponseInnerUplinksInner(val *GetOrganizationUplinksStatuses200ResponseInnerUplinksInner) *NullableGetOrganizationUplinksStatuses200ResponseInnerUplinksInner {
return &NullableGetOrganizationUplinksStatuses200ResponseInnerUplinksInner{value: val, isSet: true}
}
func (v NullableGetOrganizationUplinksStatuses200ResponseInnerUplinksInner) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableGetOrganizationUplinksStatuses200ResponseInnerUplinksInner) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}