gogol-pubsub-0.0.1: Google Cloud Pub/Sub SDK.

Copyright(c) 2015 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.Subscriptions.Delete

Contents

Description

Deletes an existing subscription. All pending messages in the subscription are immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. After a subscription is deleted, a new one may be created with the same name, but the new one has no association with the old subscription, or its topic unless the same topic is specified.

See: Google Cloud Pub/Sub API Reference for pubsub.projects.subscriptions.delete.

Synopsis

REST Resource

type ProjectsSubscriptionsDeleteResource = "v1" :> (Capture "subscription" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete `[JSON]` Empty))))))))) Source

A resource alias for pubsub.projects.subscriptions.delete method which the ProjectsSubscriptionsDelete request conforms to.

Creating a Request

projectsSubscriptionsDelete Source

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

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

data ProjectsSubscriptionsDelete Source

Deletes an existing subscription. All pending messages in the subscription are immediately dropped. Calls to `Pull` after deletion will return `NOT_FOUND`. After a subscription is deleted, a new one may be created with the same name, but the new one has no association with the old subscription, or its topic unless the same topic is specified.

See: projectsSubscriptionsDelete smart constructor.

Request Lenses

psdUploadProtocol :: Lens' ProjectsSubscriptionsDelete (Maybe Text) Source

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

psdUploadType :: Lens' ProjectsSubscriptionsDelete (Maybe Text) Source

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