{-# 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.Container.Projects.Locations.Clusters.NodePools.Delete
(
ProjectsLocationsClustersNodePoolsDeleteResource
, projectsLocationsClustersNodePoolsDelete
, ProjectsLocationsClustersNodePoolsDelete
, plcnpdXgafv
, plcnpdUploadProtocol
, plcnpdAccessToken
, plcnpdUploadType
, plcnpdZone
, plcnpdNodePoolId
, plcnpdName
, plcnpdClusterId
, plcnpdProjectId
, plcnpdCallback
) where
import Network.Google.Container.Types
import Network.Google.Prelude
type ProjectsLocationsClustersNodePoolsDeleteResource
=
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "zone" Text :>
QueryParam "nodePoolId" Text :>
QueryParam "clusterId" Text :>
QueryParam "projectId" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data ProjectsLocationsClustersNodePoolsDelete = ProjectsLocationsClustersNodePoolsDelete'
{ _plcnpdXgafv :: !(Maybe Xgafv)
, _plcnpdUploadProtocol :: !(Maybe Text)
, _plcnpdAccessToken :: !(Maybe Text)
, _plcnpdUploadType :: !(Maybe Text)
, _plcnpdZone :: !(Maybe Text)
, _plcnpdNodePoolId :: !(Maybe Text)
, _plcnpdName :: !Text
, _plcnpdClusterId :: !(Maybe Text)
, _plcnpdProjectId :: !(Maybe Text)
, _plcnpdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsClustersNodePoolsDelete
:: Text
-> ProjectsLocationsClustersNodePoolsDelete
projectsLocationsClustersNodePoolsDelete pPlcnpdName_ =
ProjectsLocationsClustersNodePoolsDelete'
{ _plcnpdXgafv = Nothing
, _plcnpdUploadProtocol = Nothing
, _plcnpdAccessToken = Nothing
, _plcnpdUploadType = Nothing
, _plcnpdZone = Nothing
, _plcnpdNodePoolId = Nothing
, _plcnpdName = pPlcnpdName_
, _plcnpdClusterId = Nothing
, _plcnpdProjectId = Nothing
, _plcnpdCallback = Nothing
}
plcnpdXgafv :: Lens' ProjectsLocationsClustersNodePoolsDelete (Maybe Xgafv)
plcnpdXgafv
= lens _plcnpdXgafv (\ s a -> s{_plcnpdXgafv = a})
plcnpdUploadProtocol :: Lens' ProjectsLocationsClustersNodePoolsDelete (Maybe Text)
plcnpdUploadProtocol
= lens _plcnpdUploadProtocol
(\ s a -> s{_plcnpdUploadProtocol = a})
plcnpdAccessToken :: Lens' ProjectsLocationsClustersNodePoolsDelete (Maybe Text)
plcnpdAccessToken
= lens _plcnpdAccessToken
(\ s a -> s{_plcnpdAccessToken = a})
plcnpdUploadType :: Lens' ProjectsLocationsClustersNodePoolsDelete (Maybe Text)
plcnpdUploadType
= lens _plcnpdUploadType
(\ s a -> s{_plcnpdUploadType = a})
plcnpdZone :: Lens' ProjectsLocationsClustersNodePoolsDelete (Maybe Text)
plcnpdZone
= lens _plcnpdZone (\ s a -> s{_plcnpdZone = a})
plcnpdNodePoolId :: Lens' ProjectsLocationsClustersNodePoolsDelete (Maybe Text)
plcnpdNodePoolId
= lens _plcnpdNodePoolId
(\ s a -> s{_plcnpdNodePoolId = a})
plcnpdName :: Lens' ProjectsLocationsClustersNodePoolsDelete Text
plcnpdName
= lens _plcnpdName (\ s a -> s{_plcnpdName = a})
plcnpdClusterId :: Lens' ProjectsLocationsClustersNodePoolsDelete (Maybe Text)
plcnpdClusterId
= lens _plcnpdClusterId
(\ s a -> s{_plcnpdClusterId = a})
plcnpdProjectId :: Lens' ProjectsLocationsClustersNodePoolsDelete (Maybe Text)
plcnpdProjectId
= lens _plcnpdProjectId
(\ s a -> s{_plcnpdProjectId = a})
plcnpdCallback :: Lens' ProjectsLocationsClustersNodePoolsDelete (Maybe Text)
plcnpdCallback
= lens _plcnpdCallback
(\ s a -> s{_plcnpdCallback = a})
instance GoogleRequest
ProjectsLocationsClustersNodePoolsDelete where
type Rs ProjectsLocationsClustersNodePoolsDelete =
Operation
type Scopes ProjectsLocationsClustersNodePoolsDelete
= '["https://www.googleapis.com/auth/cloud-platform"]
requestClient
ProjectsLocationsClustersNodePoolsDelete'{..}
= go _plcnpdName _plcnpdXgafv _plcnpdUploadProtocol
_plcnpdAccessToken
_plcnpdUploadType
_plcnpdZone
_plcnpdNodePoolId
_plcnpdClusterId
_plcnpdProjectId
_plcnpdCallback
(Just AltJSON)
containerService
where go
= buildClient
(Proxy ::
Proxy
ProjectsLocationsClustersNodePoolsDeleteResource)
mempty