gogol-people-0.4.0: Google People 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.People.People.CreateContact

Contents

Description

Create a new contact and return the person resource for that contact.

See: People API Reference for people.people.createContact.

Synopsis

REST Resource

type PeopleCreateContactResource = "v1" :> ("people:createContact" :> (QueryParam "parent" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Person :> Post '[JSON] Person))))))))) Source #

A resource alias for people.people.createContact method which the PeopleCreateContact request conforms to.

Creating a Request

peopleCreateContact Source #

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

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

data PeopleCreateContact Source #

Create a new contact and return the person resource for that contact.

See: peopleCreateContact smart constructor.

Instances
Eq PeopleCreateContact Source # 
Instance details

Defined in Network.Google.Resource.People.People.CreateContact

Data PeopleCreateContact Source # 
Instance details

Defined in Network.Google.Resource.People.People.CreateContact

Methods

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

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

toConstr :: PeopleCreateContact -> Constr #

dataTypeOf :: PeopleCreateContact -> DataType #

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

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

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

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

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

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

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

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

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

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

Show PeopleCreateContact Source # 
Instance details

Defined in Network.Google.Resource.People.People.CreateContact

Generic PeopleCreateContact Source # 
Instance details

Defined in Network.Google.Resource.People.People.CreateContact

Associated Types

type Rep PeopleCreateContact :: Type -> Type #

GoogleRequest PeopleCreateContact Source # 
Instance details

Defined in Network.Google.Resource.People.People.CreateContact

Associated Types

type Rs PeopleCreateContact :: Type #

type Scopes PeopleCreateContact :: [Symbol] #

type Rep PeopleCreateContact Source # 
Instance details

Defined in Network.Google.Resource.People.People.CreateContact

type Rep PeopleCreateContact = D1 (MetaData "PeopleCreateContact" "Network.Google.Resource.People.People.CreateContact" "gogol-people-0.4.0-E13x4gVqkHzANg1IJZFmJ4" False) (C1 (MetaCons "PeopleCreateContact'" PrefixI True) ((S1 (MetaSel (Just "_pccParent") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_pccXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_pccUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_pccAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_pccUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_pccPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Person) :*: S1 (MetaSel (Just "_pccCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes PeopleCreateContact Source # 
Instance details

Defined in Network.Google.Resource.People.People.CreateContact

type Scopes PeopleCreateContact = "https://www.googleapis.com/auth/contacts" ': ([] :: [Symbol])
type Rs PeopleCreateContact Source # 
Instance details

Defined in Network.Google.Resource.People.People.CreateContact

Request Lenses

pccParent :: Lens' PeopleCreateContact (Maybe Text) Source #

The resource name of the owning person resource.

pccUploadProtocol :: Lens' PeopleCreateContact (Maybe Text) Source #

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

pccUploadType :: Lens' PeopleCreateContact (Maybe Text) Source #

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

pccPayload :: Lens' PeopleCreateContact Person Source #

Multipart request metadata.