{-# 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.ReplicaPool.InstanceGroupManagers.Get -- Copyright : (c) 2015-2016 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Returns the specified Instance Group Manager resource. -- -- /See:/ for @replicapool.instanceGroupManagers.get@. module Network.Google.Resource.ReplicaPool.InstanceGroupManagers.Get ( -- * REST Resource InstanceGroupManagersGetResource -- * Creating a Request , instanceGroupManagersGet , InstanceGroupManagersGet -- * Request Lenses , igmgProject , igmgInstanceGroupManager , igmgZone ) where import Network.Google.Prelude import Network.Google.ReplicaPool.Types -- | A resource alias for @replicapool.instanceGroupManagers.get@ method which the -- 'InstanceGroupManagersGet' request conforms to. type InstanceGroupManagersGetResource = "replicapool" :> "v1beta2" :> "projects" :> Capture "project" Text :> "zones" :> Capture "zone" Text :> "instanceGroupManagers" :> Capture "instanceGroupManager" Text :> QueryParam "alt" AltJSON :> Get '[JSON] InstanceGroupManager -- | Returns the specified Instance Group Manager resource. -- -- /See:/ 'instanceGroupManagersGet' smart constructor. data InstanceGroupManagersGet = InstanceGroupManagersGet' { _igmgProject :: !Text , _igmgInstanceGroupManager :: !Text , _igmgZone :: !Text } deriving (Eq,Show,Data,Typeable,Generic) -- | Creates a value of 'InstanceGroupManagersGet' with the minimum fields required to make a request. -- -- Use one of the following lenses to modify other fields as desired: -- -- * 'igmgProject' -- -- * 'igmgInstanceGroupManager' -- -- * 'igmgZone' instanceGroupManagersGet :: Text -- ^ 'igmgProject' -> Text -- ^ 'igmgInstanceGroupManager' -> Text -- ^ 'igmgZone' -> InstanceGroupManagersGet instanceGroupManagersGet pIgmgProject_ pIgmgInstanceGroupManager_ pIgmgZone_ = InstanceGroupManagersGet' { _igmgProject = pIgmgProject_ , _igmgInstanceGroupManager = pIgmgInstanceGroupManager_ , _igmgZone = pIgmgZone_ } -- | The Google Developers Console project name. igmgProject :: Lens' InstanceGroupManagersGet Text igmgProject = lens _igmgProject (\ s a -> s{_igmgProject = a}) -- | Name of the instance resource to return. igmgInstanceGroupManager :: Lens' InstanceGroupManagersGet Text igmgInstanceGroupManager = lens _igmgInstanceGroupManager (\ s a -> s{_igmgInstanceGroupManager = a}) -- | The name of the zone in which the instance group manager resides. 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/cloud-platform.read-only", "https://www.googleapis.com/auth/compute", "https://www.googleapis.com/auth/compute.readonly"] requestClient InstanceGroupManagersGet'{..} = go _igmgProject _igmgZone _igmgInstanceGroupManager (Just AltJSON) replicaPoolService where go = buildClient (Proxy :: Proxy InstanceGroupManagersGetResource) mempty