Google_ManagementAccountUserLinksServiceResource

The "accountUserLinks" collection of methods.

Defined (1)

The class is defined in the following location(s).

/google-api-php-client/api-code/contrib/Google_AnalyticsService.php  
  1. class Google_ManagementAccountUserLinksServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Removes a user from the given account. (accountUserLinks.delete) 
  5. * @param string $accountId Account ID to delete the user link for. 
  6. * @param string $linkId Link ID to delete the user link for. 
  7. * @param array $optParams Optional parameters. 
  8. */ 
  9. public function delete($accountId, $linkId, $optParams = array()) { 
  10. $params = array('accountId' => $accountId, 'linkId' => $linkId); 
  11. $params = array_merge($params, $optParams); 
  12. $data = $this->__call('delete', array($params)); 
  13. return $data; 
  14. /** 
  15. * Adds a new user to the given account. (accountUserLinks.insert) 
  16. * @param string $accountId Account ID to create the user link for. 
  17. * @param Google_EntityUserLink $postBody 
  18. * @param array $optParams Optional parameters. 
  19. * @return Google_EntityUserLink 
  20. */ 
  21. public function insert($accountId, Google_EntityUserLink $postBody, $optParams = array()) { 
  22. $params = array('accountId' => $accountId, 'postBody' => $postBody); 
  23. $params = array_merge($params, $optParams); 
  24. $data = $this->__call('insert', array($params)); 
  25. if ($this->useObjects()) { 
  26. return new Google_EntityUserLink($data); 
  27. } else { 
  28. return $data; 
  29. /** 
  30. * Lists account-user links for a given account. (accountUserLinks.list) 
  31. * @param string $accountId Account ID to retrieve the user links for. 
  32. * @param array $optParams Optional parameters. 
  33. * @opt_param int max-results The maximum number of account-user links to include in this response. 
  34. * @opt_param int start-index An index of the first account-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. 
  35. * @return Google_EntityUserLinks 
  36. */ 
  37. public function listManagementAccountUserLinks($accountId, $optParams = array()) { 
  38. $params = array('accountId' => $accountId); 
  39. $params = array_merge($params, $optParams); 
  40. $data = $this->__call('list', array($params)); 
  41. if ($this->useObjects()) { 
  42. return new Google_EntityUserLinks($data); 
  43. } else { 
  44. return $data; 
  45. /** 
  46. * Updates permissions for an existing user on the given account. 
  47. * (accountUserLinks.update) 
  48. * @param string $accountId Account ID to update the account-user link for. 
  49. * @param string $linkId Link ID to update the account-user link for. 
  50. * @param Google_EntityUserLink $postBody 
  51. * @param array $optParams Optional parameters. 
  52. * @return Google_EntityUserLink 
  53. */ 
  54. public function update($accountId, $linkId, Google_EntityUserLink $postBody, $optParams = array()) { 
  55. $params = array('accountId' => $accountId, 'linkId' => $linkId, 'postBody' => $postBody); 
  56. $params = array_merge($params, $optParams); 
  57. $data = $this->__call('update', array($params)); 
  58. if ($this->useObjects()) { 
  59. return new Google_EntityUserLink($data); 
  60. } else { 
  61. return $data;