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 |
Creates a new data source that is unique across all data sources belonging to this user. The data stream ID field can be omitted and will be generated by the server with the correct format. The data stream ID is an ordered combination of some fields from the data source. In addition to the data source fields reflected into the data source ID, the developer project number that is authenticated when creating the data source is included. This developer project number is obfuscated when read by any other developer reading public data types.
See: Fitness Reference for fitness.users.dataSources.create
.
Synopsis
- type UsersDataSourcesCreateResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataSources" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DataSource :> Post '[JSON] DataSource))))))
- usersDataSourcesCreate :: DataSource -> Text -> UsersDataSourcesCreate
- data UsersDataSourcesCreate
- udscPayload :: Lens' UsersDataSourcesCreate DataSource
- udscUserId :: Lens' UsersDataSourcesCreate Text
REST Resource
type UsersDataSourcesCreateResource = "fitness" :> ("v1" :> ("users" :> (Capture "userId" Text :> ("dataSources" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] DataSource :> Post '[JSON] DataSource)))))) Source #
A resource alias for fitness.users.dataSources.create
method which the
UsersDataSourcesCreate
request conforms to.
Creating a Request
usersDataSourcesCreate Source #
Creates a value of UsersDataSourcesCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data UsersDataSourcesCreate Source #
Creates a new data source that is unique across all data sources belonging to this user. The data stream ID field can be omitted and will be generated by the server with the correct format. The data stream ID is an ordered combination of some fields from the data source. In addition to the data source fields reflected into the data source ID, the developer project number that is authenticated when creating the data source is included. This developer project number is obfuscated when read by any other developer reading public data types.
See: usersDataSourcesCreate
smart constructor.
Instances
Eq UsersDataSourcesCreate Source # | |
Data UsersDataSourcesCreate Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Create gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> UsersDataSourcesCreate -> c UsersDataSourcesCreate # gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c UsersDataSourcesCreate # toConstr :: UsersDataSourcesCreate -> Constr # dataTypeOf :: UsersDataSourcesCreate -> DataType # dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c UsersDataSourcesCreate) # dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c UsersDataSourcesCreate) # gmapT :: (forall b. Data b => b -> b) -> UsersDataSourcesCreate -> UsersDataSourcesCreate # gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> UsersDataSourcesCreate -> r # gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> UsersDataSourcesCreate -> r # gmapQ :: (forall d. Data d => d -> u) -> UsersDataSourcesCreate -> [u] # gmapQi :: Int -> (forall d. Data d => d -> u) -> UsersDataSourcesCreate -> u # gmapM :: Monad m => (forall d. Data d => d -> m d) -> UsersDataSourcesCreate -> m UsersDataSourcesCreate # gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> UsersDataSourcesCreate -> m UsersDataSourcesCreate # gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> UsersDataSourcesCreate -> m UsersDataSourcesCreate # | |
Show UsersDataSourcesCreate Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Create showsPrec :: Int -> UsersDataSourcesCreate -> ShowS # show :: UsersDataSourcesCreate -> String # showList :: [UsersDataSourcesCreate] -> ShowS # | |
Generic UsersDataSourcesCreate Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Create type Rep UsersDataSourcesCreate :: Type -> Type # | |
GoogleRequest UsersDataSourcesCreate Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Create type Rs UsersDataSourcesCreate :: Type # type Scopes UsersDataSourcesCreate :: [Symbol] # | |
type Rep UsersDataSourcesCreate Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Create type Rep UsersDataSourcesCreate = D1 (MetaData "UsersDataSourcesCreate" "Network.Google.Resource.Fitness.Users.DataSources.Create" "gogol-fitness-0.4.0-HKC94LjpKjvFQ4h3GWXPtC" False) (C1 (MetaCons "UsersDataSourcesCreate'" PrefixI True) (S1 (MetaSel (Just "_udscPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 DataSource) :*: S1 (MetaSel (Just "_udscUserId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) | |
type Scopes UsersDataSourcesCreate Source # | |
Defined in Network.Google.Resource.Fitness.Users.DataSources.Create type Scopes UsersDataSourcesCreate = "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 UsersDataSourcesCreate Source # | |
Request Lenses
udscPayload :: Lens' UsersDataSourcesCreate DataSource Source #
Multipart request metadata.
udscUserId :: Lens' UsersDataSourcesCreate Text Source #
Create the data source for the person identified. Use me to indicate the authenticated user. Only me is supported at this time.