{-# 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.InstanceGroups.Delete
(
InstanceGroupsDeleteResource
, instanceGroupsDelete
, InstanceGroupsDelete
, igdRequestId
, igdProject
, igdZone
, igdInstanceGroup
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type InstanceGroupsDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"instanceGroups" :>
Capture "instanceGroup" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data InstanceGroupsDelete = InstanceGroupsDelete'
{ _igdRequestId :: !(Maybe Text)
, _igdProject :: !Text
, _igdZone :: !Text
, _igdInstanceGroup :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
instanceGroupsDelete
:: Text
-> Text
-> Text
-> InstanceGroupsDelete
instanceGroupsDelete pIgdProject_ pIgdZone_ pIgdInstanceGroup_ =
InstanceGroupsDelete'
{ _igdRequestId = Nothing
, _igdProject = pIgdProject_
, _igdZone = pIgdZone_
, _igdInstanceGroup = pIgdInstanceGroup_
}
igdRequestId :: Lens' InstanceGroupsDelete (Maybe Text)
igdRequestId
= lens _igdRequestId (\ s a -> s{_igdRequestId = a})
igdProject :: Lens' InstanceGroupsDelete Text
igdProject
= lens _igdProject (\ s a -> s{_igdProject = a})
igdZone :: Lens' InstanceGroupsDelete Text
igdZone = lens _igdZone (\ s a -> s{_igdZone = a})
igdInstanceGroup :: Lens' InstanceGroupsDelete Text
igdInstanceGroup
= lens _igdInstanceGroup
(\ s a -> s{_igdInstanceGroup = a})
instance GoogleRequest InstanceGroupsDelete where
type Rs InstanceGroupsDelete = Operation
type Scopes InstanceGroupsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient InstanceGroupsDelete'{..}
= go _igdProject _igdZone _igdInstanceGroup
_igdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy InstanceGroupsDeleteResource)
mempty