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.DataSources.Delete

Contents

Description

Deletes the specified data source. The request will fail if the data source contains any data points.

See: Fitness Reference for fitness.users.dataSources.delete.

Synopsis

REST Resource

type UsersDataSourcesDeleteResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataSources" :> (Capture "dataSourceId" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] DataSource)))))) Source #

A resource alias for fitness.users.dataSources.delete method which the UsersDataSourcesDelete request conforms to.

Creating a Request

usersDataSourcesDelete Source #

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

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

data UsersDataSourcesDelete Source #

Deletes the specified data source. The request will fail if the data source contains any data points.

See: usersDataSourcesDelete smart constructor.

Instances
Eq UsersDataSourcesDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.Delete

Data UsersDataSourcesDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.Delete

Methods

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

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

toConstr :: UsersDataSourcesDelete -> Constr #

dataTypeOf :: UsersDataSourcesDelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersDataSourcesDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.Delete

Generic UsersDataSourcesDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.Delete

Associated Types

type Rep UsersDataSourcesDelete :: Type -> Type #

GoogleRequest UsersDataSourcesDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.Delete

type Rep UsersDataSourcesDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.Delete

type Rep UsersDataSourcesDelete = D1 (MetaData "UsersDataSourcesDelete" "Network.Google.Resource.Fitness.Users.DataSources.Delete" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "UsersDataSourcesDelete'" PrefixI True) (S1 (MetaSel (Just "_udsdDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_udsdUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes UsersDataSourcesDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.Delete

type Scopes UsersDataSourcesDelete = "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" ': ([] :: [Symbol])))))))))
type Rs UsersDataSourcesDelete Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.Delete

Request Lenses

udsdDataSourceId :: Lens' UsersDataSourcesDelete Text Source #

The data stream ID of the data source to delete.

udsdUserId :: Lens' UsersDataSourcesDelete Text Source #

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