{-# 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.NodeTypes.Get
(
NodeTypesGetResource
, nodeTypesGet
, NodeTypesGet
, ntgProject
, ntgZone
, ntgNodeType
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type NodeTypesGetResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"nodeTypes" :>
Capture "nodeType" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] NodeType
data NodeTypesGet = NodeTypesGet'
{ _ntgProject :: !Text
, _ntgZone :: !Text
, _ntgNodeType :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
nodeTypesGet
:: Text
-> Text
-> Text
-> NodeTypesGet
nodeTypesGet pNtgProject_ pNtgZone_ pNtgNodeType_ =
NodeTypesGet'
{ _ntgProject = pNtgProject_
, _ntgZone = pNtgZone_
, _ntgNodeType = pNtgNodeType_
}
ntgProject :: Lens' NodeTypesGet Text
ntgProject
= lens _ntgProject (\ s a -> s{_ntgProject = a})
ntgZone :: Lens' NodeTypesGet Text
ntgZone = lens _ntgZone (\ s a -> s{_ntgZone = a})
ntgNodeType :: Lens' NodeTypesGet Text
ntgNodeType
= lens _ntgNodeType (\ s a -> s{_ntgNodeType = a})
instance GoogleRequest NodeTypesGet where
type Rs NodeTypesGet = NodeType
type Scopes NodeTypesGet =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute",
"https://www.googleapis.com/auth/compute.readonly"]
requestClient NodeTypesGet'{..}
= go _ntgProject _ntgZone _ntgNodeType (Just AltJSON)
computeService
where go
= buildClient (Proxy :: Proxy NodeTypesGetResource)
mempty