{-# 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.ConsumerSurveys.Surveys.Stop
(
SurveysStopResource
, surveysStop
, SurveysStop
, sResourceId
) where
import Network.Google.ConsumerSurveys.Types
import Network.Google.Prelude
type SurveysStopResource =
"consumersurveys" :>
"v2" :>
"surveys" :>
Capture "resourceId" Text :>
"stop" :>
QueryParam "alt" AltJSON :>
Post '[JSON] SurveysStopResponse
newtype SurveysStop = SurveysStop'
{ _sResourceId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
surveysStop
:: Text
-> SurveysStop
surveysStop pSResourceId_ =
SurveysStop'
{ _sResourceId = pSResourceId_
}
sResourceId :: Lens' SurveysStop Text
sResourceId
= lens _sResourceId (\ s a -> s{_sResourceId = a})
instance GoogleRequest SurveysStop where
type Rs SurveysStop = SurveysStopResponse
type Scopes SurveysStop =
'["https://www.googleapis.com/auth/consumersurveys",
"https://www.googleapis.com/auth/userinfo.email"]
requestClient SurveysStop'{..}
= go _sResourceId (Just AltJSON)
consumerSurveysService
where go
= buildClient (Proxy :: Proxy SurveysStopResource)
mempty