{-# 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.TPU.Projects.Locations.Nodes.Delete
(
ProjectsLocationsNodesDeleteResource
, projectsLocationsNodesDelete
, ProjectsLocationsNodesDelete
, plndXgafv
, plndUploadProtocol
, plndAccessToken
, plndUploadType
, plndName
, plndCallback
) where
import Network.Google.Prelude
import Network.Google.TPU.Types
type ProjectsLocationsNodesDeleteResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Delete '[JSON] Operation
data ProjectsLocationsNodesDelete = ProjectsLocationsNodesDelete'
{ _plndXgafv :: !(Maybe Xgafv)
, _plndUploadProtocol :: !(Maybe Text)
, _plndAccessToken :: !(Maybe Text)
, _plndUploadType :: !(Maybe Text)
, _plndName :: !Text
, _plndCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsLocationsNodesDelete
:: Text
-> ProjectsLocationsNodesDelete
projectsLocationsNodesDelete pPlndName_ =
ProjectsLocationsNodesDelete'
{ _plndXgafv = Nothing
, _plndUploadProtocol = Nothing
, _plndAccessToken = Nothing
, _plndUploadType = Nothing
, _plndName = pPlndName_
, _plndCallback = Nothing
}
plndXgafv :: Lens' ProjectsLocationsNodesDelete (Maybe Xgafv)
plndXgafv
= lens _plndXgafv (\ s a -> s{_plndXgafv = a})
plndUploadProtocol :: Lens' ProjectsLocationsNodesDelete (Maybe Text)
plndUploadProtocol
= lens _plndUploadProtocol
(\ s a -> s{_plndUploadProtocol = a})
plndAccessToken :: Lens' ProjectsLocationsNodesDelete (Maybe Text)
plndAccessToken
= lens _plndAccessToken
(\ s a -> s{_plndAccessToken = a})
plndUploadType :: Lens' ProjectsLocationsNodesDelete (Maybe Text)
plndUploadType
= lens _plndUploadType
(\ s a -> s{_plndUploadType = a})
plndName :: Lens' ProjectsLocationsNodesDelete Text
plndName = lens _plndName (\ s a -> s{_plndName = a})
plndCallback :: Lens' ProjectsLocationsNodesDelete (Maybe Text)
plndCallback
= lens _plndCallback (\ s a -> s{_plndCallback = a})
instance GoogleRequest ProjectsLocationsNodesDelete
where
type Rs ProjectsLocationsNodesDelete = Operation
type Scopes ProjectsLocationsNodesDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsLocationsNodesDelete'{..}
= go _plndName _plndXgafv _plndUploadProtocol
_plndAccessToken
_plndUploadType
_plndCallback
(Just AltJSON)
tPUService
where go
= buildClient
(Proxy :: Proxy ProjectsLocationsNodesDeleteResource)
mempty