module Network.Google.Resource.Compute.TargetInstances.Delete
(
TargetInstancesDeleteResource
, targetInstancesDelete
, TargetInstancesDelete
, 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 "alt" AltJSON :> Delete '[JSON] Operation
data TargetInstancesDelete = TargetInstancesDelete'
{ _tidProject :: !Text
, _tidTargetInstance :: !Text
, _tidZone :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
targetInstancesDelete
:: Text
-> Text
-> Text
-> TargetInstancesDelete
targetInstancesDelete pTidProject_ pTidTargetInstance_ pTidZone_ =
TargetInstancesDelete'
{ _tidProject = pTidProject_
, _tidTargetInstance = pTidTargetInstance_
, _tidZone = pTidZone_
}
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
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy TargetInstancesDeleteResource)
mempty