{-# 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.ZoneOperations.Delete
(
ZoneOperationsDeleteResource
, zoneOperationsDelete
, ZoneOperationsDelete
, zodProject
, zodOperation
, zodZone
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type ZoneOperationsDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"operations" :>
Capture "operation" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] ()
data ZoneOperationsDelete = ZoneOperationsDelete'
{ _zodProject :: !Text
, _zodOperation :: !Text
, _zodZone :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
zoneOperationsDelete
:: Text
-> Text
-> Text
-> ZoneOperationsDelete
zoneOperationsDelete pZodProject_ pZodOperation_ pZodZone_ =
ZoneOperationsDelete'
{ _zodProject = pZodProject_
, _zodOperation = pZodOperation_
, _zodZone = pZodZone_
}
zodProject :: Lens' ZoneOperationsDelete Text
zodProject
= lens _zodProject (\ s a -> s{_zodProject = a})
zodOperation :: Lens' ZoneOperationsDelete Text
zodOperation
= lens _zodOperation (\ s a -> s{_zodOperation = a})
zodZone :: Lens' ZoneOperationsDelete Text
zodZone = lens _zodZone (\ s a -> s{_zodZone = a})
instance GoogleRequest ZoneOperationsDelete where
type Rs ZoneOperationsDelete = ()
type Scopes ZoneOperationsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient ZoneOperationsDelete'{..}
= go _zodProject _zodZone _zodOperation
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy ZoneOperationsDeleteResource)
mempty