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 |
Network.Google.Resource.Fitness.Users.DataSources.Patch
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. This method supports patch semantics.
See: Fitness Reference for fitness.users.dataSources.patch
.
- 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))))))) #
A resource alias for fitness.users.dataSources.patch
method which the
UsersDataSourcesPatch
request conforms to.
Creating a Request
Arguments
:: Text | |
-> DataSource | |
-> Text | |
-> UsersDataSourcesPatch |
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 #
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.
Request Lenses
udspDataSourceId :: Lens' UsersDataSourcesPatch Text #
The data stream ID of the data source to update.
udspPayload :: Lens' UsersDataSourcesPatch DataSource #
Multipart request metadata.
udspUserId :: Lens' UsersDataSourcesPatch Text #
Update the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.