{-# 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.Subnetworks.Delete
(
SubnetworksDeleteResource
, subnetworksDelete
, SubnetworksDelete
, sdRequestId
, sdProject
, sdSubnetwork
, sdRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type SubnetworksDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"subnetworks" :>
Capture "subnetwork" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data SubnetworksDelete = SubnetworksDelete'
{ _sdRequestId :: !(Maybe Text)
, _sdProject :: !Text
, _sdSubnetwork :: !Text
, _sdRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
subnetworksDelete
:: Text
-> Text
-> Text
-> SubnetworksDelete
subnetworksDelete pSdProject_ pSdSubnetwork_ pSdRegion_ =
SubnetworksDelete'
{ _sdRequestId = Nothing
, _sdProject = pSdProject_
, _sdSubnetwork = pSdSubnetwork_
, _sdRegion = pSdRegion_
}
sdRequestId :: Lens' SubnetworksDelete (Maybe Text)
sdRequestId
= lens _sdRequestId (\ s a -> s{_sdRequestId = a})
sdProject :: Lens' SubnetworksDelete Text
sdProject
= lens _sdProject (\ s a -> s{_sdProject = a})
sdSubnetwork :: Lens' SubnetworksDelete Text
sdSubnetwork
= lens _sdSubnetwork (\ s a -> s{_sdSubnetwork = a})
sdRegion :: Lens' SubnetworksDelete Text
sdRegion = lens _sdRegion (\ s a -> s{_sdRegion = a})
instance GoogleRequest SubnetworksDelete where
type Rs SubnetworksDelete = Operation
type Scopes SubnetworksDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient SubnetworksDelete'{..}
= go _sdProject _sdRegion _sdSubnetwork _sdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy SubnetworksDeleteResource)
mempty