gogol-fitness-0.4.0: Google Fitness SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Fitness.Users.DataSources.Create

Contents

Description

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

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 # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.Create

Data UsersDataSourcesCreate Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.Create

Methods

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 # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.Create

Generic UsersDataSourcesCreate Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.Create

Associated Types

type Rep UsersDataSourcesCreate :: Type -> Type #

GoogleRequest UsersDataSourcesCreate Source # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.Create

type Rep UsersDataSourcesCreate Source # 
Instance details

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 # 
Instance details

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 # 
Instance details

Defined in Network.Google.Resource.Fitness.Users.DataSources.Create

Request Lenses

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.