{-# 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.BigtableAdmin.Projects.Instances.Clusters.Delete
(
ProjectsInstancesClustersDeleteResource
, projectsInstancesClustersDelete
, ProjectsInstancesClustersDelete
, picdXgafv
, picdUploadProtocol
, picdAccessToken
, picdUploadType
, picdName
, picdCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesClustersDeleteResource =
"v2" :>
Capture "name" 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 ProjectsInstancesClustersDelete = ProjectsInstancesClustersDelete'
{ _picdXgafv :: !(Maybe Xgafv)
, _picdUploadProtocol :: !(Maybe Text)
, _picdAccessToken :: !(Maybe Text)
, _picdUploadType :: !(Maybe Text)
, _picdName :: !Text
, _picdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesClustersDelete
:: Text
-> ProjectsInstancesClustersDelete
projectsInstancesClustersDelete pPicdName_ =
ProjectsInstancesClustersDelete'
{ _picdXgafv = Nothing
, _picdUploadProtocol = Nothing
, _picdAccessToken = Nothing
, _picdUploadType = Nothing
, _picdName = pPicdName_
, _picdCallback = Nothing
}
picdXgafv :: Lens' ProjectsInstancesClustersDelete (Maybe Xgafv)
picdXgafv
= lens _picdXgafv (\ s a -> s{_picdXgafv = a})
picdUploadProtocol :: Lens' ProjectsInstancesClustersDelete (Maybe Text)
picdUploadProtocol
= lens _picdUploadProtocol
(\ s a -> s{_picdUploadProtocol = a})
picdAccessToken :: Lens' ProjectsInstancesClustersDelete (Maybe Text)
picdAccessToken
= lens _picdAccessToken
(\ s a -> s{_picdAccessToken = a})
picdUploadType :: Lens' ProjectsInstancesClustersDelete (Maybe Text)
picdUploadType
= lens _picdUploadType
(\ s a -> s{_picdUploadType = a})
picdName :: Lens' ProjectsInstancesClustersDelete Text
picdName = lens _picdName (\ s a -> s{_picdName = a})
picdCallback :: Lens' ProjectsInstancesClustersDelete (Maybe Text)
picdCallback
= lens _picdCallback (\ s a -> s{_picdCallback = a})
instance GoogleRequest
ProjectsInstancesClustersDelete where
type Rs ProjectsInstancesClustersDelete = Empty
type Scopes ProjectsInstancesClustersDelete =
'["https://www.googleapis.com/auth/bigtable.admin",
"https://www.googleapis.com/auth/bigtable.admin.cluster",
"https://www.googleapis.com/auth/bigtable.admin.instance",
"https://www.googleapis.com/auth/cloud-bigtable.admin",
"https://www.googleapis.com/auth/cloud-bigtable.admin.cluster",
"https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsInstancesClustersDelete'{..}
= go _picdName _picdXgafv _picdUploadProtocol
_picdAccessToken
_picdUploadType
_picdCallback
(Just AltJSON)
bigtableAdminService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesClustersDeleteResource)
mempty