{-# 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.ContainerAnalysis.Projects.Occurrences.Delete
(
ProjectsOccurrencesDeleteResource
, projectsOccurrencesDelete
, ProjectsOccurrencesDelete
, podXgafv
, podUploadProtocol
, podAccessToken
, podUploadType
, podName
, podCallback
) where
import Network.Google.ContainerAnalysis.Types
import Network.Google.Prelude
type ProjectsOccurrencesDeleteResource =
"v1beta1" :>
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] Empty
data ProjectsOccurrencesDelete = ProjectsOccurrencesDelete'
{ _podXgafv :: !(Maybe Xgafv)
, _podUploadProtocol :: !(Maybe Text)
, _podAccessToken :: !(Maybe Text)
, _podUploadType :: !(Maybe Text)
, _podName :: !Text
, _podCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
projectsOccurrencesDelete
:: Text
-> ProjectsOccurrencesDelete
projectsOccurrencesDelete pPodName_ =
ProjectsOccurrencesDelete'
{ _podXgafv = Nothing
, _podUploadProtocol = Nothing
, _podAccessToken = Nothing
, _podUploadType = Nothing
, _podName = pPodName_
, _podCallback = Nothing
}
podXgafv :: Lens' ProjectsOccurrencesDelete (Maybe Xgafv)
podXgafv = lens _podXgafv (\ s a -> s{_podXgafv = a})
podUploadProtocol :: Lens' ProjectsOccurrencesDelete (Maybe Text)
podUploadProtocol
= lens _podUploadProtocol
(\ s a -> s{_podUploadProtocol = a})
podAccessToken :: Lens' ProjectsOccurrencesDelete (Maybe Text)
podAccessToken
= lens _podAccessToken
(\ s a -> s{_podAccessToken = a})
podUploadType :: Lens' ProjectsOccurrencesDelete (Maybe Text)
podUploadType
= lens _podUploadType
(\ s a -> s{_podUploadType = a})
podName :: Lens' ProjectsOccurrencesDelete Text
podName = lens _podName (\ s a -> s{_podName = a})
podCallback :: Lens' ProjectsOccurrencesDelete (Maybe Text)
podCallback
= lens _podCallback (\ s a -> s{_podCallback = a})
instance GoogleRequest ProjectsOccurrencesDelete
where
type Rs ProjectsOccurrencesDelete = Empty
type Scopes ProjectsOccurrencesDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient ProjectsOccurrencesDelete'{..}
= go _podName _podXgafv _podUploadProtocol
_podAccessToken
_podUploadType
_podCallback
(Just AltJSON)
containerAnalysisService
where go
= buildClient
(Proxy :: Proxy ProjectsOccurrencesDeleteResource)
mempty