gogol-partners-0.4.0: Google Partners 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.Partners.Companies.Leads.Create

Contents

Description

Creates an advertiser lead for the given company ID.

See: Google Partners API Reference for partners.companies.leads.create.

Synopsis

REST Resource

type CompaniesLeadsCreateResource = "v2" :> ("companies" :> (Capture "companyId" Text :> ("leads" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] CreateLeadRequest :> Post '[JSON] CreateLeadResponse)))))))))) Source #

A resource alias for partners.companies.leads.create method which the CompaniesLeadsCreate request conforms to.

Creating a Request

companiesLeadsCreate Source #

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

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

data CompaniesLeadsCreate Source #

Creates an advertiser lead for the given company ID.

See: companiesLeadsCreate smart constructor.

Instances
Eq CompaniesLeadsCreate Source # 
Instance details

Defined in Network.Google.Resource.Partners.Companies.Leads.Create

Data CompaniesLeadsCreate Source # 
Instance details

Defined in Network.Google.Resource.Partners.Companies.Leads.Create

Methods

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

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

toConstr :: CompaniesLeadsCreate -> Constr #

dataTypeOf :: CompaniesLeadsCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show CompaniesLeadsCreate Source # 
Instance details

Defined in Network.Google.Resource.Partners.Companies.Leads.Create

Generic CompaniesLeadsCreate Source # 
Instance details

Defined in Network.Google.Resource.Partners.Companies.Leads.Create

Associated Types

type Rep CompaniesLeadsCreate :: Type -> Type #

GoogleRequest CompaniesLeadsCreate Source # 
Instance details

Defined in Network.Google.Resource.Partners.Companies.Leads.Create

Associated Types

type Rs CompaniesLeadsCreate :: Type #

type Scopes CompaniesLeadsCreate :: [Symbol] #

type Rep CompaniesLeadsCreate Source # 
Instance details

Defined in Network.Google.Resource.Partners.Companies.Leads.Create

type Rep CompaniesLeadsCreate = D1 (MetaData "CompaniesLeadsCreate" "Network.Google.Resource.Partners.Companies.Leads.Create" "gogol-partners-0.4.0-39sg3ZvEDoCEu9a3s5sq6U" False) (C1 (MetaCons "CompaniesLeadsCreate'" PrefixI True) ((S1 (MetaSel (Just "_clcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_clcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_clcCompanyId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: ((S1 (MetaSel (Just "_clcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_clcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_clcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 CreateLeadRequest) :*: S1 (MetaSel (Just "_clcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes CompaniesLeadsCreate Source # 
Instance details

Defined in Network.Google.Resource.Partners.Companies.Leads.Create

type Rs CompaniesLeadsCreate Source # 
Instance details

Defined in Network.Google.Resource.Partners.Companies.Leads.Create

Request Lenses

clcUploadProtocol :: Lens' CompaniesLeadsCreate (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

clcCompanyId :: Lens' CompaniesLeadsCreate Text Source #

The ID of the company to contact.

clcUploadType :: Lens' CompaniesLeadsCreate (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").