{-# 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.Surveys.Surveys.Delete
(
SurveysDeleteResource
, surveysDelete
, SurveysDelete
, sdSurveyURLId
) where
import Network.Google.Prelude
import Network.Google.Surveys.Types
type SurveysDeleteResource =
"surveys" :>
"v2" :>
"surveys" :>
Capture "surveyUrlId" Text :>
QueryParam "alt" AltJSON :>
Delete '[JSON] SurveysDeleteResponse
newtype SurveysDelete = SurveysDelete'
{ _sdSurveyURLId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
surveysDelete
:: Text
-> SurveysDelete
surveysDelete pSdSurveyURLId_ =
SurveysDelete'
{ _sdSurveyURLId = pSdSurveyURLId_
}
sdSurveyURLId :: Lens' SurveysDelete Text
sdSurveyURLId
= lens _sdSurveyURLId
(\ s a -> s{_sdSurveyURLId = a})
instance GoogleRequest SurveysDelete where
type Rs SurveysDelete = SurveysDeleteResponse
type Scopes SurveysDelete =
'["https://www.googleapis.com/auth/surveys",
"https://www.googleapis.com/auth/userinfo.email"]
requestClient SurveysDelete'{..}
= go _sdSurveyURLId (Just AltJSON) surveysService
where go
= buildClient (Proxy :: Proxy SurveysDeleteResource)
mempty