Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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. This method supports patch semantics.
See: Fitness Reference for fitness.users.dataSources.patch
.
Synopsis
- type UsersDataSourcesPatchResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataSources" :> (Capture "dataSourceId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DataSource :> Patch '[JSON] DataSource)))))))
- usersDataSourcesPatch :: Text -> DataSource -> Text -> UsersDataSourcesPatch
- data UsersDataSourcesPatch
- udspDataSourceId :: Lens' UsersDataSourcesPatch Text
- udspPayload :: Lens' UsersDataSourcesPatch DataSource
- udspUserId :: Lens' UsersDataSourcesPatch Text
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 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. This method supports patch semantics.
See: usersDataSourcesPatch
smart constructor.
Instances
Eq UsersDataSourcesPatch Source # | |
Data UsersDataSourcesPatch Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Patch 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 # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Patch showsPrec :: Int -> UsersDataSourcesPatch -> ShowS # show :: UsersDataSourcesPatch -> String # showList :: [UsersDataSourcesPatch] -> ShowS # | |
Generic UsersDataSourcesPatch Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Patch type Rep UsersDataSourcesPatch :: Type -> Type # | |
GoogleRequest UsersDataSourcesPatch Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Patch type Rs UsersDataSourcesPatch :: Type # type Scopes UsersDataSourcesPatch :: [Symbol] # | |
type Rep UsersDataSourcesPatch Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Patch type Rep UsersDataSourcesPatch = D1 (MetaData "UsersDataSourcesPatch" "Network.Google.Resource.Fitness.Users.DataSources.Patch" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "UsersDataSourcesPatch'" PrefixI True) (S1 (MetaSel (Just "_udspDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_udspPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DataSource) :*: S1 (MetaSel (Just "_udspUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))) | |
type Scopes UsersDataSourcesPatch Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Patch type Scopes UsersDataSourcesPatch = "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 UsersDataSourcesPatch Source # | |
Request Lenses
udspDataSourceId :: Lens' UsersDataSourcesPatch Text Source #
The data stream ID of the data source to update.
udspPayload :: Lens' UsersDataSourcesPatch DataSource Source #
Multipart request metadata.
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.