{-# 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.Sessions.Delete
(
ProjectsInstancesDatabasesSessionsDeleteResource
, projectsInstancesDatabasesSessionsDelete
, ProjectsInstancesDatabasesSessionsDelete
, pidsdXgafv
, pidsdUploadProtocol
, pidsdAccessToken
, pidsdUploadType
, pidsdName
, pidsdCallback
) where
import Network.Google.Prelude
import Network.Google.Spanner.Types
type ProjectsInstancesDatabasesSessionsDeleteResource
=
"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 ProjectsInstancesDatabasesSessionsDelete = ProjectsInstancesDatabasesSessionsDelete'
{ _pidsdXgafv :: !(Maybe Xgafv)
, _pidsdUploadProtocol :: !(Maybe Text)
, _pidsdAccessToken :: !(Maybe Text)
, _pidsdUploadType :: !(Maybe Text)
, _pidsdName :: !Text
, _pidsdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesDatabasesSessionsDelete
:: Text
-> ProjectsInstancesDatabasesSessionsDelete
projectsInstancesDatabasesSessionsDelete pPidsdName_ =
ProjectsInstancesDatabasesSessionsDelete'
{ _pidsdXgafv = Nothing
, _pidsdUploadProtocol = Nothing
, _pidsdAccessToken = Nothing
, _pidsdUploadType = Nothing
, _pidsdName = pPidsdName_
, _pidsdCallback = Nothing
}
pidsdXgafv :: Lens' ProjectsInstancesDatabasesSessionsDelete (Maybe Xgafv)
pidsdXgafv
= lens _pidsdXgafv (\ s a -> s{_pidsdXgafv = a})
pidsdUploadProtocol :: Lens' ProjectsInstancesDatabasesSessionsDelete (Maybe Text)
pidsdUploadProtocol
= lens _pidsdUploadProtocol
(\ s a -> s{_pidsdUploadProtocol = a})
pidsdAccessToken :: Lens' ProjectsInstancesDatabasesSessionsDelete (Maybe Text)
pidsdAccessToken
= lens _pidsdAccessToken
(\ s a -> s{_pidsdAccessToken = a})
pidsdUploadType :: Lens' ProjectsInstancesDatabasesSessionsDelete (Maybe Text)
pidsdUploadType
= lens _pidsdUploadType
(\ s a -> s{_pidsdUploadType = a})
pidsdName :: Lens' ProjectsInstancesDatabasesSessionsDelete Text
pidsdName
= lens _pidsdName (\ s a -> s{_pidsdName = a})
pidsdCallback :: Lens' ProjectsInstancesDatabasesSessionsDelete (Maybe Text)
pidsdCallback
= lens _pidsdCallback
(\ s a -> s{_pidsdCallback = a})
instance GoogleRequest
ProjectsInstancesDatabasesSessionsDelete where
type Rs ProjectsInstancesDatabasesSessionsDelete =
Empty
type Scopes ProjectsInstancesDatabasesSessionsDelete
=
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/spanner.data"]
requestClient
ProjectsInstancesDatabasesSessionsDelete'{..}
= go _pidsdName _pidsdXgafv _pidsdUploadProtocol
_pidsdAccessToken
_pidsdUploadType
_pidsdCallback
(Just AltJSON)
spannerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsInstancesDatabasesSessionsDeleteResource)
mempty