{-# 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.GlobalAddresses.Delete
(
GlobalAddressesDeleteResource
, globalAddressesDelete
, GlobalAddressesDelete
, gadRequestId
, gadProject
, gadAddress
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type GlobalAddressesDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"addresses" :>
Capture "address" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data GlobalAddressesDelete = GlobalAddressesDelete'
{ _gadRequestId :: !(Maybe Text)
, _gadProject :: !Text
, _gadAddress :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
globalAddressesDelete
:: Text
-> Text
-> GlobalAddressesDelete
globalAddressesDelete pGadProject_ pGadAddress_ =
GlobalAddressesDelete'
{ _gadRequestId = Nothing
, _gadProject = pGadProject_
, _gadAddress = pGadAddress_
}
gadRequestId :: Lens' GlobalAddressesDelete (Maybe Text)
gadRequestId
= lens _gadRequestId (\ s a -> s{_gadRequestId = a})
gadProject :: Lens' GlobalAddressesDelete Text
gadProject
= lens _gadProject (\ s a -> s{_gadProject = a})
gadAddress :: Lens' GlobalAddressesDelete Text
gadAddress
= lens _gadAddress (\ s a -> s{_gadAddress = a})
instance GoogleRequest GlobalAddressesDelete where
type Rs GlobalAddressesDelete = Operation
type Scopes GlobalAddressesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient GlobalAddressesDelete'{..}
= go _gadProject _gadAddress _gadRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy GlobalAddressesDeleteResource)
mempty