{-# 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.Cancel
(
ProjectsInstancesDatabasesOperationsCancelResource
, projectsInstancesDatabasesOperationsCancel
, ProjectsInstancesDatabasesOperationsCancel
, pidocXgafv
, pidocUploadProtocol
, pidocAccessToken
, pidocUploadType
, pidocName
, pidocCallback
) where
import Network.Google.Prelude
import Network.Google.Spanner.Types
type ProjectsInstancesDatabasesOperationsCancelResource
=
"v1" :>
CaptureMode "name" "cancel" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] Empty
data ProjectsInstancesDatabasesOperationsCancel = ProjectsInstancesDatabasesOperationsCancel'
{ _pidocXgafv :: !(Maybe Xgafv)
, _pidocUploadProtocol :: !(Maybe Text)
, _pidocAccessToken :: !(Maybe Text)
, _pidocUploadType :: !(Maybe Text)
, _pidocName :: !Text
, _pidocCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesDatabasesOperationsCancel
:: Text
-> ProjectsInstancesDatabasesOperationsCancel
projectsInstancesDatabasesOperationsCancel pPidocName_ =
ProjectsInstancesDatabasesOperationsCancel'
{ _pidocXgafv = Nothing
, _pidocUploadProtocol = Nothing
, _pidocAccessToken = Nothing
, _pidocUploadType = Nothing
, _pidocName = pPidocName_
, _pidocCallback = Nothing
}
pidocXgafv :: Lens' ProjectsInstancesDatabasesOperationsCancel (Maybe Xgafv)
pidocXgafv
= lens _pidocXgafv (\ s a -> s{_pidocXgafv = a})
pidocUploadProtocol :: Lens' ProjectsInstancesDatabasesOperationsCancel (Maybe Text)
pidocUploadProtocol
= lens _pidocUploadProtocol
(\ s a -> s{_pidocUploadProtocol = a})
pidocAccessToken :: Lens' ProjectsInstancesDatabasesOperationsCancel (Maybe Text)
pidocAccessToken
= lens _pidocAccessToken
(\ s a -> s{_pidocAccessToken = a})
pidocUploadType :: Lens' ProjectsInstancesDatabasesOperationsCancel (Maybe Text)
pidocUploadType
= lens _pidocUploadType
(\ s a -> s{_pidocUploadType = a})
pidocName :: Lens' ProjectsInstancesDatabasesOperationsCancel Text
pidocName
= lens _pidocName (\ s a -> s{_pidocName = a})
pidocCallback :: Lens' ProjectsInstancesDatabasesOperationsCancel (Maybe Text)
pidocCallback
= lens _pidocCallback
(\ s a -> s{_pidocCallback = a})
instance GoogleRequest
ProjectsInstancesDatabasesOperationsCancel where
type Rs ProjectsInstancesDatabasesOperationsCancel =
Empty
type Scopes
ProjectsInstancesDatabasesOperationsCancel
=
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/spanner.admin"]
requestClient
ProjectsInstancesDatabasesOperationsCancel'{..}
= go _pidocName _pidocXgafv _pidocUploadProtocol
_pidocAccessToken
_pidocUploadType
_pidocCallback
(Just AltJSON)
spannerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsInstancesDatabasesOperationsCancelResource)
mempty