{-# 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.AndroidDeviceProvisioning.Customers.Configurations.Delete
(
CustomersConfigurationsDeleteResource
, customersConfigurationsDelete
, CustomersConfigurationsDelete
, ccdXgafv
, ccdUploadProtocol
, ccdAccessToken
, ccdUploadType
, ccdName
, ccdCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type CustomersConfigurationsDeleteResource =
"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] Empty
data CustomersConfigurationsDelete = CustomersConfigurationsDelete'
{ _ccdXgafv :: !(Maybe Xgafv)
, _ccdUploadProtocol :: !(Maybe Text)
, _ccdAccessToken :: !(Maybe Text)
, _ccdUploadType :: !(Maybe Text)
, _ccdName :: !Text
, _ccdCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
customersConfigurationsDelete
:: Text
-> CustomersConfigurationsDelete
customersConfigurationsDelete pCcdName_ =
CustomersConfigurationsDelete'
{ _ccdXgafv = Nothing
, _ccdUploadProtocol = Nothing
, _ccdAccessToken = Nothing
, _ccdUploadType = Nothing
, _ccdName = pCcdName_
, _ccdCallback = Nothing
}
ccdXgafv :: Lens' CustomersConfigurationsDelete (Maybe Xgafv)
ccdXgafv = lens _ccdXgafv (\ s a -> s{_ccdXgafv = a})
ccdUploadProtocol :: Lens' CustomersConfigurationsDelete (Maybe Text)
ccdUploadProtocol
= lens _ccdUploadProtocol
(\ s a -> s{_ccdUploadProtocol = a})
ccdAccessToken :: Lens' CustomersConfigurationsDelete (Maybe Text)
ccdAccessToken
= lens _ccdAccessToken
(\ s a -> s{_ccdAccessToken = a})
ccdUploadType :: Lens' CustomersConfigurationsDelete (Maybe Text)
ccdUploadType
= lens _ccdUploadType
(\ s a -> s{_ccdUploadType = a})
ccdName :: Lens' CustomersConfigurationsDelete Text
ccdName = lens _ccdName (\ s a -> s{_ccdName = a})
ccdCallback :: Lens' CustomersConfigurationsDelete (Maybe Text)
ccdCallback
= lens _ccdCallback (\ s a -> s{_ccdCallback = a})
instance GoogleRequest CustomersConfigurationsDelete
where
type Rs CustomersConfigurationsDelete = Empty
type Scopes CustomersConfigurationsDelete = '[]
requestClient CustomersConfigurationsDelete'{..}
= go _ccdName _ccdXgafv _ccdUploadProtocol
_ccdAccessToken
_ccdUploadType
_ccdCallback
(Just AltJSON)
androidDeviceProvisioningService
where go
= buildClient
(Proxy ::
Proxy CustomersConfigurationsDeleteResource)
mempty