{-# 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.InstanceTemplates.Delete
(
InstanceTemplatesDeleteResource
, instanceTemplatesDelete
, InstanceTemplatesDelete
, itdRequestId
, itdProject
, itdInstanceTemplate
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InstanceTemplatesDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"global" :>
"instanceTemplates" :>
Capture "instanceTemplate" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data InstanceTemplatesDelete = InstanceTemplatesDelete'
{ _itdRequestId :: !(Maybe Text)
, _itdProject :: !Text
, _itdInstanceTemplate :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
instanceTemplatesDelete
:: Text
-> Text
-> InstanceTemplatesDelete
instanceTemplatesDelete pItdProject_ pItdInstanceTemplate_ =
InstanceTemplatesDelete'
{ _itdRequestId = Nothing
, _itdProject = pItdProject_
, _itdInstanceTemplate = pItdInstanceTemplate_
}
itdRequestId :: Lens' InstanceTemplatesDelete (Maybe Text)
itdRequestId
= lens _itdRequestId (\ s a -> s{_itdRequestId = a})
itdProject :: Lens' InstanceTemplatesDelete Text
itdProject
= lens _itdProject (\ s a -> s{_itdProject = a})
itdInstanceTemplate :: Lens' InstanceTemplatesDelete Text
itdInstanceTemplate
= lens _itdInstanceTemplate
(\ s a -> s{_itdInstanceTemplate = a})
instance GoogleRequest InstanceTemplatesDelete where
type Rs InstanceTemplatesDelete = Operation
type Scopes InstanceTemplatesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient InstanceTemplatesDelete'{..}
= go _itdProject _itdInstanceTemplate _itdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy InstanceTemplatesDeleteResource)
mempty