{-# 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.RegionInstanceGroupManagers.Delete
(
RegionInstanceGroupManagersDeleteResource
, regionInstanceGroupManagersDelete
, RegionInstanceGroupManagersDelete
, rigmdRequestId
, rigmdProject
, rigmdInstanceGroupManager
, rigmdRegion
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type RegionInstanceGroupManagersDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"regions" :>
Capture "region" Text :>
"instanceGroupManagers" :>
Capture "instanceGroupManager" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data RegionInstanceGroupManagersDelete = RegionInstanceGroupManagersDelete'
{ _rigmdRequestId :: !(Maybe Text)
, _rigmdProject :: !Text
, _rigmdInstanceGroupManager :: !Text
, _rigmdRegion :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
regionInstanceGroupManagersDelete
:: Text
-> Text
-> Text
-> RegionInstanceGroupManagersDelete
regionInstanceGroupManagersDelete pRigmdProject_ pRigmdInstanceGroupManager_ pRigmdRegion_ =
RegionInstanceGroupManagersDelete'
{ _rigmdRequestId = Nothing
, _rigmdProject = pRigmdProject_
, _rigmdInstanceGroupManager = pRigmdInstanceGroupManager_
, _rigmdRegion = pRigmdRegion_
}
rigmdRequestId :: Lens' RegionInstanceGroupManagersDelete (Maybe Text)
rigmdRequestId
= lens _rigmdRequestId
(\ s a -> s{_rigmdRequestId = a})
rigmdProject :: Lens' RegionInstanceGroupManagersDelete Text
rigmdProject
= lens _rigmdProject (\ s a -> s{_rigmdProject = a})
rigmdInstanceGroupManager :: Lens' RegionInstanceGroupManagersDelete Text
rigmdInstanceGroupManager
= lens _rigmdInstanceGroupManager
(\ s a -> s{_rigmdInstanceGroupManager = a})
rigmdRegion :: Lens' RegionInstanceGroupManagersDelete Text
rigmdRegion
= lens _rigmdRegion (\ s a -> s{_rigmdRegion = a})
instance GoogleRequest
RegionInstanceGroupManagersDelete where
type Rs RegionInstanceGroupManagersDelete = Operation
type Scopes RegionInstanceGroupManagersDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient RegionInstanceGroupManagersDelete'{..}
= go _rigmdProject _rigmdRegion
_rigmdInstanceGroupManager
_rigmdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy ::
Proxy RegionInstanceGroupManagersDeleteResource)
mempty