Google_ManagementProfileUserLinksServiceResource

The "profileUserLinks" 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_ManagementProfileUserLinksServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Removes a user from the given view (profile). (profileUserLinks.delete) 
  5. * @param string $accountId Account ID to delete the user link for. 
  6. * @param string $webPropertyId Web Property ID to delete the user link for. 
  7. * @param string $profileId View (Profile) ID to delete the user link for. 
  8. * @param string $linkId Link ID to delete the user link for. 
  9. * @param array $optParams Optional parameters. 
  10. */ 
  11. public function delete($accountId, $webPropertyId, $profileId, $linkId, $optParams = array()) { 
  12. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('delete', array($params)); 
  15. return $data; 
  16. /** 
  17. * Adds a new user to the given view (profile). (profileUserLinks.insert) 
  18. * @param string $accountId Account ID to create the user link for. 
  19. * @param string $webPropertyId Web Property ID to create the user link for. 
  20. * @param string $profileId View (Profile) ID to create the user link for. 
  21. * @param Google_EntityUserLink $postBody 
  22. * @param array $optParams Optional parameters. 
  23. * @return Google_EntityUserLink 
  24. */ 
  25. public function insert($accountId, $webPropertyId, $profileId, Google_EntityUserLink $postBody, $optParams = array()) { 
  26. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'postBody' => $postBody); 
  27. $params = array_merge($params, $optParams); 
  28. $data = $this->__call('insert', array($params)); 
  29. if ($this->useObjects()) { 
  30. return new Google_EntityUserLink($data); 
  31. } else { 
  32. return $data; 
  33. /** 
  34. * Lists profile-user links for a given view (profile). (profileUserLinks.list) 
  35. * @param string $accountId Account ID which the given view (profile) belongs to. 
  36. * @param string $webPropertyId Web Property ID which the given view (profile) belongs to. 
  37. * @param string $profileId View (Profile) ID to retrieve the profile-user links for 
  38. * @param array $optParams Optional parameters. 
  39. * @opt_param int max-results The maximum number of profile-user links to include in this response. 
  40. * @opt_param int start-index An index of the first profile-user link to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. 
  41. * @return Google_EntityUserLinks 
  42. */ 
  43. public function listManagementProfileUserLinks($accountId, $webPropertyId, $profileId, $optParams = array()) { 
  44. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId); 
  45. $params = array_merge($params, $optParams); 
  46. $data = $this->__call('list', array($params)); 
  47. if ($this->useObjects()) { 
  48. return new Google_EntityUserLinks($data); 
  49. } else { 
  50. return $data; 
  51. /** 
  52. * Updates permissions for an existing user on the given view (profile). 
  53. * (profileUserLinks.update) 
  54. * @param string $accountId Account ID to update the user link for. 
  55. * @param string $webPropertyId Web Property ID to update the user link for. 
  56. * @param string $profileId View (Profile ID) to update the user link for. 
  57. * @param string $linkId Link ID to update the user link for. 
  58. * @param Google_EntityUserLink $postBody 
  59. * @param array $optParams Optional parameters. 
  60. * @return Google_EntityUserLink 
  61. */ 
  62. public function update($accountId, $webPropertyId, $profileId, $linkId, Google_EntityUserLink $postBody, $optParams = array()) { 
  63. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'profileId' => $profileId, 'linkId' => $linkId, 'postBody' => $postBody); 
  64. $params = array_merge($params, $optParams); 
  65. $data = $this->__call('update', array($params)); 
  66. if ($this->useObjects()) { 
  67. return new Google_EntityUserLink($data); 
  68. } else { 
  69. return $data;