1 | <?php
|
---|
2 | /*
|
---|
3 | * Copyright 2014 Google Inc.
|
---|
4 | *
|
---|
5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
7 | * the License at
|
---|
8 | *
|
---|
9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
10 | *
|
---|
11 | * Unless required by applicable law or agreed to in writing, software
|
---|
12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
14 | * License for the specific language governing permissions and limitations under
|
---|
15 | * the License.
|
---|
16 | */
|
---|
17 |
|
---|
18 | namespace Google\Service\AndroidManagement;
|
---|
19 |
|
---|
20 | class Device extends \Google\Collection
|
---|
21 | {
|
---|
22 | protected $collection_key = 'previousDeviceNames';
|
---|
23 | /**
|
---|
24 | * @var int
|
---|
25 | */
|
---|
26 | public $apiLevel;
|
---|
27 | protected $applicationReportsType = ApplicationReport::class;
|
---|
28 | protected $applicationReportsDataType = 'array';
|
---|
29 | protected $appliedPasswordPoliciesType = PasswordRequirements::class;
|
---|
30 | protected $appliedPasswordPoliciesDataType = 'array';
|
---|
31 | /**
|
---|
32 | * @var string
|
---|
33 | */
|
---|
34 | public $appliedPolicyName;
|
---|
35 | /**
|
---|
36 | * @var string
|
---|
37 | */
|
---|
38 | public $appliedPolicyVersion;
|
---|
39 | /**
|
---|
40 | * @var string
|
---|
41 | */
|
---|
42 | public $appliedState;
|
---|
43 | protected $commonCriteriaModeInfoType = CommonCriteriaModeInfo::class;
|
---|
44 | protected $commonCriteriaModeInfoDataType = '';
|
---|
45 | protected $deviceSettingsType = DeviceSettings::class;
|
---|
46 | protected $deviceSettingsDataType = '';
|
---|
47 | protected $disabledReasonType = UserFacingMessage::class;
|
---|
48 | protected $disabledReasonDataType = '';
|
---|
49 | protected $displaysType = Display::class;
|
---|
50 | protected $displaysDataType = 'array';
|
---|
51 | protected $dpcMigrationInfoType = DpcMigrationInfo::class;
|
---|
52 | protected $dpcMigrationInfoDataType = '';
|
---|
53 | /**
|
---|
54 | * @var string
|
---|
55 | */
|
---|
56 | public $enrollmentTime;
|
---|
57 | /**
|
---|
58 | * @var string
|
---|
59 | */
|
---|
60 | public $enrollmentTokenData;
|
---|
61 | /**
|
---|
62 | * @var string
|
---|
63 | */
|
---|
64 | public $enrollmentTokenName;
|
---|
65 | protected $hardwareInfoType = HardwareInfo::class;
|
---|
66 | protected $hardwareInfoDataType = '';
|
---|
67 | protected $hardwareStatusSamplesType = HardwareStatus::class;
|
---|
68 | protected $hardwareStatusSamplesDataType = 'array';
|
---|
69 | /**
|
---|
70 | * @var string
|
---|
71 | */
|
---|
72 | public $lastPolicyComplianceReportTime;
|
---|
73 | /**
|
---|
74 | * @var string
|
---|
75 | */
|
---|
76 | public $lastPolicySyncTime;
|
---|
77 | /**
|
---|
78 | * @var string
|
---|
79 | */
|
---|
80 | public $lastStatusReportTime;
|
---|
81 | /**
|
---|
82 | * @var string
|
---|
83 | */
|
---|
84 | public $managementMode;
|
---|
85 | protected $memoryEventsType = MemoryEvent::class;
|
---|
86 | protected $memoryEventsDataType = 'array';
|
---|
87 | protected $memoryInfoType = MemoryInfo::class;
|
---|
88 | protected $memoryInfoDataType = '';
|
---|
89 | /**
|
---|
90 | * @var string
|
---|
91 | */
|
---|
92 | public $name;
|
---|
93 | protected $networkInfoType = NetworkInfo::class;
|
---|
94 | protected $networkInfoDataType = '';
|
---|
95 | protected $nonComplianceDetailsType = NonComplianceDetail::class;
|
---|
96 | protected $nonComplianceDetailsDataType = 'array';
|
---|
97 | /**
|
---|
98 | * @var string
|
---|
99 | */
|
---|
100 | public $ownership;
|
---|
101 | /**
|
---|
102 | * @var bool
|
---|
103 | */
|
---|
104 | public $policyCompliant;
|
---|
105 | /**
|
---|
106 | * @var string
|
---|
107 | */
|
---|
108 | public $policyName;
|
---|
109 | protected $powerManagementEventsType = PowerManagementEvent::class;
|
---|
110 | protected $powerManagementEventsDataType = 'array';
|
---|
111 | /**
|
---|
112 | * @var string[]
|
---|
113 | */
|
---|
114 | public $previousDeviceNames;
|
---|
115 | protected $securityPostureType = SecurityPosture::class;
|
---|
116 | protected $securityPostureDataType = '';
|
---|
117 | protected $softwareInfoType = SoftwareInfo::class;
|
---|
118 | protected $softwareInfoDataType = '';
|
---|
119 | /**
|
---|
120 | * @var string
|
---|
121 | */
|
---|
122 | public $state;
|
---|
123 | /**
|
---|
124 | * @var string[]
|
---|
125 | */
|
---|
126 | public $systemProperties;
|
---|
127 | protected $userType = User::class;
|
---|
128 | protected $userDataType = '';
|
---|
129 | /**
|
---|
130 | * @var string
|
---|
131 | */
|
---|
132 | public $userName;
|
---|
133 |
|
---|
134 | /**
|
---|
135 | * @param int
|
---|
136 | */
|
---|
137 | public function setApiLevel($apiLevel)
|
---|
138 | {
|
---|
139 | $this->apiLevel = $apiLevel;
|
---|
140 | }
|
---|
141 | /**
|
---|
142 | * @return int
|
---|
143 | */
|
---|
144 | public function getApiLevel()
|
---|
145 | {
|
---|
146 | return $this->apiLevel;
|
---|
147 | }
|
---|
148 | /**
|
---|
149 | * @param ApplicationReport[]
|
---|
150 | */
|
---|
151 | public function setApplicationReports($applicationReports)
|
---|
152 | {
|
---|
153 | $this->applicationReports = $applicationReports;
|
---|
154 | }
|
---|
155 | /**
|
---|
156 | * @return ApplicationReport[]
|
---|
157 | */
|
---|
158 | public function getApplicationReports()
|
---|
159 | {
|
---|
160 | return $this->applicationReports;
|
---|
161 | }
|
---|
162 | /**
|
---|
163 | * @param PasswordRequirements[]
|
---|
164 | */
|
---|
165 | public function setAppliedPasswordPolicies($appliedPasswordPolicies)
|
---|
166 | {
|
---|
167 | $this->appliedPasswordPolicies = $appliedPasswordPolicies;
|
---|
168 | }
|
---|
169 | /**
|
---|
170 | * @return PasswordRequirements[]
|
---|
171 | */
|
---|
172 | public function getAppliedPasswordPolicies()
|
---|
173 | {
|
---|
174 | return $this->appliedPasswordPolicies;
|
---|
175 | }
|
---|
176 | /**
|
---|
177 | * @param string
|
---|
178 | */
|
---|
179 | public function setAppliedPolicyName($appliedPolicyName)
|
---|
180 | {
|
---|
181 | $this->appliedPolicyName = $appliedPolicyName;
|
---|
182 | }
|
---|
183 | /**
|
---|
184 | * @return string
|
---|
185 | */
|
---|
186 | public function getAppliedPolicyName()
|
---|
187 | {
|
---|
188 | return $this->appliedPolicyName;
|
---|
189 | }
|
---|
190 | /**
|
---|
191 | * @param string
|
---|
192 | */
|
---|
193 | public function setAppliedPolicyVersion($appliedPolicyVersion)
|
---|
194 | {
|
---|
195 | $this->appliedPolicyVersion = $appliedPolicyVersion;
|
---|
196 | }
|
---|
197 | /**
|
---|
198 | * @return string
|
---|
199 | */
|
---|
200 | public function getAppliedPolicyVersion()
|
---|
201 | {
|
---|
202 | return $this->appliedPolicyVersion;
|
---|
203 | }
|
---|
204 | /**
|
---|
205 | * @param string
|
---|
206 | */
|
---|
207 | public function setAppliedState($appliedState)
|
---|
208 | {
|
---|
209 | $this->appliedState = $appliedState;
|
---|
210 | }
|
---|
211 | /**
|
---|
212 | * @return string
|
---|
213 | */
|
---|
214 | public function getAppliedState()
|
---|
215 | {
|
---|
216 | return $this->appliedState;
|
---|
217 | }
|
---|
218 | /**
|
---|
219 | * @param CommonCriteriaModeInfo
|
---|
220 | */
|
---|
221 | public function setCommonCriteriaModeInfo(CommonCriteriaModeInfo $commonCriteriaModeInfo)
|
---|
222 | {
|
---|
223 | $this->commonCriteriaModeInfo = $commonCriteriaModeInfo;
|
---|
224 | }
|
---|
225 | /**
|
---|
226 | * @return CommonCriteriaModeInfo
|
---|
227 | */
|
---|
228 | public function getCommonCriteriaModeInfo()
|
---|
229 | {
|
---|
230 | return $this->commonCriteriaModeInfo;
|
---|
231 | }
|
---|
232 | /**
|
---|
233 | * @param DeviceSettings
|
---|
234 | */
|
---|
235 | public function setDeviceSettings(DeviceSettings $deviceSettings)
|
---|
236 | {
|
---|
237 | $this->deviceSettings = $deviceSettings;
|
---|
238 | }
|
---|
239 | /**
|
---|
240 | * @return DeviceSettings
|
---|
241 | */
|
---|
242 | public function getDeviceSettings()
|
---|
243 | {
|
---|
244 | return $this->deviceSettings;
|
---|
245 | }
|
---|
246 | /**
|
---|
247 | * @param UserFacingMessage
|
---|
248 | */
|
---|
249 | public function setDisabledReason(UserFacingMessage $disabledReason)
|
---|
250 | {
|
---|
251 | $this->disabledReason = $disabledReason;
|
---|
252 | }
|
---|
253 | /**
|
---|
254 | * @return UserFacingMessage
|
---|
255 | */
|
---|
256 | public function getDisabledReason()
|
---|
257 | {
|
---|
258 | return $this->disabledReason;
|
---|
259 | }
|
---|
260 | /**
|
---|
261 | * @param Display[]
|
---|
262 | */
|
---|
263 | public function setDisplays($displays)
|
---|
264 | {
|
---|
265 | $this->displays = $displays;
|
---|
266 | }
|
---|
267 | /**
|
---|
268 | * @return Display[]
|
---|
269 | */
|
---|
270 | public function getDisplays()
|
---|
271 | {
|
---|
272 | return $this->displays;
|
---|
273 | }
|
---|
274 | /**
|
---|
275 | * @param DpcMigrationInfo
|
---|
276 | */
|
---|
277 | public function setDpcMigrationInfo(DpcMigrationInfo $dpcMigrationInfo)
|
---|
278 | {
|
---|
279 | $this->dpcMigrationInfo = $dpcMigrationInfo;
|
---|
280 | }
|
---|
281 | /**
|
---|
282 | * @return DpcMigrationInfo
|
---|
283 | */
|
---|
284 | public function getDpcMigrationInfo()
|
---|
285 | {
|
---|
286 | return $this->dpcMigrationInfo;
|
---|
287 | }
|
---|
288 | /**
|
---|
289 | * @param string
|
---|
290 | */
|
---|
291 | public function setEnrollmentTime($enrollmentTime)
|
---|
292 | {
|
---|
293 | $this->enrollmentTime = $enrollmentTime;
|
---|
294 | }
|
---|
295 | /**
|
---|
296 | * @return string
|
---|
297 | */
|
---|
298 | public function getEnrollmentTime()
|
---|
299 | {
|
---|
300 | return $this->enrollmentTime;
|
---|
301 | }
|
---|
302 | /**
|
---|
303 | * @param string
|
---|
304 | */
|
---|
305 | public function setEnrollmentTokenData($enrollmentTokenData)
|
---|
306 | {
|
---|
307 | $this->enrollmentTokenData = $enrollmentTokenData;
|
---|
308 | }
|
---|
309 | /**
|
---|
310 | * @return string
|
---|
311 | */
|
---|
312 | public function getEnrollmentTokenData()
|
---|
313 | {
|
---|
314 | return $this->enrollmentTokenData;
|
---|
315 | }
|
---|
316 | /**
|
---|
317 | * @param string
|
---|
318 | */
|
---|
319 | public function setEnrollmentTokenName($enrollmentTokenName)
|
---|
320 | {
|
---|
321 | $this->enrollmentTokenName = $enrollmentTokenName;
|
---|
322 | }
|
---|
323 | /**
|
---|
324 | * @return string
|
---|
325 | */
|
---|
326 | public function getEnrollmentTokenName()
|
---|
327 | {
|
---|
328 | return $this->enrollmentTokenName;
|
---|
329 | }
|
---|
330 | /**
|
---|
331 | * @param HardwareInfo
|
---|
332 | */
|
---|
333 | public function setHardwareInfo(HardwareInfo $hardwareInfo)
|
---|
334 | {
|
---|
335 | $this->hardwareInfo = $hardwareInfo;
|
---|
336 | }
|
---|
337 | /**
|
---|
338 | * @return HardwareInfo
|
---|
339 | */
|
---|
340 | public function getHardwareInfo()
|
---|
341 | {
|
---|
342 | return $this->hardwareInfo;
|
---|
343 | }
|
---|
344 | /**
|
---|
345 | * @param HardwareStatus[]
|
---|
346 | */
|
---|
347 | public function setHardwareStatusSamples($hardwareStatusSamples)
|
---|
348 | {
|
---|
349 | $this->hardwareStatusSamples = $hardwareStatusSamples;
|
---|
350 | }
|
---|
351 | /**
|
---|
352 | * @return HardwareStatus[]
|
---|
353 | */
|
---|
354 | public function getHardwareStatusSamples()
|
---|
355 | {
|
---|
356 | return $this->hardwareStatusSamples;
|
---|
357 | }
|
---|
358 | /**
|
---|
359 | * @param string
|
---|
360 | */
|
---|
361 | public function setLastPolicyComplianceReportTime($lastPolicyComplianceReportTime)
|
---|
362 | {
|
---|
363 | $this->lastPolicyComplianceReportTime = $lastPolicyComplianceReportTime;
|
---|
364 | }
|
---|
365 | /**
|
---|
366 | * @return string
|
---|
367 | */
|
---|
368 | public function getLastPolicyComplianceReportTime()
|
---|
369 | {
|
---|
370 | return $this->lastPolicyComplianceReportTime;
|
---|
371 | }
|
---|
372 | /**
|
---|
373 | * @param string
|
---|
374 | */
|
---|
375 | public function setLastPolicySyncTime($lastPolicySyncTime)
|
---|
376 | {
|
---|
377 | $this->lastPolicySyncTime = $lastPolicySyncTime;
|
---|
378 | }
|
---|
379 | /**
|
---|
380 | * @return string
|
---|
381 | */
|
---|
382 | public function getLastPolicySyncTime()
|
---|
383 | {
|
---|
384 | return $this->lastPolicySyncTime;
|
---|
385 | }
|
---|
386 | /**
|
---|
387 | * @param string
|
---|
388 | */
|
---|
389 | public function setLastStatusReportTime($lastStatusReportTime)
|
---|
390 | {
|
---|
391 | $this->lastStatusReportTime = $lastStatusReportTime;
|
---|
392 | }
|
---|
393 | /**
|
---|
394 | * @return string
|
---|
395 | */
|
---|
396 | public function getLastStatusReportTime()
|
---|
397 | {
|
---|
398 | return $this->lastStatusReportTime;
|
---|
399 | }
|
---|
400 | /**
|
---|
401 | * @param string
|
---|
402 | */
|
---|
403 | public function setManagementMode($managementMode)
|
---|
404 | {
|
---|
405 | $this->managementMode = $managementMode;
|
---|
406 | }
|
---|
407 | /**
|
---|
408 | * @return string
|
---|
409 | */
|
---|
410 | public function getManagementMode()
|
---|
411 | {
|
---|
412 | return $this->managementMode;
|
---|
413 | }
|
---|
414 | /**
|
---|
415 | * @param MemoryEvent[]
|
---|
416 | */
|
---|
417 | public function setMemoryEvents($memoryEvents)
|
---|
418 | {
|
---|
419 | $this->memoryEvents = $memoryEvents;
|
---|
420 | }
|
---|
421 | /**
|
---|
422 | * @return MemoryEvent[]
|
---|
423 | */
|
---|
424 | public function getMemoryEvents()
|
---|
425 | {
|
---|
426 | return $this->memoryEvents;
|
---|
427 | }
|
---|
428 | /**
|
---|
429 | * @param MemoryInfo
|
---|
430 | */
|
---|
431 | public function setMemoryInfo(MemoryInfo $memoryInfo)
|
---|
432 | {
|
---|
433 | $this->memoryInfo = $memoryInfo;
|
---|
434 | }
|
---|
435 | /**
|
---|
436 | * @return MemoryInfo
|
---|
437 | */
|
---|
438 | public function getMemoryInfo()
|
---|
439 | {
|
---|
440 | return $this->memoryInfo;
|
---|
441 | }
|
---|
442 | /**
|
---|
443 | * @param string
|
---|
444 | */
|
---|
445 | public function setName($name)
|
---|
446 | {
|
---|
447 | $this->name = $name;
|
---|
448 | }
|
---|
449 | /**
|
---|
450 | * @return string
|
---|
451 | */
|
---|
452 | public function getName()
|
---|
453 | {
|
---|
454 | return $this->name;
|
---|
455 | }
|
---|
456 | /**
|
---|
457 | * @param NetworkInfo
|
---|
458 | */
|
---|
459 | public function setNetworkInfo(NetworkInfo $networkInfo)
|
---|
460 | {
|
---|
461 | $this->networkInfo = $networkInfo;
|
---|
462 | }
|
---|
463 | /**
|
---|
464 | * @return NetworkInfo
|
---|
465 | */
|
---|
466 | public function getNetworkInfo()
|
---|
467 | {
|
---|
468 | return $this->networkInfo;
|
---|
469 | }
|
---|
470 | /**
|
---|
471 | * @param NonComplianceDetail[]
|
---|
472 | */
|
---|
473 | public function setNonComplianceDetails($nonComplianceDetails)
|
---|
474 | {
|
---|
475 | $this->nonComplianceDetails = $nonComplianceDetails;
|
---|
476 | }
|
---|
477 | /**
|
---|
478 | * @return NonComplianceDetail[]
|
---|
479 | */
|
---|
480 | public function getNonComplianceDetails()
|
---|
481 | {
|
---|
482 | return $this->nonComplianceDetails;
|
---|
483 | }
|
---|
484 | /**
|
---|
485 | * @param string
|
---|
486 | */
|
---|
487 | public function setOwnership($ownership)
|
---|
488 | {
|
---|
489 | $this->ownership = $ownership;
|
---|
490 | }
|
---|
491 | /**
|
---|
492 | * @return string
|
---|
493 | */
|
---|
494 | public function getOwnership()
|
---|
495 | {
|
---|
496 | return $this->ownership;
|
---|
497 | }
|
---|
498 | /**
|
---|
499 | * @param bool
|
---|
500 | */
|
---|
501 | public function setPolicyCompliant($policyCompliant)
|
---|
502 | {
|
---|
503 | $this->policyCompliant = $policyCompliant;
|
---|
504 | }
|
---|
505 | /**
|
---|
506 | * @return bool
|
---|
507 | */
|
---|
508 | public function getPolicyCompliant()
|
---|
509 | {
|
---|
510 | return $this->policyCompliant;
|
---|
511 | }
|
---|
512 | /**
|
---|
513 | * @param string
|
---|
514 | */
|
---|
515 | public function setPolicyName($policyName)
|
---|
516 | {
|
---|
517 | $this->policyName = $policyName;
|
---|
518 | }
|
---|
519 | /**
|
---|
520 | * @return string
|
---|
521 | */
|
---|
522 | public function getPolicyName()
|
---|
523 | {
|
---|
524 | return $this->policyName;
|
---|
525 | }
|
---|
526 | /**
|
---|
527 | * @param PowerManagementEvent[]
|
---|
528 | */
|
---|
529 | public function setPowerManagementEvents($powerManagementEvents)
|
---|
530 | {
|
---|
531 | $this->powerManagementEvents = $powerManagementEvents;
|
---|
532 | }
|
---|
533 | /**
|
---|
534 | * @return PowerManagementEvent[]
|
---|
535 | */
|
---|
536 | public function getPowerManagementEvents()
|
---|
537 | {
|
---|
538 | return $this->powerManagementEvents;
|
---|
539 | }
|
---|
540 | /**
|
---|
541 | * @param string[]
|
---|
542 | */
|
---|
543 | public function setPreviousDeviceNames($previousDeviceNames)
|
---|
544 | {
|
---|
545 | $this->previousDeviceNames = $previousDeviceNames;
|
---|
546 | }
|
---|
547 | /**
|
---|
548 | * @return string[]
|
---|
549 | */
|
---|
550 | public function getPreviousDeviceNames()
|
---|
551 | {
|
---|
552 | return $this->previousDeviceNames;
|
---|
553 | }
|
---|
554 | /**
|
---|
555 | * @param SecurityPosture
|
---|
556 | */
|
---|
557 | public function setSecurityPosture(SecurityPosture $securityPosture)
|
---|
558 | {
|
---|
559 | $this->securityPosture = $securityPosture;
|
---|
560 | }
|
---|
561 | /**
|
---|
562 | * @return SecurityPosture
|
---|
563 | */
|
---|
564 | public function getSecurityPosture()
|
---|
565 | {
|
---|
566 | return $this->securityPosture;
|
---|
567 | }
|
---|
568 | /**
|
---|
569 | * @param SoftwareInfo
|
---|
570 | */
|
---|
571 | public function setSoftwareInfo(SoftwareInfo $softwareInfo)
|
---|
572 | {
|
---|
573 | $this->softwareInfo = $softwareInfo;
|
---|
574 | }
|
---|
575 | /**
|
---|
576 | * @return SoftwareInfo
|
---|
577 | */
|
---|
578 | public function getSoftwareInfo()
|
---|
579 | {
|
---|
580 | return $this->softwareInfo;
|
---|
581 | }
|
---|
582 | /**
|
---|
583 | * @param string
|
---|
584 | */
|
---|
585 | public function setState($state)
|
---|
586 | {
|
---|
587 | $this->state = $state;
|
---|
588 | }
|
---|
589 | /**
|
---|
590 | * @return string
|
---|
591 | */
|
---|
592 | public function getState()
|
---|
593 | {
|
---|
594 | return $this->state;
|
---|
595 | }
|
---|
596 | /**
|
---|
597 | * @param string[]
|
---|
598 | */
|
---|
599 | public function setSystemProperties($systemProperties)
|
---|
600 | {
|
---|
601 | $this->systemProperties = $systemProperties;
|
---|
602 | }
|
---|
603 | /**
|
---|
604 | * @return string[]
|
---|
605 | */
|
---|
606 | public function getSystemProperties()
|
---|
607 | {
|
---|
608 | return $this->systemProperties;
|
---|
609 | }
|
---|
610 | /**
|
---|
611 | * @param User
|
---|
612 | */
|
---|
613 | public function setUser(User $user)
|
---|
614 | {
|
---|
615 | $this->user = $user;
|
---|
616 | }
|
---|
617 | /**
|
---|
618 | * @return User
|
---|
619 | */
|
---|
620 | public function getUser()
|
---|
621 | {
|
---|
622 | return $this->user;
|
---|
623 | }
|
---|
624 | /**
|
---|
625 | * @param string
|
---|
626 | */
|
---|
627 | public function setUserName($userName)
|
---|
628 | {
|
---|
629 | $this->userName = $userName;
|
---|
630 | }
|
---|
631 | /**
|
---|
632 | * @return string
|
---|
633 | */
|
---|
634 | public function getUserName()
|
---|
635 | {
|
---|
636 | return $this->userName;
|
---|
637 | }
|
---|
638 | }
|
---|
639 |
|
---|
640 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
641 | class_alias(Device::class, 'Google_Service_AndroidManagement_Device');
|
---|