{-# 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.AndroidEnterprise.Enterprises.CompleteSignup
(
EnterprisesCompleteSignupResource
, enterprisesCompleteSignup
, EnterprisesCompleteSignup
, ecsCompletionToken
, ecsEnterpriseToken
) where
import Network.Google.AndroidEnterprise.Types
import Network.Google.Prelude
type EnterprisesCompleteSignupResource =
"androidenterprise" :>
"v1" :>
"enterprises" :>
"completeSignup" :>
QueryParam "completionToken" Text :>
QueryParam "enterpriseToken" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] Enterprise
data EnterprisesCompleteSignup = EnterprisesCompleteSignup'
{ _ecsCompletionToken :: !(Maybe Text)
, _ecsEnterpriseToken :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
enterprisesCompleteSignup
:: EnterprisesCompleteSignup
enterprisesCompleteSignup =
EnterprisesCompleteSignup'
{ _ecsCompletionToken = Nothing
, _ecsEnterpriseToken = Nothing
}
ecsCompletionToken :: Lens' EnterprisesCompleteSignup (Maybe Text)
ecsCompletionToken
= lens _ecsCompletionToken
(\ s a -> s{_ecsCompletionToken = a})
ecsEnterpriseToken :: Lens' EnterprisesCompleteSignup (Maybe Text)
ecsEnterpriseToken
= lens _ecsEnterpriseToken
(\ s a -> s{_ecsEnterpriseToken = a})
instance GoogleRequest EnterprisesCompleteSignup
where
type Rs EnterprisesCompleteSignup = Enterprise
type Scopes EnterprisesCompleteSignup =
'["https://www.googleapis.com/auth/androidenterprise"]
requestClient EnterprisesCompleteSignup'{..}
= go _ecsCompletionToken _ecsEnterpriseToken
(Just AltJSON)
androidEnterpriseService
where go
= buildClient
(Proxy :: Proxy EnterprisesCompleteSignupResource)
mempty