forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNetworkInfo.php
More file actions
713 lines (686 loc) · 20.7 KB
/
Copy pathNetworkInfo.php
File metadata and controls
713 lines (686 loc) · 20.7 KB
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
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* NetworkInfo File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
namespace Microsoft\Graph\CallRecords\Model;
/**
* NetworkInfo class
*
* @category Model
* @package Microsoft.Graph
* @copyright (c) Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @link https://graph.microsoft.com
*/
class NetworkInfo extends \Microsoft\Graph\Model\Entity
{
/**
* Gets the bandwidthLowEventRatio
* Fraction of the call that the media endpoint detected the available bandwidth or bandwidth policy was low enough to cause poor quality of the audio sent.
*
* @return float|null The bandwidthLowEventRatio
*/
public function getBandwidthLowEventRatio()
{
if (array_key_exists("bandwidthLowEventRatio", $this->_propDict)) {
return $this->_propDict["bandwidthLowEventRatio"];
} else {
return null;
}
}
/**
* Sets the bandwidthLowEventRatio
* Fraction of the call that the media endpoint detected the available bandwidth or bandwidth policy was low enough to cause poor quality of the audio sent.
*
* @param float $val The value of the bandwidthLowEventRatio
*
* @return NetworkInfo
*/
public function setBandwidthLowEventRatio($val)
{
$this->_propDict["bandwidthLowEventRatio"] = $val;
return $this;
}
/**
* Gets the basicServiceSetIdentifier
* The wireless LAN basic service set identifier of the media endpoint used to connect to the network.
*
* @return string|null The basicServiceSetIdentifier
*/
public function getBasicServiceSetIdentifier()
{
if (array_key_exists("basicServiceSetIdentifier", $this->_propDict)) {
return $this->_propDict["basicServiceSetIdentifier"];
} else {
return null;
}
}
/**
* Sets the basicServiceSetIdentifier
* The wireless LAN basic service set identifier of the media endpoint used to connect to the network.
*
* @param string $val The value of the basicServiceSetIdentifier
*
* @return NetworkInfo
*/
public function setBasicServiceSetIdentifier($val)
{
$this->_propDict["basicServiceSetIdentifier"] = $val;
return $this;
}
/**
* Gets the connectionType
* Type of network used by the media endpoint. Possible values are: unknown, wired, wifi, mobile, tunnel, unknownFutureValue.
*
* @return NetworkConnectionType|null The connectionType
*/
public function getConnectionType()
{
if (array_key_exists("connectionType", $this->_propDict)) {
if (is_a($this->_propDict["connectionType"], "\Microsoft\Graph\CallRecords\Model\NetworkConnectionType") || is_null($this->_propDict["connectionType"])) {
return $this->_propDict["connectionType"];
} else {
$this->_propDict["connectionType"] = new NetworkConnectionType($this->_propDict["connectionType"]);
return $this->_propDict["connectionType"];
}
}
return null;
}
/**
* Sets the connectionType
* Type of network used by the media endpoint. Possible values are: unknown, wired, wifi, mobile, tunnel, unknownFutureValue.
*
* @param NetworkConnectionType $val The value to assign to the connectionType
*
* @return NetworkInfo The NetworkInfo
*/
public function setConnectionType($val)
{
$this->_propDict["connectionType"] = $val;
return $this;
}
/**
* Gets the delayEventRatio
* Fraction of the call that the media endpoint detected the network delay was significant enough to impact the ability to have real-time two-way communication.
*
* @return float|null The delayEventRatio
*/
public function getDelayEventRatio()
{
if (array_key_exists("delayEventRatio", $this->_propDict)) {
return $this->_propDict["delayEventRatio"];
} else {
return null;
}
}
/**
* Sets the delayEventRatio
* Fraction of the call that the media endpoint detected the network delay was significant enough to impact the ability to have real-time two-way communication.
*
* @param float $val The value of the delayEventRatio
*
* @return NetworkInfo
*/
public function setDelayEventRatio($val)
{
$this->_propDict["delayEventRatio"] = $val;
return $this;
}
/**
* Gets the dnsSuffix
* DNS suffix associated with the network adapter of the media endpoint.
*
* @return string|null The dnsSuffix
*/
public function getDnsSuffix()
{
if (array_key_exists("dnsSuffix", $this->_propDict)) {
return $this->_propDict["dnsSuffix"];
} else {
return null;
}
}
/**
* Sets the dnsSuffix
* DNS suffix associated with the network adapter of the media endpoint.
*
* @param string $val The value of the dnsSuffix
*
* @return NetworkInfo
*/
public function setDnsSuffix($val)
{
$this->_propDict["dnsSuffix"] = $val;
return $this;
}
/**
* Gets the ipAddress
* IP address of the media endpoint.
*
* @return string|null The ipAddress
*/
public function getIpAddress()
{
if (array_key_exists("ipAddress", $this->_propDict)) {
return $this->_propDict["ipAddress"];
} else {
return null;
}
}
/**
* Sets the ipAddress
* IP address of the media endpoint.
*
* @param string $val The value of the ipAddress
*
* @return NetworkInfo
*/
public function setIpAddress($val)
{
$this->_propDict["ipAddress"] = $val;
return $this;
}
/**
* Gets the linkSpeed
* Link speed in bits per second reported by the network adapter used by the media endpoint.
*
* @return int|null The linkSpeed
*/
public function getLinkSpeed()
{
if (array_key_exists("linkSpeed", $this->_propDict)) {
return $this->_propDict["linkSpeed"];
} else {
return null;
}
}
/**
* Sets the linkSpeed
* Link speed in bits per second reported by the network adapter used by the media endpoint.
*
* @param int $val The value of the linkSpeed
*
* @return NetworkInfo
*/
public function setLinkSpeed($val)
{
$this->_propDict["linkSpeed"] = $val;
return $this;
}
/**
* Gets the macAddress
* The media access control (MAC) address of the media endpoint's network device.
*
* @return string|null The macAddress
*/
public function getMacAddress()
{
if (array_key_exists("macAddress", $this->_propDict)) {
return $this->_propDict["macAddress"];
} else {
return null;
}
}
/**
* Sets the macAddress
* The media access control (MAC) address of the media endpoint's network device.
*
* @param string $val The value of the macAddress
*
* @return NetworkInfo
*/
public function setMacAddress($val)
{
$this->_propDict["macAddress"] = $val;
return $this;
}
/**
* Gets the port
* Network port number used by media endpoint.
*
* @return int|null The port
*/
public function getPort()
{
if (array_key_exists("port", $this->_propDict)) {
return $this->_propDict["port"];
} else {
return null;
}
}
/**
* Sets the port
* Network port number used by media endpoint.
*
* @param int $val The value of the port
*
* @return NetworkInfo
*/
public function setPort($val)
{
$this->_propDict["port"] = $val;
return $this;
}
/**
* Gets the receivedQualityEventRatio
* Fraction of the call that the media endpoint detected the network was causing poor quality of the audio received.
*
* @return float|null The receivedQualityEventRatio
*/
public function getReceivedQualityEventRatio()
{
if (array_key_exists("receivedQualityEventRatio", $this->_propDict)) {
return $this->_propDict["receivedQualityEventRatio"];
} else {
return null;
}
}
/**
* Sets the receivedQualityEventRatio
* Fraction of the call that the media endpoint detected the network was causing poor quality of the audio received.
*
* @param float $val The value of the receivedQualityEventRatio
*
* @return NetworkInfo
*/
public function setReceivedQualityEventRatio($val)
{
$this->_propDict["receivedQualityEventRatio"] = $val;
return $this;
}
/**
* Gets the reflexiveIPAddress
* IP address of the media endpoint as seen by the media relay server. This is typically the public internet IP address associated to the endpoint.
*
* @return string|null The reflexiveIPAddress
*/
public function getReflexiveIPAddress()
{
if (array_key_exists("reflexiveIPAddress", $this->_propDict)) {
return $this->_propDict["reflexiveIPAddress"];
} else {
return null;
}
}
/**
* Sets the reflexiveIPAddress
* IP address of the media endpoint as seen by the media relay server. This is typically the public internet IP address associated to the endpoint.
*
* @param string $val The value of the reflexiveIPAddress
*
* @return NetworkInfo
*/
public function setReflexiveIPAddress($val)
{
$this->_propDict["reflexiveIPAddress"] = $val;
return $this;
}
/**
* Gets the relayIPAddress
* IP address of the media relay server allocated by the media endpoint.
*
* @return string|null The relayIPAddress
*/
public function getRelayIPAddress()
{
if (array_key_exists("relayIPAddress", $this->_propDict)) {
return $this->_propDict["relayIPAddress"];
} else {
return null;
}
}
/**
* Sets the relayIPAddress
* IP address of the media relay server allocated by the media endpoint.
*
* @param string $val The value of the relayIPAddress
*
* @return NetworkInfo
*/
public function setRelayIPAddress($val)
{
$this->_propDict["relayIPAddress"] = $val;
return $this;
}
/**
* Gets the relayPort
* Network port number allocated on the media relay server by the media endpoint.
*
* @return int|null The relayPort
*/
public function getRelayPort()
{
if (array_key_exists("relayPort", $this->_propDict)) {
return $this->_propDict["relayPort"];
} else {
return null;
}
}
/**
* Sets the relayPort
* Network port number allocated on the media relay server by the media endpoint.
*
* @param int $val The value of the relayPort
*
* @return NetworkInfo
*/
public function setRelayPort($val)
{
$this->_propDict["relayPort"] = $val;
return $this;
}
/**
* Gets the sentQualityEventRatio
* Fraction of the call that the media endpoint detected the network was causing poor quality of the audio sent.
*
* @return float|null The sentQualityEventRatio
*/
public function getSentQualityEventRatio()
{
if (array_key_exists("sentQualityEventRatio", $this->_propDict)) {
return $this->_propDict["sentQualityEventRatio"];
} else {
return null;
}
}
/**
* Sets the sentQualityEventRatio
* Fraction of the call that the media endpoint detected the network was causing poor quality of the audio sent.
*
* @param float $val The value of the sentQualityEventRatio
*
* @return NetworkInfo
*/
public function setSentQualityEventRatio($val)
{
$this->_propDict["sentQualityEventRatio"] = $val;
return $this;
}
/**
* Gets the subnet
* Subnet used for media stream by the media endpoint.
*
* @return string|null The subnet
*/
public function getSubnet()
{
if (array_key_exists("subnet", $this->_propDict)) {
return $this->_propDict["subnet"];
} else {
return null;
}
}
/**
* Sets the subnet
* Subnet used for media stream by the media endpoint.
*
* @param string $val The value of the subnet
*
* @return NetworkInfo
*/
public function setSubnet($val)
{
$this->_propDict["subnet"] = $val;
return $this;
}
/**
* Gets the wifiBand
* WiFi band used by the media endpoint. Possible values are: unknown, frequency24GHz, frequency50GHz, frequency60GHz, unknownFutureValue.
*
* @return WifiBand|null The wifiBand
*/
public function getWifiBand()
{
if (array_key_exists("wifiBand", $this->_propDict)) {
if (is_a($this->_propDict["wifiBand"], "\Microsoft\Graph\CallRecords\Model\WifiBand") || is_null($this->_propDict["wifiBand"])) {
return $this->_propDict["wifiBand"];
} else {
$this->_propDict["wifiBand"] = new WifiBand($this->_propDict["wifiBand"]);
return $this->_propDict["wifiBand"];
}
}
return null;
}
/**
* Sets the wifiBand
* WiFi band used by the media endpoint. Possible values are: unknown, frequency24GHz, frequency50GHz, frequency60GHz, unknownFutureValue.
*
* @param WifiBand $val The value to assign to the wifiBand
*
* @return NetworkInfo The NetworkInfo
*/
public function setWifiBand($val)
{
$this->_propDict["wifiBand"] = $val;
return $this;
}
/**
* Gets the wifiBatteryCharge
* Estimated remaining battery charge in percentage reported by the media endpoint.
*
* @return int|null The wifiBatteryCharge
*/
public function getWifiBatteryCharge()
{
if (array_key_exists("wifiBatteryCharge", $this->_propDict)) {
return $this->_propDict["wifiBatteryCharge"];
} else {
return null;
}
}
/**
* Sets the wifiBatteryCharge
* Estimated remaining battery charge in percentage reported by the media endpoint.
*
* @param int $val The value of the wifiBatteryCharge
*
* @return NetworkInfo
*/
public function setWifiBatteryCharge($val)
{
$this->_propDict["wifiBatteryCharge"] = $val;
return $this;
}
/**
* Gets the wifiChannel
* WiFi channel used by the media endpoint.
*
* @return int|null The wifiChannel
*/
public function getWifiChannel()
{
if (array_key_exists("wifiChannel", $this->_propDict)) {
return $this->_propDict["wifiChannel"];
} else {
return null;
}
}
/**
* Sets the wifiChannel
* WiFi channel used by the media endpoint.
*
* @param int $val The value of the wifiChannel
*
* @return NetworkInfo
*/
public function setWifiChannel($val)
{
$this->_propDict["wifiChannel"] = $val;
return $this;
}
/**
* Gets the wifiMicrosoftDriver
* Name of the Microsoft WiFi driver used by the media endpoint. Value may be localized based on the language used by endpoint.
*
* @return string|null The wifiMicrosoftDriver
*/
public function getWifiMicrosoftDriver()
{
if (array_key_exists("wifiMicrosoftDriver", $this->_propDict)) {
return $this->_propDict["wifiMicrosoftDriver"];
} else {
return null;
}
}
/**
* Sets the wifiMicrosoftDriver
* Name of the Microsoft WiFi driver used by the media endpoint. Value may be localized based on the language used by endpoint.
*
* @param string $val The value of the wifiMicrosoftDriver
*
* @return NetworkInfo
*/
public function setWifiMicrosoftDriver($val)
{
$this->_propDict["wifiMicrosoftDriver"] = $val;
return $this;
}
/**
* Gets the wifiMicrosoftDriverVersion
* Version of the Microsoft WiFi driver used by the media endpoint.
*
* @return string|null The wifiMicrosoftDriverVersion
*/
public function getWifiMicrosoftDriverVersion()
{
if (array_key_exists("wifiMicrosoftDriverVersion", $this->_propDict)) {
return $this->_propDict["wifiMicrosoftDriverVersion"];
} else {
return null;
}
}
/**
* Sets the wifiMicrosoftDriverVersion
* Version of the Microsoft WiFi driver used by the media endpoint.
*
* @param string $val The value of the wifiMicrosoftDriverVersion
*
* @return NetworkInfo
*/
public function setWifiMicrosoftDriverVersion($val)
{
$this->_propDict["wifiMicrosoftDriverVersion"] = $val;
return $this;
}
/**
* Gets the wifiRadioType
* Type of WiFi radio used by the media endpoint. Possible values are: unknown, wifi80211a, wifi80211b, wifi80211g, wifi80211n, wifi80211ac, wifi80211ax, unknownFutureValue.
*
* @return WifiRadioType|null The wifiRadioType
*/
public function getWifiRadioType()
{
if (array_key_exists("wifiRadioType", $this->_propDict)) {
if (is_a($this->_propDict["wifiRadioType"], "\Microsoft\Graph\CallRecords\Model\WifiRadioType") || is_null($this->_propDict["wifiRadioType"])) {
return $this->_propDict["wifiRadioType"];
} else {
$this->_propDict["wifiRadioType"] = new WifiRadioType($this->_propDict["wifiRadioType"]);
return $this->_propDict["wifiRadioType"];
}
}
return null;
}
/**
* Sets the wifiRadioType
* Type of WiFi radio used by the media endpoint. Possible values are: unknown, wifi80211a, wifi80211b, wifi80211g, wifi80211n, wifi80211ac, wifi80211ax, unknownFutureValue.
*
* @param WifiRadioType $val The value to assign to the wifiRadioType
*
* @return NetworkInfo The NetworkInfo
*/
public function setWifiRadioType($val)
{
$this->_propDict["wifiRadioType"] = $val;
return $this;
}
/**
* Gets the wifiSignalStrength
* WiFi signal strength in percentage reported by the media endpoint.
*
* @return int|null The wifiSignalStrength
*/
public function getWifiSignalStrength()
{
if (array_key_exists("wifiSignalStrength", $this->_propDict)) {
return $this->_propDict["wifiSignalStrength"];
} else {
return null;
}
}
/**
* Sets the wifiSignalStrength
* WiFi signal strength in percentage reported by the media endpoint.
*
* @param int $val The value of the wifiSignalStrength
*
* @return NetworkInfo
*/
public function setWifiSignalStrength($val)
{
$this->_propDict["wifiSignalStrength"] = $val;
return $this;
}
/**
* Gets the wifiVendorDriver
* Name of the WiFi driver used by the media endpoint. Value may be localized based on the language used by endpoint.
*
* @return string|null The wifiVendorDriver
*/
public function getWifiVendorDriver()
{
if (array_key_exists("wifiVendorDriver", $this->_propDict)) {
return $this->_propDict["wifiVendorDriver"];
} else {
return null;
}
}
/**
* Sets the wifiVendorDriver
* Name of the WiFi driver used by the media endpoint. Value may be localized based on the language used by endpoint.
*
* @param string $val The value of the wifiVendorDriver
*
* @return NetworkInfo
*/
public function setWifiVendorDriver($val)
{
$this->_propDict["wifiVendorDriver"] = $val;
return $this;
}
/**
* Gets the wifiVendorDriverVersion
* Version of the WiFi driver used by the media endpoint.
*
* @return string|null The wifiVendorDriverVersion
*/
public function getWifiVendorDriverVersion()
{
if (array_key_exists("wifiVendorDriverVersion", $this->_propDict)) {
return $this->_propDict["wifiVendorDriverVersion"];
} else {
return null;
}
}
/**
* Sets the wifiVendorDriverVersion
* Version of the WiFi driver used by the media endpoint.
*
* @param string $val The value of the wifiVendorDriverVersion
*
* @return NetworkInfo
*/
public function setWifiVendorDriverVersion($val)
{
$this->_propDict["wifiVendorDriverVersion"] = $val;
return $this;
}
}