gogol-apps-reseller-0.3.0: Google Enterprise Apps Reseller 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.Reseller.Customers.Insert

Contents

Description

Creates a customer resource if one does not already exist.

See: Enterprise Apps Reseller API Reference for reseller.customers.insert.

Synopsis

REST Resource

type CustomersInsertResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (QueryParam "customerAuthToken" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Customer :> Post '[JSON] Customer)))))) Source #

A resource alias for reseller.customers.insert method which the CustomersInsert request conforms to.

Creating a Request

customersInsert Source #

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

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

data CustomersInsert Source #

Creates a customer resource if one does not already exist.

See: customersInsert smart constructor.

Instances

Eq CustomersInsert Source # 
Data CustomersInsert Source # 

Methods

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

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

toConstr :: CustomersInsert -> Constr #

dataTypeOf :: CustomersInsert -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CustomersInsert Source # 
Generic CustomersInsert Source # 
GoogleRequest CustomersInsert Source # 
type Rep CustomersInsert Source # 
type Rep CustomersInsert = D1 (MetaData "CustomersInsert" "Network.Google.Resource.Reseller.Customers.Insert" "gogol-apps-reseller-0.3.0-ELCuCD0vJLJA2WA0esmS4u" False) (C1 (MetaCons "CustomersInsert'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ciPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Customer)) (S1 (MetaSel (Just Symbol "_ciCustomerAuthToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Scopes CustomersInsert Source # 
type Scopes CustomersInsert = (:) Symbol "https://www.googleapis.com/auth/apps.order" ([] Symbol)
type Rs CustomersInsert Source # 

Request Lenses

ciPayload :: Lens' CustomersInsert Customer Source #

Multipart request metadata.

ciCustomerAuthToken :: Lens' CustomersInsert (Maybe Text) Source #

An auth token needed for inserting a customer for which domain already exists. Can be generated at https://admin.google.com/TransferToken. Optional.