gogol-fitness-0.4.0: Google Fitness 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.Fitness.Users.DataSources.DataSets.Delete

Contents

Description

Performs an inclusive delete of all data points whose start and end times have any overlap with the time range specified by the dataset ID. For most data types, the entire data point will be deleted. For data types where the time span represents a consistent value (such as com.google.activity.segment), and a data point straddles either end point of the dataset, only the overlapping portion of the data point will be deleted.

See: Fitness Reference for fitness.users.dataSources.datasets.delete.

Synopsis

REST Resource

type UsersDataSourcesDataSetsDeleteResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataSources" :> (Capture "dataSourceId" Text :> ("datasets" :> (Capture "datasetId" Text :> (QueryParam "modifiedTimeMillis" (Textual Int64) :> (QueryParam "currentTimeMillis" (Textual Int64) :> (QueryParam "alt" AltJSON :> Delete '[JSON] ())))))))))) Source #

A resource alias for fitness.users.dataSources.datasets.delete method which the UsersDataSourcesDataSetsDelete request conforms to.

Creating a Request

data UsersDataSourcesDataSetsDelete Source #

Performs an inclusive delete of all data points whose start and end times have any overlap with the time range specified by the dataset ID. For most data types, the entire data point will be deleted. For data types where the time span represents a consistent value (such as com.google.activity.segment), and a data point straddles either end point of the dataset, only the overlapping portion of the data point will be deleted.

See: usersDataSourcesDataSetsDelete smart constructor.

Instances
Eq UsersDataSourcesDataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.DataSets.Delete

Data UsersDataSourcesDataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.DataSets.Delete

Methods

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

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

toConstr :: UsersDataSourcesDataSetsDelete -> Constr #

dataTypeOf :: UsersDataSourcesDataSetsDelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersDataSourcesDataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.DataSets.Delete

Generic UsersDataSourcesDataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.DataSets.Delete

Associated Types

type Rep UsersDataSourcesDataSetsDelete :: Type -> Type #

GoogleRequest UsersDataSourcesDataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.DataSets.Delete

type Rep UsersDataSourcesDataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.DataSets.Delete

type Rep UsersDataSourcesDataSetsDelete = D1 (MetaData "UsersDataSourcesDataSetsDelete" "Network.Google.Resource.Fitness.Users.DataSources.DataSets.Delete" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "UsersDataSourcesDataSetsDelete'" PrefixI True) ((S1 (MetaSel (Just "_udsdsdDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_udsdsdUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_udsdsdDataSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_udsdsdModifiedTimeMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_udsdsdCurrentTimeMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))))
type Scopes UsersDataSourcesDataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.DataSets.Delete

type Scopes UsersDataSourcesDataSetsDelete = "https://www.googleapis.com/auth/fitness.activity.write" ': ("https://www.googleapis.com/auth/fitness.blood_glucose.write" ': ("https://www.googleapis.com/auth/fitness.blood_pressure.write" ': ("https://www.googleapis.com/auth/fitness.body.write" ': ("https://www.googleapis.com/auth/fitness.body_temperature.write" ': ("https://www.googleapis.com/auth/fitness.location.write" ': ("https://www.googleapis.com/auth/fitness.nutrition.write" ': ("https://www.googleapis.com/auth/fitness.oxygen_saturation.write" ': ("https://www.googleapis.com/auth/fitness.reproductive_health.write" ': ([] :: [Symbol])))))))))
type Rs UsersDataSourcesDataSetsDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.DataSets.Delete

Request Lenses

udsdsdDataSourceId :: Lens' UsersDataSourcesDataSetsDelete Text Source #

The data stream ID of the data source that created the dataset.

udsdsdUserId :: Lens' UsersDataSourcesDataSetsDelete Text Source #

Delete a dataset for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.

udsdsdDataSetId :: Lens' UsersDataSourcesDataSetsDelete Text Source #

Dataset identifier that is a composite of the minimum data point start time and maximum data point end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-endTime" where startTime and endTime are 64 bit integers.

udsdsdModifiedTimeMillis :: Lens' UsersDataSourcesDataSetsDelete (Maybe Int64) Source #

When the operation was performed on the client.

udsdsdCurrentTimeMillis :: Lens' UsersDataSourcesDataSetsDelete (Maybe Int64) Source #

The client's current time in milliseconds since epoch.