{-# 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.DisableXpnHost
(
ProjectsDisableXpnHostResource
, projectsDisableXpnHost
, ProjectsDisableXpnHost
, pdxhRequestId
, pdxhProject
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type ProjectsDisableXpnHostResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"disableXpnHost" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] Operation
data ProjectsDisableXpnHost = ProjectsDisableXpnHost'
{ _pdxhRequestId :: !(Maybe Text)
, _pdxhProject :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDisableXpnHost
:: Text
-> ProjectsDisableXpnHost
projectsDisableXpnHost pPdxhProject_ =
ProjectsDisableXpnHost'
{ _pdxhRequestId = Nothing
, _pdxhProject = pPdxhProject_
}
pdxhRequestId :: Lens' ProjectsDisableXpnHost (Maybe Text)
pdxhRequestId
= lens _pdxhRequestId
(\ s a -> s{_pdxhRequestId = a})
pdxhProject :: Lens' ProjectsDisableXpnHost Text
pdxhProject
= lens _pdxhProject (\ s a -> s{_pdxhProject = a})
instance GoogleRequest ProjectsDisableXpnHost where
type Rs ProjectsDisableXpnHost = Operation
type Scopes ProjectsDisableXpnHost =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient ProjectsDisableXpnHost'{..}
= go _pdxhProject _pdxhRequestId (Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy ProjectsDisableXpnHostResource)
mempty