{-# 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.FireStore.Projects.Databases.Operations.Cancel
(
ProjectsDatabasesOperationsCancelResource
, projectsDatabasesOperationsCancel
, ProjectsDatabasesOperationsCancel
, pdocXgafv
, pdocUploadProtocol
, pdocAccessToken
, pdocUploadType
, pdocPayload
, pdocName
, pdocCallback
) where
import Network.Google.FireStore.Types
import Network.Google.Prelude
type ProjectsDatabasesOperationsCancelResource =
"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 :>
ReqBody '[JSON]
GoogleLongrunningCancelOperationRequest
:> Post '[JSON] Empty
data ProjectsDatabasesOperationsCancel = ProjectsDatabasesOperationsCancel'
{ _pdocXgafv :: !(Maybe Xgafv)
, _pdocUploadProtocol :: !(Maybe Text)
, _pdocAccessToken :: !(Maybe Text)
, _pdocUploadType :: !(Maybe Text)
, _pdocPayload :: !GoogleLongrunningCancelOperationRequest
, _pdocName :: !Text
, _pdocCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsDatabasesOperationsCancel
:: GoogleLongrunningCancelOperationRequest
-> Text
-> ProjectsDatabasesOperationsCancel
projectsDatabasesOperationsCancel pPdocPayload_ pPdocName_ =
ProjectsDatabasesOperationsCancel'
{ _pdocXgafv = Nothing
, _pdocUploadProtocol = Nothing
, _pdocAccessToken = Nothing
, _pdocUploadType = Nothing
, _pdocPayload = pPdocPayload_
, _pdocName = pPdocName_
, _pdocCallback = Nothing
}
pdocXgafv :: Lens' ProjectsDatabasesOperationsCancel (Maybe Xgafv)
pdocXgafv
= lens _pdocXgafv (\ s a -> s{_pdocXgafv = a})
pdocUploadProtocol :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text)
pdocUploadProtocol
= lens _pdocUploadProtocol
(\ s a -> s{_pdocUploadProtocol = a})
pdocAccessToken :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text)
pdocAccessToken
= lens _pdocAccessToken
(\ s a -> s{_pdocAccessToken = a})
pdocUploadType :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text)
pdocUploadType
= lens _pdocUploadType
(\ s a -> s{_pdocUploadType = a})
pdocPayload :: Lens' ProjectsDatabasesOperationsCancel GoogleLongrunningCancelOperationRequest
pdocPayload
= lens _pdocPayload (\ s a -> s{_pdocPayload = a})
pdocName :: Lens' ProjectsDatabasesOperationsCancel Text
pdocName = lens _pdocName (\ s a -> s{_pdocName = a})
pdocCallback :: Lens' ProjectsDatabasesOperationsCancel (Maybe Text)
pdocCallback
= lens _pdocCallback (\ s a -> s{_pdocCallback = a})
instance GoogleRequest
ProjectsDatabasesOperationsCancel where
type Rs ProjectsDatabasesOperationsCancel = Empty
type Scopes ProjectsDatabasesOperationsCancel =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/datastore"]
requestClient ProjectsDatabasesOperationsCancel'{..}
= go _pdocName _pdocXgafv _pdocUploadProtocol
_pdocAccessToken
_pdocUploadType
_pdocCallback
(Just AltJSON)
_pdocPayload
fireStoreService
where go
= buildClient
(Proxy ::
Proxy ProjectsDatabasesOperationsCancelResource)
mempty