{-# 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.RegionBackendServices.Get
(
RegionBackendServicesGetResource
, regionBackendServicesGet
, RegionBackendServicesGet
, rbsgProject
, rbsgRegion
, rbsgBackendService
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type RegionBackendServicesGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"backendServices" :>
Capture "backendService" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] BackendService
data RegionBackendServicesGet = RegionBackendServicesGet'
{ _rbsgProject :: !Text
, _rbsgRegion :: !Text
, _rbsgBackendService :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
regionBackendServicesGet
:: Text
-> Text
-> Text
-> RegionBackendServicesGet
regionBackendServicesGet pRbsgProject_ pRbsgRegion_ pRbsgBackendService_ =
RegionBackendServicesGet'
{ _rbsgProject = pRbsgProject_
, _rbsgRegion = pRbsgRegion_
, _rbsgBackendService = pRbsgBackendService_
}
rbsgProject :: Lens' RegionBackendServicesGet Text
rbsgProject
= lens _rbsgProject (\ s a -> s{_rbsgProject = a})
rbsgRegion :: Lens' RegionBackendServicesGet Text
rbsgRegion
= lens _rbsgRegion (\ s a -> s{_rbsgRegion = a})
rbsgBackendService :: Lens' RegionBackendServicesGet Text
rbsgBackendService
= lens _rbsgBackendService
(\ s a -> s{_rbsgBackendService = a})
instance GoogleRequest RegionBackendServicesGet where
type Rs RegionBackendServicesGet = BackendService
type Scopes RegionBackendServicesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient RegionBackendServicesGet'{..}
= go _rbsgProject _rbsgRegion _rbsgBackendService
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy RegionBackendServicesGetResource)
mempty