{-# 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.Compute.URLMaps.Get
(
URLMapsGetResource
, urlMapsGet
, URLMapsGet
, umgURLMap
, umgProject
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type URLMapsGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"urlMaps" :>
Capture "urlMap" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] URLMap
data URLMapsGet = URLMapsGet'
{ _umgURLMap :: !Text
, _umgProject :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
urlMapsGet
:: Text
-> Text
-> URLMapsGet
urlMapsGet pUmgURLMap_ pUmgProject_ =
URLMapsGet'
{ _umgURLMap = pUmgURLMap_
, _umgProject = pUmgProject_
}
umgURLMap :: Lens' URLMapsGet Text
umgURLMap
= lens _umgURLMap (\ s a -> s{_umgURLMap = a})
umgProject :: Lens' URLMapsGet Text
umgProject
= lens _umgProject (\ s a -> s{_umgProject = a})
instance GoogleRequest URLMapsGet where
type Rs URLMapsGet = URLMap
type Scopes URLMapsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient URLMapsGet'{..}
= go _umgProject _umgURLMap (Just AltJSON)
computeService
where go
= buildClient (Proxy :: Proxy URLMapsGetResource)
mempty