{-# 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.Operations.Delete
(
ProjectsInstancesDatabasesOperationsDeleteResource
, projectsInstancesDatabasesOperationsDelete
, ProjectsInstancesDatabasesOperationsDelete
, pidodXgafv
, pidodUploadProtocol
, pidodAccessToken
, pidodUploadType
, pidodName
, pidodCallback
) where
import Network.Google.Prelude
import Network.Google.Spanner.Types
type ProjectsInstancesDatabasesOperationsDeleteResource
=
"v1" :>
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 ProjectsInstancesDatabasesOperationsDelete = ProjectsInstancesDatabasesOperationsDelete'
{ _pidodXgafv :: !(Maybe Xgafv)
, _pidodUploadProtocol :: !(Maybe Text)
, _pidodAccessToken :: !(Maybe Text)
, _pidodUploadType :: !(Maybe Text)
, _pidodName :: !Text
, _pidodCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesDatabasesOperationsDelete
:: Text
-> ProjectsInstancesDatabasesOperationsDelete
projectsInstancesDatabasesOperationsDelete pPidodName_ =
ProjectsInstancesDatabasesOperationsDelete'
{ _pidodXgafv = Nothing
, _pidodUploadProtocol = Nothing
, _pidodAccessToken = Nothing
, _pidodUploadType = Nothing
, _pidodName = pPidodName_
, _pidodCallback = Nothing
}
pidodXgafv :: Lens' ProjectsInstancesDatabasesOperationsDelete (Maybe Xgafv)
pidodXgafv
= lens _pidodXgafv (\ s a -> s{_pidodXgafv = a})
pidodUploadProtocol :: Lens' ProjectsInstancesDatabasesOperationsDelete (Maybe Text)
pidodUploadProtocol
= lens _pidodUploadProtocol
(\ s a -> s{_pidodUploadProtocol = a})
pidodAccessToken :: Lens' ProjectsInstancesDatabasesOperationsDelete (Maybe Text)
pidodAccessToken
= lens _pidodAccessToken
(\ s a -> s{_pidodAccessToken = a})
pidodUploadType :: Lens' ProjectsInstancesDatabasesOperationsDelete (Maybe Text)
pidodUploadType
= lens _pidodUploadType
(\ s a -> s{_pidodUploadType = a})
pidodName :: Lens' ProjectsInstancesDatabasesOperationsDelete Text
pidodName
= lens _pidodName (\ s a -> s{_pidodName = a})
pidodCallback :: Lens' ProjectsInstancesDatabasesOperationsDelete (Maybe Text)
pidodCallback
= lens _pidodCallback
(\ s a -> s{_pidodCallback = a})
instance GoogleRequest
ProjectsInstancesDatabasesOperationsDelete where
type Rs ProjectsInstancesDatabasesOperationsDelete =
Empty
type Scopes
ProjectsInstancesDatabasesOperationsDelete
=
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/spanner.admin"]
requestClient
ProjectsInstancesDatabasesOperationsDelete'{..}
= go _pidodName _pidodXgafv _pidodUploadProtocol
_pidodAccessToken
_pidodUploadType
_pidodCallback
(Just AltJSON)
spannerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsInstancesDatabasesOperationsDeleteResource)
mempty