{-# 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.Operations.Delete
(
ProjectsInstancesOperationsDeleteResource
, projectsInstancesOperationsDelete
, ProjectsInstancesOperationsDelete
, piodXgafv
, piodUploadProtocol
, piodAccessToken
, piodUploadType
, piodName
, piodCallback
) where
import Network.Google.Prelude
import Network.Google.Spanner.Types
type ProjectsInstancesOperationsDeleteResource =
"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 ProjectsInstancesOperationsDelete = ProjectsInstancesOperationsDelete'
{ _piodXgafv :: !(Maybe Xgafv)
, _piodUploadProtocol :: !(Maybe Text)
, _piodAccessToken :: !(Maybe Text)
, _piodUploadType :: !(Maybe Text)
, _piodName :: !Text
, _piodCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesOperationsDelete
:: Text
-> ProjectsInstancesOperationsDelete
projectsInstancesOperationsDelete pPiodName_ =
ProjectsInstancesOperationsDelete'
{ _piodXgafv = Nothing
, _piodUploadProtocol = Nothing
, _piodAccessToken = Nothing
, _piodUploadType = Nothing
, _piodName = pPiodName_
, _piodCallback = Nothing
}
piodXgafv :: Lens' ProjectsInstancesOperationsDelete (Maybe Xgafv)
piodXgafv
= lens _piodXgafv (\ s a -> s{_piodXgafv = a})
piodUploadProtocol :: Lens' ProjectsInstancesOperationsDelete (Maybe Text)
piodUploadProtocol
= lens _piodUploadProtocol
(\ s a -> s{_piodUploadProtocol = a})
piodAccessToken :: Lens' ProjectsInstancesOperationsDelete (Maybe Text)
piodAccessToken
= lens _piodAccessToken
(\ s a -> s{_piodAccessToken = a})
piodUploadType :: Lens' ProjectsInstancesOperationsDelete (Maybe Text)
piodUploadType
= lens _piodUploadType
(\ s a -> s{_piodUploadType = a})
piodName :: Lens' ProjectsInstancesOperationsDelete Text
piodName = lens _piodName (\ s a -> s{_piodName = a})
piodCallback :: Lens' ProjectsInstancesOperationsDelete (Maybe Text)
piodCallback
= lens _piodCallback (\ s a -> s{_piodCallback = a})
instance GoogleRequest
ProjectsInstancesOperationsDelete where
type Rs ProjectsInstancesOperationsDelete = Empty
type Scopes ProjectsInstancesOperationsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/spanner.admin"]
requestClient ProjectsInstancesOperationsDelete'{..}
= go _piodName _piodXgafv _piodUploadProtocol
_piodAccessToken
_piodUploadType
_piodCallback
(Just AltJSON)
spannerService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesOperationsDeleteResource)
mempty