{-# 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.InstanceGroupManagers.Delete
(
InstanceGroupManagersDeleteResource
, instanceGroupManagersDelete
, InstanceGroupManagersDelete
, igmdRequestId
, igmdProject
, igmdInstanceGroupManager
, igmdZone
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InstanceGroupManagersDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"instanceGroupManagers" :>
Capture "instanceGroupManager" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data InstanceGroupManagersDelete = InstanceGroupManagersDelete'
{ _igmdRequestId :: !(Maybe Text)
, _igmdProject :: !Text
, _igmdInstanceGroupManager :: !Text
, _igmdZone :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
instanceGroupManagersDelete
:: Text
-> Text
-> Text
-> InstanceGroupManagersDelete
instanceGroupManagersDelete pIgmdProject_ pIgmdInstanceGroupManager_ pIgmdZone_ =
InstanceGroupManagersDelete'
{ _igmdRequestId = Nothing
, _igmdProject = pIgmdProject_
, _igmdInstanceGroupManager = pIgmdInstanceGroupManager_
, _igmdZone = pIgmdZone_
}
igmdRequestId :: Lens' InstanceGroupManagersDelete (Maybe Text)
igmdRequestId
= lens _igmdRequestId
(\ s a -> s{_igmdRequestId = a})
igmdProject :: Lens' InstanceGroupManagersDelete Text
igmdProject
= lens _igmdProject (\ s a -> s{_igmdProject = a})
igmdInstanceGroupManager :: Lens' InstanceGroupManagersDelete Text
igmdInstanceGroupManager
= lens _igmdInstanceGroupManager
(\ s a -> s{_igmdInstanceGroupManager = a})
igmdZone :: Lens' InstanceGroupManagersDelete Text
igmdZone = lens _igmdZone (\ s a -> s{_igmdZone = a})
instance GoogleRequest InstanceGroupManagersDelete
where
type Rs InstanceGroupManagersDelete = Operation
type Scopes InstanceGroupManagersDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient InstanceGroupManagersDelete'{..}
= go _igmdProject _igmdZone _igmdInstanceGroupManager
_igmdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy InstanceGroupManagersDeleteResource)
mempty