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.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 # 
Instance details

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

Data UsersDataSourcesDataSetsPatch Source # 
Instance details

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

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 # 
Instance details

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

Generic UsersDataSourcesDataSetsPatch Source # 
Instance details

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

Associated Types

type Rep UsersDataSourcesDataSetsPatch :: Type -> Type #

GoogleRequest UsersDataSourcesDataSetsPatch Source # 
Instance details

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

type Rep UsersDataSourcesDataSetsPatch Source # 
Instance details

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

type Rep UsersDataSourcesDataSetsPatch = D1 (MetaData "UsersDataSourcesDataSetsPatch" "Network.Google.Resource.Fitness.Users.DataSources.DataSets.Patch" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "UsersDataSourcesDataSetsPatch'" PrefixI True) ((S1 (MetaSel (Just "_udsdspDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_udsdspPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DataSet)) :*: (S1 (MetaSel (Just "_udsdspUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_udsdspDataSetId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_udsdspCurrentTimeMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))))
type Scopes UsersDataSourcesDataSetsPatch Source # 
Instance details

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

type Scopes UsersDataSourcesDataSetsPatch = "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 UsersDataSourcesDataSetsPatch Source # 
Instance details

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

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.