gogol-fitness-0.1.1: 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.Patch

Contents

Description

Adds data points to a dataset. The dataset need not be previously created. All points within the given dataset will be returned with subsquent calls to retrieve this dataset. Data points can belong to more than one dataset. This method does not use patch semantics.

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

Synopsis

REST Resource

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

A resource alias for fitness.users.dataSources.datasets.patch method which the UsersDataSourcesDataSetsPatch request conforms to.

Creating a Request

data UsersDataSourcesDataSetsPatch Source #

Adds data points to a dataset. The dataset need not be previously created. All points within the given dataset will be returned with subsquent calls to retrieve this dataset. Data points can belong to more than one dataset. This method does not use patch semantics.

See: usersDataSourcesDataSetsPatch smart constructor.

Instances

Eq UsersDataSourcesDataSetsPatch Source # 
Data UsersDataSourcesDataSetsPatch Source # 

Methods

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

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

toConstr :: UsersDataSourcesDataSetsPatch -> Constr #

dataTypeOf :: UsersDataSourcesDataSetsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersDataSourcesDataSetsPatch Source # 
Generic UsersDataSourcesDataSetsPatch Source # 
GoogleRequest UsersDataSourcesDataSetsPatch Source # 
type Rep UsersDataSourcesDataSetsPatch Source # 
type Rep UsersDataSourcesDataSetsPatch = D1 (MetaData "UsersDataSourcesDataSetsPatch" "Network.Google.Resource.Fitness.Users.DataSources.DataSets.Patch" "gogol-fitness-0.1.1-4uNqbPVv9rAAtyPoQ0vErH" False) (C1 (MetaCons "UsersDataSourcesDataSetsPatch'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_udsdspDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_udsdspPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DataSet))) ((:*:) (S1 (MetaSel (Just Symbol "_udsdspUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_udsdspDataSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_udsdspCurrentTimeMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))))))))
type Scopes UsersDataSourcesDataSetsPatch Source # 
type Scopes UsersDataSourcesDataSetsPatch = (:) Symbol "https://www.googleapis.com/auth/fitness.activity.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.body.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.location.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.nutrition.write" ([] Symbol))))
type Rs UsersDataSourcesDataSetsPatch Source # 

Request Lenses

udsdspDataSourceId :: Lens' UsersDataSourcesDataSetsPatch Text Source #

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

udsdspUserId :: Lens' UsersDataSourcesDataSetsPatch Text Source #

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

udsdspDataSetId :: Lens' UsersDataSourcesDataSetsPatch 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.

udsdspCurrentTimeMillis :: Lens' UsersDataSourcesDataSetsPatch (Maybe Int64) Source #

The client's current time in milliseconds since epoch. Note that the minStartTimeNs and maxEndTimeNs properties in the request body are in nanoseconds instead of milliseconds.