{-# 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.Resellernotify.Register
(
ResellernotifyRegisterResource
, resellernotifyRegister
, ResellernotifyRegister
, rrServiceAccountEmailAddress
) where
import Network.Google.AppsReseller.Types
import Network.Google.Prelude
type ResellernotifyRegisterResource =
"apps" :>
"reseller" :>
"v1" :>
"resellernotify" :>
"register" :>
QueryParam "serviceAccountEmailAddress" Text :>
QueryParam "alt" AltJSON :>
Post '[JSON] ResellernotifyResource
newtype ResellernotifyRegister = ResellernotifyRegister'
{ _rrServiceAccountEmailAddress :: Maybe Text
} deriving (Eq,Show,Data,Typeable,Generic)
resellernotifyRegister
:: ResellernotifyRegister
resellernotifyRegister =
ResellernotifyRegister'
{ _rrServiceAccountEmailAddress = Nothing
}
rrServiceAccountEmailAddress :: Lens' ResellernotifyRegister (Maybe Text)
rrServiceAccountEmailAddress
= lens _rrServiceAccountEmailAddress
(\ s a -> s{_rrServiceAccountEmailAddress = a})
instance GoogleRequest ResellernotifyRegister where
type Rs ResellernotifyRegister =
ResellernotifyResource
type Scopes ResellernotifyRegister =
'["https://www.googleapis.com/auth/apps.order"]
requestClient ResellernotifyRegister'{..}
= go _rrServiceAccountEmailAddress (Just AltJSON)
appsResellerService
where go
= buildClient
(Proxy :: Proxy ResellernotifyRegisterResource)
mempty