target.apidocs.com.google.api.services.bigquery.Bigquery.Datasets.html Maven / Gradle / Ivy
Bigquery.Datasets (BigQuery API v2-rev20240727-2.0.0)
com.google.api.services.bigquery
Class Bigquery.Datasets
- java.lang.Object
-
- com.google.api.services.bigquery.Bigquery.Datasets
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Bigquery.Datasets.Delete
class
Bigquery.Datasets.Get
class
Bigquery.Datasets.Insert
class
Bigquery.Datasets.List
class
Bigquery.Datasets.Patch
class
Bigquery.Datasets.Undelete
class
Bigquery.Datasets.Update
-
Constructor Summary
Constructors
Constructor and Description
Datasets()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Bigquery.Datasets.Delete
delete(String projectId,
String datasetId)
Deletes the dataset specified by the datasetId value.
Bigquery.Datasets.Get
get(String projectId,
String datasetId)
Returns the dataset specified by datasetID.
Bigquery.Datasets.Insert
insert(String projectId,
Dataset content)
Creates a new empty dataset.
Bigquery.Datasets.List
list(String projectId)
Lists all datasets in the specified project to which the user has been granted the READER dataset
role.
Bigquery.Datasets.Patch
patch(String projectId,
String datasetId,
Dataset content)
Updates information in an existing dataset.
Bigquery.Datasets.Undelete
undelete(String projectId,
String datasetId,
UndeleteDatasetRequest content)
Undeletes a dataset which is within time travel window based on datasetId.
Bigquery.Datasets.Update
update(String projectId,
String datasetId,
Dataset content)
Updates information in an existing dataset.
-
-
Method Detail
-
delete
public Bigquery.Datasets.Delete delete(String projectId,
String datasetId)
throws IOException
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.
Create a request for the method "datasets.delete".
This request holds the parameters needed by the bigquery server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- Required. Project ID of the dataset being deleted
datasetId
- Required. Dataset ID of dataset being deleted
- Returns:
- the request
- Throws:
IOException
-
get
public Bigquery.Datasets.Get get(String projectId,
String datasetId)
throws IOException
Returns the dataset specified by datasetID.
Create a request for the method "datasets.get".
This request holds the parameters needed by the bigquery server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- Required. Project ID of the requested dataset
datasetId
- Required. Dataset ID of the requested dataset
- Returns:
- the request
- Throws:
IOException
-
insert
public Bigquery.Datasets.Insert insert(String projectId,
Dataset content)
throws IOException
Creates a new empty dataset.
Create a request for the method "datasets.insert".
This request holds the parameters needed by the bigquery server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- Required. Project ID of the new dataset
content
- the Dataset
- Returns:
- the request
- Throws:
IOException
-
list
public Bigquery.Datasets.List list(String projectId)
throws IOException
Lists all datasets in the specified project to which the user has been granted the READER dataset
role.
Create a request for the method "datasets.list".
This request holds the parameters needed by the bigquery server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- Required. Project ID of the datasets to be listed
- Returns:
- the request
- Throws:
IOException
-
patch
public Bigquery.Datasets.Patch patch(String projectId,
String datasetId,
Dataset content)
throws IOException
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.
Create a request for the method "datasets.patch".
This request holds the parameters needed by the bigquery server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- Required. Project ID of the dataset being updated
datasetId
- Required. Dataset ID of the dataset being updated
content
- the Dataset
- Returns:
- the request
- Throws:
IOException
-
undelete
public Bigquery.Datasets.Undelete undelete(String projectId,
String datasetId,
UndeleteDatasetRequest content)
throws IOException
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.
Create a request for the method "datasets.undelete".
This request holds the parameters needed by the bigquery server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- Required. Project ID of the dataset to be undeleted
datasetId
- Required. Dataset ID of dataset being deleted
content
- the UndeleteDatasetRequest
- Returns:
- the request
- Throws:
IOException
-
update
public Bigquery.Datasets.Update update(String projectId,
String datasetId,
Dataset content)
throws IOException
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.
Create a request for the method "datasets.update".
This request holds the parameters needed by the bigquery server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
projectId
- Required. Project ID of the dataset being updated
datasetId
- Required. Dataset ID of the dataset being updated
content
- the Dataset
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.