Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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: Cloud Pub/Sub API Reference for pubsub.projects.subscriptions.delete
.
Synopsis
- type ProjectsSubscriptionsDeleteResource = "v1" :> (Capture "subscription" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty)))))))
- projectsSubscriptionsDelete :: Text -> ProjectsSubscriptionsDelete
- data ProjectsSubscriptionsDelete
- psdXgafv :: Lens' ProjectsSubscriptionsDelete (Maybe Xgafv)
- psdUploadProtocol :: Lens' ProjectsSubscriptionsDelete (Maybe Text)
- psdAccessToken :: Lens' ProjectsSubscriptionsDelete (Maybe Text)
- psdUploadType :: Lens' ProjectsSubscriptionsDelete (Maybe Text)
- psdSubscription :: Lens' ProjectsSubscriptionsDelete Text
- psdCallback :: Lens' ProjectsSubscriptionsDelete (Maybe Text)
REST Resource
type ProjectsSubscriptionsDeleteResource = "v1" :> (Capture "subscription" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" 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
Request Lenses
psdUploadProtocol :: Lens' ProjectsSubscriptionsDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psdAccessToken :: Lens' ProjectsSubscriptionsDelete (Maybe Text) Source #
OAuth access token.
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}`.
psdCallback :: Lens' ProjectsSubscriptionsDelete (Maybe Text) Source #
JSONP