Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- type UsersDataSetAggregateResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataset:aggregate" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AggregateRequest :> Post '[JSON] AggregateResponse))))))
- usersDataSetAggregate :: AggregateRequest -> Text -> UsersDataSetAggregate
- data UsersDataSetAggregate
- udsaPayload :: Lens' UsersDataSetAggregate AggregateRequest
- udsaUserId :: Lens' UsersDataSetAggregate Text
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 # | |
Defined in Network.Google.Resource.Fitness.Users.DataSet.Aggregate 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 # | |
Defined in Network.Google.Resource.Fitness.Users.DataSet.Aggregate showsPrec :: Int -> UsersDataSetAggregate -> ShowS # show :: UsersDataSetAggregate -> String # showList :: [UsersDataSetAggregate] -> ShowS # | |
Generic UsersDataSetAggregate Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSet.Aggregate type Rep UsersDataSetAggregate :: Type -> Type # | |
GoogleRequest UsersDataSetAggregate Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSet.Aggregate type Rs UsersDataSetAggregate :: Type # type Scopes UsersDataSetAggregate :: [Symbol] # | |
type Rep UsersDataSetAggregate Source # | |
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.5.0-8nYJc95RdWj7JtAwIDYEuQ" 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 # | |
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 # | |
Request Lenses
udsaPayload :: Lens' UsersDataSetAggregate AggregateRequest Source #
Multipart request metadata.
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.