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 |
Updates an existing subscription. Note that certain properties of a subscription, such as its topic, are not modifiable.
See: Cloud Pub/Sub API Reference for pubsub.projects.subscriptions.patch
.
Synopsis
- type ProjectsSubscriptionsPatchResource = "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] UpdateSubscriptionRequest :> Patch '[JSON] Subscription))))))))
- projectsSubscriptionsPatch :: UpdateSubscriptionRequest -> Text -> ProjectsSubscriptionsPatch
- data ProjectsSubscriptionsPatch
- pspXgafv :: Lens' ProjectsSubscriptionsPatch (Maybe Xgafv)
- pspUploadProtocol :: Lens' ProjectsSubscriptionsPatch (Maybe Text)
- pspAccessToken :: Lens' ProjectsSubscriptionsPatch (Maybe Text)
- pspUploadType :: Lens' ProjectsSubscriptionsPatch (Maybe Text)
- pspPayload :: Lens' ProjectsSubscriptionsPatch UpdateSubscriptionRequest
- pspName :: Lens' ProjectsSubscriptionsPatch Text
- pspCallback :: Lens' ProjectsSubscriptionsPatch (Maybe Text)
REST Resource
type ProjectsSubscriptionsPatchResource = "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] UpdateSubscriptionRequest :> Patch '[JSON] Subscription)))))))) Source #
A resource alias for pubsub.projects.subscriptions.patch
method which the
ProjectsSubscriptionsPatch
request conforms to.
Creating a Request
projectsSubscriptionsPatch Source #
Creates a value of ProjectsSubscriptionsPatch
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsSubscriptionsPatch Source #
Updates an existing subscription. Note that certain properties of a subscription, such as its topic, are not modifiable.
See: projectsSubscriptionsPatch
smart constructor.
Instances
Request Lenses
pspUploadProtocol :: Lens' ProjectsSubscriptionsPatch (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
pspAccessToken :: Lens' ProjectsSubscriptionsPatch (Maybe Text) Source #
OAuth access token.
pspUploadType :: Lens' ProjectsSubscriptionsPatch (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
pspPayload :: Lens' ProjectsSubscriptionsPatch UpdateSubscriptionRequest Source #
Multipart request metadata.
pspName :: Lens' ProjectsSubscriptionsPatch Text Source #
The name of the subscription. It must have the format `"projects/{project}/subscriptions/{subscription}"`. `{subscription}` must start with a letter, and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent signs (`%`). It must be between 3 and 255 characters in length, and it must not start with `"goog"`.
pspCallback :: Lens' ProjectsSubscriptionsPatch (Maybe Text) Source #
JSONP