{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Fitness.Users.DataSources.DataPointChanges.List
(
UsersDataSourcesDataPointChangesListResource
, usersDataSourcesDataPointChangesList
, UsersDataSourcesDataPointChangesList
, udsdpclDataSourceId
, udsdpclUserId
, udsdpclLimit
, udsdpclPageToken
) where
import Network.Google.Fitness.Types
import Network.Google.Prelude
type UsersDataSourcesDataPointChangesListResource =
"fitness" :>
"v1" :>
"users" :>
Capture "userId" Text :>
"dataSources" :>
Capture "dataSourceId" Text :>
"dataPointChanges" :>
QueryParam "limit" (Textual Int32) :>
QueryParam "pageToken" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] ListDataPointChangesResponse
data UsersDataSourcesDataPointChangesList = UsersDataSourcesDataPointChangesList'
{ _udsdpclDataSourceId :: !Text
, _udsdpclUserId :: !Text
, _udsdpclLimit :: !(Maybe (Textual Int32))
, _udsdpclPageToken :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
usersDataSourcesDataPointChangesList
:: Text
-> Text
-> UsersDataSourcesDataPointChangesList
usersDataSourcesDataPointChangesList pUdsdpclDataSourceId_ pUdsdpclUserId_ =
UsersDataSourcesDataPointChangesList'
{ _udsdpclDataSourceId = pUdsdpclDataSourceId_
, _udsdpclUserId = pUdsdpclUserId_
, _udsdpclLimit = Nothing
, _udsdpclPageToken = Nothing
}
udsdpclDataSourceId :: Lens' UsersDataSourcesDataPointChangesList Text
udsdpclDataSourceId
= lens _udsdpclDataSourceId
(\ s a -> s{_udsdpclDataSourceId = a})
udsdpclUserId :: Lens' UsersDataSourcesDataPointChangesList Text
udsdpclUserId
= lens _udsdpclUserId
(\ s a -> s{_udsdpclUserId = a})
udsdpclLimit :: Lens' UsersDataSourcesDataPointChangesList (Maybe Int32)
udsdpclLimit
= lens _udsdpclLimit (\ s a -> s{_udsdpclLimit = a})
. mapping _Coerce
udsdpclPageToken :: Lens' UsersDataSourcesDataPointChangesList (Maybe Text)
udsdpclPageToken
= lens _udsdpclPageToken
(\ s a -> s{_udsdpclPageToken = a})
instance GoogleRequest
UsersDataSourcesDataPointChangesList where
type Rs UsersDataSourcesDataPointChangesList =
ListDataPointChangesResponse
type Scopes UsersDataSourcesDataPointChangesList =
'["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"]
requestClient
UsersDataSourcesDataPointChangesList'{..}
= go _udsdpclUserId _udsdpclDataSourceId
_udsdpclLimit
_udsdpclPageToken
(Just AltJSON)
fitnessService
where go
= buildClient
(Proxy ::
Proxy UsersDataSourcesDataPointChangesListResource)
mempty