{-# 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.Locations.Get
(
LocationsGetResource
, locationsGet
, LocationsGet
, lgId
) where
import Network.Google.Mirror.Types
import Network.Google.Prelude
type LocationsGetResource =
"mirror" :>
"v1" :>
"locations" :>
Capture "id" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Location
newtype LocationsGet = LocationsGet'
{ _lgId :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
locationsGet
:: Text
-> LocationsGet
locationsGet pLgId_ =
LocationsGet'
{ _lgId = pLgId_
}
lgId :: Lens' LocationsGet Text
lgId = lens _lgId (\ s a -> s{_lgId = a})
instance GoogleRequest LocationsGet where
type Rs LocationsGet = Location
type Scopes LocationsGet =
'["https://www.googleapis.com/auth/glass.location",
"https://www.googleapis.com/auth/glass.timeline"]
requestClient LocationsGet'{..}
= go _lgId (Just AltJSON) mirrorService
where go
= buildClient (Proxy :: Proxy LocationsGetResource)
mempty