{-# 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.InterconnectLocations.Get
(
InterconnectLocationsGetResource
, interconnectLocationsGet
, InterconnectLocationsGet
, ilgProject
, ilgInterconnectLocation
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InterconnectLocationsGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"interconnectLocations" :>
Capture "interconnectLocation" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] InterconnectLocation
data InterconnectLocationsGet = InterconnectLocationsGet'
{ _ilgProject :: !Text
, _ilgInterconnectLocation :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
interconnectLocationsGet
:: Text
-> Text
-> InterconnectLocationsGet
interconnectLocationsGet pIlgProject_ pIlgInterconnectLocation_ =
InterconnectLocationsGet'
{ _ilgProject = pIlgProject_
, _ilgInterconnectLocation = pIlgInterconnectLocation_
}
ilgProject :: Lens' InterconnectLocationsGet Text
ilgProject
= lens _ilgProject (\ s a -> s{_ilgProject = a})
ilgInterconnectLocation :: Lens' InterconnectLocationsGet Text
ilgInterconnectLocation
= lens _ilgInterconnectLocation
(\ s a -> s{_ilgInterconnectLocation = a})
instance GoogleRequest InterconnectLocationsGet where
type Rs InterconnectLocationsGet =
InterconnectLocation
type Scopes InterconnectLocationsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient InterconnectLocationsGet'{..}
= go _ilgProject _ilgInterconnectLocation
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy InterconnectLocationsGetResource)
mempty