gogol-mirror-0.4.0: Google Mirror 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.Mirror.Accounts.Insert

Contents

Description

Inserts a new account for a user

See: Google Mirror API Reference for mirror.accounts.insert.

Synopsis

REST Resource

type AccountsInsertResource = "mirror" :> ("v1" :> ("accounts" :> (Capture "userToken" Text :> (Capture "accountType" Text :> (Capture "accountName" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Account :> Post '[JSON] Account))))))) Source #

A resource alias for mirror.accounts.insert method which the AccountsInsert request conforms to.

Creating a Request

accountsInsert Source #

Creates a value of AccountsInsert with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AccountsInsert Source #

Inserts a new account for a user

See: accountsInsert smart constructor.

Instances
Eq AccountsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Accounts.Insert

Data AccountsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Accounts.Insert

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AccountsInsert -> c AccountsInsert #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AccountsInsert #

toConstr :: AccountsInsert -> Constr #

dataTypeOf :: AccountsInsert -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c AccountsInsert) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AccountsInsert) #

gmapT :: (forall b. Data b => b -> b) -> AccountsInsert -> AccountsInsert #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AccountsInsert -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AccountsInsert -> r #

gmapQ :: (forall d. Data d => d -> u) -> AccountsInsert -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AccountsInsert -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AccountsInsert -> m AccountsInsert #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AccountsInsert -> m AccountsInsert #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AccountsInsert -> m AccountsInsert #

Show AccountsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Accounts.Insert

Generic AccountsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Accounts.Insert

Associated Types

type Rep AccountsInsert :: Type -> Type #

GoogleRequest AccountsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Accounts.Insert

Associated Types

type Rs AccountsInsert :: Type #

type Scopes AccountsInsert :: [Symbol] #

type Rep AccountsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Accounts.Insert

type Rep AccountsInsert = D1 (MetaData "AccountsInsert" "Network.Google.Resource.Mirror.Accounts.Insert" "gogol-mirror-0.4.0-9c962MxnB494MCOxCUtS1H" False) (C1 (MetaCons "AccountsInsert'" PrefixI True) ((S1 (MetaSel (Just "_aiAccountName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_aiPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Account)) :*: (S1 (MetaSel (Just "_aiUserToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_aiAccountType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes AccountsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Accounts.Insert

type Scopes AccountsInsert = ([] :: [Symbol])
type Rs AccountsInsert Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Accounts.Insert

Request Lenses

aiAccountName :: Lens' AccountsInsert Text Source #

The name of the account to be passed to the Android Account Manager.

aiPayload :: Lens' AccountsInsert Account Source #

Multipart request metadata.

aiUserToken :: Lens' AccountsInsert Text Source #

The ID for the user.

aiAccountType :: Lens' AccountsInsert Text Source #

Account type to be passed to Android Account Manager.