gogol-fitness-0.3.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.Update

Contents

Description

Updates or insert a given session.

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

Synopsis

REST Resource

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

A resource alias for fitness.users.sessions.update method which the UsersSessionsUpdate request conforms to.

Creating a Request

usersSessionsUpdate Source #

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

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

data UsersSessionsUpdate Source #

Updates or insert a given session.

See: usersSessionsUpdate smart constructor.

Instances

Eq UsersSessionsUpdate Source # 
Data UsersSessionsUpdate Source # 

Methods

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

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

toConstr :: UsersSessionsUpdate -> Constr #

dataTypeOf :: UsersSessionsUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersSessionsUpdate Source # 
Generic UsersSessionsUpdate Source # 
GoogleRequest UsersSessionsUpdate Source # 
type Rep UsersSessionsUpdate Source # 
type Rep UsersSessionsUpdate = D1 (MetaData "UsersSessionsUpdate" "Network.Google.Resource.Fitness.Users.Sessions.Update" "gogol-fitness-0.3.0-2Qzh2b30wXo6G3QGQrC2gd" False) (C1 (MetaCons "UsersSessionsUpdate'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_usuPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Session)) (S1 (MetaSel (Just Symbol "_usuUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_usuCurrentTimeMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))) (S1 (MetaSel (Just Symbol "_usuSessionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes UsersSessionsUpdate Source # 
type Scopes UsersSessionsUpdate = (:) Symbol "https://www.googleapis.com/auth/fitness.activity.write" ([] Symbol)
type Rs UsersSessionsUpdate Source # 

Request Lenses

usuPayload :: Lens' UsersSessionsUpdate Session Source #

Multipart request metadata.

usuUserId :: Lens' UsersSessionsUpdate Text Source #

Create sessions for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.

usuCurrentTimeMillis :: Lens' UsersSessionsUpdate (Maybe Int64) Source #

The client's current time in milliseconds since epoch.

usuSessionId :: Lens' UsersSessionsUpdate Text Source #

The ID of the session to be created.