Google_TabledataServiceResource

The "tabledata" collection of methods.

Defined (1)

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

/inc/google-api-php-client/src/contrib/Google_BigqueryService.php  
  1. class Google_TabledataServiceResource extends Google_ServiceResource { 
  2.  
  3.  
  4. /** 
  5. * Retrieves table data from a specified set of rows. (tabledata.list) 
  6. * @param string $projectId Project ID of the table to read 
  7. * @param string $datasetId Dataset ID of the table to read 
  8. * @param string $tableId Table ID of the table to read 
  9. * @param array $optParams Optional parameters. 
  10. * @opt_param string maxResults Maximum number of results to return 
  11. * @opt_param string pageToken Page token, returned by a previous call, identifying the result set 
  12. * @opt_param string startIndex Zero-based index of the starting row to read 
  13. * @return Google_TableDataList 
  14. */ 
  15. public function listTabledata($projectId, $datasetId, $tableId, $optParams = array()) { 
  16. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId); 
  17. $params = array_merge($params, $optParams); 
  18. $data = $this->__call('list', array($params)); 
  19. if ($this->useObjects()) { 
  20. return new Google_TableDataList($data); 
  21. } else { 
  22. return $data;