{-# 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.EnableXpnHost
(
ProjectsEnableXpnHostResource
, projectsEnableXpnHost
, ProjectsEnableXpnHost
, pexhRequestId
, pexhProject
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type ProjectsEnableXpnHostResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"enableXpnHost" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] Operation
data ProjectsEnableXpnHost = ProjectsEnableXpnHost'
{ _pexhRequestId :: !(Maybe Text)
, _pexhProject :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
projectsEnableXpnHost
:: Text
-> ProjectsEnableXpnHost
projectsEnableXpnHost pPexhProject_ =
ProjectsEnableXpnHost'
{ _pexhRequestId = Nothing
, _pexhProject = pPexhProject_
}
pexhRequestId :: Lens' ProjectsEnableXpnHost (Maybe Text)
pexhRequestId
= lens _pexhRequestId
(\ s a -> s{_pexhRequestId = a})
pexhProject :: Lens' ProjectsEnableXpnHost Text
pexhProject
= lens _pexhProject (\ s a -> s{_pexhProject = a})
instance GoogleRequest ProjectsEnableXpnHost where
type Rs ProjectsEnableXpnHost = Operation
type Scopes ProjectsEnableXpnHost =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient ProjectsEnableXpnHost'{..}
= go _pexhProject _pexhRequestId (Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy ProjectsEnableXpnHostResource)
mempty