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