{-# 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.Get
(
CirclesGetResource
, circlesGet
, CirclesGet
, cgCircleId
) where
import Network.Google.PlusDomains.Types
import Network.Google.Prelude
type CirclesGetResource =
"plusDomains" :>
"v1" :>
"circles" :>
Capture "circleId" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Circle
newtype CirclesGet = CirclesGet'
{ _cgCircleId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
circlesGet
:: Text
-> CirclesGet
circlesGet pCgCircleId_ =
CirclesGet'
{ _cgCircleId = pCgCircleId_
}
cgCircleId :: Lens' CirclesGet Text
cgCircleId
= lens _cgCircleId (\ s a -> s{_cgCircleId = a})
instance GoogleRequest CirclesGet where
type Rs CirclesGet = Circle
type Scopes CirclesGet =
'["https://www.googleapis.com/auth/plus.circles.read",
"https://www.googleapis.com/auth/plus.login"]
requestClient CirclesGet'{..}
= go _cgCircleId (Just AltJSON) plusDomainsService
where go
= buildClient (Proxy :: Proxy CirclesGetResource)
mempty