{-# 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.Interconnects.Delete
(
InterconnectsDeleteResource
, interconnectsDelete
, InterconnectsDelete
, intRequestId
, intProject
, intInterconnect
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InterconnectsDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"interconnects" :>
Capture "interconnect" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data InterconnectsDelete = InterconnectsDelete'
{ _intRequestId :: !(Maybe Text)
, _intProject :: !Text
, _intInterconnect :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
interconnectsDelete
:: Text
-> Text
-> InterconnectsDelete
interconnectsDelete pIntProject_ pIntInterconnect_ =
InterconnectsDelete'
{ _intRequestId = Nothing
, _intProject = pIntProject_
, _intInterconnect = pIntInterconnect_
}
intRequestId :: Lens' InterconnectsDelete (Maybe Text)
intRequestId
= lens _intRequestId (\ s a -> s{_intRequestId = a})
intProject :: Lens' InterconnectsDelete Text
intProject
= lens _intProject (\ s a -> s{_intProject = a})
intInterconnect :: Lens' InterconnectsDelete Text
intInterconnect
= lens _intInterconnect
(\ s a -> s{_intInterconnect = a})
instance GoogleRequest InterconnectsDelete where
type Rs InterconnectsDelete = Operation
type Scopes InterconnectsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient InterconnectsDelete'{..}
= go _intProject _intInterconnect _intRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy InterconnectsDeleteResource)
mempty