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 |
Modifies the `PushConfig` for a specified subscription. This may be used to change a push subscription to a pull one (signified by an empty `PushConfig`) or vice versa, or change the endpoint URL and other attributes of a push subscription. Messages will accumulate for delivery continuously through the call regardless of changes to the `PushConfig`.
See: Cloud Pub/Sub API Reference for pubsub.projects.subscriptions.modifyPushConfig
.
Synopsis
- type ProjectsSubscriptionsModifyPushConfigResource = "v1" :> (CaptureMode "subscription" "modifyPushConfig" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ModifyPushConfigRequest :> Post '[JSON] Empty))))))))
- projectsSubscriptionsModifyPushConfig :: ModifyPushConfigRequest -> Text -> ProjectsSubscriptionsModifyPushConfig
- data ProjectsSubscriptionsModifyPushConfig
- psmpcXgafv :: Lens' ProjectsSubscriptionsModifyPushConfig (Maybe Xgafv)
- psmpcUploadProtocol :: Lens' ProjectsSubscriptionsModifyPushConfig (Maybe Text)
- psmpcAccessToken :: Lens' ProjectsSubscriptionsModifyPushConfig (Maybe Text)
- psmpcUploadType :: Lens' ProjectsSubscriptionsModifyPushConfig (Maybe Text)
- psmpcPayload :: Lens' ProjectsSubscriptionsModifyPushConfig ModifyPushConfigRequest
- psmpcSubscription :: Lens' ProjectsSubscriptionsModifyPushConfig Text
- psmpcCallback :: Lens' ProjectsSubscriptionsModifyPushConfig (Maybe Text)
REST Resource
type ProjectsSubscriptionsModifyPushConfigResource = "v1" :> (CaptureMode "subscription" "modifyPushConfig" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] ModifyPushConfigRequest :> Post '[JSON] Empty)))))))) Source #
A resource alias for pubsub.projects.subscriptions.modifyPushConfig
method which the
ProjectsSubscriptionsModifyPushConfig
request conforms to.
Creating a Request
projectsSubscriptionsModifyPushConfig Source #
Creates a value of ProjectsSubscriptionsModifyPushConfig
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ProjectsSubscriptionsModifyPushConfig Source #
Modifies the `PushConfig` for a specified subscription. This may be used to change a push subscription to a pull one (signified by an empty `PushConfig`) or vice versa, or change the endpoint URL and other attributes of a push subscription. Messages will accumulate for delivery continuously through the call regardless of changes to the `PushConfig`.
See: projectsSubscriptionsModifyPushConfig
smart constructor.
Instances
Request Lenses
psmpcXgafv :: Lens' ProjectsSubscriptionsModifyPushConfig (Maybe Xgafv) Source #
V1 error format.
psmpcUploadProtocol :: Lens' ProjectsSubscriptionsModifyPushConfig (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
psmpcAccessToken :: Lens' ProjectsSubscriptionsModifyPushConfig (Maybe Text) Source #
OAuth access token.
psmpcUploadType :: Lens' ProjectsSubscriptionsModifyPushConfig (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
psmpcPayload :: Lens' ProjectsSubscriptionsModifyPushConfig ModifyPushConfigRequest Source #
Multipart request metadata.
psmpcSubscription :: Lens' ProjectsSubscriptionsModifyPushConfig Text Source #
The name of the subscription. Format is `projects/{project}/subscriptions/{sub}`.