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

Contents

Description

Suspends an active subscription.

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

Synopsis

REST Resource

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

A resource alias for reseller.subscriptions.suspend method which the SubscriptionsSuspend request conforms to.

Creating a Request

subscriptionsSuspend Source #

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

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

data SubscriptionsSuspend Source #

Suspends an active subscription.

See: subscriptionsSuspend smart constructor.

Instances
Eq SubscriptionsSuspend Source # 
Instance details

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

Data SubscriptionsSuspend Source # 
Instance details

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

Methods

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

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

toConstr :: SubscriptionsSuspend -> Constr #

dataTypeOf :: SubscriptionsSuspend -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SubscriptionsSuspend Source # 
Instance details

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

Generic SubscriptionsSuspend Source # 
Instance details

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

Associated Types

type Rep SubscriptionsSuspend :: Type -> Type #

GoogleRequest SubscriptionsSuspend Source # 
Instance details

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

Associated Types

type Rs SubscriptionsSuspend :: Type #

type Scopes SubscriptionsSuspend :: [Symbol] #

type Rep SubscriptionsSuspend Source # 
Instance details

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

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

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

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

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

Request Lenses

ssCustomerId :: Lens' SubscriptionsSuspend 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.

ssSubscriptionId :: Lens' SubscriptionsSuspend 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.