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

Contents

Description

Deletes a session specified by the given session ID.

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

Synopsis

REST Resource

type UsersSessionsDeleteResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("sessions" :> (Capture "sessionId" Text :> (QueryParam "currentTimeMillis" (Textual Int64) :> (QueryParam "alt" AltJSON :> Delete '[JSON] ()))))))) Source #

A resource alias for fitness.users.sessions.delete method which the UsersSessionsDelete request conforms to.

Creating a Request

usersSessionsDelete Source #

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

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

data UsersSessionsDelete Source #

Deletes a session specified by the given session ID.

See: usersSessionsDelete smart constructor.

Instances
Eq UsersSessionsDelete Source # 
Instance details

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

Data UsersSessionsDelete Source # 
Instance details

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

Methods

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

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

toConstr :: UsersSessionsDelete -> Constr #

dataTypeOf :: UsersSessionsDelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersSessionsDelete Source # 
Instance details

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

Generic UsersSessionsDelete Source # 
Instance details

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

Associated Types

type Rep UsersSessionsDelete :: Type -> Type #

GoogleRequest UsersSessionsDelete Source # 
Instance details

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

Associated Types

type Rs UsersSessionsDelete :: Type #

type Scopes UsersSessionsDelete :: [Symbol] #

type Rep UsersSessionsDelete Source # 
Instance details

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

type Rep UsersSessionsDelete = D1 (MetaData "UsersSessionsDelete" "Network.Google.Resource.Fitness.Users.Sessions.Delete" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "UsersSessionsDelete'" PrefixI True) (S1 (MetaSel (Just "_usdUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_usdCurrentTimeMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))) :*: S1 (MetaSel (Just "_usdSessionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes UsersSessionsDelete Source # 
Instance details

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

type Scopes UsersSessionsDelete = "https://www.googleapis.com/auth/fitness.activity.write" ': ([] :: [Symbol])
type Rs UsersSessionsDelete Source # 
Instance details

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

Request Lenses

usdUserId :: Lens' UsersSessionsDelete Text Source #

Delete a session for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.

usdCurrentTimeMillis :: Lens' UsersSessionsDelete (Maybe Int64) Source #

The client's current time in milliseconds since epoch.

usdSessionId :: Lens' UsersSessionsDelete Text Source #

The ID of the session to be deleted.