{-# 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.Analytics.Provisioning.CreateAccountTicket
(
ProvisioningCreateAccountTicketResource
, provisioningCreateAccountTicket
, ProvisioningCreateAccountTicket
, pPayload
) where
import Network.Google.Analytics.Types
import Network.Google.Prelude
type ProvisioningCreateAccountTicketResource =
"analytics" :>
"v3" :>
"provisioning" :>
"createAccountTicket" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] AccountTicket :>
Post '[JSON] AccountTicket
newtype ProvisioningCreateAccountTicket = ProvisioningCreateAccountTicket'
{ _pPayload :: AccountTicket
} deriving (Eq,Show,Data,Typeable,Generic)
provisioningCreateAccountTicket
:: AccountTicket
-> ProvisioningCreateAccountTicket
provisioningCreateAccountTicket pPPayload_ =
ProvisioningCreateAccountTicket'
{ _pPayload = pPPayload_
}
pPayload :: Lens' ProvisioningCreateAccountTicket AccountTicket
pPayload = lens _pPayload (\ s a -> s{_pPayload = a})
instance GoogleRequest
ProvisioningCreateAccountTicket where
type Rs ProvisioningCreateAccountTicket =
AccountTicket
type Scopes ProvisioningCreateAccountTicket =
'["https://www.googleapis.com/auth/analytics.provision"]
requestClient ProvisioningCreateAccountTicket'{..}
= go (Just AltJSON) _pPayload analyticsService
where go
= buildClient
(Proxy ::
Proxy ProvisioningCreateAccountTicketResource)
mempty