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.Update
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
- type UsersDataSourcesUpdateResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataSources" :> (Capture "dataSourceId" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DataSource :> Put '[JSON] DataSource)))))))
- usersDataSourcesUpdate :: Text -> DataSource -> Text -> UsersDataSourcesUpdate
- data UsersDataSourcesUpdate
- udsuDataSourceId :: Lens' UsersDataSourcesUpdate Text
- udsuPayload :: Lens' UsersDataSourcesUpdate DataSource
- udsuUserId :: Lens' UsersDataSourcesUpdate Text
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 #
Arguments
:: Text | |
-> DataSource | |
-> Text | |
-> UsersDataSourcesUpdate |
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
Request Lenses
udsuDataSourceId :: Lens' UsersDataSourcesUpdate Text Source #
The data stream ID of the data source to update.
udsuPayload :: Lens' UsersDataSourcesUpdate DataSource Source #
Multipart request metadata.
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.