gogol-fitness-0.3.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] ())))))))))) #

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

Creating a Request

usersDataSourcesDataSetsDelete #

Creates a value of UsersDataSourcesDataSetsDelete with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data UsersDataSourcesDataSetsDelete #

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 # 
Data UsersDataSourcesDataSetsDelete # 

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 # 
Generic UsersDataSourcesDataSetsDelete # 
GoogleRequest UsersDataSourcesDataSetsDelete # 
type Rep UsersDataSourcesDataSetsDelete # 
type Rep UsersDataSourcesDataSetsDelete = D1 (MetaData "UsersDataSourcesDataSetsDelete" "Network.Google.Resource.Fitness.Users.DataSources.DataSets.Delete" "gogol-fitness-0.3.0-JmHHvYyhBJE5MQYvnGvwrt" False) (C1 (MetaCons "UsersDataSourcesDataSetsDelete'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_udsdsdDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_udsdsdUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_udsdsdDataSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_udsdsdModifiedTimeMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) (S1 (MetaSel (Just Symbol "_udsdsdCurrentTimeMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))))))))
type Scopes UsersDataSourcesDataSetsDelete # 
type Scopes UsersDataSourcesDataSetsDelete = (:) Symbol "https://www.googleapis.com/auth/fitness.activity.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.blood_glucose.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.blood_pressure.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.body.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.body_temperature.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.location.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.nutrition.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.oxygen_saturation.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.reproductive_health.write" ([] Symbol)))))))))
type Rs UsersDataSourcesDataSetsDelete # 

Request Lenses

udsdsdDataSourceId :: Lens' UsersDataSourcesDataSetsDelete Text #

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

udsdsdUserId :: Lens' UsersDataSourcesDataSetsDelete Text #

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 #

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) #

When the operation was performed on the client.

udsdsdCurrentTimeMillis :: Lens' UsersDataSourcesDataSetsDelete (Maybe Int64) #

The client's current time in milliseconds since epoch.