gogol-apps-reseller-0.5.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.ChangeRenewalSettings

Contents

Description

Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only.

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

Synopsis

REST Resource

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

A resource alias for reseller.subscriptions.changeRenewalSettings method which the SubscriptionsChangeRenewalSettings request conforms to.

Creating a Request

subscriptionsChangeRenewalSettings Source #

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

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

data SubscriptionsChangeRenewalSettings Source #

Update a user license's renewal settings. This is applicable for accounts with annual commitment plans only.

See: subscriptionsChangeRenewalSettings smart constructor.

Instances
Eq SubscriptionsChangeRenewalSettings Source # 
Instance details

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

Data SubscriptionsChangeRenewalSettings Source # 
Instance details

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

Methods

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

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

toConstr :: SubscriptionsChangeRenewalSettings -> Constr #

dataTypeOf :: SubscriptionsChangeRenewalSettings -> DataType #

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

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

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

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

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

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

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

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

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

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

Show SubscriptionsChangeRenewalSettings Source # 
Instance details

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

Generic SubscriptionsChangeRenewalSettings Source # 
Instance details

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

Associated Types

type Rep SubscriptionsChangeRenewalSettings :: Type -> Type #

GoogleRequest SubscriptionsChangeRenewalSettings Source # 
Instance details

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

type Rep SubscriptionsChangeRenewalSettings Source # 
Instance details

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

type Rep SubscriptionsChangeRenewalSettings = D1 (MetaData "SubscriptionsChangeRenewalSettings" "Network.Google.Resource.Reseller.Subscriptions.ChangeRenewalSettings" "gogol-apps-reseller-0.5.0-LrgHJstk5t63KhsRl6Fwh2" False) (C1 (MetaCons "SubscriptionsChangeRenewalSettings'" PrefixI True) (S1 (MetaSel (Just "_scrsPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 RenewalSettings) :*: (S1 (MetaSel (Just "_scrsCustomerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_scrsSubscriptionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Scopes SubscriptionsChangeRenewalSettings Source # 
Instance details

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

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

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

Request Lenses

scrsCustomerId :: Lens' SubscriptionsChangeRenewalSettings 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.

scrsSubscriptionId :: Lens' SubscriptionsChangeRenewalSettings 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.