{-# 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.AcceleratorTypes.Get
(
AcceleratorTypesGetResource
, acceleratorTypesGet
, AcceleratorTypesGet
, atgAcceleratorType
, atgProject
, atgZone
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type AcceleratorTypesGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"acceleratorTypes" :>
Capture "acceleratorType" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] AcceleratorType
data AcceleratorTypesGet = AcceleratorTypesGet'
{ _atgAcceleratorType :: !Text
, _atgProject :: !Text
, _atgZone :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
acceleratorTypesGet
:: Text
-> Text
-> Text
-> AcceleratorTypesGet
acceleratorTypesGet pAtgAcceleratorType_ pAtgProject_ pAtgZone_ =
AcceleratorTypesGet'
{ _atgAcceleratorType = pAtgAcceleratorType_
, _atgProject = pAtgProject_
, _atgZone = pAtgZone_
}
atgAcceleratorType :: Lens' AcceleratorTypesGet Text
atgAcceleratorType
= lens _atgAcceleratorType
(\ s a -> s{_atgAcceleratorType = a})
atgProject :: Lens' AcceleratorTypesGet Text
atgProject
= lens _atgProject (\ s a -> s{_atgProject = a})
atgZone :: Lens' AcceleratorTypesGet Text
atgZone = lens _atgZone (\ s a -> s{_atgZone = a})
instance GoogleRequest AcceleratorTypesGet where
type Rs AcceleratorTypesGet = AcceleratorType
type Scopes AcceleratorTypesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient AcceleratorTypesGet'{..}
= go _atgProject _atgZone _atgAcceleratorType
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy AcceleratorTypesGetResource)
mempty