Show / Hide Table of Contents

Class DatasetsResource

The "datasets" collection of methods.

Inheritance
object
DatasetsResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
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
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
string projectId

Required. Project ID of the dataset being deleted

string datasetId

Required. 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
string projectId

Required. Project ID of the requested dataset

string datasetId

Required. 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.

string projectId

Required. Project ID of the new dataset

Returns
Type Description
DatasetsResource.InsertRequest

List(string)

Lists all datasets in the specified project to which the user has been granted the READER dataset role.

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

Required. 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 RFC5789 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.

string projectId

Required. Project ID of the dataset being updated

string datasetId

Required. Dataset ID of the dataset being updated

Returns
Type Description
DatasetsResource.PatchRequest

Undelete(UndeleteDatasetRequest, string, string)

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.

Declaration
public virtual DatasetsResource.UndeleteRequest Undelete(UndeleteDatasetRequest body, string projectId, string datasetId)
Parameters
Type Name Description
UndeleteDatasetRequest body

The body of the request.

string projectId

Required. Project ID of the dataset to be undeleted

string datasetId

Required. Dataset ID of dataset being deleted

Returns
Type Description
DatasetsResource.UndeleteRequest

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.

string projectId

Required. Project ID of the dataset being updated

string datasetId

Required. Dataset ID of the dataset being updated

Returns
Type Description
DatasetsResource.UpdateRequest
In this article
Back to top Generated by DocFX