{-# 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.DataSets.Delete
(
UsersDataSourcesDataSetsDeleteResource
, usersDataSourcesDataSetsDelete
, UsersDataSourcesDataSetsDelete
, udsdsdDataSourceId
, udsdsdUserId
, udsdsdDataSetId
, udsdsdModifiedTimeMillis
, udsdsdCurrentTimeMillis
) where
import Network.Google.Fitness.Types
import Network.Google.Prelude
type UsersDataSourcesDataSetsDeleteResource =
"fitness" :>
"v1" :>
"users" :>
Capture "userId" Text :>
"dataSources" :>
Capture "dataSourceId" Text :>
"datasets" :>
Capture "datasetId" Text :>
QueryParam "modifiedTimeMillis" (Textual Int64) :>
QueryParam "currentTimeMillis" (Textual Int64) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data UsersDataSourcesDataSetsDelete = UsersDataSourcesDataSetsDelete'
{ _udsdsdDataSourceId :: !Text
, _udsdsdUserId :: !Text
, _udsdsdDataSetId :: !Text
, _udsdsdModifiedTimeMillis :: !(Maybe (Textual Int64))
, _udsdsdCurrentTimeMillis :: !(Maybe (Textual Int64))
} deriving (Eq,Show,Data,Typeable,Generic)
usersDataSourcesDataSetsDelete
:: Text
-> Text
-> Text
-> UsersDataSourcesDataSetsDelete
usersDataSourcesDataSetsDelete pUdsdsdDataSourceId_ pUdsdsdUserId_ pUdsdsdDataSetId_ =
UsersDataSourcesDataSetsDelete'
{ _udsdsdDataSourceId = pUdsdsdDataSourceId_
, _udsdsdUserId = pUdsdsdUserId_
, _udsdsdDataSetId = pUdsdsdDataSetId_
, _udsdsdModifiedTimeMillis = Nothing
, _udsdsdCurrentTimeMillis = Nothing
}
udsdsdDataSourceId :: Lens' UsersDataSourcesDataSetsDelete Text
udsdsdDataSourceId
= lens _udsdsdDataSourceId
(\ s a -> s{_udsdsdDataSourceId = a})
udsdsdUserId :: Lens' UsersDataSourcesDataSetsDelete Text
udsdsdUserId
= lens _udsdsdUserId (\ s a -> s{_udsdsdUserId = a})
udsdsdDataSetId :: Lens' UsersDataSourcesDataSetsDelete Text
udsdsdDataSetId
= lens _udsdsdDataSetId
(\ s a -> s{_udsdsdDataSetId = a})
udsdsdModifiedTimeMillis :: Lens' UsersDataSourcesDataSetsDelete (Maybe Int64)
udsdsdModifiedTimeMillis
= lens _udsdsdModifiedTimeMillis
(\ s a -> s{_udsdsdModifiedTimeMillis = a})
. mapping _Coerce
udsdsdCurrentTimeMillis :: Lens' UsersDataSourcesDataSetsDelete (Maybe Int64)
udsdsdCurrentTimeMillis
= lens _udsdsdCurrentTimeMillis
(\ s a -> s{_udsdsdCurrentTimeMillis = a})
. mapping _Coerce
instance GoogleRequest UsersDataSourcesDataSetsDelete
where
type Rs UsersDataSourcesDataSetsDelete = ()
type Scopes UsersDataSourcesDataSetsDelete =
'["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"]
requestClient UsersDataSourcesDataSetsDelete'{..}
= go _udsdsdUserId _udsdsdDataSourceId
_udsdsdDataSetId
_udsdsdModifiedTimeMillis
_udsdsdCurrentTimeMillis
(Just AltJSON)
fitnessService
where go
= buildClient
(Proxy ::
Proxy UsersDataSourcesDataSetsDeleteResource)
mempty