{-# 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.Container.Projects.Zones.Operations.Cancel
(
ProjectsZonesOperationsCancelResource
, projectsZonesOperationsCancel
, ProjectsZonesOperationsCancel
, pzocXgafv
, pzocUploadProtocol
, pzocAccessToken
, pzocUploadType
, pzocZone
, pzocPayload
, pzocProjectId
, pzocOperationId
, pzocCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsZonesOperationsCancelResource =
"v1" :>
"projects" :>
Capture "projectId" Text :>
"zones" :>
Capture "zone" Text :>
"operations" :>
CaptureMode "operationId" "cancel" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] CancelOperationRequest :>
Post '[JSON] Empty
data ProjectsZonesOperationsCancel = ProjectsZonesOperationsCancel'
{ _pzocXgafv :: !(Maybe Xgafv)
, _pzocUploadProtocol :: !(Maybe Text)
, _pzocAccessToken :: !(Maybe Text)
, _pzocUploadType :: !(Maybe Text)
, _pzocZone :: !Text
, _pzocPayload :: !CancelOperationRequest
, _pzocProjectId :: !Text
, _pzocOperationId :: !Text
, _pzocCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsZonesOperationsCancel
:: Text
-> CancelOperationRequest
-> Text
-> Text
-> ProjectsZonesOperationsCancel
projectsZonesOperationsCancel pPzocZone_ pPzocPayload_ pPzocProjectId_ pPzocOperationId_ =
ProjectsZonesOperationsCancel'
{ _pzocXgafv = Nothing
, _pzocUploadProtocol = Nothing
, _pzocAccessToken = Nothing
, _pzocUploadType = Nothing
, _pzocZone = pPzocZone_
, _pzocPayload = pPzocPayload_
, _pzocProjectId = pPzocProjectId_
, _pzocOperationId = pPzocOperationId_
, _pzocCallback = Nothing
}
pzocXgafv :: Lens' ProjectsZonesOperationsCancel (Maybe Xgafv)
pzocXgafv
= lens _pzocXgafv (\ s a -> s{_pzocXgafv = a})
pzocUploadProtocol :: Lens' ProjectsZonesOperationsCancel (Maybe Text)
pzocUploadProtocol
= lens _pzocUploadProtocol
(\ s a -> s{_pzocUploadProtocol = a})
pzocAccessToken :: Lens' ProjectsZonesOperationsCancel (Maybe Text)
pzocAccessToken
= lens _pzocAccessToken
(\ s a -> s{_pzocAccessToken = a})
pzocUploadType :: Lens' ProjectsZonesOperationsCancel (Maybe Text)
pzocUploadType
= lens _pzocUploadType
(\ s a -> s{_pzocUploadType = a})
pzocZone :: Lens' ProjectsZonesOperationsCancel Text
pzocZone = lens _pzocZone (\ s a -> s{_pzocZone = a})
pzocPayload :: Lens' ProjectsZonesOperationsCancel CancelOperationRequest
pzocPayload
= lens _pzocPayload (\ s a -> s{_pzocPayload = a})
pzocProjectId :: Lens' ProjectsZonesOperationsCancel Text
pzocProjectId
= lens _pzocProjectId
(\ s a -> s{_pzocProjectId = a})
pzocOperationId :: Lens' ProjectsZonesOperationsCancel Text
pzocOperationId
= lens _pzocOperationId
(\ s a -> s{_pzocOperationId = a})
pzocCallback :: Lens' ProjectsZonesOperationsCancel (Maybe Text)
pzocCallback
= lens _pzocCallback (\ s a -> s{_pzocCallback = a})
instance GoogleRequest ProjectsZonesOperationsCancel
where
type Rs ProjectsZonesOperationsCancel = Empty
type Scopes ProjectsZonesOperationsCancel =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsZonesOperationsCancel'{..}
= go _pzocProjectId _pzocZone _pzocOperationId
_pzocXgafv
_pzocUploadProtocol
_pzocAccessToken
_pzocUploadType
_pzocCallback
(Just AltJSON)
_pzocPayload
containerService
where go
= buildClient
(Proxy ::
Proxy ProjectsZonesOperationsCancelResource)
mempty