{-# 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.InstanceGroupManagers.Get
(
InstanceGroupManagersGetResource
, instanceGroupManagersGet
, InstanceGroupManagersGet
, igmgProject
, igmgInstanceGroupManager
, igmgZone
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InstanceGroupManagersGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"instanceGroupManagers" :>
Capture "instanceGroupManager" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] InstanceGroupManager
data InstanceGroupManagersGet = InstanceGroupManagersGet'
{ _igmgProject :: !Text
, _igmgInstanceGroupManager :: !Text
, _igmgZone :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
instanceGroupManagersGet
:: Text
-> Text
-> Text
-> InstanceGroupManagersGet
instanceGroupManagersGet pIgmgProject_ pIgmgInstanceGroupManager_ pIgmgZone_ =
InstanceGroupManagersGet'
{ _igmgProject = pIgmgProject_
, _igmgInstanceGroupManager = pIgmgInstanceGroupManager_
, _igmgZone = pIgmgZone_
}
igmgProject :: Lens' InstanceGroupManagersGet Text
igmgProject
= lens _igmgProject (\ s a -> s{_igmgProject = a})
igmgInstanceGroupManager :: Lens' InstanceGroupManagersGet Text
igmgInstanceGroupManager
= lens _igmgInstanceGroupManager
(\ s a -> s{_igmgInstanceGroupManager = a})
igmgZone :: Lens' InstanceGroupManagersGet Text
igmgZone = lens _igmgZone (\ s a -> s{_igmgZone = a})
instance GoogleRequest InstanceGroupManagersGet where
type Rs InstanceGroupManagersGet =
InstanceGroupManager
type Scopes InstanceGroupManagersGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient InstanceGroupManagersGet'{..}
= go _igmgProject _igmgZone _igmgInstanceGroupManager
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy InstanceGroupManagersGetResource)
mempty