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.Update

Contents

Description

Updates the specified data source. The dataStreamId, dataType, type, dataStreamName, and device properties with the exception of version, cannot be modified. Data sources are identified by their dataStreamId.

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

Synopsis

REST Resource

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

A resource alias for fitness.users.dataSources.update method which the UsersDataSourcesUpdate request conforms to.

Creating a Request

usersDataSourcesUpdate Source #

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

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

data UsersDataSourcesUpdate Source #

Updates the specified data source. The dataStreamId, dataType, type, dataStreamName, and device properties with the exception of version, cannot be modified. Data sources are identified by their dataStreamId.

See: usersDataSourcesUpdate smart constructor.

Instances
Eq UsersDataSourcesUpdate Source # 
Instance details

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

Data UsersDataSourcesUpdate Source # 
Instance details

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

Methods

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

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

toConstr :: UsersDataSourcesUpdate -> Constr #

dataTypeOf :: UsersDataSourcesUpdate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show UsersDataSourcesUpdate Source # 
Instance details

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

Generic UsersDataSourcesUpdate Source # 
Instance details

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

Associated Types

type Rep UsersDataSourcesUpdate :: Type -> Type #

GoogleRequest UsersDataSourcesUpdate Source # 
Instance details

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

type Rep UsersDataSourcesUpdate Source # 
Instance details

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

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

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

type Scopes UsersDataSourcesUpdate = "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 UsersDataSourcesUpdate Source # 
Instance details

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

Request Lenses

udsuDataSourceId :: Lens' UsersDataSourcesUpdate Text Source #

The data stream ID of the data source to update.

udsuUserId :: Lens' UsersDataSourcesUpdate Text Source #

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