{-# LANGUAGE DataKinds #-}
{-# LANGUAGE DeriveDataTypeable #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE FlexibleInstances #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# LANGUAGE OverloadedStrings #-}
{-# LANGUAGE RecordWildCards #-}
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE TypeOperators #-}
{-# OPTIONS_GHC -fno-warn-duplicate-exports #-}
{-# OPTIONS_GHC -fno-warn-unused-binds #-}
{-# OPTIONS_GHC -fno-warn-unused-imports #-}
module Network.Google.Resource.Reseller.Subscriptions.ChangeSeats
(
SubscriptionsChangeSeatsResource
, subscriptionsChangeSeats
, SubscriptionsChangeSeats
, scsPayload
, scsCustomerId
, scsSubscriptionId
) where
import Network.Google.AppsReseller.Types
import Network.Google.Prelude
type SubscriptionsChangeSeatsResource =
"apps" :>
"reseller" :>
"v1" :>
"customers" :>
Capture "customerId" Text :>
"subscriptions" :>
Capture "subscriptionId" Text :>
"changeSeats" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Seats :> Post '[JSON] Subscription
data SubscriptionsChangeSeats = SubscriptionsChangeSeats'
{ _scsPayload :: !Seats
, _scsCustomerId :: !Text
, _scsSubscriptionId :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
subscriptionsChangeSeats
:: Seats
-> Text
-> Text
-> SubscriptionsChangeSeats
subscriptionsChangeSeats pScsPayload_ pScsCustomerId_ pScsSubscriptionId_ =
SubscriptionsChangeSeats'
{ _scsPayload = pScsPayload_
, _scsCustomerId = pScsCustomerId_
, _scsSubscriptionId = pScsSubscriptionId_
}
scsPayload :: Lens' SubscriptionsChangeSeats Seats
scsPayload
= lens _scsPayload (\ s a -> s{_scsPayload = a})
scsCustomerId :: Lens' SubscriptionsChangeSeats Text
scsCustomerId
= lens _scsCustomerId
(\ s a -> s{_scsCustomerId = a})
scsSubscriptionId :: Lens' SubscriptionsChangeSeats Text
scsSubscriptionId
= lens _scsSubscriptionId
(\ s a -> s{_scsSubscriptionId = a})
instance GoogleRequest SubscriptionsChangeSeats where
type Rs SubscriptionsChangeSeats = Subscription
type Scopes SubscriptionsChangeSeats =
'["https://www.googleapis.com/auth/apps.order"]
requestClient SubscriptionsChangeSeats'{..}
= go _scsCustomerId _scsSubscriptionId (Just AltJSON)
_scsPayload
appsResellerService
where go
= buildClient
(Proxy :: Proxy SubscriptionsChangeSeatsResource)
mempty