{-# 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.Script.Projects.Deployments.Delete
(
ProjectsDeploymentsDeleteResource
, projectsDeploymentsDelete
, ProjectsDeploymentsDelete
, pddDeploymentId
, pddXgafv
, pddUploadProtocol
, pddAccessToken
, pddUploadType
, pddScriptId
, pddCallback
) where
import Network.Google.Prelude
import Network.Google.Script.Types
type ProjectsDeploymentsDeleteResource =
"v1" :>
"projects" :>
Capture "scriptId" Text :>
"deployments" :>
Capture "deploymentId" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Empty
data ProjectsDeploymentsDelete = ProjectsDeploymentsDelete'
{ _pddDeploymentId :: !Text
, _pddXgafv :: !(Maybe Xgafv)
, _pddUploadProtocol :: !(Maybe Text)
, _pddAccessToken :: !(Maybe Text)
, _pddUploadType :: !(Maybe Text)
, _pddScriptId :: !Text
, _pddCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDeploymentsDelete
:: Text
-> Text
-> ProjectsDeploymentsDelete
projectsDeploymentsDelete pPddDeploymentId_ pPddScriptId_ =
ProjectsDeploymentsDelete'
{ _pddDeploymentId = pPddDeploymentId_
, _pddXgafv = Nothing
, _pddUploadProtocol = Nothing
, _pddAccessToken = Nothing
, _pddUploadType = Nothing
, _pddScriptId = pPddScriptId_
, _pddCallback = Nothing
}
pddDeploymentId :: Lens' ProjectsDeploymentsDelete Text
pddDeploymentId
= lens _pddDeploymentId
(\ s a -> s{_pddDeploymentId = a})
pddXgafv :: Lens' ProjectsDeploymentsDelete (Maybe Xgafv)
pddXgafv = lens _pddXgafv (\ s a -> s{_pddXgafv = a})
pddUploadProtocol :: Lens' ProjectsDeploymentsDelete (Maybe Text)
pddUploadProtocol
= lens _pddUploadProtocol
(\ s a -> s{_pddUploadProtocol = a})
pddAccessToken :: Lens' ProjectsDeploymentsDelete (Maybe Text)
pddAccessToken
= lens _pddAccessToken
(\ s a -> s{_pddAccessToken = a})
pddUploadType :: Lens' ProjectsDeploymentsDelete (Maybe Text)
pddUploadType
= lens _pddUploadType
(\ s a -> s{_pddUploadType = a})
pddScriptId :: Lens' ProjectsDeploymentsDelete Text
pddScriptId
= lens _pddScriptId (\ s a -> s{_pddScriptId = a})
pddCallback :: Lens' ProjectsDeploymentsDelete (Maybe Text)
pddCallback
= lens _pddCallback (\ s a -> s{_pddCallback = a})
instance GoogleRequest ProjectsDeploymentsDelete
where
type Rs ProjectsDeploymentsDelete = Empty
type Scopes ProjectsDeploymentsDelete =
'["https://www.googleapis.com/auth/script.deployments"]
requestClient ProjectsDeploymentsDelete'{..}
= go _pddScriptId _pddDeploymentId _pddXgafv
_pddUploadProtocol
_pddAccessToken
_pddUploadType
_pddCallback
(Just AltJSON)
scriptService
where go
= buildClient
(Proxy :: Proxy ProjectsDeploymentsDeleteResource)
mempty