{-# 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.Spanner.Projects.Instances.Databases.DropDatabase
(
ProjectsInstancesDatabasesDropDatabaseResource
, projectsInstancesDatabasesDropDatabase
, ProjectsInstancesDatabasesDropDatabase
, pidddXgafv
, pidddUploadProtocol
, pidddDatabase
, pidddAccessToken
, pidddUploadType
, pidddCallback
) where
import Network.Google.Prelude
import Network.Google.Spanner.Types
type ProjectsInstancesDatabasesDropDatabaseResource =
"v1" :>
Capture "database" 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 ProjectsInstancesDatabasesDropDatabase = ProjectsInstancesDatabasesDropDatabase'
{ _pidddXgafv :: !(Maybe Xgafv)
, _pidddUploadProtocol :: !(Maybe Text)
, _pidddDatabase :: !Text
, _pidddAccessToken :: !(Maybe Text)
, _pidddUploadType :: !(Maybe Text)
, _pidddCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesDatabasesDropDatabase
:: Text
-> ProjectsInstancesDatabasesDropDatabase
projectsInstancesDatabasesDropDatabase pPidddDatabase_ =
ProjectsInstancesDatabasesDropDatabase'
{ _pidddXgafv = Nothing
, _pidddUploadProtocol = Nothing
, _pidddDatabase = pPidddDatabase_
, _pidddAccessToken = Nothing
, _pidddUploadType = Nothing
, _pidddCallback = Nothing
}
pidddXgafv :: Lens' ProjectsInstancesDatabasesDropDatabase (Maybe Xgafv)
pidddXgafv
= lens _pidddXgafv (\ s a -> s{_pidddXgafv = a})
pidddUploadProtocol :: Lens' ProjectsInstancesDatabasesDropDatabase (Maybe Text)
pidddUploadProtocol
= lens _pidddUploadProtocol
(\ s a -> s{_pidddUploadProtocol = a})
pidddDatabase :: Lens' ProjectsInstancesDatabasesDropDatabase Text
pidddDatabase
= lens _pidddDatabase
(\ s a -> s{_pidddDatabase = a})
pidddAccessToken :: Lens' ProjectsInstancesDatabasesDropDatabase (Maybe Text)
pidddAccessToken
= lens _pidddAccessToken
(\ s a -> s{_pidddAccessToken = a})
pidddUploadType :: Lens' ProjectsInstancesDatabasesDropDatabase (Maybe Text)
pidddUploadType
= lens _pidddUploadType
(\ s a -> s{_pidddUploadType = a})
pidddCallback :: Lens' ProjectsInstancesDatabasesDropDatabase (Maybe Text)
pidddCallback
= lens _pidddCallback
(\ s a -> s{_pidddCallback = a})
instance GoogleRequest
ProjectsInstancesDatabasesDropDatabase where
type Rs ProjectsInstancesDatabasesDropDatabase =
Empty
type Scopes ProjectsInstancesDatabasesDropDatabase =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/spanner.admin"]
requestClient
ProjectsInstancesDatabasesDropDatabase'{..}
= go _pidddDatabase _pidddXgafv _pidddUploadProtocol
_pidddAccessToken
_pidddUploadType
_pidddCallback
(Just AltJSON)
spannerService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesDatabasesDropDatabaseResource)
mempty