{-# 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.Addresses.Delete
(
AddressesDeleteResource
, addressesDelete
, AddressesDelete
, adddRequestId
, adddProject
, adddAddress
, adddRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type AddressesDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"addresses" :>
Capture "address" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data AddressesDelete = AddressesDelete'
{ _adddRequestId :: !(Maybe Text)
, _adddProject :: !Text
, _adddAddress :: !Text
, _adddRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
addressesDelete
:: Text
-> Text
-> Text
-> AddressesDelete
addressesDelete pAdddProject_ pAdddAddress_ pAdddRegion_ =
AddressesDelete'
{ _adddRequestId = Nothing
, _adddProject = pAdddProject_
, _adddAddress = pAdddAddress_
, _adddRegion = pAdddRegion_
}
adddRequestId :: Lens' AddressesDelete (Maybe Text)
adddRequestId
= lens _adddRequestId
(\ s a -> s{_adddRequestId = a})
adddProject :: Lens' AddressesDelete Text
adddProject
= lens _adddProject (\ s a -> s{_adddProject = a})
adddAddress :: Lens' AddressesDelete Text
adddAddress
= lens _adddAddress (\ s a -> s{_adddAddress = a})
adddRegion :: Lens' AddressesDelete Text
adddRegion
= lens _adddRegion (\ s a -> s{_adddRegion = a})
instance GoogleRequest AddressesDelete where
type Rs AddressesDelete = Operation
type Scopes AddressesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient AddressesDelete'{..}
= go _adddProject _adddRegion _adddAddress
_adddRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy AddressesDeleteResource)
mempty