gogol-fitness-0.2.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.DataSet.Aggregate

Contents

Description

Aggregates data of a certain type or stream into buckets divided by a given type of boundary. Multiple data sets of multiple types and from multiple sources can be aggreated into exactly one bucket type per request.

See: Fitness Reference for fitness.users.dataset.aggregate.

Synopsis

REST Resource

type UsersDataSetAggregateResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataset:aggregate" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AggregateRequest :> Post '[JSON] AggregateResponse)))))) Source #

A resource alias for fitness.users.dataset.aggregate method which the UsersDataSetAggregate request conforms to.

Creating a Request

usersDataSetAggregate Source #

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

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

data UsersDataSetAggregate Source #

Aggregates data of a certain type or stream into buckets divided by a given type of boundary. Multiple data sets of multiple types and from multiple sources can be aggreated into exactly one bucket type per request.

See: usersDataSetAggregate smart constructor.

Instances

Eq UsersDataSetAggregate Source # 
Data UsersDataSetAggregate Source # 

Methods

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

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

toConstr :: UsersDataSetAggregate -> Constr #

dataTypeOf :: UsersDataSetAggregate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersDataSetAggregate Source # 
Generic UsersDataSetAggregate Source # 
GoogleRequest UsersDataSetAggregate Source # 
type Rep UsersDataSetAggregate Source # 
type Rep UsersDataSetAggregate = D1 (MetaData "UsersDataSetAggregate" "Network.Google.Resource.Fitness.Users.DataSet.Aggregate" "gogol-fitness-0.2.0-EEoExkwUoUX8aAdIKYcxRk" False) (C1 (MetaCons "UsersDataSetAggregate'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_udsaPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AggregateRequest)) (S1 (MetaSel (Just Symbol "_udsaUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes UsersDataSetAggregate Source # 
type Scopes UsersDataSetAggregate = (:) Symbol "https://www.googleapis.com/auth/fitness.activity.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.activity.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.blood_glucose.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.blood_glucose.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.blood_pressure.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.blood_pressure.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.body.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.body.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.body_temperature.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.body_temperature.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.location.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.location.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.nutrition.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.nutrition.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.oxygen_saturation.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.oxygen_saturation.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.reproductive_health.read" ((:) Symbol "https://www.googleapis.com/auth/fitness.reproductive_health.write" ([] Symbol))))))))))))))))))
type Rs UsersDataSetAggregate Source # 

Request Lenses

udsaUserId :: Lens' UsersDataSetAggregate Text Source #

Aggregate data for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.