{-# 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.Compute.GlobalOperations.Delete
(
GlobalOperationsDeleteResource
, globalOperationsDelete
, GlobalOperationsDelete
, godProject
, godOperation
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type GlobalOperationsDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"operations" :>
Capture "operation" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data GlobalOperationsDelete = GlobalOperationsDelete'
{ _godProject :: !Text
, _godOperation :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
globalOperationsDelete
:: Text
-> Text
-> GlobalOperationsDelete
globalOperationsDelete pGodProject_ pGodOperation_ =
GlobalOperationsDelete'
{ _godProject = pGodProject_
, _godOperation = pGodOperation_
}
godProject :: Lens' GlobalOperationsDelete Text
godProject
= lens _godProject (\ s a -> s{_godProject = a})
godOperation :: Lens' GlobalOperationsDelete Text
godOperation
= lens _godOperation (\ s a -> s{_godOperation = a})
instance GoogleRequest GlobalOperationsDelete where
type Rs GlobalOperationsDelete = ()
type Scopes GlobalOperationsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient GlobalOperationsDelete'{..}
= go _godProject _godOperation (Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy GlobalOperationsDeleteResource)
mempty