暫無描述

ApplicationPolicy.php 2.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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. class Google_Service_AndroidManagement_ApplicationPolicy extends Google_Collection
  18. {
  19. protected $collection_key = 'permissionGrants';
  20. public $defaultPermissionPolicy;
  21. public $delegatedScopes;
  22. public $disabled;
  23. public $installType;
  24. public $lockTaskAllowed;
  25. public $managedConfiguration;
  26. public $minimumVersionCode;
  27. public $packageName;
  28. protected $permissionGrantsType = 'Google_Service_AndroidManagement_PermissionGrant';
  29. protected $permissionGrantsDataType = 'array';
  30. public function setDefaultPermissionPolicy($defaultPermissionPolicy)
  31. {
  32. $this->defaultPermissionPolicy = $defaultPermissionPolicy;
  33. }
  34. public function getDefaultPermissionPolicy()
  35. {
  36. return $this->defaultPermissionPolicy;
  37. }
  38. public function setDelegatedScopes($delegatedScopes)
  39. {
  40. $this->delegatedScopes = $delegatedScopes;
  41. }
  42. public function getDelegatedScopes()
  43. {
  44. return $this->delegatedScopes;
  45. }
  46. public function setDisabled($disabled)
  47. {
  48. $this->disabled = $disabled;
  49. }
  50. public function getDisabled()
  51. {
  52. return $this->disabled;
  53. }
  54. public function setInstallType($installType)
  55. {
  56. $this->installType = $installType;
  57. }
  58. public function getInstallType()
  59. {
  60. return $this->installType;
  61. }
  62. public function setLockTaskAllowed($lockTaskAllowed)
  63. {
  64. $this->lockTaskAllowed = $lockTaskAllowed;
  65. }
  66. public function getLockTaskAllowed()
  67. {
  68. return $this->lockTaskAllowed;
  69. }
  70. public function setManagedConfiguration($managedConfiguration)
  71. {
  72. $this->managedConfiguration = $managedConfiguration;
  73. }
  74. public function getManagedConfiguration()
  75. {
  76. return $this->managedConfiguration;
  77. }
  78. public function setMinimumVersionCode($minimumVersionCode)
  79. {
  80. $this->minimumVersionCode = $minimumVersionCode;
  81. }
  82. public function getMinimumVersionCode()
  83. {
  84. return $this->minimumVersionCode;
  85. }
  86. public function setPackageName($packageName)
  87. {
  88. $this->packageName = $packageName;
  89. }
  90. public function getPackageName()
  91. {
  92. return $this->packageName;
  93. }
  94. /**
  95. * @param Google_Service_AndroidManagement_PermissionGrant
  96. */
  97. public function setPermissionGrants($permissionGrants)
  98. {
  99. $this->permissionGrants = $permissionGrants;
  100. }
  101. /**
  102. * @return Google_Service_AndroidManagement_PermissionGrant
  103. */
  104. public function getPermissionGrants()
  105. {
  106. return $this->permissionGrants;
  107. }
  108. }