gogol-fitness-0.1.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.Patch

Contents

Description

Updates a given data source. It is an error to modify the data source's data stream ID, data type, type, stream name or device information apart from the device version. Changing these fields would require a new unique data stream ID and separate data source. Data sources are identified by their data stream ID. This method supports patch semantics.

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

Synopsis

REST Resource

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

A resource alias for fitness.users.dataSources.patch method which the UsersDataSourcesPatch request conforms to.

Creating a Request

usersDataSourcesPatch Source #

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

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

data UsersDataSourcesPatch Source #

Updates a given data source. It is an error to modify the data source's data stream ID, data type, type, stream name or device information apart from the device version. Changing these fields would require a new unique data stream ID and separate data source. Data sources are identified by their data stream ID. This method supports patch semantics.

See: usersDataSourcesPatch smart constructor.

Instances

Eq UsersDataSourcesPatch Source # 
Data UsersDataSourcesPatch Source # 

Methods

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

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

toConstr :: UsersDataSourcesPatch -> Constr #

dataTypeOf :: UsersDataSourcesPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersDataSourcesPatch Source # 
Generic UsersDataSourcesPatch Source # 
GoogleRequest UsersDataSourcesPatch Source # 
type Rep UsersDataSourcesPatch Source # 
type Rep UsersDataSourcesPatch = D1 (MetaData "UsersDataSourcesPatch" "Network.Google.Resource.Fitness.Users.DataSources.Patch" "gogol-fitness-0.1.0-34LVH65kfrSFLauG2kXhXq" False) (C1 (MetaCons "UsersDataSourcesPatch'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_udspDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_udspPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DataSource)) (S1 (MetaSel (Just Symbol "_udspUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes UsersDataSourcesPatch Source # 
type Scopes UsersDataSourcesPatch = (:) Symbol "https://www.googleapis.com/auth/fitness.activity.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.body.write" ((:) Symbol "https://www.googleapis.com/auth/fitness.location.write" ([] Symbol)))
type Rs UsersDataSourcesPatch Source # 

Request Lenses

udspDataSourceId :: Lens' UsersDataSourcesPatch Text Source #

The data stream ID of the data source to update.

udspUserId :: Lens' UsersDataSourcesPatch Text Source #

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