gogol-pubsub-0.3.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.Subscriptions.Delete

Contents

Description

Deletes an existing subscription. All messages retained 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" Xgafv :> (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 messages retained 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.

Instances

Eq ProjectsSubscriptionsDelete Source # 
Data ProjectsSubscriptionsDelete Source # 

Methods

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

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

toConstr :: ProjectsSubscriptionsDelete -> Constr #

dataTypeOf :: ProjectsSubscriptionsDelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show ProjectsSubscriptionsDelete Source # 
Generic ProjectsSubscriptionsDelete Source # 
GoogleRequest ProjectsSubscriptionsDelete Source # 
type Rep ProjectsSubscriptionsDelete Source # 
type Rep ProjectsSubscriptionsDelete = D1 (MetaData "ProjectsSubscriptionsDelete" "Network.Google.Resource.PubSub.Projects.Subscriptions.Delete" "gogol-pubsub-0.3.0-1dJ3Y6KufaPCaIO7uyOMh" False) (C1 (MetaCons "ProjectsSubscriptionsDelete'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_psdXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv))) (S1 (MetaSel (Just Symbol "_psdUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_psdPp") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Bool)) (S1 (MetaSel (Just Symbol "_psdAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_psdUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_psdBearerToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_psdSubscription") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_psdCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))
type Scopes ProjectsSubscriptionsDelete Source # 
type Scopes ProjectsSubscriptionsDelete = (:) Symbol "https://www.googleapis.com/auth/cloud-platform" ((:) Symbol "https://www.googleapis.com/auth/pubsub" ([] Symbol))
type Rs ProjectsSubscriptionsDelete Source # 

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").

psdSubscription :: Lens' ProjectsSubscriptionsDelete Text Source #

The subscription to delete. Format is `projects/{project}/subscriptions/{sub}`.