Google_Service_Analytics_ManagementProfileUserLinks_Resource

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