{-# 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.Projects.GetXpnHost
(
ProjectsGetXpnHostResource
, projectsGetXpnHost
, ProjectsGetXpnHost
, pgxhProject
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type ProjectsGetXpnHostResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"getXpnHost" :>
QueryParam "alt" AltJSON :> Get '[JSON] Project
newtype ProjectsGetXpnHost = ProjectsGetXpnHost'
{ _pgxhProject :: Text
} deriving (Eq,Show,Data,Typeable,Generic)
projectsGetXpnHost
:: Text
-> ProjectsGetXpnHost
projectsGetXpnHost pPgxhProject_ =
ProjectsGetXpnHost'
{ _pgxhProject = pPgxhProject_
}
pgxhProject :: Lens' ProjectsGetXpnHost Text
pgxhProject
= lens _pgxhProject (\ s a -> s{_pgxhProject = a})
instance GoogleRequest ProjectsGetXpnHost where
type Rs ProjectsGetXpnHost = Project
type Scopes ProjectsGetXpnHost =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient ProjectsGetXpnHost'{..}
= go _pgxhProject (Just AltJSON) computeService
where go
= buildClient
(Proxy :: Proxy ProjectsGetXpnHostResource)
mempty