{-# 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.DLP.Organizations.StoredInfoTypes.Delete
(
OrganizationsStoredInfoTypesDeleteResource
, organizationsStoredInfoTypesDelete
, OrganizationsStoredInfoTypesDelete
, ositdXgafv
, ositdUploadProtocol
, ositdAccessToken
, ositdUploadType
, ositdName
, ositdCallback
) where
import Network.Google.DLP.Types
import Network.Google.Prelude
type OrganizationsStoredInfoTypesDeleteResource =
"v2" :>
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] GoogleProtobufEmpty
data OrganizationsStoredInfoTypesDelete = OrganizationsStoredInfoTypesDelete'
{ _ositdXgafv :: !(Maybe Xgafv)
, _ositdUploadProtocol :: !(Maybe Text)
, _ositdAccessToken :: !(Maybe Text)
, _ositdUploadType :: !(Maybe Text)
, _ositdName :: !Text
, _ositdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
organizationsStoredInfoTypesDelete
:: Text
-> OrganizationsStoredInfoTypesDelete
organizationsStoredInfoTypesDelete pOsitdName_ =
OrganizationsStoredInfoTypesDelete'
{ _ositdXgafv = Nothing
, _ositdUploadProtocol = Nothing
, _ositdAccessToken = Nothing
, _ositdUploadType = Nothing
, _ositdName = pOsitdName_
, _ositdCallback = Nothing
}
ositdXgafv :: Lens' OrganizationsStoredInfoTypesDelete (Maybe Xgafv)
ositdXgafv
= lens _ositdXgafv (\ s a -> s{_ositdXgafv = a})
ositdUploadProtocol :: Lens' OrganizationsStoredInfoTypesDelete (Maybe Text)
ositdUploadProtocol
= lens _ositdUploadProtocol
(\ s a -> s{_ositdUploadProtocol = a})
ositdAccessToken :: Lens' OrganizationsStoredInfoTypesDelete (Maybe Text)
ositdAccessToken
= lens _ositdAccessToken
(\ s a -> s{_ositdAccessToken = a})
ositdUploadType :: Lens' OrganizationsStoredInfoTypesDelete (Maybe Text)
ositdUploadType
= lens _ositdUploadType
(\ s a -> s{_ositdUploadType = a})
ositdName :: Lens' OrganizationsStoredInfoTypesDelete Text
ositdName
= lens _ositdName (\ s a -> s{_ositdName = a})
ositdCallback :: Lens' OrganizationsStoredInfoTypesDelete (Maybe Text)
ositdCallback
= lens _ositdCallback
(\ s a -> s{_ositdCallback = a})
instance GoogleRequest
OrganizationsStoredInfoTypesDelete where
type Rs OrganizationsStoredInfoTypesDelete =
GoogleProtobufEmpty
type Scopes OrganizationsStoredInfoTypesDelete =
'["https://www.googleapis.com/auth/cloud-platform"]
requestClient OrganizationsStoredInfoTypesDelete'{..}
= go _ositdName _ositdXgafv _ositdUploadProtocol
_ositdAccessToken
_ositdUploadType
_ositdCallback
(Just AltJSON)
dLPService
where go
= buildClient
(Proxy ::
Proxy OrganizationsStoredInfoTypesDeleteResource)
mempty