Datasets
class Datasets extends Resource (View source)
The "datasets" collection of methods.
Typical usage is:
$bigqueryService = new Google\Service\Bigquery(...);
$datasets = $bigqueryService->datasets;
Methods
Deletes the dataset specified by the datasetId value. Before you can delete a dataset, you must delete all its tables, either manually or by specifying deleteContents. Immediately after deletion, you can create another dataset with the same name. (datasets.delete)
Returns the dataset specified by datasetID. (datasets.get)
Lists all datasets in the specified project to which the user has been granted the READER dataset role. (datasets.listDatasets)
Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. This method supports RFC5789 patch semantics. (datasets.patch)
Undeletes a dataset which is within time travel window based on datasetId. If a time is specified, the dataset version deleted at that time is undeleted, else the last live version is undeleted. (datasets.undelete)
Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. (datasets.update)
Details
delete(string $projectId, string $datasetId, array $optParams = [])
Deletes the dataset specified by the datasetId value. Before you can delete a dataset, you must delete all its tables, either manually or by specifying deleteContents. Immediately after deletion, you can create another dataset with the same name. (datasets.delete)
Dataset
get(string $projectId, string $datasetId, array $optParams = [])
Returns the dataset specified by datasetID. (datasets.get)
Dataset
insert(string $projectId, Dataset $postBody, array $optParams = [])
Creates a new empty dataset. (datasets.insert)
DatasetList
listDatasets(string $projectId, array $optParams = [])
Lists all datasets in the specified project to which the user has been granted the READER dataset role. (datasets.listDatasets)
Dataset
patch(string $projectId, string $datasetId, Dataset $postBody, array $optParams = [])
Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. This method supports RFC5789 patch semantics. (datasets.patch)
Dataset
undelete(string $projectId, string $datasetId, UndeleteDatasetRequest $postBody, array $optParams = [])
Undeletes a dataset which is within time travel window based on datasetId. If a time is specified, the dataset version deleted at that time is undeleted, else the last live version is undeleted. (datasets.undelete)
Dataset
update(string $projectId, string $datasetId, Dataset $postBody, array $optParams = [])
Updates information in an existing dataset. The update method replaces the entire dataset resource, whereas the patch method only replaces fields that are provided in the submitted dataset resource. (datasets.update)