{-# 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.PlusDomains.Circles.Remove
(
CirclesRemoveResource
, circlesRemove
, CirclesRemove
, crCircleId
) where
import Network.Google.PlusDomains.Types
import Network.Google.Prelude
type CirclesRemoveResource =
"plusDomains" :>
"v1" :>
"circles" :>
Capture "circleId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
newtype CirclesRemove = CirclesRemove'
{ _crCircleId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
circlesRemove
:: Text
-> CirclesRemove
circlesRemove pCrCircleId_ =
CirclesRemove'
{ _crCircleId = pCrCircleId_
}
crCircleId :: Lens' CirclesRemove Text
crCircleId
= lens _crCircleId (\ s a -> s{_crCircleId = a})
instance GoogleRequest CirclesRemove where
type Rs CirclesRemove = ()
type Scopes CirclesRemove =
'["https://www.googleapis.com/auth/plus.circles.write",
"https://www.googleapis.com/auth/plus.login"]
requestClient CirclesRemove'{..}
= go _crCircleId (Just AltJSON) plusDomainsService
where go
= buildClient (Proxy :: Proxy CirclesRemoveResource)
mempty