Ingen beskrivning

UserRole.php 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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_Dfareporting_UserRole extends Google_Collection
  18. {
  19. protected $collection_key = 'permissions';
  20. public $accountId;
  21. public $defaultUserRole;
  22. public $id;
  23. public $kind;
  24. public $name;
  25. public $parentUserRoleId;
  26. protected $permissionsType = 'Google_Service_Dfareporting_UserRolePermission';
  27. protected $permissionsDataType = 'array';
  28. public $subaccountId;
  29. public function setAccountId($accountId)
  30. {
  31. $this->accountId = $accountId;
  32. }
  33. public function getAccountId()
  34. {
  35. return $this->accountId;
  36. }
  37. public function setDefaultUserRole($defaultUserRole)
  38. {
  39. $this->defaultUserRole = $defaultUserRole;
  40. }
  41. public function getDefaultUserRole()
  42. {
  43. return $this->defaultUserRole;
  44. }
  45. public function setId($id)
  46. {
  47. $this->id = $id;
  48. }
  49. public function getId()
  50. {
  51. return $this->id;
  52. }
  53. public function setKind($kind)
  54. {
  55. $this->kind = $kind;
  56. }
  57. public function getKind()
  58. {
  59. return $this->kind;
  60. }
  61. public function setName($name)
  62. {
  63. $this->name = $name;
  64. }
  65. public function getName()
  66. {
  67. return $this->name;
  68. }
  69. public function setParentUserRoleId($parentUserRoleId)
  70. {
  71. $this->parentUserRoleId = $parentUserRoleId;
  72. }
  73. public function getParentUserRoleId()
  74. {
  75. return $this->parentUserRoleId;
  76. }
  77. /**
  78. * @param Google_Service_Dfareporting_UserRolePermission
  79. */
  80. public function setPermissions($permissions)
  81. {
  82. $this->permissions = $permissions;
  83. }
  84. /**
  85. * @return Google_Service_Dfareporting_UserRolePermission
  86. */
  87. public function getPermissions()
  88. {
  89. return $this->permissions;
  90. }
  91. public function setSubaccountId($subaccountId)
  92. {
  93. $this->subaccountId = $subaccountId;
  94. }
  95. public function getSubaccountId()
  96. {
  97. return $this->subaccountId;
  98. }
  99. }