/
model_port_response.go
1617 lines (1388 loc) · 46 KB
/
model_port_response.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
/*
Equinix Fabric API v4
Equinix Fabric is an advanced software-defined interconnection solution that enables you to directly, securely and dynamically connect to distributed infrastructure and digital ecosystems on platform Equinix via a single port, Customers can use Fabric to connect to: </br> 1. Cloud Service Providers - Clouds, network and other service providers. </br> 2. Enterprises - Other Equinix customers, vendors and partners. </br> 3. Myself - Another customer instance deployed at Equinix. </br>
API version: 4.12
Contact: api-support@equinix.com
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package fabricv4
import (
"encoding/json"
)
// checks if the PortResponse type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &PortResponse{}
// PortResponse Port response specification
type PortResponse struct {
Type *PortType `json:"type,omitempty"`
// Equinix assigned response attribute for Port Id
Id *int32 `json:"id,omitempty"`
// Equinix assigned response attribute for an absolute URL that is the subject of the link's context.
Href *string `json:"href,omitempty"`
// Equinix assigned response attribute for port identifier
Uuid *string `json:"uuid,omitempty"`
// Equinix assigned response attribute for Port name
Name *string `json:"name,omitempty"`
// Equinix assigned response attribute for Port description
Description *string `json:"description,omitempty"`
// Physical Ports Speed in Mbps
PhysicalPortsSpeed *int32 `json:"physicalPortsSpeed,omitempty"`
// Equinix assigned response attribute for Connection count
ConnectionsCount *int32 `json:"connectionsCount,omitempty"`
PhysicalPortsType *PortResponsePhysicalPortsType `json:"physicalPortsType,omitempty"`
PhysicalPortsCount *int32 `json:"physicalPortsCount,omitempty"`
ConnectivitySourceType *PortResponseConnectivitySourceType `json:"connectivitySourceType,omitempty"`
BmmrType *PortResponseBmmrType `json:"bmmrType,omitempty"`
Project *Project `json:"project,omitempty"`
State *PortState `json:"state,omitempty"`
Order *PortOrder `json:"order,omitempty"`
// Equinix assigned response attribute for Unique ID for a virtual port.
CvpId *string `json:"cvpId,omitempty"`
Operation *PortOperation `json:"operation,omitempty"`
Account *SimplifiedAccountPortResponse `json:"account,omitempty"`
Changelog *Changelog `json:"changelog,omitempty"`
ServiceType *PortResponseServiceType `json:"serviceType,omitempty"`
// Equinix assigned response attribute for Port bandwidth in Mbps
Bandwidth *int32 `json:"bandwidth,omitempty"`
// Equinix assigned response attribute for Port available bandwidth in Mbps
AvailableBandwidth *int32 `json:"availableBandwidth,omitempty"`
// Equinix assigned response attribute for Port used bandwidth in Mbps
UsedBandwidth *int32 `json:"usedBandwidth,omitempty"`
Location *SimplifiedLocation `json:"location,omitempty"`
Device *PortDevice `json:"device,omitempty"`
Interface *PortInterface `json:"interface,omitempty"`
// A-side/Equinix ibx
DemarcationPointIbx *string `json:"demarcationPointIbx,omitempty"`
// z-side/Equinix ibx
TetherIbx *string `json:"tetherIbx,omitempty"`
DemarcationPoint *PortDemarcationPoint `json:"demarcationPoint,omitempty"`
Redundancy *PortRedundancy `json:"redundancy,omitempty"`
Encapsulation *PortEncapsulation `json:"encapsulation,omitempty"`
// If LAG enabled
LagEnabled *bool `json:"lagEnabled,omitempty"`
Lag *PortLag `json:"lag,omitempty"`
// Port ASN
Asn *int32 `json:"asn,omitempty"`
Settings *PortSettings `json:"settings,omitempty"`
// Number of physical ports
PhysicalPortQuantity *int32 `json:"physicalPortQuantity,omitempty"`
// Notification preferences
Notifications []PortNotification `json:"notifications,omitempty"`
// Port additional information
AdditionalInfo []PortAdditionalInfo `json:"additionalInfo,omitempty"`
// Physical ports that implement this port
PhysicalPorts []PhysicalPort `json:"physicalPorts,omitempty"`
// Port Loas
Loas []PortLoa `json:"loas,omitempty"`
AdditionalProperties map[string]interface{}
}
type _PortResponse PortResponse
// NewPortResponse instantiates a new PortResponse 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 NewPortResponse() *PortResponse {
this := PortResponse{}
return &this
}
// NewPortResponseWithDefaults instantiates a new PortResponse 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 NewPortResponseWithDefaults() *PortResponse {
this := PortResponse{}
return &this
}
// GetType returns the Type field value if set, zero value otherwise.
func (o *PortResponse) GetType() PortType {
if o == nil || IsNil(o.Type) {
var ret PortType
return ret
}
return *o.Type
}
// GetTypeOk returns a tuple with the Type field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetTypeOk() (*PortType, bool) {
if o == nil || IsNil(o.Type) {
return nil, false
}
return o.Type, true
}
// HasType returns a boolean if a field has been set.
func (o *PortResponse) HasType() bool {
if o != nil && !IsNil(o.Type) {
return true
}
return false
}
// SetType gets a reference to the given PortType and assigns it to the Type field.
func (o *PortResponse) SetType(v PortType) {
o.Type = &v
}
// GetId returns the Id field value if set, zero value otherwise.
func (o *PortResponse) GetId() int32 {
if o == nil || IsNil(o.Id) {
var ret int32
return ret
}
return *o.Id
}
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetIdOk() (*int32, bool) {
if o == nil || IsNil(o.Id) {
return nil, false
}
return o.Id, true
}
// HasId returns a boolean if a field has been set.
func (o *PortResponse) HasId() bool {
if o != nil && !IsNil(o.Id) {
return true
}
return false
}
// SetId gets a reference to the given int32 and assigns it to the Id field.
func (o *PortResponse) SetId(v int32) {
o.Id = &v
}
// GetHref returns the Href field value if set, zero value otherwise.
func (o *PortResponse) GetHref() string {
if o == nil || IsNil(o.Href) {
var ret string
return ret
}
return *o.Href
}
// GetHrefOk returns a tuple with the Href field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetHrefOk() (*string, bool) {
if o == nil || IsNil(o.Href) {
return nil, false
}
return o.Href, true
}
// HasHref returns a boolean if a field has been set.
func (o *PortResponse) HasHref() bool {
if o != nil && !IsNil(o.Href) {
return true
}
return false
}
// SetHref gets a reference to the given string and assigns it to the Href field.
func (o *PortResponse) SetHref(v string) {
o.Href = &v
}
// GetUuid returns the Uuid field value if set, zero value otherwise.
func (o *PortResponse) GetUuid() string {
if o == nil || IsNil(o.Uuid) {
var ret string
return ret
}
return *o.Uuid
}
// GetUuidOk returns a tuple with the Uuid field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetUuidOk() (*string, bool) {
if o == nil || IsNil(o.Uuid) {
return nil, false
}
return o.Uuid, true
}
// HasUuid returns a boolean if a field has been set.
func (o *PortResponse) HasUuid() bool {
if o != nil && !IsNil(o.Uuid) {
return true
}
return false
}
// SetUuid gets a reference to the given string and assigns it to the Uuid field.
func (o *PortResponse) SetUuid(v string) {
o.Uuid = &v
}
// GetName returns the Name field value if set, zero value otherwise.
func (o *PortResponse) GetName() string {
if o == nil || IsNil(o.Name) {
var ret string
return ret
}
return *o.Name
}
// GetNameOk returns a tuple with the Name field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetNameOk() (*string, bool) {
if o == nil || IsNil(o.Name) {
return nil, false
}
return o.Name, true
}
// HasName returns a boolean if a field has been set.
func (o *PortResponse) HasName() bool {
if o != nil && !IsNil(o.Name) {
return true
}
return false
}
// SetName gets a reference to the given string and assigns it to the Name field.
func (o *PortResponse) SetName(v string) {
o.Name = &v
}
// GetDescription returns the Description field value if set, zero value otherwise.
func (o *PortResponse) GetDescription() string {
if o == nil || IsNil(o.Description) {
var ret string
return ret
}
return *o.Description
}
// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetDescriptionOk() (*string, bool) {
if o == nil || IsNil(o.Description) {
return nil, false
}
return o.Description, true
}
// HasDescription returns a boolean if a field has been set.
func (o *PortResponse) HasDescription() bool {
if o != nil && !IsNil(o.Description) {
return true
}
return false
}
// SetDescription gets a reference to the given string and assigns it to the Description field.
func (o *PortResponse) SetDescription(v string) {
o.Description = &v
}
// GetPhysicalPortsSpeed returns the PhysicalPortsSpeed field value if set, zero value otherwise.
func (o *PortResponse) GetPhysicalPortsSpeed() int32 {
if o == nil || IsNil(o.PhysicalPortsSpeed) {
var ret int32
return ret
}
return *o.PhysicalPortsSpeed
}
// GetPhysicalPortsSpeedOk returns a tuple with the PhysicalPortsSpeed field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetPhysicalPortsSpeedOk() (*int32, bool) {
if o == nil || IsNil(o.PhysicalPortsSpeed) {
return nil, false
}
return o.PhysicalPortsSpeed, true
}
// HasPhysicalPortsSpeed returns a boolean if a field has been set.
func (o *PortResponse) HasPhysicalPortsSpeed() bool {
if o != nil && !IsNil(o.PhysicalPortsSpeed) {
return true
}
return false
}
// SetPhysicalPortsSpeed gets a reference to the given int32 and assigns it to the PhysicalPortsSpeed field.
func (o *PortResponse) SetPhysicalPortsSpeed(v int32) {
o.PhysicalPortsSpeed = &v
}
// GetConnectionsCount returns the ConnectionsCount field value if set, zero value otherwise.
func (o *PortResponse) GetConnectionsCount() int32 {
if o == nil || IsNil(o.ConnectionsCount) {
var ret int32
return ret
}
return *o.ConnectionsCount
}
// GetConnectionsCountOk returns a tuple with the ConnectionsCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetConnectionsCountOk() (*int32, bool) {
if o == nil || IsNil(o.ConnectionsCount) {
return nil, false
}
return o.ConnectionsCount, true
}
// HasConnectionsCount returns a boolean if a field has been set.
func (o *PortResponse) HasConnectionsCount() bool {
if o != nil && !IsNil(o.ConnectionsCount) {
return true
}
return false
}
// SetConnectionsCount gets a reference to the given int32 and assigns it to the ConnectionsCount field.
func (o *PortResponse) SetConnectionsCount(v int32) {
o.ConnectionsCount = &v
}
// GetPhysicalPortsType returns the PhysicalPortsType field value if set, zero value otherwise.
func (o *PortResponse) GetPhysicalPortsType() PortResponsePhysicalPortsType {
if o == nil || IsNil(o.PhysicalPortsType) {
var ret PortResponsePhysicalPortsType
return ret
}
return *o.PhysicalPortsType
}
// GetPhysicalPortsTypeOk returns a tuple with the PhysicalPortsType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetPhysicalPortsTypeOk() (*PortResponsePhysicalPortsType, bool) {
if o == nil || IsNil(o.PhysicalPortsType) {
return nil, false
}
return o.PhysicalPortsType, true
}
// HasPhysicalPortsType returns a boolean if a field has been set.
func (o *PortResponse) HasPhysicalPortsType() bool {
if o != nil && !IsNil(o.PhysicalPortsType) {
return true
}
return false
}
// SetPhysicalPortsType gets a reference to the given PortResponsePhysicalPortsType and assigns it to the PhysicalPortsType field.
func (o *PortResponse) SetPhysicalPortsType(v PortResponsePhysicalPortsType) {
o.PhysicalPortsType = &v
}
// GetPhysicalPortsCount returns the PhysicalPortsCount field value if set, zero value otherwise.
func (o *PortResponse) GetPhysicalPortsCount() int32 {
if o == nil || IsNil(o.PhysicalPortsCount) {
var ret int32
return ret
}
return *o.PhysicalPortsCount
}
// GetPhysicalPortsCountOk returns a tuple with the PhysicalPortsCount field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetPhysicalPortsCountOk() (*int32, bool) {
if o == nil || IsNil(o.PhysicalPortsCount) {
return nil, false
}
return o.PhysicalPortsCount, true
}
// HasPhysicalPortsCount returns a boolean if a field has been set.
func (o *PortResponse) HasPhysicalPortsCount() bool {
if o != nil && !IsNil(o.PhysicalPortsCount) {
return true
}
return false
}
// SetPhysicalPortsCount gets a reference to the given int32 and assigns it to the PhysicalPortsCount field.
func (o *PortResponse) SetPhysicalPortsCount(v int32) {
o.PhysicalPortsCount = &v
}
// GetConnectivitySourceType returns the ConnectivitySourceType field value if set, zero value otherwise.
func (o *PortResponse) GetConnectivitySourceType() PortResponseConnectivitySourceType {
if o == nil || IsNil(o.ConnectivitySourceType) {
var ret PortResponseConnectivitySourceType
return ret
}
return *o.ConnectivitySourceType
}
// GetConnectivitySourceTypeOk returns a tuple with the ConnectivitySourceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetConnectivitySourceTypeOk() (*PortResponseConnectivitySourceType, bool) {
if o == nil || IsNil(o.ConnectivitySourceType) {
return nil, false
}
return o.ConnectivitySourceType, true
}
// HasConnectivitySourceType returns a boolean if a field has been set.
func (o *PortResponse) HasConnectivitySourceType() bool {
if o != nil && !IsNil(o.ConnectivitySourceType) {
return true
}
return false
}
// SetConnectivitySourceType gets a reference to the given PortResponseConnectivitySourceType and assigns it to the ConnectivitySourceType field.
func (o *PortResponse) SetConnectivitySourceType(v PortResponseConnectivitySourceType) {
o.ConnectivitySourceType = &v
}
// GetBmmrType returns the BmmrType field value if set, zero value otherwise.
func (o *PortResponse) GetBmmrType() PortResponseBmmrType {
if o == nil || IsNil(o.BmmrType) {
var ret PortResponseBmmrType
return ret
}
return *o.BmmrType
}
// GetBmmrTypeOk returns a tuple with the BmmrType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetBmmrTypeOk() (*PortResponseBmmrType, bool) {
if o == nil || IsNil(o.BmmrType) {
return nil, false
}
return o.BmmrType, true
}
// HasBmmrType returns a boolean if a field has been set.
func (o *PortResponse) HasBmmrType() bool {
if o != nil && !IsNil(o.BmmrType) {
return true
}
return false
}
// SetBmmrType gets a reference to the given PortResponseBmmrType and assigns it to the BmmrType field.
func (o *PortResponse) SetBmmrType(v PortResponseBmmrType) {
o.BmmrType = &v
}
// GetProject returns the Project field value if set, zero value otherwise.
func (o *PortResponse) GetProject() Project {
if o == nil || IsNil(o.Project) {
var ret Project
return ret
}
return *o.Project
}
// GetProjectOk returns a tuple with the Project field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetProjectOk() (*Project, bool) {
if o == nil || IsNil(o.Project) {
return nil, false
}
return o.Project, true
}
// HasProject returns a boolean if a field has been set.
func (o *PortResponse) HasProject() bool {
if o != nil && !IsNil(o.Project) {
return true
}
return false
}
// SetProject gets a reference to the given Project and assigns it to the Project field.
func (o *PortResponse) SetProject(v Project) {
o.Project = &v
}
// GetState returns the State field value if set, zero value otherwise.
func (o *PortResponse) GetState() PortState {
if o == nil || IsNil(o.State) {
var ret PortState
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 *PortResponse) GetStateOk() (*PortState, 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 *PortResponse) HasState() bool {
if o != nil && !IsNil(o.State) {
return true
}
return false
}
// SetState gets a reference to the given PortState and assigns it to the State field.
func (o *PortResponse) SetState(v PortState) {
o.State = &v
}
// GetOrder returns the Order field value if set, zero value otherwise.
func (o *PortResponse) GetOrder() PortOrder {
if o == nil || IsNil(o.Order) {
var ret PortOrder
return ret
}
return *o.Order
}
// GetOrderOk returns a tuple with the Order field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetOrderOk() (*PortOrder, bool) {
if o == nil || IsNil(o.Order) {
return nil, false
}
return o.Order, true
}
// HasOrder returns a boolean if a field has been set.
func (o *PortResponse) HasOrder() bool {
if o != nil && !IsNil(o.Order) {
return true
}
return false
}
// SetOrder gets a reference to the given PortOrder and assigns it to the Order field.
func (o *PortResponse) SetOrder(v PortOrder) {
o.Order = &v
}
// GetCvpId returns the CvpId field value if set, zero value otherwise.
func (o *PortResponse) GetCvpId() string {
if o == nil || IsNil(o.CvpId) {
var ret string
return ret
}
return *o.CvpId
}
// GetCvpIdOk returns a tuple with the CvpId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetCvpIdOk() (*string, bool) {
if o == nil || IsNil(o.CvpId) {
return nil, false
}
return o.CvpId, true
}
// HasCvpId returns a boolean if a field has been set.
func (o *PortResponse) HasCvpId() bool {
if o != nil && !IsNil(o.CvpId) {
return true
}
return false
}
// SetCvpId gets a reference to the given string and assigns it to the CvpId field.
func (o *PortResponse) SetCvpId(v string) {
o.CvpId = &v
}
// GetOperation returns the Operation field value if set, zero value otherwise.
func (o *PortResponse) GetOperation() PortOperation {
if o == nil || IsNil(o.Operation) {
var ret PortOperation
return ret
}
return *o.Operation
}
// GetOperationOk returns a tuple with the Operation field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetOperationOk() (*PortOperation, bool) {
if o == nil || IsNil(o.Operation) {
return nil, false
}
return o.Operation, true
}
// HasOperation returns a boolean if a field has been set.
func (o *PortResponse) HasOperation() bool {
if o != nil && !IsNil(o.Operation) {
return true
}
return false
}
// SetOperation gets a reference to the given PortOperation and assigns it to the Operation field.
func (o *PortResponse) SetOperation(v PortOperation) {
o.Operation = &v
}
// GetAccount returns the Account field value if set, zero value otherwise.
func (o *PortResponse) GetAccount() SimplifiedAccountPortResponse {
if o == nil || IsNil(o.Account) {
var ret SimplifiedAccountPortResponse
return ret
}
return *o.Account
}
// GetAccountOk returns a tuple with the Account field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetAccountOk() (*SimplifiedAccountPortResponse, bool) {
if o == nil || IsNil(o.Account) {
return nil, false
}
return o.Account, true
}
// HasAccount returns a boolean if a field has been set.
func (o *PortResponse) HasAccount() bool {
if o != nil && !IsNil(o.Account) {
return true
}
return false
}
// SetAccount gets a reference to the given SimplifiedAccountPortResponse and assigns it to the Account field.
func (o *PortResponse) SetAccount(v SimplifiedAccountPortResponse) {
o.Account = &v
}
// GetChangelog returns the Changelog field value if set, zero value otherwise.
func (o *PortResponse) GetChangelog() Changelog {
if o == nil || IsNil(o.Changelog) {
var ret Changelog
return ret
}
return *o.Changelog
}
// GetChangelogOk returns a tuple with the Changelog field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetChangelogOk() (*Changelog, bool) {
if o == nil || IsNil(o.Changelog) {
return nil, false
}
return o.Changelog, true
}
// HasChangelog returns a boolean if a field has been set.
func (o *PortResponse) HasChangelog() bool {
if o != nil && !IsNil(o.Changelog) {
return true
}
return false
}
// SetChangelog gets a reference to the given Changelog and assigns it to the Changelog field.
func (o *PortResponse) SetChangelog(v Changelog) {
o.Changelog = &v
}
// GetServiceType returns the ServiceType field value if set, zero value otherwise.
func (o *PortResponse) GetServiceType() PortResponseServiceType {
if o == nil || IsNil(o.ServiceType) {
var ret PortResponseServiceType
return ret
}
return *o.ServiceType
}
// GetServiceTypeOk returns a tuple with the ServiceType field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetServiceTypeOk() (*PortResponseServiceType, bool) {
if o == nil || IsNil(o.ServiceType) {
return nil, false
}
return o.ServiceType, true
}
// HasServiceType returns a boolean if a field has been set.
func (o *PortResponse) HasServiceType() bool {
if o != nil && !IsNil(o.ServiceType) {
return true
}
return false
}
// SetServiceType gets a reference to the given PortResponseServiceType and assigns it to the ServiceType field.
func (o *PortResponse) SetServiceType(v PortResponseServiceType) {
o.ServiceType = &v
}
// GetBandwidth returns the Bandwidth field value if set, zero value otherwise.
func (o *PortResponse) GetBandwidth() int32 {
if o == nil || IsNil(o.Bandwidth) {
var ret int32
return ret
}
return *o.Bandwidth
}
// GetBandwidthOk returns a tuple with the Bandwidth field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetBandwidthOk() (*int32, bool) {
if o == nil || IsNil(o.Bandwidth) {
return nil, false
}
return o.Bandwidth, true
}
// HasBandwidth returns a boolean if a field has been set.
func (o *PortResponse) HasBandwidth() bool {
if o != nil && !IsNil(o.Bandwidth) {
return true
}
return false
}
// SetBandwidth gets a reference to the given int32 and assigns it to the Bandwidth field.
func (o *PortResponse) SetBandwidth(v int32) {
o.Bandwidth = &v
}
// GetAvailableBandwidth returns the AvailableBandwidth field value if set, zero value otherwise.
func (o *PortResponse) GetAvailableBandwidth() int32 {
if o == nil || IsNil(o.AvailableBandwidth) {
var ret int32
return ret
}
return *o.AvailableBandwidth
}
// GetAvailableBandwidthOk returns a tuple with the AvailableBandwidth field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetAvailableBandwidthOk() (*int32, bool) {
if o == nil || IsNil(o.AvailableBandwidth) {
return nil, false
}
return o.AvailableBandwidth, true
}
// HasAvailableBandwidth returns a boolean if a field has been set.
func (o *PortResponse) HasAvailableBandwidth() bool {
if o != nil && !IsNil(o.AvailableBandwidth) {
return true
}
return false
}
// SetAvailableBandwidth gets a reference to the given int32 and assigns it to the AvailableBandwidth field.
func (o *PortResponse) SetAvailableBandwidth(v int32) {
o.AvailableBandwidth = &v
}
// GetUsedBandwidth returns the UsedBandwidth field value if set, zero value otherwise.
func (o *PortResponse) GetUsedBandwidth() int32 {
if o == nil || IsNil(o.UsedBandwidth) {
var ret int32
return ret
}
return *o.UsedBandwidth
}
// GetUsedBandwidthOk returns a tuple with the UsedBandwidth field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetUsedBandwidthOk() (*int32, bool) {
if o == nil || IsNil(o.UsedBandwidth) {
return nil, false
}
return o.UsedBandwidth, true
}
// HasUsedBandwidth returns a boolean if a field has been set.
func (o *PortResponse) HasUsedBandwidth() bool {
if o != nil && !IsNil(o.UsedBandwidth) {
return true
}
return false
}
// SetUsedBandwidth gets a reference to the given int32 and assigns it to the UsedBandwidth field.
func (o *PortResponse) SetUsedBandwidth(v int32) {
o.UsedBandwidth = &v
}
// GetLocation returns the Location field value if set, zero value otherwise.
func (o *PortResponse) GetLocation() SimplifiedLocation {
if o == nil || IsNil(o.Location) {
var ret SimplifiedLocation
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 *PortResponse) GetLocationOk() (*SimplifiedLocation, bool) {
if o == nil || IsNil(o.Location) {
return nil, false
}
return o.Location, true
}
// HasLocation returns a boolean if a field has been set.
func (o *PortResponse) HasLocation() bool {
if o != nil && !IsNil(o.Location) {
return true
}
return false
}
// SetLocation gets a reference to the given SimplifiedLocation and assigns it to the Location field.
func (o *PortResponse) SetLocation(v SimplifiedLocation) {
o.Location = &v
}
// GetDevice returns the Device field value if set, zero value otherwise.
func (o *PortResponse) GetDevice() PortDevice {
if o == nil || IsNil(o.Device) {
var ret PortDevice
return ret
}
return *o.Device
}
// GetDeviceOk returns a tuple with the Device field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetDeviceOk() (*PortDevice, bool) {
if o == nil || IsNil(o.Device) {
return nil, false
}
return o.Device, true
}
// HasDevice returns a boolean if a field has been set.
func (o *PortResponse) HasDevice() bool {
if o != nil && !IsNil(o.Device) {
return true
}
return false
}
// SetDevice gets a reference to the given PortDevice and assigns it to the Device field.
func (o *PortResponse) SetDevice(v PortDevice) {
o.Device = &v
}
// GetInterface returns the Interface field value if set, zero value otherwise.
func (o *PortResponse) GetInterface() PortInterface {
if o == nil || IsNil(o.Interface) {
var ret PortInterface
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 *PortResponse) GetInterfaceOk() (*PortInterface, 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 *PortResponse) HasInterface() bool {
if o != nil && !IsNil(o.Interface) {
return true
}
return false
}
// SetInterface gets a reference to the given PortInterface and assigns it to the Interface field.
func (o *PortResponse) SetInterface(v PortInterface) {
o.Interface = &v
}
// GetDemarcationPointIbx returns the DemarcationPointIbx field value if set, zero value otherwise.
func (o *PortResponse) GetDemarcationPointIbx() string {
if o == nil || IsNil(o.DemarcationPointIbx) {
var ret string
return ret
}
return *o.DemarcationPointIbx
}
// GetDemarcationPointIbxOk returns a tuple with the DemarcationPointIbx field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetDemarcationPointIbxOk() (*string, bool) {
if o == nil || IsNil(o.DemarcationPointIbx) {
return nil, false
}
return o.DemarcationPointIbx, true
}
// HasDemarcationPointIbx returns a boolean if a field has been set.
func (o *PortResponse) HasDemarcationPointIbx() bool {
if o != nil && !IsNil(o.DemarcationPointIbx) {
return true
}
return false
}
// SetDemarcationPointIbx gets a reference to the given string and assigns it to the DemarcationPointIbx field.
func (o *PortResponse) SetDemarcationPointIbx(v string) {
o.DemarcationPointIbx = &v
}
// GetTetherIbx returns the TetherIbx field value if set, zero value otherwise.
func (o *PortResponse) GetTetherIbx() string {
if o == nil || IsNil(o.TetherIbx) {
var ret string
return ret
}
return *o.TetherIbx
}
// GetTetherIbxOk returns a tuple with the TetherIbx field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *PortResponse) GetTetherIbxOk() (*string, bool) {
if o == nil || IsNil(o.TetherIbx) {
return nil, false
}
return o.TetherIbx, true
}
// HasTetherIbx returns a boolean if a field has been set.
func (o *PortResponse) HasTetherIbx() bool {
if o != nil && !IsNil(o.TetherIbx) {
return true
}
return false
}
// SetTetherIbx gets a reference to the given string and assigns it to the TetherIbx field.
func (o *PortResponse) SetTetherIbx(v string) {
o.TetherIbx = &v
}