{-# 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.RegionInstanceGroups.Get
(
RegionInstanceGroupsGetResource
, regionInstanceGroupsGet
, RegionInstanceGroupsGet
, riggProject
, riggRegion
, riggInstanceGroup
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type RegionInstanceGroupsGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"instanceGroups" :>
Capture "instanceGroup" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] InstanceGroup
data RegionInstanceGroupsGet = RegionInstanceGroupsGet'
{ _riggProject :: !Text
, _riggRegion :: !Text
, _riggInstanceGroup :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
regionInstanceGroupsGet
:: Text
-> Text
-> Text
-> RegionInstanceGroupsGet
regionInstanceGroupsGet pRiggProject_ pRiggRegion_ pRiggInstanceGroup_ =
RegionInstanceGroupsGet'
{ _riggProject = pRiggProject_
, _riggRegion = pRiggRegion_
, _riggInstanceGroup = pRiggInstanceGroup_
}
riggProject :: Lens' RegionInstanceGroupsGet Text
riggProject
= lens _riggProject (\ s a -> s{_riggProject = a})
riggRegion :: Lens' RegionInstanceGroupsGet Text
riggRegion
= lens _riggRegion (\ s a -> s{_riggRegion = a})
riggInstanceGroup :: Lens' RegionInstanceGroupsGet Text
riggInstanceGroup
= lens _riggInstanceGroup
(\ s a -> s{_riggInstanceGroup = a})
instance GoogleRequest RegionInstanceGroupsGet where
type Rs RegionInstanceGroupsGet = InstanceGroup
type Scopes RegionInstanceGroupsGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient RegionInstanceGroupsGet'{..}
= go _riggProject _riggRegion _riggInstanceGroup
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy RegionInstanceGroupsGetResource)
mempty