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 |
Update a subscription's user license settings.
See: Enterprise Apps Reseller API Reference for reseller.subscriptions.changeSeats
.
Synopsis
- type SubscriptionsChangeSeatsResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("changeSeats" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Seats :> Post '[JSON] Subscription)))))))))
- subscriptionsChangeSeats :: Seats -> Text -> Text -> SubscriptionsChangeSeats
- data SubscriptionsChangeSeats
- scsPayload :: Lens' SubscriptionsChangeSeats Seats
- scsCustomerId :: Lens' SubscriptionsChangeSeats Text
- scsSubscriptionId :: Lens' SubscriptionsChangeSeats Text
REST Resource
type SubscriptionsChangeSeatsResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> ("changeSeats" :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Seats :> Post '[JSON] Subscription))))))))) Source #
A resource alias for reseller.subscriptions.changeSeats
method which the
SubscriptionsChangeSeats
request conforms to.
Creating a Request
subscriptionsChangeSeats Source #
Creates a value of SubscriptionsChangeSeats
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SubscriptionsChangeSeats Source #
Update a subscription's user license settings.
See: subscriptionsChangeSeats
smart constructor.
Instances
Request Lenses
scsPayload :: Lens' SubscriptionsChangeSeats Seats Source #
Multipart request metadata.
scsCustomerId :: Lens' SubscriptionsChangeSeats Text Source #
Either the customer's primary domain name or the customer's unique identifier. If using the domain name, we do not recommend using a customerId as a key for persistent data. If the domain name for a customerId is changed, the Google system automatically updates.
scsSubscriptionId :: Lens' SubscriptionsChangeSeats Text Source #
This is a required property. The subscriptionId is the subscription identifier and is unique for each customer. Since a subscriptionId changes when a subscription is updated, we recommend to not use this ID as a key for persistent data. And the subscriptionId can be found using the retrieve all reseller subscriptions method.