{-# 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.Images.Delete
(
ImagesDeleteResource
, imagesDelete
, ImagesDelete
, iddRequestId
, iddImage
, iddProject
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type ImagesDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"images" :>
Capture "image" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data ImagesDelete = ImagesDelete'
{ _iddRequestId :: !(Maybe Text)
, _iddImage :: !Text
, _iddProject :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
imagesDelete
:: Text
-> Text
-> ImagesDelete
imagesDelete pIddImage_ pIddProject_ =
ImagesDelete'
{ _iddRequestId = Nothing
, _iddImage = pIddImage_
, _iddProject = pIddProject_
}
iddRequestId :: Lens' ImagesDelete (Maybe Text)
iddRequestId
= lens _iddRequestId (\ s a -> s{_iddRequestId = a})
iddImage :: Lens' ImagesDelete Text
iddImage = lens _iddImage (\ s a -> s{_iddImage = a})
iddProject :: Lens' ImagesDelete Text
iddProject
= lens _iddProject (\ s a -> s{_iddProject = a})
instance GoogleRequest ImagesDelete where
type Rs ImagesDelete = Operation
type Scopes ImagesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient ImagesDelete'{..}
= go _iddProject _iddImage _iddRequestId
(Just AltJSON)
computeService
where go
= buildClient (Proxy :: Proxy ImagesDeleteResource)
mempty