Google_Service_Bigquery_Tables_Resource

The "tables" collection of methods.

Defined (1)

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

/includes/api-libs/Google/Service/Bigquery.php  
  1. class Google_Service_Bigquery_Tables_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Deletes the table specified by tableId from the dataset. If the table 
  5. * contains data, all the data will be deleted. (tables.delete) 
  6. * @param string $projectId Project ID of the table to delete 
  7. * @param string $datasetId Dataset ID of the table to delete 
  8. * @param string $tableId Table ID of the table to delete 
  9. * @param array $optParams Optional parameters. 
  10. */ 
  11. public function delete($projectId, $datasetId, $tableId, $optParams = array()) 
  12. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId); 
  13. $params = array_merge($params, $optParams); 
  14. return $this->call('delete', array($params)); 
  15.  
  16. /** 
  17. * Gets the specified table resource by table ID. This method does not return 
  18. * the data in the table, it only returns the table resource, which describes 
  19. * the structure of this table. (tables.get) 
  20. * @param string $projectId Project ID of the requested table 
  21. * @param string $datasetId Dataset ID of the requested table 
  22. * @param string $tableId Table ID of the requested table 
  23. * @param array $optParams Optional parameters. 
  24. * @return Google_Service_Bigquery_Table 
  25. */ 
  26. public function get($projectId, $datasetId, $tableId, $optParams = array()) 
  27. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId); 
  28. $params = array_merge($params, $optParams); 
  29. return $this->call('get', array($params), "Google_Service_Bigquery_Table"); 
  30.  
  31. /** 
  32. * Creates a new, empty table in the dataset. (tables.insert) 
  33. * @param string $projectId Project ID of the new table 
  34. * @param string $datasetId Dataset ID of the new table 
  35. * @param Google_Table $postBody 
  36. * @param array $optParams Optional parameters. 
  37. * @return Google_Service_Bigquery_Table 
  38. */ 
  39. public function insert($projectId, $datasetId, Google_Service_Bigquery_Table $postBody, $optParams = array()) 
  40. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); 
  41. $params = array_merge($params, $optParams); 
  42. return $this->call('insert', array($params), "Google_Service_Bigquery_Table"); 
  43.  
  44. /** 
  45. * Lists all tables in the specified dataset. (tables.listTables) 
  46. * @param string $projectId Project ID of the tables to list 
  47. * @param string $datasetId Dataset ID of the tables to list 
  48. * @param array $optParams Optional parameters. 
  49. * @opt_param string pageToken Page token, returned by a previous call, to 
  50. * request the next page of results 
  51. * @opt_param string maxResults Maximum number of results to return 
  52. * @return Google_Service_Bigquery_TableList 
  53. */ 
  54. public function listTables($projectId, $datasetId, $optParams = array()) 
  55. $params = array('projectId' => $projectId, 'datasetId' => $datasetId); 
  56. $params = array_merge($params, $optParams); 
  57. return $this->call('list', array($params), "Google_Service_Bigquery_TableList"); 
  58.  
  59. /** 
  60. * Updates information in an existing table. The update method replaces the 
  61. * entire table resource, whereas the patch method only replaces fields that are 
  62. * provided in the submitted table resource. This method supports patch 
  63. * semantics. (tables.patch) 
  64. * @param string $projectId Project ID of the table to update 
  65. * @param string $datasetId Dataset ID of the table to update 
  66. * @param string $tableId Table ID of the table to update 
  67. * @param Google_Table $postBody 
  68. * @param array $optParams Optional parameters. 
  69. * @return Google_Service_Bigquery_Table 
  70. */ 
  71. public function patch($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array()) 
  72. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody); 
  73. $params = array_merge($params, $optParams); 
  74. return $this->call('patch', array($params), "Google_Service_Bigquery_Table"); 
  75.  
  76. /** 
  77. * Updates information in an existing table. The update method replaces the 
  78. * entire table resource, whereas the patch method only replaces fields that are 
  79. * provided in the submitted table resource. (tables.update) 
  80. * @param string $projectId Project ID of the table to update 
  81. * @param string $datasetId Dataset ID of the table to update 
  82. * @param string $tableId Table ID of the table to update 
  83. * @param Google_Table $postBody 
  84. * @param array $optParams Optional parameters. 
  85. * @return Google_Service_Bigquery_Table 
  86. */ 
  87. public function update($projectId, $datasetId, $tableId, Google_Service_Bigquery_Table $postBody, $optParams = array()) 
  88. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'tableId' => $tableId, 'postBody' => $postBody); 
  89. $params = array_merge($params, $optParams); 
  90. return $this->call('update', array($params), "Google_Service_Bigquery_Table");