{-# 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.RegionDiskTypes.Get
(
RegionDiskTypesGetResource
, regionDiskTypesGet
, RegionDiskTypesGet
, rdtgProject
, rdtgDiskType
, rdtgRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type RegionDiskTypesGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"diskTypes" :>
Capture "diskType" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] DiskType
data RegionDiskTypesGet = RegionDiskTypesGet'
{ _rdtgProject :: !Text
, _rdtgDiskType :: !Text
, _rdtgRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
regionDiskTypesGet
:: Text
-> Text
-> Text
-> RegionDiskTypesGet
regionDiskTypesGet pRdtgProject_ pRdtgDiskType_ pRdtgRegion_ =
RegionDiskTypesGet'
{ _rdtgProject = pRdtgProject_
, _rdtgDiskType = pRdtgDiskType_
, _rdtgRegion = pRdtgRegion_
}
rdtgProject :: Lens' RegionDiskTypesGet Text
rdtgProject
= lens _rdtgProject (\ s a -> s{_rdtgProject = a})
rdtgDiskType :: Lens' RegionDiskTypesGet Text
rdtgDiskType
= lens _rdtgDiskType (\ s a -> s{_rdtgDiskType = a})
rdtgRegion :: Lens' RegionDiskTypesGet Text
rdtgRegion
= lens _rdtgRegion (\ s a -> s{_rdtgRegion = a})
instance GoogleRequest RegionDiskTypesGet where
type Rs RegionDiskTypesGet = DiskType
type Scopes RegionDiskTypesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient RegionDiskTypesGet'{..}
= go _rdtgProject _rdtgRegion _rdtgDiskType
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy RegionDiskTypesGetResource)
mempty