{-# 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.Instances.Delete
(
InstancesDeleteResource
, instancesDelete
, InstancesDelete
, idRequestId
, idProject
, idZone
, idInstance
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InstancesDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"instances" :>
Capture "instance" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data InstancesDelete = InstancesDelete'
{ _idRequestId :: !(Maybe Text)
, _idProject :: !Text
, _idZone :: !Text
, _idInstance :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
instancesDelete
:: Text
-> Text
-> Text
-> InstancesDelete
instancesDelete pIdProject_ pIdZone_ pIdInstance_ =
InstancesDelete'
{ _idRequestId = Nothing
, _idProject = pIdProject_
, _idZone = pIdZone_
, _idInstance = pIdInstance_
}
idRequestId :: Lens' InstancesDelete (Maybe Text)
idRequestId
= lens _idRequestId (\ s a -> s{_idRequestId = a})
idProject :: Lens' InstancesDelete Text
idProject
= lens _idProject (\ s a -> s{_idProject = a})
idZone :: Lens' InstancesDelete Text
idZone = lens _idZone (\ s a -> s{_idZone = a})
idInstance :: Lens' InstancesDelete Text
idInstance
= lens _idInstance (\ s a -> s{_idInstance = a})
instance GoogleRequest InstancesDelete where
type Rs InstancesDelete = Operation
type Scopes InstancesDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient InstancesDelete'{..}
= go _idProject _idZone _idInstance _idRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy InstancesDeleteResource)
mempty