Google_Service_Analytics_ManagementWebpropertyUserLinks_Resource

The "webpropertyUserLinks" collection of methods.

Defined (1)

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

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