{-# 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.Unclaim
(
CustomersDevicesUnclaimResource
, customersDevicesUnclaim
, CustomersDevicesUnclaim
, cduParent
, cduXgafv
, cduUploadProtocol
, cduAccessToken
, cduUploadType
, cduPayload
, cduCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type CustomersDevicesUnclaimResource =
"v1" :>
Capture "parent" Text :>
"devices:unclaim" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] CustomerUnclaimDeviceRequest :>
Post '[JSON] Empty
data CustomersDevicesUnclaim = CustomersDevicesUnclaim'
{ _cduParent :: !Text
, _cduXgafv :: !(Maybe Xgafv)
, _cduUploadProtocol :: !(Maybe Text)
, _cduAccessToken :: !(Maybe Text)
, _cduUploadType :: !(Maybe Text)
, _cduPayload :: !CustomerUnclaimDeviceRequest
, _cduCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
customersDevicesUnclaim
:: Text
-> CustomerUnclaimDeviceRequest
-> CustomersDevicesUnclaim
customersDevicesUnclaim pCduParent_ pCduPayload_ =
CustomersDevicesUnclaim'
{ _cduParent = pCduParent_
, _cduXgafv = Nothing
, _cduUploadProtocol = Nothing
, _cduAccessToken = Nothing
, _cduUploadType = Nothing
, _cduPayload = pCduPayload_
, _cduCallback = Nothing
}
cduParent :: Lens' CustomersDevicesUnclaim Text
cduParent
= lens _cduParent (\ s a -> s{_cduParent = a})
cduXgafv :: Lens' CustomersDevicesUnclaim (Maybe Xgafv)
cduXgafv = lens _cduXgafv (\ s a -> s{_cduXgafv = a})
cduUploadProtocol :: Lens' CustomersDevicesUnclaim (Maybe Text)
cduUploadProtocol
= lens _cduUploadProtocol
(\ s a -> s{_cduUploadProtocol = a})
cduAccessToken :: Lens' CustomersDevicesUnclaim (Maybe Text)
cduAccessToken
= lens _cduAccessToken
(\ s a -> s{_cduAccessToken = a})
cduUploadType :: Lens' CustomersDevicesUnclaim (Maybe Text)
cduUploadType
= lens _cduUploadType
(\ s a -> s{_cduUploadType = a})
cduPayload :: Lens' CustomersDevicesUnclaim CustomerUnclaimDeviceRequest
cduPayload
= lens _cduPayload (\ s a -> s{_cduPayload = a})
cduCallback :: Lens' CustomersDevicesUnclaim (Maybe Text)
cduCallback
= lens _cduCallback (\ s a -> s{_cduCallback = a})
instance GoogleRequest CustomersDevicesUnclaim where
type Rs CustomersDevicesUnclaim = Empty
type Scopes CustomersDevicesUnclaim = '[]
requestClient CustomersDevicesUnclaim'{..}
= go _cduParent _cduXgafv _cduUploadProtocol
_cduAccessToken
_cduUploadType
_cduCallback
(Just AltJSON)
_cduPayload
androidDeviceProvisioningService
where go
= buildClient
(Proxy :: Proxy CustomersDevicesUnclaimResource)
mempty