gogol-apps-reseller-0.4.0: Google Enterprise Apps Reseller SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.Reseller.Subscriptions.Insert

Contents

Description

Create or transfer a subscription.

See: Enterprise Apps Reseller API Reference for reseller.subscriptions.insert.

Synopsis

REST Resource

type SubscriptionsInsertResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (QueryParam "customerAuthToken" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Subscription :> Post '[JSON] Subscription)))))))) Source #

A resource alias for reseller.subscriptions.insert method which the SubscriptionsInsert request conforms to.

Creating a Request

subscriptionsInsert Source #

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 #

Create or transfer a subscription.

See: subscriptionsInsert smart constructor.

Instances
Eq SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Reseller.Subscriptions.Insert

Data SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Reseller.Subscriptions.Insert

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SubscriptionsInsert -> c SubscriptionsInsert #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SubscriptionsInsert #

toConstr :: SubscriptionsInsert -> Constr #

dataTypeOf :: SubscriptionsInsert -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c SubscriptionsInsert) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SubscriptionsInsert) #

gmapT :: (forall b. Data b => b -> b) -> SubscriptionsInsert -> SubscriptionsInsert #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SubscriptionsInsert -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SubscriptionsInsert -> r #

gmapQ :: (forall d. Data d => d -> u) -> SubscriptionsInsert -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SubscriptionsInsert -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SubscriptionsInsert -> m SubscriptionsInsert #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SubscriptionsInsert -> m SubscriptionsInsert #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SubscriptionsInsert -> m SubscriptionsInsert #

Show SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Reseller.Subscriptions.Insert

Generic SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Reseller.Subscriptions.Insert

Associated Types

type Rep SubscriptionsInsert :: Type -> Type #

GoogleRequest SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Reseller.Subscriptions.Insert

Associated Types

type Rs SubscriptionsInsert :: Type #

type Scopes SubscriptionsInsert :: [Symbol] #

type Rep SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Reseller.Subscriptions.Insert

type Rep SubscriptionsInsert = D1 (MetaData "SubscriptionsInsert" "Network.Google.Resource.Reseller.Subscriptions.Insert" "gogol-apps-reseller-0.4.0-KDuipGWXeWG9naMHX80l3C" False) (C1 (MetaCons "SubscriptionsInsert'" PrefixI True) (S1 (MetaSel (Just "_siPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Subscription) :*: (S1 (MetaSel (Just "_siCustomerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_siCustomerAuthToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))
type Scopes SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Reseller.Subscriptions.Insert

type Scopes SubscriptionsInsert = "https://www.googleapis.com/auth/apps.order" ': ([] :: [Symbol])
type Rs SubscriptionsInsert Source # 
Instance details

Defined in Network.Google.Resource.Reseller.Subscriptions.Insert

Request Lenses

siPayload :: Lens' SubscriptionsInsert Subscription Source #

Multipart request metadata.

siCustomerId :: Lens' SubscriptionsInsert 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.

siCustomerAuthToken :: Lens' SubscriptionsInsert (Maybe Text) Source #

The customerAuthToken query string is required when creating a resold account that transfers a direct customer's subscription or transfers another reseller customer's subscription to your reseller management. This is a hexadecimal authentication token needed to complete the subscription transfer. For more information, see the administrator help center.