{-# 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.DisableXpnResource
(
ProjectsDisableXpnResourceResource
, projectsDisableXpnResource
, ProjectsDisableXpnResource
, pdxrRequestId
, pdxrProject
, pdxrPayload
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type ProjectsDisableXpnResourceResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"disableXpnResource" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] ProjectsDisableXpnResourceRequest :>
Post '[JSON] Operation
data ProjectsDisableXpnResource = ProjectsDisableXpnResource'
{ _pdxrRequestId :: !(Maybe Text)
, _pdxrProject :: !Text
, _pdxrPayload :: !ProjectsDisableXpnResourceRequest
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDisableXpnResource
:: Text
-> ProjectsDisableXpnResourceRequest
-> ProjectsDisableXpnResource
projectsDisableXpnResource pPdxrProject_ pPdxrPayload_ =
ProjectsDisableXpnResource'
{ _pdxrRequestId = Nothing
, _pdxrProject = pPdxrProject_
, _pdxrPayload = pPdxrPayload_
}
pdxrRequestId :: Lens' ProjectsDisableXpnResource (Maybe Text)
pdxrRequestId
= lens _pdxrRequestId
(\ s a -> s{_pdxrRequestId = a})
pdxrProject :: Lens' ProjectsDisableXpnResource Text
pdxrProject
= lens _pdxrProject (\ s a -> s{_pdxrProject = a})
pdxrPayload :: Lens' ProjectsDisableXpnResource ProjectsDisableXpnResourceRequest
pdxrPayload
= lens _pdxrPayload (\ s a -> s{_pdxrPayload = a})
instance GoogleRequest ProjectsDisableXpnResource
where
type Rs ProjectsDisableXpnResource = Operation
type Scopes ProjectsDisableXpnResource =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient ProjectsDisableXpnResource'{..}
= go _pdxrProject _pdxrRequestId (Just AltJSON)
_pdxrPayload
computeService
where go
= buildClient
(Proxy :: Proxy ProjectsDisableXpnResourceResource)
mempty