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.Contacts.Patch

Contents

Description

Updates a contact in place. This method supports patch semantics.

See: Google Mirror API Reference for mirror.contacts.patch.

Synopsis

REST Resource

type ContactsPatchResource = "mirror" :> ("v1" :> ("contacts" :> (Capture "id" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Contact :> Patch '[JSON] Contact))))) Source #

A resource alias for mirror.contacts.patch method which the ContactsPatch request conforms to.

Creating a Request

contactsPatch Source #

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

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

data ContactsPatch Source #

Updates a contact in place. This method supports patch semantics.

See: contactsPatch smart constructor.

Instances
Eq ContactsPatch Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Contacts.Patch

Data ContactsPatch Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Contacts.Patch

Methods

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

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

toConstr :: ContactsPatch -> Constr #

dataTypeOf :: ContactsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ContactsPatch Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Contacts.Patch

Generic ContactsPatch Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Contacts.Patch

Associated Types

type Rep ContactsPatch :: Type -> Type #

GoogleRequest ContactsPatch Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Contacts.Patch

Associated Types

type Rs ContactsPatch :: Type #

type Scopes ContactsPatch :: [Symbol] #

type Rep ContactsPatch Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Contacts.Patch

type Rep ContactsPatch = D1 (MetaData "ContactsPatch" "Network.Google.Resource.Mirror.Contacts.Patch" "gogol-mirror-0.4.0-9c962MxnB494MCOxCUtS1H" False) (C1 (MetaCons "ContactsPatch'" PrefixI True) (S1 (MetaSel (Just "_cpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Contact) :*: S1 (MetaSel (Just "_cpId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Scopes ContactsPatch Source # 
Instance details

Defined in Network.Google.Resource.Mirror.Contacts.Patch

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

Defined in Network.Google.Resource.Mirror.Contacts.Patch

Request Lenses

cpPayload :: Lens' ContactsPatch Contact Source #

Multipart request metadata.

cpId :: Lens' ContactsPatch Text Source #

The ID of the contact.