{-# 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.Devices.RemoveConfiguration
(
CustomersDevicesRemoveConfigurationResource
, customersDevicesRemoveConfiguration
, CustomersDevicesRemoveConfiguration
, cdrcParent
, cdrcXgafv
, cdrcUploadProtocol
, cdrcAccessToken
, cdrcUploadType
, cdrcPayload
, cdrcCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type CustomersDevicesRemoveConfigurationResource =
"v1" :>
Capture "parent" Text :>
"devices:removeConfiguration" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] CustomerRemoveConfigurationRequest :>
Post '[JSON] Empty
data CustomersDevicesRemoveConfiguration = CustomersDevicesRemoveConfiguration'
{ _cdrcParent :: !Text
, _cdrcXgafv :: !(Maybe Xgafv)
, _cdrcUploadProtocol :: !(Maybe Text)
, _cdrcAccessToken :: !(Maybe Text)
, _cdrcUploadType :: !(Maybe Text)
, _cdrcPayload :: !CustomerRemoveConfigurationRequest
, _cdrcCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
customersDevicesRemoveConfiguration
:: Text
-> CustomerRemoveConfigurationRequest
-> CustomersDevicesRemoveConfiguration
customersDevicesRemoveConfiguration pCdrcParent_ pCdrcPayload_ =
CustomersDevicesRemoveConfiguration'
{ _cdrcParent = pCdrcParent_
, _cdrcXgafv = Nothing
, _cdrcUploadProtocol = Nothing
, _cdrcAccessToken = Nothing
, _cdrcUploadType = Nothing
, _cdrcPayload = pCdrcPayload_
, _cdrcCallback = Nothing
}
cdrcParent :: Lens' CustomersDevicesRemoveConfiguration Text
cdrcParent
= lens _cdrcParent (\ s a -> s{_cdrcParent = a})
cdrcXgafv :: Lens' CustomersDevicesRemoveConfiguration (Maybe Xgafv)
cdrcXgafv
= lens _cdrcXgafv (\ s a -> s{_cdrcXgafv = a})
cdrcUploadProtocol :: Lens' CustomersDevicesRemoveConfiguration (Maybe Text)
cdrcUploadProtocol
= lens _cdrcUploadProtocol
(\ s a -> s{_cdrcUploadProtocol = a})
cdrcAccessToken :: Lens' CustomersDevicesRemoveConfiguration (Maybe Text)
cdrcAccessToken
= lens _cdrcAccessToken
(\ s a -> s{_cdrcAccessToken = a})
cdrcUploadType :: Lens' CustomersDevicesRemoveConfiguration (Maybe Text)
cdrcUploadType
= lens _cdrcUploadType
(\ s a -> s{_cdrcUploadType = a})
cdrcPayload :: Lens' CustomersDevicesRemoveConfiguration CustomerRemoveConfigurationRequest
cdrcPayload
= lens _cdrcPayload (\ s a -> s{_cdrcPayload = a})
cdrcCallback :: Lens' CustomersDevicesRemoveConfiguration (Maybe Text)
cdrcCallback
= lens _cdrcCallback (\ s a -> s{_cdrcCallback = a})
instance GoogleRequest
CustomersDevicesRemoveConfiguration where
type Rs CustomersDevicesRemoveConfiguration = Empty
type Scopes CustomersDevicesRemoveConfiguration = '[]
requestClient
CustomersDevicesRemoveConfiguration'{..}
= go _cdrcParent _cdrcXgafv _cdrcUploadProtocol
_cdrcAccessToken
_cdrcUploadType
_cdrcCallback
(Just AltJSON)
_cdrcPayload
androidDeviceProvisioningService
where go
= buildClient
(Proxy ::
Proxy CustomersDevicesRemoveConfigurationResource)
mempty