Google_ManagementUploadsServiceResource

The "uploads" 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_ManagementUploadsServiceResource extends Google_ServiceResource { 
  2.  
  3. /** 
  4. * Delete data associated with a previous upload. (uploads.deleteUploadData) 
  5. * @param string $accountId Account Id for the uploads to be deleted. 
  6. * @param string $webPropertyId Web property Id for the uploads to be deleted. 
  7. * @param string $customDataSourceId Custom data source Id for the uploads to be deleted. 
  8. * @param Google_AnalyticsDataimportDeleteUploadDataRequest $postBody 
  9. * @param array $optParams Optional parameters. 
  10. */ 
  11. public function deleteUploadData($accountId, $webPropertyId, $customDataSourceId, Google_AnalyticsDataimportDeleteUploadDataRequest $postBody, $optParams = array()) { 
  12. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'postBody' => $postBody); 
  13. $params = array_merge($params, $optParams); 
  14. $data = $this->__call('deleteUploadData', array($params)); 
  15. return $data; 
  16. /** 
  17. * List uploads to which the user has access. (uploads.get) 
  18. * @param string $accountId Account Id for the upload to retrieve. 
  19. * @param string $webPropertyId Web property Id for the upload to retrieve. 
  20. * @param string $customDataSourceId Custom data source Id for upload to retrieve. 
  21. * @param string $uploadId Upload Id to retrieve. 
  22. * @param array $optParams Optional parameters. 
  23. * @return Google_Upload 
  24. */ 
  25. public function get($accountId, $webPropertyId, $customDataSourceId, $uploadId, $optParams = array()) { 
  26. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId, 'uploadId' => $uploadId); 
  27. $params = array_merge($params, $optParams); 
  28. $data = $this->__call('get', array($params)); 
  29. if ($this->useObjects()) { 
  30. return new Google_Upload($data); 
  31. } else { 
  32. return $data; 
  33. /** 
  34. * List uploads to which the user has access. (uploads.list) 
  35. * @param string $accountId Account Id for the uploads to retrieve. 
  36. * @param string $webPropertyId Web property Id for the uploads to retrieve. 
  37. * @param string $customDataSourceId Custom data source Id for uploads to retrieve. 
  38. * @param array $optParams Optional parameters. 
  39. * @opt_param int max-results The maximum number of uploads to include in this response. 
  40. * @opt_param int start-index A 1-based index of the first upload to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter. 
  41. * @return Google_Uploads 
  42. */ 
  43. public function listManagementUploads($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) { 
  44. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); 
  45. $params = array_merge($params, $optParams); 
  46. $data = $this->__call('list', array($params)); 
  47. if ($this->useObjects()) { 
  48. return new Google_Uploads($data); 
  49. } else { 
  50. return $data; 
  51. /** 
  52. * Upload/Overwrite data for a custom data source. (uploads.uploadData) 
  53. * @param string $accountId Account Id associated with the upload. 
  54. * @param string $webPropertyId Web property UA-string associated with the upload. 
  55. * @param string $customDataSourceId Custom data source Id to which the data being uploaded belongs. 
  56. * @param array $optParams Optional parameters. 
  57. * @return Google_Upload 
  58. */ 
  59. public function uploadData($accountId, $webPropertyId, $customDataSourceId, $optParams = array()) { 
  60. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'customDataSourceId' => $customDataSourceId); 
  61. $params = array_merge($params, $optParams); 
  62. $data = $this->__call('uploadData', array($params)); 
  63. if ($this->useObjects()) { 
  64. return new Google_Upload($data); 
  65. } else { 
  66. return $data;