gogol-pubsub-0.5.0: Google Cloud Pub/Sub 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.PubSub.Projects.Snapshots.Patch

Contents

Description

Updates an existing snapshot. Snapshots are used in Seek operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.

See: Cloud Pub/Sub API Reference for pubsub.projects.snapshots.patch.

Synopsis

REST Resource

type ProjectsSnapshotsPatchResource = "v1" :> (Capture "name" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UpdateSnapshotRequest :> Patch '[JSON] Snapshot)))))))) Source #

A resource alias for pubsub.projects.snapshots.patch method which the ProjectsSnapshotsPatch request conforms to.

Creating a Request

projectsSnapshotsPatch Source #

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

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

data ProjectsSnapshotsPatch Source #

Updates an existing snapshot. Snapshots are used in Seek operations, which allow you to manage message acknowledgments in bulk. That is, you can set the acknowledgment state of messages in an existing subscription to the state captured by a snapshot.

See: projectsSnapshotsPatch smart constructor.

Instances
Eq ProjectsSnapshotsPatch Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.Patch

Data ProjectsSnapshotsPatch Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.Patch

Methods

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

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

toConstr :: ProjectsSnapshotsPatch -> Constr #

dataTypeOf :: ProjectsSnapshotsPatch -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsSnapshotsPatch Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.Patch

Generic ProjectsSnapshotsPatch Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.Patch

Associated Types

type Rep ProjectsSnapshotsPatch :: Type -> Type #

GoogleRequest ProjectsSnapshotsPatch Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.Patch

type Rep ProjectsSnapshotsPatch Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.Patch

type Rep ProjectsSnapshotsPatch = D1 (MetaData "ProjectsSnapshotsPatch" "Network.Google.Resource.PubSub.Projects.Snapshots.Patch" "gogol-pubsub-0.5.0-LIQQ2v5pjD82QASoUQpr2c" False) (C1 (MetaCons "ProjectsSnapshotsPatch'" PrefixI True) ((S1 (MetaSel (Just "_ppXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_ppUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ppAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_ppUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_ppPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UpdateSnapshotRequest)) :*: (S1 (MetaSel (Just "_ppName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_ppCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes ProjectsSnapshotsPatch Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.Patch

type Scopes ProjectsSnapshotsPatch = "https://www.googleapis.com/auth/cloud-platform" ': ("https://www.googleapis.com/auth/pubsub" ': ([] :: [Symbol]))
type Rs ProjectsSnapshotsPatch Source # 
Instance details

Defined in Network.Google.Resource.PubSub.Projects.Snapshots.Patch

Request Lenses

ppUploadProtocol :: Lens' ProjectsSnapshotsPatch (Maybe Text) Source #

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

ppUploadType :: Lens' ProjectsSnapshotsPatch (Maybe Text) Source #

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

ppName :: Lens' ProjectsSnapshotsPatch Text Source #

The name of the snapshot.