{-# 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.Partners.Devices.UnclaimAsync
(
PartnersDevicesUnclaimAsyncResource
, partnersDevicesUnclaimAsync
, PartnersDevicesUnclaimAsync
, pduaXgafv
, pduaUploadProtocol
, pduaAccessToken
, pduaPartnerId
, pduaUploadType
, pduaPayload
, pduaCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type PartnersDevicesUnclaimAsyncResource =
"v1" :>
"partners" :>
Capture "partnerId" (Textual Int64) :>
"devices:unclaimAsync" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] UnclaimDevicesRequest :>
Post '[JSON] Operation
data PartnersDevicesUnclaimAsync = PartnersDevicesUnclaimAsync'
{ _pduaXgafv :: !(Maybe Xgafv)
, _pduaUploadProtocol :: !(Maybe Text)
, _pduaAccessToken :: !(Maybe Text)
, _pduaPartnerId :: !(Textual Int64)
, _pduaUploadType :: !(Maybe Text)
, _pduaPayload :: !UnclaimDevicesRequest
, _pduaCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
partnersDevicesUnclaimAsync
:: Int64
-> UnclaimDevicesRequest
-> PartnersDevicesUnclaimAsync
partnersDevicesUnclaimAsync pPduaPartnerId_ pPduaPayload_ =
PartnersDevicesUnclaimAsync'
{ _pduaXgafv = Nothing
, _pduaUploadProtocol = Nothing
, _pduaAccessToken = Nothing
, _pduaPartnerId = _Coerce # pPduaPartnerId_
, _pduaUploadType = Nothing
, _pduaPayload = pPduaPayload_
, _pduaCallback = Nothing
}
pduaXgafv :: Lens' PartnersDevicesUnclaimAsync (Maybe Xgafv)
pduaXgafv
= lens _pduaXgafv (\ s a -> s{_pduaXgafv = a})
pduaUploadProtocol :: Lens' PartnersDevicesUnclaimAsync (Maybe Text)
pduaUploadProtocol
= lens _pduaUploadProtocol
(\ s a -> s{_pduaUploadProtocol = a})
pduaAccessToken :: Lens' PartnersDevicesUnclaimAsync (Maybe Text)
pduaAccessToken
= lens _pduaAccessToken
(\ s a -> s{_pduaAccessToken = a})
pduaPartnerId :: Lens' PartnersDevicesUnclaimAsync Int64
pduaPartnerId
= lens _pduaPartnerId
(\ s a -> s{_pduaPartnerId = a})
. _Coerce
pduaUploadType :: Lens' PartnersDevicesUnclaimAsync (Maybe Text)
pduaUploadType
= lens _pduaUploadType
(\ s a -> s{_pduaUploadType = a})
pduaPayload :: Lens' PartnersDevicesUnclaimAsync UnclaimDevicesRequest
pduaPayload
= lens _pduaPayload (\ s a -> s{_pduaPayload = a})
pduaCallback :: Lens' PartnersDevicesUnclaimAsync (Maybe Text)
pduaCallback
= lens _pduaCallback (\ s a -> s{_pduaCallback = a})
instance GoogleRequest PartnersDevicesUnclaimAsync
where
type Rs PartnersDevicesUnclaimAsync = Operation
type Scopes PartnersDevicesUnclaimAsync = '[]
requestClient PartnersDevicesUnclaimAsync'{..}
= go _pduaPartnerId _pduaXgafv _pduaUploadProtocol
_pduaAccessToken
_pduaUploadType
_pduaCallback
(Just AltJSON)
_pduaPayload
androidDeviceProvisioningService
where go
= buildClient
(Proxy :: Proxy PartnersDevicesUnclaimAsyncResource)
mempty