{-# 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.InterconnectAttachments.Delete
(
InterconnectAttachmentsDeleteResource
, interconnectAttachmentsDelete
, InterconnectAttachmentsDelete
, iadRequestId
, iadProject
, iadRegion
, iadInterconnectAttachment
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InterconnectAttachmentsDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"interconnectAttachments" :>
Capture "interconnectAttachment" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data InterconnectAttachmentsDelete = InterconnectAttachmentsDelete'
{ _iadRequestId :: !(Maybe Text)
, _iadProject :: !Text
, _iadRegion :: !Text
, _iadInterconnectAttachment :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
interconnectAttachmentsDelete
:: Text
-> Text
-> Text
-> InterconnectAttachmentsDelete
interconnectAttachmentsDelete pIadProject_ pIadRegion_ pIadInterconnectAttachment_ =
InterconnectAttachmentsDelete'
{ _iadRequestId = Nothing
, _iadProject = pIadProject_
, _iadRegion = pIadRegion_
, _iadInterconnectAttachment = pIadInterconnectAttachment_
}
iadRequestId :: Lens' InterconnectAttachmentsDelete (Maybe Text)
iadRequestId
= lens _iadRequestId (\ s a -> s{_iadRequestId = a})
iadProject :: Lens' InterconnectAttachmentsDelete Text
iadProject
= lens _iadProject (\ s a -> s{_iadProject = a})
iadRegion :: Lens' InterconnectAttachmentsDelete Text
iadRegion
= lens _iadRegion (\ s a -> s{_iadRegion = a})
iadInterconnectAttachment :: Lens' InterconnectAttachmentsDelete Text
iadInterconnectAttachment
= lens _iadInterconnectAttachment
(\ s a -> s{_iadInterconnectAttachment = a})
instance GoogleRequest InterconnectAttachmentsDelete
where
type Rs InterconnectAttachmentsDelete = Operation
type Scopes InterconnectAttachmentsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient InterconnectAttachmentsDelete'{..}
= go _iadProject _iadRegion
_iadInterconnectAttachment
_iadRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy ::
Proxy InterconnectAttachmentsDeleteResource)
mempty