{-# 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.Mirror.Settings.Get
(
SettingsGetResource
, settingsGet
, SettingsGet
, sgId
) where
import Network.Google.Mirror.Types
import Network.Google.Prelude
type SettingsGetResource =
"mirror" :>
"v1" :>
"settings" :>
Capture "id" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Setting
newtype SettingsGet = SettingsGet'
{ _sgId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
settingsGet
:: Text
-> SettingsGet
settingsGet pSgId_ =
SettingsGet'
{ _sgId = pSgId_
}
sgId :: Lens' SettingsGet Text
sgId = lens _sgId (\ s a -> s{_sgId = a})
instance GoogleRequest SettingsGet where
type Rs SettingsGet = Setting
type Scopes SettingsGet =
'["https://www.googleapis.com/auth/glass.timeline"]
requestClient SettingsGet'{..}
= go _sgId (Just AltJSON) mirrorService
where go
= buildClient (Proxy :: Proxy SettingsGetResource)
mempty