forked from microsoftgraph/msgraph-sdk-php
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAndroidCompliancePolicy.php
More file actions
646 lines (603 loc) · 19.9 KB
/
Copy pathAndroidCompliancePolicy.php
File metadata and controls
646 lines (603 loc) · 19.9 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
<?php
/**
* Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
*
* AndroidCompliancePolicy File
* PHP version 7
*
* @category Library
* @package Microsoft.Graph
* @copyright © Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @version GIT: 1.4.0
* @link https://graph.microsoft.io/
*/
namespace Microsoft\Graph\Model;
/**
* AndroidCompliancePolicy class
*
* @category Model
* @package Microsoft.Graph
* @copyright © Microsoft Corporation. All rights reserved.
* @license https://opensource.org/licenses/MIT MIT License
* @version Release: 1.4.0
* @link https://graph.microsoft.io/
*/
class AndroidCompliancePolicy extends DeviceCompliancePolicy
{
/**
* Gets the passwordRequired
* Require a password to unlock device.
*
* @return bool The passwordRequired
*/
public function getPasswordRequired()
{
if (array_key_exists("passwordRequired", $this->_propDict)) {
return $this->_propDict["passwordRequired"];
} else {
return null;
}
}
/**
* Sets the passwordRequired
* Require a password to unlock device.
*
* @param bool $val The passwordRequired
*
* @return AndroidCompliancePolicy
*/
public function setPasswordRequired($val)
{
$this->_propDict["passwordRequired"] = boolval($val);
return $this;
}
/**
* Gets the passwordMinimumLength
* Minimum password length. Valid values 4 to 16
*
* @return int The passwordMinimumLength
*/
public function getPasswordMinimumLength()
{
if (array_key_exists("passwordMinimumLength", $this->_propDict)) {
return $this->_propDict["passwordMinimumLength"];
} else {
return null;
}
}
/**
* Sets the passwordMinimumLength
* Minimum password length. Valid values 4 to 16
*
* @param int $val The passwordMinimumLength
*
* @return AndroidCompliancePolicy
*/
public function setPasswordMinimumLength($val)
{
$this->_propDict["passwordMinimumLength"] = intval($val);
return $this;
}
/**
* Gets the passwordRequiredType
* Type of characters in password. Possible values are: deviceDefault, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, numeric, numericComplex, any.
*
* @return AndroidRequiredPasswordType The passwordRequiredType
*/
public function getPasswordRequiredType()
{
if (array_key_exists("passwordRequiredType", $this->_propDict)) {
if (is_a($this->_propDict["passwordRequiredType"], "Microsoft\Graph\Model\AndroidRequiredPasswordType")) {
return $this->_propDict["passwordRequiredType"];
} else {
$this->_propDict["passwordRequiredType"] = new AndroidRequiredPasswordType($this->_propDict["passwordRequiredType"]);
return $this->_propDict["passwordRequiredType"];
}
}
return null;
}
/**
* Sets the passwordRequiredType
* Type of characters in password. Possible values are: deviceDefault, alphabetic, alphanumeric, alphanumericWithSymbols, lowSecurityBiometric, numeric, numericComplex, any.
*
* @param AndroidRequiredPasswordType $val The passwordRequiredType
*
* @return AndroidCompliancePolicy
*/
public function setPasswordRequiredType($val)
{
$this->_propDict["passwordRequiredType"] = $val;
return $this;
}
/**
* Gets the passwordMinutesOfInactivityBeforeLock
* Minutes of inactivity before a password is required.
*
* @return int The passwordMinutesOfInactivityBeforeLock
*/
public function getPasswordMinutesOfInactivityBeforeLock()
{
if (array_key_exists("passwordMinutesOfInactivityBeforeLock", $this->_propDict)) {
return $this->_propDict["passwordMinutesOfInactivityBeforeLock"];
} else {
return null;
}
}
/**
* Sets the passwordMinutesOfInactivityBeforeLock
* Minutes of inactivity before a password is required.
*
* @param int $val The passwordMinutesOfInactivityBeforeLock
*
* @return AndroidCompliancePolicy
*/
public function setPasswordMinutesOfInactivityBeforeLock($val)
{
$this->_propDict["passwordMinutesOfInactivityBeforeLock"] = intval($val);
return $this;
}
/**
* Gets the passwordExpirationDays
* Number of days before the password expires. Valid values 1 to 65535
*
* @return int The passwordExpirationDays
*/
public function getPasswordExpirationDays()
{
if (array_key_exists("passwordExpirationDays", $this->_propDict)) {
return $this->_propDict["passwordExpirationDays"];
} else {
return null;
}
}
/**
* Sets the passwordExpirationDays
* Number of days before the password expires. Valid values 1 to 65535
*
* @param int $val The passwordExpirationDays
*
* @return AndroidCompliancePolicy
*/
public function setPasswordExpirationDays($val)
{
$this->_propDict["passwordExpirationDays"] = intval($val);
return $this;
}
/**
* Gets the passwordPreviousPasswordBlockCount
* Number of previous passwords to block.
*
* @return int The passwordPreviousPasswordBlockCount
*/
public function getPasswordPreviousPasswordBlockCount()
{
if (array_key_exists("passwordPreviousPasswordBlockCount", $this->_propDict)) {
return $this->_propDict["passwordPreviousPasswordBlockCount"];
} else {
return null;
}
}
/**
* Sets the passwordPreviousPasswordBlockCount
* Number of previous passwords to block.
*
* @param int $val The passwordPreviousPasswordBlockCount
*
* @return AndroidCompliancePolicy
*/
public function setPasswordPreviousPasswordBlockCount($val)
{
$this->_propDict["passwordPreviousPasswordBlockCount"] = intval($val);
return $this;
}
/**
* Gets the securityPreventInstallAppsFromUnknownSources
* Require that devices disallow installation of apps from unknown sources.
*
* @return bool The securityPreventInstallAppsFromUnknownSources
*/
public function getSecurityPreventInstallAppsFromUnknownSources()
{
if (array_key_exists("securityPreventInstallAppsFromUnknownSources", $this->_propDict)) {
return $this->_propDict["securityPreventInstallAppsFromUnknownSources"];
} else {
return null;
}
}
/**
* Sets the securityPreventInstallAppsFromUnknownSources
* Require that devices disallow installation of apps from unknown sources.
*
* @param bool $val The securityPreventInstallAppsFromUnknownSources
*
* @return AndroidCompliancePolicy
*/
public function setSecurityPreventInstallAppsFromUnknownSources($val)
{
$this->_propDict["securityPreventInstallAppsFromUnknownSources"] = boolval($val);
return $this;
}
/**
* Gets the securityDisableUsbDebugging
* Disable USB debugging on Android devices.
*
* @return bool The securityDisableUsbDebugging
*/
public function getSecurityDisableUsbDebugging()
{
if (array_key_exists("securityDisableUsbDebugging", $this->_propDict)) {
return $this->_propDict["securityDisableUsbDebugging"];
} else {
return null;
}
}
/**
* Sets the securityDisableUsbDebugging
* Disable USB debugging on Android devices.
*
* @param bool $val The securityDisableUsbDebugging
*
* @return AndroidCompliancePolicy
*/
public function setSecurityDisableUsbDebugging($val)
{
$this->_propDict["securityDisableUsbDebugging"] = boolval($val);
return $this;
}
/**
* Gets the securityRequireVerifyApps
* Require the Android Verify apps feature is turned on.
*
* @return bool The securityRequireVerifyApps
*/
public function getSecurityRequireVerifyApps()
{
if (array_key_exists("securityRequireVerifyApps", $this->_propDict)) {
return $this->_propDict["securityRequireVerifyApps"];
} else {
return null;
}
}
/**
* Sets the securityRequireVerifyApps
* Require the Android Verify apps feature is turned on.
*
* @param bool $val The securityRequireVerifyApps
*
* @return AndroidCompliancePolicy
*/
public function setSecurityRequireVerifyApps($val)
{
$this->_propDict["securityRequireVerifyApps"] = boolval($val);
return $this;
}
/**
* Gets the deviceThreatProtectionEnabled
* Require that devices have enabled device threat protection.
*
* @return bool The deviceThreatProtectionEnabled
*/
public function getDeviceThreatProtectionEnabled()
{
if (array_key_exists("deviceThreatProtectionEnabled", $this->_propDict)) {
return $this->_propDict["deviceThreatProtectionEnabled"];
} else {
return null;
}
}
/**
* Sets the deviceThreatProtectionEnabled
* Require that devices have enabled device threat protection.
*
* @param bool $val The deviceThreatProtectionEnabled
*
* @return AndroidCompliancePolicy
*/
public function setDeviceThreatProtectionEnabled($val)
{
$this->_propDict["deviceThreatProtectionEnabled"] = boolval($val);
return $this;
}
/**
* Gets the deviceThreatProtectionRequiredSecurityLevel
* Require Mobile Threat Protection minimum risk level to report noncompliance. Possible values are: unavailable, secured, low, medium, high, notSet.
*
* @return DeviceThreatProtectionLevel The deviceThreatProtectionRequiredSecurityLevel
*/
public function getDeviceThreatProtectionRequiredSecurityLevel()
{
if (array_key_exists("deviceThreatProtectionRequiredSecurityLevel", $this->_propDict)) {
if (is_a($this->_propDict["deviceThreatProtectionRequiredSecurityLevel"], "Microsoft\Graph\Model\DeviceThreatProtectionLevel")) {
return $this->_propDict["deviceThreatProtectionRequiredSecurityLevel"];
} else {
$this->_propDict["deviceThreatProtectionRequiredSecurityLevel"] = new DeviceThreatProtectionLevel($this->_propDict["deviceThreatProtectionRequiredSecurityLevel"]);
return $this->_propDict["deviceThreatProtectionRequiredSecurityLevel"];
}
}
return null;
}
/**
* Sets the deviceThreatProtectionRequiredSecurityLevel
* Require Mobile Threat Protection minimum risk level to report noncompliance. Possible values are: unavailable, secured, low, medium, high, notSet.
*
* @param DeviceThreatProtectionLevel $val The deviceThreatProtectionRequiredSecurityLevel
*
* @return AndroidCompliancePolicy
*/
public function setDeviceThreatProtectionRequiredSecurityLevel($val)
{
$this->_propDict["deviceThreatProtectionRequiredSecurityLevel"] = $val;
return $this;
}
/**
* Gets the securityBlockJailbrokenDevices
* Devices must not be jailbroken or rooted.
*
* @return bool The securityBlockJailbrokenDevices
*/
public function getSecurityBlockJailbrokenDevices()
{
if (array_key_exists("securityBlockJailbrokenDevices", $this->_propDict)) {
return $this->_propDict["securityBlockJailbrokenDevices"];
} else {
return null;
}
}
/**
* Sets the securityBlockJailbrokenDevices
* Devices must not be jailbroken or rooted.
*
* @param bool $val The securityBlockJailbrokenDevices
*
* @return AndroidCompliancePolicy
*/
public function setSecurityBlockJailbrokenDevices($val)
{
$this->_propDict["securityBlockJailbrokenDevices"] = boolval($val);
return $this;
}
/**
* Gets the osMinimumVersion
* Minimum Android version.
*
* @return string The osMinimumVersion
*/
public function getOsMinimumVersion()
{
if (array_key_exists("osMinimumVersion", $this->_propDict)) {
return $this->_propDict["osMinimumVersion"];
} else {
return null;
}
}
/**
* Sets the osMinimumVersion
* Minimum Android version.
*
* @param string $val The osMinimumVersion
*
* @return AndroidCompliancePolicy
*/
public function setOsMinimumVersion($val)
{
$this->_propDict["osMinimumVersion"] = $val;
return $this;
}
/**
* Gets the osMaximumVersion
* Maximum Android version.
*
* @return string The osMaximumVersion
*/
public function getOsMaximumVersion()
{
if (array_key_exists("osMaximumVersion", $this->_propDict)) {
return $this->_propDict["osMaximumVersion"];
} else {
return null;
}
}
/**
* Sets the osMaximumVersion
* Maximum Android version.
*
* @param string $val The osMaximumVersion
*
* @return AndroidCompliancePolicy
*/
public function setOsMaximumVersion($val)
{
$this->_propDict["osMaximumVersion"] = $val;
return $this;
}
/**
* Gets the minAndroidSecurityPatchLevel
* Minimum Android security patch level.
*
* @return string The minAndroidSecurityPatchLevel
*/
public function getMinAndroidSecurityPatchLevel()
{
if (array_key_exists("minAndroidSecurityPatchLevel", $this->_propDict)) {
return $this->_propDict["minAndroidSecurityPatchLevel"];
} else {
return null;
}
}
/**
* Sets the minAndroidSecurityPatchLevel
* Minimum Android security patch level.
*
* @param string $val The minAndroidSecurityPatchLevel
*
* @return AndroidCompliancePolicy
*/
public function setMinAndroidSecurityPatchLevel($val)
{
$this->_propDict["minAndroidSecurityPatchLevel"] = $val;
return $this;
}
/**
* Gets the storageRequireEncryption
* Require encryption on Android devices.
*
* @return bool The storageRequireEncryption
*/
public function getStorageRequireEncryption()
{
if (array_key_exists("storageRequireEncryption", $this->_propDict)) {
return $this->_propDict["storageRequireEncryption"];
} else {
return null;
}
}
/**
* Sets the storageRequireEncryption
* Require encryption on Android devices.
*
* @param bool $val The storageRequireEncryption
*
* @return AndroidCompliancePolicy
*/
public function setStorageRequireEncryption($val)
{
$this->_propDict["storageRequireEncryption"] = boolval($val);
return $this;
}
/**
* Gets the securityRequireSafetyNetAttestationBasicIntegrity
* Require the device to pass the SafetyNet basic integrity check.
*
* @return bool The securityRequireSafetyNetAttestationBasicIntegrity
*/
public function getSecurityRequireSafetyNetAttestationBasicIntegrity()
{
if (array_key_exists("securityRequireSafetyNetAttestationBasicIntegrity", $this->_propDict)) {
return $this->_propDict["securityRequireSafetyNetAttestationBasicIntegrity"];
} else {
return null;
}
}
/**
* Sets the securityRequireSafetyNetAttestationBasicIntegrity
* Require the device to pass the SafetyNet basic integrity check.
*
* @param bool $val The securityRequireSafetyNetAttestationBasicIntegrity
*
* @return AndroidCompliancePolicy
*/
public function setSecurityRequireSafetyNetAttestationBasicIntegrity($val)
{
$this->_propDict["securityRequireSafetyNetAttestationBasicIntegrity"] = boolval($val);
return $this;
}
/**
* Gets the securityRequireSafetyNetAttestationCertifiedDevice
* Require the device to pass the SafetyNet certified device check.
*
* @return bool The securityRequireSafetyNetAttestationCertifiedDevice
*/
public function getSecurityRequireSafetyNetAttestationCertifiedDevice()
{
if (array_key_exists("securityRequireSafetyNetAttestationCertifiedDevice", $this->_propDict)) {
return $this->_propDict["securityRequireSafetyNetAttestationCertifiedDevice"];
} else {
return null;
}
}
/**
* Sets the securityRequireSafetyNetAttestationCertifiedDevice
* Require the device to pass the SafetyNet certified device check.
*
* @param bool $val The securityRequireSafetyNetAttestationCertifiedDevice
*
* @return AndroidCompliancePolicy
*/
public function setSecurityRequireSafetyNetAttestationCertifiedDevice($val)
{
$this->_propDict["securityRequireSafetyNetAttestationCertifiedDevice"] = boolval($val);
return $this;
}
/**
* Gets the securityRequireGooglePlayServices
* Require Google Play Services to be installed and enabled on the device.
*
* @return bool The securityRequireGooglePlayServices
*/
public function getSecurityRequireGooglePlayServices()
{
if (array_key_exists("securityRequireGooglePlayServices", $this->_propDict)) {
return $this->_propDict["securityRequireGooglePlayServices"];
} else {
return null;
}
}
/**
* Sets the securityRequireGooglePlayServices
* Require Google Play Services to be installed and enabled on the device.
*
* @param bool $val The securityRequireGooglePlayServices
*
* @return AndroidCompliancePolicy
*/
public function setSecurityRequireGooglePlayServices($val)
{
$this->_propDict["securityRequireGooglePlayServices"] = boolval($val);
return $this;
}
/**
* Gets the securityRequireUpToDateSecurityProviders
* Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date.
*
* @return bool The securityRequireUpToDateSecurityProviders
*/
public function getSecurityRequireUpToDateSecurityProviders()
{
if (array_key_exists("securityRequireUpToDateSecurityProviders", $this->_propDict)) {
return $this->_propDict["securityRequireUpToDateSecurityProviders"];
} else {
return null;
}
}
/**
* Sets the securityRequireUpToDateSecurityProviders
* Require the device to have up to date security providers. The device will require Google Play Services to be enabled and up to date.
*
* @param bool $val The securityRequireUpToDateSecurityProviders
*
* @return AndroidCompliancePolicy
*/
public function setSecurityRequireUpToDateSecurityProviders($val)
{
$this->_propDict["securityRequireUpToDateSecurityProviders"] = boolval($val);
return $this;
}
/**
* Gets the securityRequireCompanyPortalAppIntegrity
* Require the device to pass the Company Portal client app runtime integrity check.
*
* @return bool The securityRequireCompanyPortalAppIntegrity
*/
public function getSecurityRequireCompanyPortalAppIntegrity()
{
if (array_key_exists("securityRequireCompanyPortalAppIntegrity", $this->_propDict)) {
return $this->_propDict["securityRequireCompanyPortalAppIntegrity"];
} else {
return null;
}
}
/**
* Sets the securityRequireCompanyPortalAppIntegrity
* Require the device to pass the Company Portal client app runtime integrity check.
*
* @param bool $val The securityRequireCompanyPortalAppIntegrity
*
* @return AndroidCompliancePolicy
*/
public function setSecurityRequireCompanyPortalAppIntegrity($val)
{
$this->_propDict["securityRequireCompanyPortalAppIntegrity"] = boolval($val);
return $this;
}
}