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 |
Creates a new subscription.
See: Google Mirror API Reference for mirror.subscriptions.insert
.
Synopsis
- type SubscriptionsInsertResource = "mirror" :> ("v1" :> ("subscriptions" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Subscription :> Post '[JSON] Subscription))))
- subscriptionsInsert :: Subscription -> SubscriptionsInsert
- data SubscriptionsInsert
- siPayload :: Lens' SubscriptionsInsert Subscription
REST Resource
type SubscriptionsInsertResource = "mirror" :> ("v1" :> ("subscriptions" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Subscription :> Post '[JSON] Subscription)))) Source #
A resource alias for mirror.subscriptions.insert
method which the
SubscriptionsInsert
request conforms to.
Creating a Request
Creates a value of SubscriptionsInsert
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SubscriptionsInsert Source #
Creates a new subscription.
See: subscriptionsInsert
smart constructor.
Instances
Request Lenses
siPayload :: Lens' SubscriptionsInsert Subscription Source #
Multipart request metadata.