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 |
Deletes the specified data source. The request will fail if the data source contains any data points.
See: Fitness Reference for fitness.users.dataSources.delete
.
Synopsis
- type UsersDataSourcesDeleteResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataSources" :> (Capture "dataSourceId" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] DataSource))))))
- usersDataSourcesDelete :: Text -> Text -> UsersDataSourcesDelete
- data UsersDataSourcesDelete
- udsdDataSourceId :: Lens' UsersDataSourcesDelete Text
- udsdUserId :: Lens' UsersDataSourcesDelete Text
REST Resource
type UsersDataSourcesDeleteResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataSources" :> (Capture "dataSourceId" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] DataSource)))))) Source #
A resource alias for fitness.users.dataSources.delete
method which the
UsersDataSourcesDelete
request conforms to.
Creating a Request
usersDataSourcesDelete Source #
Creates a value of UsersDataSourcesDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersDataSourcesDelete Source #
Deletes the specified data source. The request will fail if the data source contains any data points.
See: usersDataSourcesDelete
smart constructor.
Instances
Eq UsersDataSourcesDelete Source # | |
Data UsersDataSourcesDelete Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Delete gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UsersDataSourcesDelete -> c UsersDataSourcesDelete # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UsersDataSourcesDelete # toConstr :: UsersDataSourcesDelete -> Constr # dataTypeOf :: UsersDataSourcesDelete -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UsersDataSourcesDelete) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UsersDataSourcesDelete) # gmapT :: (forall b. Data b => b -> b) -> UsersDataSourcesDelete -> UsersDataSourcesDelete # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UsersDataSourcesDelete -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UsersDataSourcesDelete -> r # gmapQ :: (forall d. Data d => d -> u) -> UsersDataSourcesDelete -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> UsersDataSourcesDelete -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> UsersDataSourcesDelete -> m UsersDataSourcesDelete # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UsersDataSourcesDelete -> m UsersDataSourcesDelete # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UsersDataSourcesDelete -> m UsersDataSourcesDelete # | |
Show UsersDataSourcesDelete Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Delete showsPrec :: Int -> UsersDataSourcesDelete -> ShowS # show :: UsersDataSourcesDelete -> String # showList :: [UsersDataSourcesDelete] -> ShowS # | |
Generic UsersDataSourcesDelete Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Delete type Rep UsersDataSourcesDelete :: Type -> Type # | |
GoogleRequest UsersDataSourcesDelete Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Delete type Rs UsersDataSourcesDelete :: Type # type Scopes UsersDataSourcesDelete :: [Symbol] # | |
type Rep UsersDataSourcesDelete Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Delete type Rep UsersDataSourcesDelete = D1 (MetaData "UsersDataSourcesDelete" "Network.Google.Resource.Fitness.Users.DataSources.Delete" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "UsersDataSourcesDelete'" PrefixI True) (S1 (MetaSel (Just "_udsdDataSourceId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_udsdUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) | |
type Scopes UsersDataSourcesDelete Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Delete type Scopes UsersDataSourcesDelete = "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 UsersDataSourcesDelete Source # | |
Request Lenses
udsdDataSourceId :: Lens' UsersDataSourcesDelete Text Source #
The data stream ID of the data source to delete.
udsdUserId :: Lens' UsersDataSourcesDelete Text Source #
Retrieve a data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.