{-# 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.Cancel
(
ProjectsInstancesOperationsCancelResource
, projectsInstancesOperationsCancel
, ProjectsInstancesOperationsCancel
, piocXgafv
, piocUploadProtocol
, piocAccessToken
, piocUploadType
, piocName
, piocCallback
) where
import Network.Google.Prelude
import Network.Google.Spanner.Types
type ProjectsInstancesOperationsCancelResource =
"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 ProjectsInstancesOperationsCancel = ProjectsInstancesOperationsCancel'
{ _piocXgafv :: !(Maybe Xgafv)
, _piocUploadProtocol :: !(Maybe Text)
, _piocAccessToken :: !(Maybe Text)
, _piocUploadType :: !(Maybe Text)
, _piocName :: !Text
, _piocCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsInstancesOperationsCancel
:: Text
-> ProjectsInstancesOperationsCancel
projectsInstancesOperationsCancel pPiocName_ =
ProjectsInstancesOperationsCancel'
{ _piocXgafv = Nothing
, _piocUploadProtocol = Nothing
, _piocAccessToken = Nothing
, _piocUploadType = Nothing
, _piocName = pPiocName_
, _piocCallback = Nothing
}
piocXgafv :: Lens' ProjectsInstancesOperationsCancel (Maybe Xgafv)
piocXgafv
= lens _piocXgafv (\ s a -> s{_piocXgafv = a})
piocUploadProtocol :: Lens' ProjectsInstancesOperationsCancel (Maybe Text)
piocUploadProtocol
= lens _piocUploadProtocol
(\ s a -> s{_piocUploadProtocol = a})
piocAccessToken :: Lens' ProjectsInstancesOperationsCancel (Maybe Text)
piocAccessToken
= lens _piocAccessToken
(\ s a -> s{_piocAccessToken = a})
piocUploadType :: Lens' ProjectsInstancesOperationsCancel (Maybe Text)
piocUploadType
= lens _piocUploadType
(\ s a -> s{_piocUploadType = a})
piocName :: Lens' ProjectsInstancesOperationsCancel Text
piocName = lens _piocName (\ s a -> s{_piocName = a})
piocCallback :: Lens' ProjectsInstancesOperationsCancel (Maybe Text)
piocCallback
= lens _piocCallback (\ s a -> s{_piocCallback = a})
instance GoogleRequest
ProjectsInstancesOperationsCancel where
type Rs ProjectsInstancesOperationsCancel = Empty
type Scopes ProjectsInstancesOperationsCancel =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/spanner.admin"]
requestClient ProjectsInstancesOperationsCancel'{..}
= go _piocName _piocXgafv _piocUploadProtocol
_piocAccessToken
_piocUploadType
_piocCallback
(Just AltJSON)
spannerService
where go
= buildClient
(Proxy ::
Proxy ProjectsInstancesOperationsCancelResource)
mempty