BlogPerUserInfo.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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\Blogger;
  18. class BlogPerUserInfo extends \Google\Model
  19. {
  20. public const ROLE_VIEW_TYPE_UNSPECIFIED = 'VIEW_TYPE_UNSPECIFIED';
  21. public const ROLE_READER = 'READER';
  22. public const ROLE_AUTHOR = 'AUTHOR';
  23. public const ROLE_ADMIN = 'ADMIN';
  24. /**
  25. * ID of the Blog resource.
  26. *
  27. * @var string
  28. */
  29. public $blogId;
  30. /**
  31. * True if the user has Admin level access to the blog.
  32. *
  33. * @var bool
  34. */
  35. public $hasAdminAccess;
  36. /**
  37. * The kind of this entity. Always blogger#blogPerUserInfo.
  38. *
  39. * @var string
  40. */
  41. public $kind;
  42. /**
  43. * The Photo Album Key for the user when adding photos to the blog.
  44. *
  45. * @var string
  46. */
  47. public $photosAlbumKey;
  48. /**
  49. * Access permissions that the user has for the blog (ADMIN, AUTHOR, or
  50. * READER).
  51. *
  52. * @var string
  53. */
  54. public $role;
  55. /**
  56. * ID of the User.
  57. *
  58. * @var string
  59. */
  60. public $userId;
  61. /**
  62. * ID of the Blog resource.
  63. *
  64. * @param string $blogId
  65. */
  66. public function setBlogId($blogId)
  67. {
  68. $this->blogId = $blogId;
  69. }
  70. /**
  71. * @return string
  72. */
  73. public function getBlogId()
  74. {
  75. return $this->blogId;
  76. }
  77. /**
  78. * True if the user has Admin level access to the blog.
  79. *
  80. * @param bool $hasAdminAccess
  81. */
  82. public function setHasAdminAccess($hasAdminAccess)
  83. {
  84. $this->hasAdminAccess = $hasAdminAccess;
  85. }
  86. /**
  87. * @return bool
  88. */
  89. public function getHasAdminAccess()
  90. {
  91. return $this->hasAdminAccess;
  92. }
  93. /**
  94. * The kind of this entity. Always blogger#blogPerUserInfo.
  95. *
  96. * @param string $kind
  97. */
  98. public function setKind($kind)
  99. {
  100. $this->kind = $kind;
  101. }
  102. /**
  103. * @return string
  104. */
  105. public function getKind()
  106. {
  107. return $this->kind;
  108. }
  109. /**
  110. * The Photo Album Key for the user when adding photos to the blog.
  111. *
  112. * @param string $photosAlbumKey
  113. */
  114. public function setPhotosAlbumKey($photosAlbumKey)
  115. {
  116. $this->photosAlbumKey = $photosAlbumKey;
  117. }
  118. /**
  119. * @return string
  120. */
  121. public function getPhotosAlbumKey()
  122. {
  123. return $this->photosAlbumKey;
  124. }
  125. /**
  126. * Access permissions that the user has for the blog (ADMIN, AUTHOR, or
  127. * READER).
  128. *
  129. * Accepted values: VIEW_TYPE_UNSPECIFIED, READER, AUTHOR, ADMIN
  130. *
  131. * @param self::ROLE_* $role
  132. */
  133. public function setRole($role)
  134. {
  135. $this->role = $role;
  136. }
  137. /**
  138. * @return self::ROLE_*
  139. */
  140. public function getRole()
  141. {
  142. return $this->role;
  143. }
  144. /**
  145. * ID of the User.
  146. *
  147. * @param string $userId
  148. */
  149. public function setUserId($userId)
  150. {
  151. $this->userId = $userId;
  152. }
  153. /**
  154. * @return string
  155. */
  156. public function getUserId()
  157. {
  158. return $this->userId;
  159. }
  160. }
  161. // Adding a class alias for backwards compatibility with the previous class name.
  162. class_alias(BlogPerUserInfo::class, 'Google_Service_Blogger_BlogPerUserInfo');