{-# 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.Stop
(
SurveysStopResource
, surveysStop
, SurveysStop
, sResourceId
) where
import Network.Google.Prelude
import Network.Google.Surveys.Types
type SurveysStopResource =
"surveys" :>
"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/surveys",
"https://www.googleapis.com/auth/userinfo.email"]
requestClient SurveysStop'{..}
= go _sResourceId (Just AltJSON) surveysService
where go
= buildClient (Proxy :: Proxy SurveysStopResource)
mempty