gogol-apps-reseller-0.3.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.ChangePlan

Contents

Description

Changes the plan of a subscription

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

Synopsis

REST Resource

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

A resource alias for reseller.subscriptions.changePlan method which the SubscriptionsChangePlan request conforms to.

Creating a Request

subscriptionsChangePlan Source #

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

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

data SubscriptionsChangePlan Source #

Changes the plan of a subscription

See: subscriptionsChangePlan smart constructor.

Instances

Eq SubscriptionsChangePlan Source # 
Data SubscriptionsChangePlan Source # 

Methods

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

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

toConstr :: SubscriptionsChangePlan -> Constr #

dataTypeOf :: SubscriptionsChangePlan -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SubscriptionsChangePlan Source # 
Generic SubscriptionsChangePlan Source # 
GoogleRequest SubscriptionsChangePlan Source # 
type Rep SubscriptionsChangePlan Source # 
type Rep SubscriptionsChangePlan = D1 (MetaData "SubscriptionsChangePlan" "Network.Google.Resource.Reseller.Subscriptions.ChangePlan" "gogol-apps-reseller-0.3.0-ELCuCD0vJLJA2WA0esmS4u" False) (C1 (MetaCons "SubscriptionsChangePlan'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_scpPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ChangePlanRequest)) ((:*:) (S1 (MetaSel (Just Symbol "_scpCustomerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_scpSubscriptionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Scopes SubscriptionsChangePlan Source # 
type Scopes SubscriptionsChangePlan = (:) Symbol "https://www.googleapis.com/auth/apps.order" ([] Symbol)
type Rs SubscriptionsChangePlan Source # 

Request Lenses

scpSubscriptionId :: Lens' SubscriptionsChangePlan Text Source #

Id of the subscription, which is unique for a customer