{-# 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.TargetInstances.Delete
(
TargetInstancesDeleteResource
, targetInstancesDelete
, TargetInstancesDelete
, tidRequestId
, tidProject
, tidTargetInstance
, tidZone
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type TargetInstancesDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"targetInstances" :>
Capture "targetInstance" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data TargetInstancesDelete = TargetInstancesDelete'
{ _tidRequestId :: !(Maybe Text)
, _tidProject :: !Text
, _tidTargetInstance :: !Text
, _tidZone :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetInstancesDelete
:: Text
-> Text
-> Text
-> TargetInstancesDelete
targetInstancesDelete pTidProject_ pTidTargetInstance_ pTidZone_ =
TargetInstancesDelete'
{ _tidRequestId = Nothing
, _tidProject = pTidProject_
, _tidTargetInstance = pTidTargetInstance_
, _tidZone = pTidZone_
}
tidRequestId :: Lens' TargetInstancesDelete (Maybe Text)
tidRequestId
= lens _tidRequestId (\ s a -> s{_tidRequestId = a})
tidProject :: Lens' TargetInstancesDelete Text
tidProject
= lens _tidProject (\ s a -> s{_tidProject = a})
tidTargetInstance :: Lens' TargetInstancesDelete Text
tidTargetInstance
= lens _tidTargetInstance
(\ s a -> s{_tidTargetInstance = a})
tidZone :: Lens' TargetInstancesDelete Text
tidZone = lens _tidZone (\ s a -> s{_tidZone = a})
instance GoogleRequest TargetInstancesDelete where
type Rs TargetInstancesDelete = Operation
type Scopes TargetInstancesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient TargetInstancesDelete'{..}
= go _tidProject _tidZone _tidTargetInstance
_tidRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy TargetInstancesDeleteResource)
mempty