{-# 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.DeleteNodes
(
NodeGroupsDeleteNodesResource
, nodeGroupsDeleteNodes
, NodeGroupsDeleteNodes
, ngdnRequestId
, ngdnNodeGroup
, ngdnProject
, ngdnZone
, ngdnPayload
) where
import Network.Google.Compute.Types
import Network.Google.Prelude
type NodeGroupsDeleteNodesResource =
"compute" :>
"v1" :>
"projects" :>
Capture "project" Text :>
"zones" :>
Capture "zone" Text :>
"nodeGroups" :>
Capture "nodeGroup" Text :>
"deleteNodes" :>
QueryParam "requestId" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] NodeGroupsDeleteNodesRequest :>
Post '[JSON] Operation
data NodeGroupsDeleteNodes = NodeGroupsDeleteNodes'
{ _ngdnRequestId :: !(Maybe Text)
, _ngdnNodeGroup :: !Text
, _ngdnProject :: !Text
, _ngdnZone :: !Text
, _ngdnPayload :: !NodeGroupsDeleteNodesRequest
} deriving (Eq,Show,Data,Typeable,Generic)
nodeGroupsDeleteNodes
:: Text
-> Text
-> Text
-> NodeGroupsDeleteNodesRequest
-> NodeGroupsDeleteNodes
nodeGroupsDeleteNodes pNgdnNodeGroup_ pNgdnProject_ pNgdnZone_ pNgdnPayload_ =
NodeGroupsDeleteNodes'
{ _ngdnRequestId = Nothing
, _ngdnNodeGroup = pNgdnNodeGroup_
, _ngdnProject = pNgdnProject_
, _ngdnZone = pNgdnZone_
, _ngdnPayload = pNgdnPayload_
}
ngdnRequestId :: Lens' NodeGroupsDeleteNodes (Maybe Text)
ngdnRequestId
= lens _ngdnRequestId
(\ s a -> s{_ngdnRequestId = a})
ngdnNodeGroup :: Lens' NodeGroupsDeleteNodes Text
ngdnNodeGroup
= lens _ngdnNodeGroup
(\ s a -> s{_ngdnNodeGroup = a})
ngdnProject :: Lens' NodeGroupsDeleteNodes Text
ngdnProject
= lens _ngdnProject (\ s a -> s{_ngdnProject = a})
ngdnZone :: Lens' NodeGroupsDeleteNodes Text
ngdnZone = lens _ngdnZone (\ s a -> s{_ngdnZone = a})
ngdnPayload :: Lens' NodeGroupsDeleteNodes NodeGroupsDeleteNodesRequest
ngdnPayload
= lens _ngdnPayload (\ s a -> s{_ngdnPayload = a})
instance GoogleRequest NodeGroupsDeleteNodes where
type Rs NodeGroupsDeleteNodes = Operation
type Scopes NodeGroupsDeleteNodes =
'["https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/compute"]
requestClient NodeGroupsDeleteNodes'{..}
= go _ngdnProject _ngdnZone _ngdnNodeGroup
_ngdnRequestId
(Just AltJSON)
_ngdnPayload
computeService
where go
= buildClient
(Proxy :: Proxy NodeGroupsDeleteNodesResource)
mempty