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.Delete

Contents

Description

Cancel, suspend or transfer a subscription to direct.

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

Synopsis

REST Resource

type SubscriptionsDeleteResource = "apps" :> ("reseller" :> ("v1" :> ("customers" :> (Capture "customerId" Text :> ("subscriptions" :> (Capture "subscriptionId" Text :> (QueryParam "deletionType" SubscriptionsDeleteDeletionType :> (QueryParam "alt" AltJSON :> Delete '[JSON] ())))))))) Source #

A resource alias for reseller.subscriptions.delete method which the SubscriptionsDelete request conforms to.

Creating a Request

subscriptionsDelete Source #

Creates a value of SubscriptionsDelete with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data SubscriptionsDelete Source #

Cancel, suspend or transfer a subscription to direct.

See: subscriptionsDelete smart constructor.

Instances
Eq SubscriptionsDelete Source # 
Instance details

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

Data SubscriptionsDelete Source # 
Instance details

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

Methods

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

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

toConstr :: SubscriptionsDelete -> Constr #

dataTypeOf :: SubscriptionsDelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SubscriptionsDelete Source # 
Instance details

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

Generic SubscriptionsDelete Source # 
Instance details

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

Associated Types

type Rep SubscriptionsDelete :: Type -> Type #

GoogleRequest SubscriptionsDelete Source # 
Instance details

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

Associated Types

type Rs SubscriptionsDelete :: Type #

type Scopes SubscriptionsDelete :: [Symbol] #

type Rep SubscriptionsDelete Source # 
Instance details

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

type Rep SubscriptionsDelete = D1 (MetaData "SubscriptionsDelete" "Network.Google.Resource.Reseller.Subscriptions.Delete" "gogol-apps-reseller-0.4.0-KDuipGWXeWG9naMHX80l3C" False) (C1 (MetaCons "SubscriptionsDelete'" PrefixI True) (S1 (MetaSel (Just "_sdCustomerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_sdDeletionType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 SubscriptionsDeleteDeletionType) :*: S1 (MetaSel (Just "_sdSubscriptionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes SubscriptionsDelete Source # 
Instance details

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

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

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

Request Lenses

sdCustomerId :: Lens' SubscriptionsDelete 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.

sdDeletionType :: Lens' SubscriptionsDelete SubscriptionsDeleteDeletionType Source #

The deletionType query string enables the cancellation, downgrade, or suspension of a subscription.

sdSubscriptionId :: Lens' SubscriptionsDelete 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.