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

Defined in Network.Google.Resource.Fitness.Users.DataSet.Aggregate

Data UsersDataSetAggregate Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSet.Aggregate

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

Defined in Network.Google.Resource.Fitness.Users.DataSet.Aggregate

Generic UsersDataSetAggregate Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSet.Aggregate

Associated Types

type Rep UsersDataSetAggregate :: Type -> Type #

GoogleRequest UsersDataSetAggregate Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSet.Aggregate

type Rep UsersDataSetAggregate Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSet.Aggregate

type Rep UsersDataSetAggregate = D1 (MetaData "UsersDataSetAggregate" "Network.Google.Resource.Fitness.Users.DataSet.Aggregate" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "UsersDataSetAggregate'" PrefixI True) (S1 (MetaSel (Just "_udsaPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AggregateRequest) :*: S1 (MetaSel (Just "_udsaUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes UsersDataSetAggregate Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSet.Aggregate

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

Defined in Network.Google.Resource.Fitness.Users.DataSet.Aggregate

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.