{-# 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.Ml.Projects.Models.Delete
(
ProjectsModelsDeleteResource
, projectsModelsDelete
, ProjectsModelsDelete
, pmdXgafv
, pmdUploadProtocol
, pmdAccessToken
, pmdUploadType
, pmdName
, pmdCallback
) where
import Network.Google.MachineLearning.Types
import Network.Google.Prelude
type ProjectsModelsDeleteResource =
"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] GoogleLongrunning__Operation
data ProjectsModelsDelete =
ProjectsModelsDelete'
{ _pmdXgafv :: !(Maybe Xgafv)
, _pmdUploadProtocol :: !(Maybe Text)
, _pmdAccessToken :: !(Maybe Text)
, _pmdUploadType :: !(Maybe Text)
, _pmdName :: !Text
, _pmdCallback :: !(Maybe Text)
}
deriving (Eq, Show, Data, Typeable, Generic)
projectsModelsDelete
:: Text
-> ProjectsModelsDelete
projectsModelsDelete pPmdName_ =
ProjectsModelsDelete'
{ _pmdXgafv = Nothing
, _pmdUploadProtocol = Nothing
, _pmdAccessToken = Nothing
, _pmdUploadType = Nothing
, _pmdName = pPmdName_
, _pmdCallback = Nothing
}
pmdXgafv :: Lens' ProjectsModelsDelete (Maybe Xgafv)
pmdXgafv = lens _pmdXgafv (\ s a -> s{_pmdXgafv = a})
pmdUploadProtocol :: Lens' ProjectsModelsDelete (Maybe Text)
pmdUploadProtocol
= lens _pmdUploadProtocol
(\ s a -> s{_pmdUploadProtocol = a})
pmdAccessToken :: Lens' ProjectsModelsDelete (Maybe Text)
pmdAccessToken
= lens _pmdAccessToken
(\ s a -> s{_pmdAccessToken = a})
pmdUploadType :: Lens' ProjectsModelsDelete (Maybe Text)
pmdUploadType
= lens _pmdUploadType
(\ s a -> s{_pmdUploadType = a})
pmdName :: Lens' ProjectsModelsDelete Text
pmdName = lens _pmdName (\ s a -> s{_pmdName = a})
pmdCallback :: Lens' ProjectsModelsDelete (Maybe Text)
pmdCallback
= lens _pmdCallback (\ s a -> s{_pmdCallback = a})
instance GoogleRequest ProjectsModelsDelete where
type Rs ProjectsModelsDelete =
GoogleLongrunning__Operation
type Scopes ProjectsModelsDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsModelsDelete'{..}
= go _pmdName _pmdXgafv _pmdUploadProtocol
_pmdAccessToken
_pmdUploadType
_pmdCallback
(Just AltJSON)
machineLearningService
where go
= buildClient
(Proxy :: Proxy ProjectsModelsDeleteResource)
mempty