Class DatasetsResource
The "datasets" collection of methods.
Inheritance
Inherited Members
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 | Project ID of the dataset being deleted |
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 |
---|---|---|
string | projectId | Project ID of the requested dataset |
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. |
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 |
---|---|---|
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. |
string | projectId | Project ID of the dataset being updated |
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. |
string | projectId | Project ID of the dataset being updated |
string | datasetId | Dataset ID of the dataset being updated |
Returns
Type | Description |
---|---|
DatasetsResource.UpdateRequest |