BigQuery API v2 (revision 86)



com.google.api.services.bigquery
Class Bigquery.Datasets

java.lang.Object
  extended by com.google.api.services.bigquery.Bigquery.Datasets
Enclosing class:
Bigquery

public class Bigquery.Datasets
extends Object

The "datasets" collection of methods.


Nested Class Summary
 class Bigquery.Datasets.Delete
           
 class Bigquery.Datasets.Get
           
 class Bigquery.Datasets.Insert
           
 class Bigquery.Datasets.List
           
 class Bigquery.Datasets.Patch
           
 class Bigquery.Datasets.Update
           
 
Constructor Summary
Bigquery.Datasets()
           
 
Method Summary
 Bigquery.Datasets.Delete delete(String projectId, String datasetId)
          Deletes the dataset specified by 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 the datasets in the specified project to which the caller has read access; however, a project owner can list (but not necessarily get) all datasets in his project.
 Bigquery.Datasets.Patch patch(String projectId, String datasetId, Dataset content)
          Updates information in an existing dataset, specified by datasetId.
 Bigquery.Datasets.Update update(String projectId, String datasetId, Dataset content)
          Updates information in an existing dataset, specified by datasetId.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bigquery.Datasets

public Bigquery.Datasets()
Method Detail

delete

public Bigquery.Datasets.Delete delete(String projectId,
                                       String datasetId)
                                throws IOException
Deletes the dataset specified by 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 the bigquery server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
projectId - Project ID of the dataset being deleted
datasetId - 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 the bigquery server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
projectId - Project ID of the requested dataset
datasetId - 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 the bigquery server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
projectId - 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 the datasets in the specified project to which the caller has read access; however, a project owner can list (but not necessarily get) all datasets in his project. Create a request for the method "datasets.list". This request holds the parameters needed by the the bigquery server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
projectId - 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, specified by datasetId. Properties not included in the submitted resource will not be changed. If you include the access property without any values assigned, the request will fail as you must specify at least one owner for a dataset. This method supports patch semantics. Create a request for the method "datasets.patch". This request holds the parameters needed by the the bigquery server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
projectId - Project ID of the dataset being updated
datasetId - Dataset ID of the dataset being updated
content - the Dataset
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, specified by datasetId. Properties not included in the submitted resource will not be changed. If you include the access property without any values assigned, the request will fail as you must specify at least one owner for a dataset. Create a request for the method "datasets.update". This request holds the parameters needed by the the bigquery server. After setting any optional parameters, call the AbstractGoogleClientRequest.execute() method to invoke the remote operation.

Parameters:
projectId - Project ID of the dataset being updated
datasetId - Dataset ID of the dataset being updated
content - the Dataset
Returns:
the request
Throws:
IOException