Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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.
See: BigQuery API Reference for bigquery.datasets.delete
.
Synopsis
- type DataSetsDeleteResource = "bigquery" :> ("v2" :> ("projects" :> (Capture "projectId" Text :> ("datasets" :> (Capture "datasetId" Text :> (QueryParam "deleteContents" Bool :> (QueryParam "alt" AltJSON :> Delete '[JSON] ())))))))
- dataSetsDelete :: Text -> Text -> DataSetsDelete
- data DataSetsDelete
- dsdDataSetId :: Lens' DataSetsDelete Text
- dsdProjectId :: Lens' DataSetsDelete Text
- dsdDeleteContents :: Lens' DataSetsDelete (Maybe Bool)
REST Resource
type DataSetsDeleteResource = "bigquery" :> ("v2" :> ("projects" :> (Capture "projectId" Text :> ("datasets" :> (Capture "datasetId" Text :> (QueryParam "deleteContents" Bool :> (QueryParam "alt" AltJSON :> Delete '[JSON] ()))))))) Source #
A resource alias for bigquery.datasets.delete
method which the
DataSetsDelete
request conforms to.
Creating a Request
Creates a value of DataSetsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DataSetsDelete Source #
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.
See: dataSetsDelete
smart constructor.
Instances
Request Lenses
dsdDataSetId :: Lens' DataSetsDelete Text Source #
Dataset ID of dataset being deleted
dsdProjectId :: Lens' DataSetsDelete Text Source #
Project ID of the dataset being deleted
dsdDeleteContents :: Lens' DataSetsDelete (Maybe Bool) Source #
If True, delete all the tables in the dataset. If False and the dataset contains tables, the request will fail. Default is False