{-# 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.Networks.Delete
(
NetworksDeleteResource
, networksDelete
, NetworksDelete
, ndRequestId
, ndProject
, ndNetwork
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type NetworksDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"networks" :>
Capture "network" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data NetworksDelete = NetworksDelete'
{ _ndRequestId :: !(Maybe Text)
, _ndProject :: !Text
, _ndNetwork :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
networksDelete
:: Text
-> Text
-> NetworksDelete
networksDelete pNdProject_ pNdNetwork_ =
NetworksDelete'
{ _ndRequestId = Nothing
, _ndProject = pNdProject_
, _ndNetwork = pNdNetwork_
}
ndRequestId :: Lens' NetworksDelete (Maybe Text)
ndRequestId
= lens _ndRequestId (\ s a -> s{_ndRequestId = a})
ndProject :: Lens' NetworksDelete Text
ndProject
= lens _ndProject (\ s a -> s{_ndProject = a})
ndNetwork :: Lens' NetworksDelete Text
ndNetwork
= lens _ndNetwork (\ s a -> s{_ndNetwork = a})
instance GoogleRequest NetworksDelete where
type Rs NetworksDelete = Operation
type Scopes NetworksDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient NetworksDelete'{..}
= go _ndProject _ndNetwork _ndRequestId
(Just AltJSON)
computeService
where go
= buildClient (Proxy :: Proxy NetworksDeleteResource)
mempty