{-# 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.DoubleClickBidManager.Queries.DeleteQuery
(
QueriesDeleteQueryResource
, queriesDeleteQuery
, QueriesDeleteQuery
, qdqQueryId
) where
import Network.Google.DoubleClickBids.Types
import Network.Google.Prelude
type QueriesDeleteQueryResource =
"doubleclickbidmanager" :>
"v1" :>
"query" :>
Capture "queryId" (Textual Int64) :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype QueriesDeleteQuery = QueriesDeleteQuery'
{ _qdqQueryId :: Textual Int64
} deriving (Eq,Show,Data,Typeable,Generic)
queriesDeleteQuery
:: Int64
-> QueriesDeleteQuery
queriesDeleteQuery pQdqQueryId_ =
QueriesDeleteQuery'
{ _qdqQueryId = _Coerce # pQdqQueryId_
}
qdqQueryId :: Lens' QueriesDeleteQuery Int64
qdqQueryId
= lens _qdqQueryId (\ s a -> s{_qdqQueryId = a}) .
_Coerce
instance GoogleRequest QueriesDeleteQuery where
type Rs QueriesDeleteQuery = ()
type Scopes QueriesDeleteQuery =
'["https://www.googleapis.com/auth/doubleclickbidmanager"]
requestClient QueriesDeleteQuery'{..}
= go _qdqQueryId (Just AltJSON)
doubleClickBidsService
where go
= buildClient
(Proxy :: Proxy QueriesDeleteQueryResource)
mempty