{-# 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.Tables.Delete
(
ProjectsInstancesTablesDeleteResource
, projectsInstancesTablesDelete
, ProjectsInstancesTablesDelete
, pitdXgafv
, pitdUploadProtocol
, pitdAccessToken
, pitdUploadType
, pitdName
, pitdCallback
) where
import Network.Google.BigtableAdmin.Types
import Network.Google.Prelude
type ProjectsInstancesTablesDeleteResource =
"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 ProjectsInstancesTablesDelete = ProjectsInstancesTablesDelete'
{ _pitdXgafv :: !(Maybe Xgafv)
, _pitdUploadProtocol :: !(Maybe Text)
, _pitdAccessToken :: !(Maybe Text)
, _pitdUploadType :: !(Maybe Text)
, _pitdName :: !Text
, _pitdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesTablesDelete
:: Text
-> ProjectsInstancesTablesDelete
projectsInstancesTablesDelete pPitdName_ =
ProjectsInstancesTablesDelete'
{ _pitdXgafv = Nothing
, _pitdUploadProtocol = Nothing
, _pitdAccessToken = Nothing
, _pitdUploadType = Nothing
, _pitdName = pPitdName_
, _pitdCallback = Nothing
}
pitdXgafv :: Lens' ProjectsInstancesTablesDelete (Maybe Xgafv)
pitdXgafv
= lens _pitdXgafv (\ s a -> s{_pitdXgafv = a})
pitdUploadProtocol :: Lens' ProjectsInstancesTablesDelete (Maybe Text)
pitdUploadProtocol
= lens _pitdUploadProtocol
(\ s a -> s{_pitdUploadProtocol = a})
pitdAccessToken :: Lens' ProjectsInstancesTablesDelete (Maybe Text)
pitdAccessToken
= lens _pitdAccessToken
(\ s a -> s{_pitdAccessToken = a})
pitdUploadType :: Lens' ProjectsInstancesTablesDelete (Maybe Text)
pitdUploadType
= lens _pitdUploadType
(\ s a -> s{_pitdUploadType = a})
pitdName :: Lens' ProjectsInstancesTablesDelete Text
pitdName = lens _pitdName (\ s a -> s{_pitdName = a})
pitdCallback :: Lens' ProjectsInstancesTablesDelete (Maybe Text)
pitdCallback
= lens _pitdCallback (\ s a -> s{_pitdCallback = a})
instance GoogleRequest ProjectsInstancesTablesDelete
where
type Rs ProjectsInstancesTablesDelete = Empty
type Scopes ProjectsInstancesTablesDelete =
'["https://www.googleapis.com/auth/bigtable.admin",
"https://www.googleapis.com/auth/bigtable.admin.table",
"https://www.googleapis.com/auth/cloud-bigtable.admin",
"https://www.googleapis.com/auth/cloud-bigtable.admin.table",
"https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsInstancesTablesDelete'{..}
= go _pitdName _pitdXgafv _pitdUploadProtocol
_pitdAccessToken
_pitdUploadType
_pitdCallback
(Just AltJSON)
bigtableAdminService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesTablesDeleteResource)
mempty