Show / Hide Table of Contents

Class DatasetsResource

The "datasets" collection of methods.

Inheritance
System.Object
DatasetsResource
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.Bigquery.v2
Assembly: Google.Apis.Bigquery.v2.dll
Syntax
public class DatasetsResource

Constructors

DatasetsResource(IClientService)

Constructs a new resource.

Declaration
public DatasetsResource(IClientService service)
Parameters
Type Name Description
Google.Apis.Services.IClientService service

Methods

Delete(String, String)

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.

Declaration
public virtual DatasetsResource.DeleteRequest Delete(string projectId, string datasetId)
Parameters
Type Name Description
System.String projectId

Project ID of the dataset being deleted

System.String datasetId

Dataset ID of dataset being deleted

Returns
Type Description
DatasetsResource.DeleteRequest

Get(String, String)

Returns the dataset specified by datasetID.

Declaration
public virtual DatasetsResource.GetRequest Get(string projectId, string datasetId)
Parameters
Type Name Description
System.String projectId

Project ID of the requested dataset

System.String datasetId

Dataset ID of the requested dataset

Returns
Type Description
DatasetsResource.GetRequest

Insert(Dataset, String)

Creates a new empty dataset.

Declaration
public virtual DatasetsResource.InsertRequest Insert(Dataset body, string projectId)
Parameters
Type Name Description
Dataset body

The body of the request.

System.String projectId

Project ID of the new dataset

Returns
Type Description
DatasetsResource.InsertRequest

List(String)

Lists all datasets in the specified project to which you have been granted the READER dataset role.

Declaration
public virtual DatasetsResource.ListRequest List(string projectId)
Parameters
Type Name Description
System.String projectId

Project ID of the datasets to be listed

Returns
Type Description
DatasetsResource.ListRequest

Patch(Dataset, String, String)

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 patch semantics.

Declaration
public virtual DatasetsResource.PatchRequest Patch(Dataset body, string projectId, string datasetId)
Parameters
Type Name Description
Dataset body

The body of the request.

System.String projectId

Project ID of the dataset being updated

System.String datasetId

Dataset ID of the dataset being updated

Returns
Type Description
DatasetsResource.PatchRequest

Update(Dataset, String, String)

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.

Declaration
public virtual DatasetsResource.UpdateRequest Update(Dataset body, string projectId, string datasetId)
Parameters
Type Name Description
Dataset body

The body of the request.

System.String projectId

Project ID of the dataset being updated

System.String datasetId

Dataset ID of the dataset being updated

Returns
Type Description
DatasetsResource.UpdateRequest
In This Article
Back to top