{-# 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.Dataproc.Projects.Regions.Clusters.Delete
(
ProjectsRegionsClustersDeleteResource
, projectsRegionsClustersDelete
, ProjectsRegionsClustersDelete
, prcdXgafv
, prcdRequestId
, prcdClusterUuid
, prcdUploadProtocol
, prcdAccessToken
, prcdUploadType
, prcdClusterName
, prcdRegion
, prcdProjectId
, prcdCallback
) where
import Network.Google.Dataproc.Types
import Network.Google.Prelude
type ProjectsRegionsClustersDeleteResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"regions" :>
Capture "region" Text :>
"clusters" :>
Capture "clusterName" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "requestId" Text :>
QueryParam "clusterUuid" Text :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Delete '[JSON] Operation
data ProjectsRegionsClustersDelete = ProjectsRegionsClustersDelete'
{ _prcdXgafv :: !(Maybe Xgafv)
, _prcdRequestId :: !(Maybe Text)
, _prcdClusterUuid :: !(Maybe Text)
, _prcdUploadProtocol :: !(Maybe Text)
, _prcdAccessToken :: !(Maybe Text)
, _prcdUploadType :: !(Maybe Text)
, _prcdClusterName :: !Text
, _prcdRegion :: !Text
, _prcdProjectId :: !Text
, _prcdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsRegionsClustersDelete
:: Text
-> Text
-> Text
-> ProjectsRegionsClustersDelete
projectsRegionsClustersDelete pPrcdClusterName_ pPrcdRegion_ pPrcdProjectId_ =
ProjectsRegionsClustersDelete'
{ _prcdXgafv = Nothing
, _prcdRequestId = Nothing
, _prcdClusterUuid = Nothing
, _prcdUploadProtocol = Nothing
, _prcdAccessToken = Nothing
, _prcdUploadType = Nothing
, _prcdClusterName = pPrcdClusterName_
, _prcdRegion = pPrcdRegion_
, _prcdProjectId = pPrcdProjectId_
, _prcdCallback = Nothing
}
prcdXgafv :: Lens' ProjectsRegionsClustersDelete (Maybe Xgafv)
prcdXgafv
= lens _prcdXgafv (\ s a -> s{_prcdXgafv = a})
prcdRequestId :: Lens' ProjectsRegionsClustersDelete (Maybe Text)
prcdRequestId
= lens _prcdRequestId
(\ s a -> s{_prcdRequestId = a})
prcdClusterUuid :: Lens' ProjectsRegionsClustersDelete (Maybe Text)
prcdClusterUuid
= lens _prcdClusterUuid
(\ s a -> s{_prcdClusterUuid = a})
prcdUploadProtocol :: Lens' ProjectsRegionsClustersDelete (Maybe Text)
prcdUploadProtocol
= lens _prcdUploadProtocol
(\ s a -> s{_prcdUploadProtocol = a})
prcdAccessToken :: Lens' ProjectsRegionsClustersDelete (Maybe Text)
prcdAccessToken
= lens _prcdAccessToken
(\ s a -> s{_prcdAccessToken = a})
prcdUploadType :: Lens' ProjectsRegionsClustersDelete (Maybe Text)
prcdUploadType
= lens _prcdUploadType
(\ s a -> s{_prcdUploadType = a})
prcdClusterName :: Lens' ProjectsRegionsClustersDelete Text
prcdClusterName
= lens _prcdClusterName
(\ s a -> s{_prcdClusterName = a})
prcdRegion :: Lens' ProjectsRegionsClustersDelete Text
prcdRegion
= lens _prcdRegion (\ s a -> s{_prcdRegion = a})
prcdProjectId :: Lens' ProjectsRegionsClustersDelete Text
prcdProjectId
= lens _prcdProjectId
(\ s a -> s{_prcdProjectId = a})
prcdCallback :: Lens' ProjectsRegionsClustersDelete (Maybe Text)
prcdCallback
= lens _prcdCallback (\ s a -> s{_prcdCallback = a})
instance GoogleRequest ProjectsRegionsClustersDelete
where
type Rs ProjectsRegionsClustersDelete = Operation
type Scopes ProjectsRegionsClustersDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsRegionsClustersDelete'{..}
= go _prcdProjectId _prcdRegion _prcdClusterName
_prcdXgafv
_prcdRequestId
_prcdClusterUuid
_prcdUploadProtocol
_prcdAccessToken
_prcdUploadType
_prcdCallback
(Just AltJSON)
dataprocService
where go
= buildClient
(Proxy ::
Proxy ProjectsRegionsClustersDeleteResource)
mempty