Google_Service_Bigquery_Tables_Resource

The "tables" collection of methods.

Defined (1)

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

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