Google_Service_Bigquery_Datasets_Resource

The "datasets" collection of methods.

Defined (1)

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

/lib/Google/Service/Bigquery.php  
  1. class Google_Service_Bigquery_Datasets_Resource extends Google_Service_Resource 
  2.  
  3. /** 
  4. * Deletes the dataset specified by the datasetId value. Before you can delete a 
  5. * dataset, you must delete all its tables, either manually or by specifying 
  6. * deleteContents. Immediately after deletion, you can create another dataset 
  7. * with the same name. (datasets.delete) 
  8. * @param string $projectId 
  9. * Project ID of the dataset being deleted 
  10. * @param string $datasetId 
  11. * Dataset ID of dataset being deleted 
  12. * @param array $optParams Optional parameters. 
  13. * @opt_param bool deleteContents 
  14. * If True, delete all the tables in the dataset. If False and the dataset contains tables, the 
  15. * request will fail. Default is False 
  16. */ 
  17. public function delete($projectId, $datasetId, $optParams = array()) 
  18. $params = array('projectId' => $projectId, 'datasetId' => $datasetId); 
  19. $params = array_merge($params, $optParams); 
  20. return $this->call('delete', array($params)); 
  21. /** 
  22. * Returns the dataset specified by datasetID. (datasets.get) 
  23. * @param string $projectId 
  24. * Project ID of the requested dataset 
  25. * @param string $datasetId 
  26. * Dataset ID of the requested dataset 
  27. * @param array $optParams Optional parameters. 
  28. * @return Google_Service_Bigquery_Dataset 
  29. */ 
  30. public function get($projectId, $datasetId, $optParams = array()) 
  31. $params = array('projectId' => $projectId, 'datasetId' => $datasetId); 
  32. $params = array_merge($params, $optParams); 
  33. return $this->call('get', array($params), "Google_Service_Bigquery_Dataset"); 
  34. /** 
  35. * Creates a new empty dataset. (datasets.insert) 
  36. * @param string $projectId 
  37. * Project ID of the new dataset 
  38. * @param Google_Dataset $postBody 
  39. * @param array $optParams Optional parameters. 
  40. * @return Google_Service_Bigquery_Dataset 
  41. */ 
  42. public function insert($projectId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) 
  43. $params = array('projectId' => $projectId, 'postBody' => $postBody); 
  44. $params = array_merge($params, $optParams); 
  45. return $this->call('insert', array($params), "Google_Service_Bigquery_Dataset"); 
  46. /** 
  47. * Lists all the datasets in the specified project to which the caller has read 
  48. * access; however, a project owner can list (but not necessarily get) all 
  49. * datasets in his project. (datasets.listDatasets) 
  50. * @param string $projectId 
  51. * Project ID of the datasets to be listed 
  52. * @param array $optParams Optional parameters. 
  53. * @opt_param string pageToken 
  54. * Page token, returned by a previous call, to request the next page of results 
  55. * @opt_param bool all 
  56. * Whether to list all datasets, including hidden ones 
  57. * @opt_param string maxResults 
  58. * The maximum number of results to return 
  59. * @return Google_Service_Bigquery_DatasetList 
  60. */ 
  61. public function listDatasets($projectId, $optParams = array()) 
  62. $params = array('projectId' => $projectId); 
  63. $params = array_merge($params, $optParams); 
  64. return $this->call('list', array($params), "Google_Service_Bigquery_DatasetList"); 
  65. /** 
  66. * Updates information in an existing dataset. The update method replaces the 
  67. * entire dataset resource, whereas the patch method only replaces fields that 
  68. * are provided in the submitted dataset resource. This method supports patch 
  69. * semantics. (datasets.patch) 
  70. * @param string $projectId 
  71. * Project ID of the dataset being updated 
  72. * @param string $datasetId 
  73. * Dataset ID of the dataset being updated 
  74. * @param Google_Dataset $postBody 
  75. * @param array $optParams Optional parameters. 
  76. * @return Google_Service_Bigquery_Dataset 
  77. */ 
  78. public function patch($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) 
  79. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); 
  80. $params = array_merge($params, $optParams); 
  81. return $this->call('patch', array($params), "Google_Service_Bigquery_Dataset"); 
  82. /** 
  83. * Updates information in an existing dataset. The update method replaces the 
  84. * entire dataset resource, whereas the patch method only replaces fields that 
  85. * are provided in the submitted dataset resource. (datasets.update) 
  86. * @param string $projectId 
  87. * Project ID of the dataset being updated 
  88. * @param string $datasetId 
  89. * Dataset ID of the dataset being updated 
  90. * @param Google_Dataset $postBody 
  91. * @param array $optParams Optional parameters. 
  92. * @return Google_Service_Bigquery_Dataset 
  93. */ 
  94. public function update($projectId, $datasetId, Google_Service_Bigquery_Dataset $postBody, $optParams = array()) 
  95. $params = array('projectId' => $projectId, 'datasetId' => $datasetId, 'postBody' => $postBody); 
  96. $params = array_merge($params, $optParams); 
  97. return $this->call('update', array($params), "Google_Service_Bigquery_Dataset");