{-# 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.RegionInstanceGroupManagers.Get
(
RegionInstanceGroupManagersGetResource
, regionInstanceGroupManagersGet
, RegionInstanceGroupManagersGet
, rigmgProject
, rigmgInstanceGroupManager
, rigmgRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type RegionInstanceGroupManagersGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"instanceGroupManagers" :>
Capture "instanceGroupManager" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] InstanceGroupManager
data RegionInstanceGroupManagersGet = RegionInstanceGroupManagersGet'
{ _rigmgProject :: !Text
, _rigmgInstanceGroupManager :: !Text
, _rigmgRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
regionInstanceGroupManagersGet
:: Text
-> Text
-> Text
-> RegionInstanceGroupManagersGet
regionInstanceGroupManagersGet pRigmgProject_ pRigmgInstanceGroupManager_ pRigmgRegion_ =
RegionInstanceGroupManagersGet'
{ _rigmgProject = pRigmgProject_
, _rigmgInstanceGroupManager = pRigmgInstanceGroupManager_
, _rigmgRegion = pRigmgRegion_
}
rigmgProject :: Lens' RegionInstanceGroupManagersGet Text
rigmgProject
= lens _rigmgProject (\ s a -> s{_rigmgProject = a})
rigmgInstanceGroupManager :: Lens' RegionInstanceGroupManagersGet Text
rigmgInstanceGroupManager
= lens _rigmgInstanceGroupManager
(\ s a -> s{_rigmgInstanceGroupManager = a})
rigmgRegion :: Lens' RegionInstanceGroupManagersGet Text
rigmgRegion
= lens _rigmgRegion (\ s a -> s{_rigmgRegion = a})
instance GoogleRequest RegionInstanceGroupManagersGet
where
type Rs RegionInstanceGroupManagersGet =
InstanceGroupManager
type Scopes RegionInstanceGroupManagersGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient RegionInstanceGroupManagersGet'{..}
= go _rigmgProject _rigmgRegion
_rigmgInstanceGroupManager
(Just AltJSON)
computeService
where go
= buildClient
(Proxy ::
Proxy RegionInstanceGroupManagersGetResource)
mempty