gogol-bigquery-0.4.0: Google BigQuery SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.BigQuery.DataSets.Delete

Contents

Description

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

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

dataSetsDelete Source #

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
Eq DataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.BigQuery.DataSets.Delete

Data DataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.BigQuery.DataSets.Delete

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DataSetsDelete -> c DataSetsDelete #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DataSetsDelete #

toConstr :: DataSetsDelete -> Constr #

dataTypeOf :: DataSetsDelete -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c DataSetsDelete) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DataSetsDelete) #

gmapT :: (forall b. Data b => b -> b) -> DataSetsDelete -> DataSetsDelete #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DataSetsDelete -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DataSetsDelete -> r #

gmapQ :: (forall d. Data d => d -> u) -> DataSetsDelete -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DataSetsDelete -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DataSetsDelete -> m DataSetsDelete #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DataSetsDelete -> m DataSetsDelete #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DataSetsDelete -> m DataSetsDelete #

Show DataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.BigQuery.DataSets.Delete

Generic DataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.BigQuery.DataSets.Delete

Associated Types

type Rep DataSetsDelete :: Type -> Type #

GoogleRequest DataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.BigQuery.DataSets.Delete

Associated Types

type Rs DataSetsDelete :: Type #

type Scopes DataSetsDelete :: [Symbol] #

type Rep DataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.BigQuery.DataSets.Delete

type Rep DataSetsDelete = D1 (MetaData "DataSetsDelete" "Network.Google.Resource.BigQuery.DataSets.Delete" "gogol-bigquery-0.4.0-3wbQXUDNgiIGV0tYGk98l5" False) (C1 (MetaCons "DataSetsDelete'" PrefixI True) (S1 (MetaSel (Just "_dsdDataSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_dsdProjectId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_dsdDeleteContents") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))
type Scopes DataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.BigQuery.DataSets.Delete

type Scopes DataSetsDelete = "https://www.googleapis.com/auth/bigquery" ': ("https://www.googleapis.com/auth/cloud-platform" ': ([] :: [Symbol]))
type Rs DataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.BigQuery.DataSets.Delete

type Rs DataSetsDelete = ()

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