{-# 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.Admin.Channels.Stop
(
ChannelsStopResource
, channelsStop
, ChannelsStop
, csPayload
) where
import Network.Google.Directory.Types
import Network.Google.Prelude
type ChannelsStopResource =
"admin" :>
"directory" :>
"v1" :>
"admin" :>
"directory_v1" :>
"channels" :>
"stop" :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] Channel :> Post '[JSON] ()
newtype ChannelsStop = ChannelsStop'
{ _csPayload :: Channel
} deriving (Eq,Show,Data,Typeable,Generic)
channelsStop
:: Channel
-> ChannelsStop
channelsStop pCsPayload_ =
ChannelsStop'
{ _csPayload = pCsPayload_
}
csPayload :: Lens' ChannelsStop Channel
csPayload
= lens _csPayload (\ s a -> s{_csPayload = a})
instance GoogleRequest ChannelsStop where
type Rs ChannelsStop = ()
type Scopes ChannelsStop =
'["https://www.googleapis.com/auth/admin.directory.user",
"https://www.googleapis.com/auth/admin.directory.user.alias",
"https://www.googleapis.com/auth/admin.directory.user.alias.readonly",
"https://www.googleapis.com/auth/admin.directory.user.readonly"]
requestClient ChannelsStop'{..}
= go (Just AltJSON) _csPayload directoryService
where go
= buildClient (Proxy :: Proxy ChannelsStopResource)
mempty