/src/Model/SharedPCConfiguration.php

https://github.com/microsoftgraph/msgraph-sdk-php · PHP · 387 lines · 173 code · 25 blank · 189 comment · 27 complexity · 62fa6f35dae40cf5f92dffb6ac21b1e4 MD5 · raw file

  1. <?php
  2. /**
  3. * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
  4. *
  5. * SharedPCConfiguration File
  6. * PHP version 7
  7. *
  8. * @category Library
  9. * @package Microsoft.Graph
  10. * @copyright © Microsoft Corporation. All rights reserved.
  11. * @license https://opensource.org/licenses/MIT MIT License
  12. * @link https://graph.microsoft.com
  13. */
  14. namespace Microsoft\Graph\Model;
  15. /**
  16. * SharedPCConfiguration class
  17. *
  18. * @category Model
  19. * @package Microsoft.Graph
  20. * @copyright © Microsoft Corporation. All rights reserved.
  21. * @license https://opensource.org/licenses/MIT MIT License
  22. * @link https://graph.microsoft.com
  23. */
  24. class SharedPCConfiguration extends DeviceConfiguration
  25. {
  26. /**
  27. * Gets the accountManagerPolicy
  28. * Specifies how accounts are managed on a shared PC. Only applies when disableAccountManager is false.
  29. *
  30. * @return SharedPCAccountManagerPolicy The accountManagerPolicy
  31. */
  32. public function getAccountManagerPolicy()
  33. {
  34. if (array_key_exists("accountManagerPolicy", $this->_propDict)) {
  35. if (is_a($this->_propDict["accountManagerPolicy"], "Microsoft\Graph\Model\SharedPCAccountManagerPolicy")) {
  36. return $this->_propDict["accountManagerPolicy"];
  37. } else {
  38. $this->_propDict["accountManagerPolicy"] = new SharedPCAccountManagerPolicy($this->_propDict["accountManagerPolicy"]);
  39. return $this->_propDict["accountManagerPolicy"];
  40. }
  41. }
  42. return null;
  43. }
  44. /**
  45. * Sets the accountManagerPolicy
  46. * Specifies how accounts are managed on a shared PC. Only applies when disableAccountManager is false.
  47. *
  48. * @param SharedPCAccountManagerPolicy $val The accountManagerPolicy
  49. *
  50. * @return SharedPCConfiguration
  51. */
  52. public function setAccountManagerPolicy($val)
  53. {
  54. $this->_propDict["accountManagerPolicy"] = $val;
  55. return $this;
  56. }
  57. /**
  58. * Gets the allowedAccounts
  59. * Indicates which type of accounts are allowed to use on a shared PC. Possible values are: guest, domain.
  60. *
  61. * @return SharedPCAllowedAccountType The allowedAccounts
  62. */
  63. public function getAllowedAccounts()
  64. {
  65. if (array_key_exists("allowedAccounts", $this->_propDict)) {
  66. if (is_a($this->_propDict["allowedAccounts"], "Microsoft\Graph\Model\SharedPCAllowedAccountType")) {
  67. return $this->_propDict["allowedAccounts"];
  68. } else {
  69. $this->_propDict["allowedAccounts"] = new SharedPCAllowedAccountType($this->_propDict["allowedAccounts"]);
  70. return $this->_propDict["allowedAccounts"];
  71. }
  72. }
  73. return null;
  74. }
  75. /**
  76. * Sets the allowedAccounts
  77. * Indicates which type of accounts are allowed to use on a shared PC. Possible values are: guest, domain.
  78. *
  79. * @param SharedPCAllowedAccountType $val The allowedAccounts
  80. *
  81. * @return SharedPCConfiguration
  82. */
  83. public function setAllowedAccounts($val)
  84. {
  85. $this->_propDict["allowedAccounts"] = $val;
  86. return $this;
  87. }
  88. /**
  89. * Gets the allowLocalStorage
  90. * Specifies whether local storage is allowed on a shared PC.
  91. *
  92. * @return bool The allowLocalStorage
  93. */
  94. public function getAllowLocalStorage()
  95. {
  96. if (array_key_exists("allowLocalStorage", $this->_propDict)) {
  97. return $this->_propDict["allowLocalStorage"];
  98. } else {
  99. return null;
  100. }
  101. }
  102. /**
  103. * Sets the allowLocalStorage
  104. * Specifies whether local storage is allowed on a shared PC.
  105. *
  106. * @param bool $val The allowLocalStorage
  107. *
  108. * @return SharedPCConfiguration
  109. */
  110. public function setAllowLocalStorage($val)
  111. {
  112. $this->_propDict["allowLocalStorage"] = boolval($val);
  113. return $this;
  114. }
  115. /**
  116. * Gets the disableAccountManager
  117. * Disables the account manager for shared PC mode.
  118. *
  119. * @return bool The disableAccountManager
  120. */
  121. public function getDisableAccountManager()
  122. {
  123. if (array_key_exists("disableAccountManager", $this->_propDict)) {
  124. return $this->_propDict["disableAccountManager"];
  125. } else {
  126. return null;
  127. }
  128. }
  129. /**
  130. * Sets the disableAccountManager
  131. * Disables the account manager for shared PC mode.
  132. *
  133. * @param bool $val The disableAccountManager
  134. *
  135. * @return SharedPCConfiguration
  136. */
  137. public function setDisableAccountManager($val)
  138. {
  139. $this->_propDict["disableAccountManager"] = boolval($val);
  140. return $this;
  141. }
  142. /**
  143. * Gets the disableEduPolicies
  144. * Specifies whether the default shared PC education environment policies should be disabled. For Windows 10 RS2 and later, this policy will be applied without setting Enabled to true.
  145. *
  146. * @return bool The disableEduPolicies
  147. */
  148. public function getDisableEduPolicies()
  149. {
  150. if (array_key_exists("disableEduPolicies", $this->_propDict)) {
  151. return $this->_propDict["disableEduPolicies"];
  152. } else {
  153. return null;
  154. }
  155. }
  156. /**
  157. * Sets the disableEduPolicies
  158. * Specifies whether the default shared PC education environment policies should be disabled. For Windows 10 RS2 and later, this policy will be applied without setting Enabled to true.
  159. *
  160. * @param bool $val The disableEduPolicies
  161. *
  162. * @return SharedPCConfiguration
  163. */
  164. public function setDisableEduPolicies($val)
  165. {
  166. $this->_propDict["disableEduPolicies"] = boolval($val);
  167. return $this;
  168. }
  169. /**
  170. * Gets the disablePowerPolicies
  171. * Specifies whether the default shared PC power policies should be disabled.
  172. *
  173. * @return bool The disablePowerPolicies
  174. */
  175. public function getDisablePowerPolicies()
  176. {
  177. if (array_key_exists("disablePowerPolicies", $this->_propDict)) {
  178. return $this->_propDict["disablePowerPolicies"];
  179. } else {
  180. return null;
  181. }
  182. }
  183. /**
  184. * Sets the disablePowerPolicies
  185. * Specifies whether the default shared PC power policies should be disabled.
  186. *
  187. * @param bool $val The disablePowerPolicies
  188. *
  189. * @return SharedPCConfiguration
  190. */
  191. public function setDisablePowerPolicies($val)
  192. {
  193. $this->_propDict["disablePowerPolicies"] = boolval($val);
  194. return $this;
  195. }
  196. /**
  197. * Gets the disableSignInOnResume
  198. * Disables the requirement to sign in whenever the device wakes up from sleep mode.
  199. *
  200. * @return bool The disableSignInOnResume
  201. */
  202. public function getDisableSignInOnResume()
  203. {
  204. if (array_key_exists("disableSignInOnResume", $this->_propDict)) {
  205. return $this->_propDict["disableSignInOnResume"];
  206. } else {
  207. return null;
  208. }
  209. }
  210. /**
  211. * Sets the disableSignInOnResume
  212. * Disables the requirement to sign in whenever the device wakes up from sleep mode.
  213. *
  214. * @param bool $val The disableSignInOnResume
  215. *
  216. * @return SharedPCConfiguration
  217. */
  218. public function setDisableSignInOnResume($val)
  219. {
  220. $this->_propDict["disableSignInOnResume"] = boolval($val);
  221. return $this;
  222. }
  223. /**
  224. * Gets the enabled
  225. * Enables shared PC mode and applies the shared pc policies.
  226. *
  227. * @return bool The enabled
  228. */
  229. public function getEnabled()
  230. {
  231. if (array_key_exists("enabled", $this->_propDict)) {
  232. return $this->_propDict["enabled"];
  233. } else {
  234. return null;
  235. }
  236. }
  237. /**
  238. * Sets the enabled
  239. * Enables shared PC mode and applies the shared pc policies.
  240. *
  241. * @param bool $val The enabled
  242. *
  243. * @return SharedPCConfiguration
  244. */
  245. public function setEnabled($val)
  246. {
  247. $this->_propDict["enabled"] = boolval($val);
  248. return $this;
  249. }
  250. /**
  251. * Gets the idleTimeBeforeSleepInSeconds
  252. * Specifies the time in seconds that a device must sit idle before the PC goes to sleep. Setting this value to 0 prevents the sleep timeout from occurring.
  253. *
  254. * @return int The idleTimeBeforeSleepInSeconds
  255. */
  256. public function getIdleTimeBeforeSleepInSeconds()
  257. {
  258. if (array_key_exists("idleTimeBeforeSleepInSeconds", $this->_propDict)) {
  259. return $this->_propDict["idleTimeBeforeSleepInSeconds"];
  260. } else {
  261. return null;
  262. }
  263. }
  264. /**
  265. * Sets the idleTimeBeforeSleepInSeconds
  266. * Specifies the time in seconds that a device must sit idle before the PC goes to sleep. Setting this value to 0 prevents the sleep timeout from occurring.
  267. *
  268. * @param int $val The idleTimeBeforeSleepInSeconds
  269. *
  270. * @return SharedPCConfiguration
  271. */
  272. public function setIdleTimeBeforeSleepInSeconds($val)
  273. {
  274. $this->_propDict["idleTimeBeforeSleepInSeconds"] = intval($val);
  275. return $this;
  276. }
  277. /**
  278. * Gets the kioskAppDisplayName
  279. * Specifies the display text for the account shown on the sign-in screen which launches the app specified by SetKioskAppUserModelId. Only applies when KioskAppUserModelId is set.
  280. *
  281. * @return string The kioskAppDisplayName
  282. */
  283. public function getKioskAppDisplayName()
  284. {
  285. if (array_key_exists("kioskAppDisplayName", $this->_propDict)) {
  286. return $this->_propDict["kioskAppDisplayName"];
  287. } else {
  288. return null;
  289. }
  290. }
  291. /**
  292. * Sets the kioskAppDisplayName
  293. * Specifies the display text for the account shown on the sign-in screen which launches the app specified by SetKioskAppUserModelId. Only applies when KioskAppUserModelId is set.
  294. *
  295. * @param string $val The kioskAppDisplayName
  296. *
  297. * @return SharedPCConfiguration
  298. */
  299. public function setKioskAppDisplayName($val)
  300. {
  301. $this->_propDict["kioskAppDisplayName"] = $val;
  302. return $this;
  303. }
  304. /**
  305. * Gets the kioskAppUserModelId
  306. * Specifies the application user model ID of the app to use with assigned access.
  307. *
  308. * @return string The kioskAppUserModelId
  309. */
  310. public function getKioskAppUserModelId()
  311. {
  312. if (array_key_exists("kioskAppUserModelId", $this->_propDict)) {
  313. return $this->_propDict["kioskAppUserModelId"];
  314. } else {
  315. return null;
  316. }
  317. }
  318. /**
  319. * Sets the kioskAppUserModelId
  320. * Specifies the application user model ID of the app to use with assigned access.
  321. *
  322. * @param string $val The kioskAppUserModelId
  323. *
  324. * @return SharedPCConfiguration
  325. */
  326. public function setKioskAppUserModelId($val)
  327. {
  328. $this->_propDict["kioskAppUserModelId"] = $val;
  329. return $this;
  330. }
  331. /**
  332. * Gets the maintenanceStartTime
  333. * Specifies the daily start time of maintenance hour.
  334. *
  335. * @return TimeOfDay The maintenanceStartTime
  336. */
  337. public function getMaintenanceStartTime()
  338. {
  339. if (array_key_exists("maintenanceStartTime", $this->_propDict)) {
  340. if (is_a($this->_propDict["maintenanceStartTime"], "Microsoft\Graph\Model\TimeOfDay")) {
  341. return $this->_propDict["maintenanceStartTime"];
  342. } else {
  343. $this->_propDict["maintenanceStartTime"] = new TimeOfDay($this->_propDict["maintenanceStartTime"]);
  344. return $this->_propDict["maintenanceStartTime"];
  345. }
  346. }
  347. return null;
  348. }
  349. /**
  350. * Sets the maintenanceStartTime
  351. * Specifies the daily start time of maintenance hour.
  352. *
  353. * @param TimeOfDay $val The maintenanceStartTime
  354. *
  355. * @return SharedPCConfiguration
  356. */
  357. public function setMaintenanceStartTime($val)
  358. {
  359. $this->_propDict["maintenanceStartTime"] = $val;
  360. return $this;
  361. }
  362. }