Google_ManagementWebpropertyUserLinksServiceResource

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