Permission.php 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293
  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. namespace Google\Service\Drive;
  18. class Permission extends \Google\Collection
  19. {
  20. protected $collection_key = 'teamDrivePermissionDetails';
  21. /**
  22. * @var bool
  23. */
  24. public $allowFileDiscovery;
  25. /**
  26. * @var bool
  27. */
  28. public $deleted;
  29. /**
  30. * @var string
  31. */
  32. public $displayName;
  33. /**
  34. * @var string
  35. */
  36. public $domain;
  37. /**
  38. * @var string
  39. */
  40. public $emailAddress;
  41. /**
  42. * @var string
  43. */
  44. public $expirationTime;
  45. /**
  46. * @var string
  47. */
  48. public $id;
  49. /**
  50. * @var string
  51. */
  52. public $kind;
  53. /**
  54. * @var bool
  55. */
  56. public $pendingOwner;
  57. protected $permissionDetailsType = PermissionPermissionDetails::class;
  58. protected $permissionDetailsDataType = 'array';
  59. /**
  60. * @var string
  61. */
  62. public $photoLink;
  63. /**
  64. * @var string
  65. */
  66. public $role;
  67. protected $teamDrivePermissionDetailsType = PermissionTeamDrivePermissionDetails::class;
  68. protected $teamDrivePermissionDetailsDataType = 'array';
  69. /**
  70. * @var string
  71. */
  72. public $type;
  73. /**
  74. * @var string
  75. */
  76. public $view;
  77. /**
  78. * @param bool
  79. */
  80. public function setAllowFileDiscovery($allowFileDiscovery)
  81. {
  82. $this->allowFileDiscovery = $allowFileDiscovery;
  83. }
  84. /**
  85. * @return bool
  86. */
  87. public function getAllowFileDiscovery()
  88. {
  89. return $this->allowFileDiscovery;
  90. }
  91. /**
  92. * @param bool
  93. */
  94. public function setDeleted($deleted)
  95. {
  96. $this->deleted = $deleted;
  97. }
  98. /**
  99. * @return bool
  100. */
  101. public function getDeleted()
  102. {
  103. return $this->deleted;
  104. }
  105. /**
  106. * @param string
  107. */
  108. public function setDisplayName($displayName)
  109. {
  110. $this->displayName = $displayName;
  111. }
  112. /**
  113. * @return string
  114. */
  115. public function getDisplayName()
  116. {
  117. return $this->displayName;
  118. }
  119. /**
  120. * @param string
  121. */
  122. public function setDomain($domain)
  123. {
  124. $this->domain = $domain;
  125. }
  126. /**
  127. * @return string
  128. */
  129. public function getDomain()
  130. {
  131. return $this->domain;
  132. }
  133. /**
  134. * @param string
  135. */
  136. public function setEmailAddress($emailAddress)
  137. {
  138. $this->emailAddress = $emailAddress;
  139. }
  140. /**
  141. * @return string
  142. */
  143. public function getEmailAddress()
  144. {
  145. return $this->emailAddress;
  146. }
  147. /**
  148. * @param string
  149. */
  150. public function setExpirationTime($expirationTime)
  151. {
  152. $this->expirationTime = $expirationTime;
  153. }
  154. /**
  155. * @return string
  156. */
  157. public function getExpirationTime()
  158. {
  159. return $this->expirationTime;
  160. }
  161. /**
  162. * @param string
  163. */
  164. public function setId($id)
  165. {
  166. $this->id = $id;
  167. }
  168. /**
  169. * @return string
  170. */
  171. public function getId()
  172. {
  173. return $this->id;
  174. }
  175. /**
  176. * @param string
  177. */
  178. public function setKind($kind)
  179. {
  180. $this->kind = $kind;
  181. }
  182. /**
  183. * @return string
  184. */
  185. public function getKind()
  186. {
  187. return $this->kind;
  188. }
  189. /**
  190. * @param bool
  191. */
  192. public function setPendingOwner($pendingOwner)
  193. {
  194. $this->pendingOwner = $pendingOwner;
  195. }
  196. /**
  197. * @return bool
  198. */
  199. public function getPendingOwner()
  200. {
  201. return $this->pendingOwner;
  202. }
  203. /**
  204. * @param PermissionPermissionDetails[]
  205. */
  206. public function setPermissionDetails($permissionDetails)
  207. {
  208. $this->permissionDetails = $permissionDetails;
  209. }
  210. /**
  211. * @return PermissionPermissionDetails[]
  212. */
  213. public function getPermissionDetails()
  214. {
  215. return $this->permissionDetails;
  216. }
  217. /**
  218. * @param string
  219. */
  220. public function setPhotoLink($photoLink)
  221. {
  222. $this->photoLink = $photoLink;
  223. }
  224. /**
  225. * @return string
  226. */
  227. public function getPhotoLink()
  228. {
  229. return $this->photoLink;
  230. }
  231. /**
  232. * @param string
  233. */
  234. public function setRole($role)
  235. {
  236. $this->role = $role;
  237. }
  238. /**
  239. * @return string
  240. */
  241. public function getRole()
  242. {
  243. return $this->role;
  244. }
  245. /**
  246. * @param PermissionTeamDrivePermissionDetails[]
  247. */
  248. public function setTeamDrivePermissionDetails($teamDrivePermissionDetails)
  249. {
  250. $this->teamDrivePermissionDetails = $teamDrivePermissionDetails;
  251. }
  252. /**
  253. * @return PermissionTeamDrivePermissionDetails[]
  254. */
  255. public function getTeamDrivePermissionDetails()
  256. {
  257. return $this->teamDrivePermissionDetails;
  258. }
  259. /**
  260. * @param string
  261. */
  262. public function setType($type)
  263. {
  264. $this->type = $type;
  265. }
  266. /**
  267. * @return string
  268. */
  269. public function getType()
  270. {
  271. return $this->type;
  272. }
  273. /**
  274. * @param string
  275. */
  276. public function setView($view)
  277. {
  278. $this->view = $view;
  279. }
  280. /**
  281. * @return string
  282. */
  283. public function getView()
  284. {
  285. return $this->view;
  286. }
  287. }
  288. // Adding a class alias for backwards compatibility with the previous class name.
  289. class_alias(Permission::class, 'Google_Service_Drive_Permission');