Google_Service_Analytics_ManagementAccountUserLinks_Resource

The "accountUserLinks" collection of methods.

Defined (1)

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

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