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 |
Lists subscriptions of a reseller, optionally filtered by a customer name prefix.
See: Enterprise Apps Reseller API Reference for reseller.subscriptions.list
.
- type SubscriptionsListResource = "apps" :> ("reseller" :> ("v1" :> ("subscriptions" :> (QueryParam "customerNamePrefix" Text :> (QueryParam "customerId" Text :> (QueryParam "customerAuthToken" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Subscriptions)))))))))
- subscriptionsList :: SubscriptionsList
- data SubscriptionsList
- slCustomerNamePrefix :: Lens' SubscriptionsList (Maybe Text)
- slCustomerId :: Lens' SubscriptionsList (Maybe Text)
- slCustomerAuthToken :: Lens' SubscriptionsList (Maybe Text)
- slPageToken :: Lens' SubscriptionsList (Maybe Text)
- slMaxResults :: Lens' SubscriptionsList (Maybe Word32)
REST Resource
type SubscriptionsListResource = "apps" :> ("reseller" :> ("v1" :> ("subscriptions" :> (QueryParam "customerNamePrefix" Text :> (QueryParam "customerId" Text :> (QueryParam "customerAuthToken" Text :> (QueryParam "pageToken" Text :> (QueryParam "maxResults" (Textual Word32) :> (QueryParam "alt" AltJSON :> Get '[JSON] Subscriptions))))))))) Source #
A resource alias for reseller.subscriptions.list
method which the
SubscriptionsList
request conforms to.
Creating a Request
subscriptionsList :: SubscriptionsList Source #
Creates a value of SubscriptionsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SubscriptionsList Source #
Lists subscriptions of a reseller, optionally filtered by a customer name prefix.
See: subscriptionsList
smart constructor.
Request Lenses
slCustomerNamePrefix :: Lens' SubscriptionsList (Maybe Text) Source #
Prefix of the customer's domain name by which the subscriptions should be filtered. Optional
slCustomerId :: Lens' SubscriptionsList (Maybe Text) Source #
Id of the Customer
slCustomerAuthToken :: Lens' SubscriptionsList (Maybe Text) Source #
An auth token needed if the customer is not a resold customer of this reseller. Can be generated at https://www.google.com/a/cpanel/customer-domain/TransferToken.Optional.
slPageToken :: Lens' SubscriptionsList (Maybe Text) Source #
Token to specify next page in the list
slMaxResults :: Lens' SubscriptionsList (Maybe Word32) Source #
Maximum number of results to return