{-# 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.NodeGroups.Delete
(
NodeGroupsDeleteResource
, nodeGroupsDelete
, NodeGroupsDelete
, ngdRequestId
, ngdNodeGroup
, ngdProject
, ngdZone
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type NodeGroupsDeleteResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"nodeGroups" :>
Capture "nodeGroup" Text :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data NodeGroupsDelete = NodeGroupsDelete'
{ _ngdRequestId :: !(Maybe Text)
, _ngdNodeGroup :: !Text
, _ngdProject :: !Text
, _ngdZone :: !Text
} deriving (Eq,Show,Data,Typeable,Generic)
nodeGroupsDelete
:: Text
-> Text
-> Text
-> NodeGroupsDelete
nodeGroupsDelete pNgdNodeGroup_ pNgdProject_ pNgdZone_ =
NodeGroupsDelete'
{ _ngdRequestId = Nothing
, _ngdNodeGroup = pNgdNodeGroup_
, _ngdProject = pNgdProject_
, _ngdZone = pNgdZone_
}
ngdRequestId :: Lens' NodeGroupsDelete (Maybe Text)
ngdRequestId
= lens _ngdRequestId (\ s a -> s{_ngdRequestId = a})
ngdNodeGroup :: Lens' NodeGroupsDelete Text
ngdNodeGroup
= lens _ngdNodeGroup (\ s a -> s{_ngdNodeGroup = a})
ngdProject :: Lens' NodeGroupsDelete Text
ngdProject
= lens _ngdProject (\ s a -> s{_ngdProject = a})
ngdZone :: Lens' NodeGroupsDelete Text
ngdZone = lens _ngdZone (\ s a -> s{_ngdZone = a})
instance GoogleRequest NodeGroupsDelete where
type Rs NodeGroupsDelete = Operation
type Scopes NodeGroupsDelete =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient NodeGroupsDelete'{..}
= go _ngdProject _ngdZone _ngdNodeGroup _ngdRequestId
(Just AltJSON)
computeService
where go
= buildClient
(Proxy :: Proxy NodeGroupsDeleteResource)
mempty