{-# 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.Get
(
PartnersDevicesGetResource
, partnersDevicesGet
, PartnersDevicesGet
, pdgXgafv
, pdgUploadProtocol
, pdgAccessToken
, pdgUploadType
, pdgName
, pdgCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type PartnersDevicesGetResource =
"v1" :>
Capture "name" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Get '[JSON] Device
data PartnersDevicesGet = PartnersDevicesGet'
{ _pdgXgafv :: !(Maybe Xgafv)
, _pdgUploadProtocol :: !(Maybe Text)
, _pdgAccessToken :: !(Maybe Text)
, _pdgUploadType :: !(Maybe Text)
, _pdgName :: !Text
, _pdgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
partnersDevicesGet
:: Text
-> PartnersDevicesGet
partnersDevicesGet pPdgName_ =
PartnersDevicesGet'
{ _pdgXgafv = Nothing
, _pdgUploadProtocol = Nothing
, _pdgAccessToken = Nothing
, _pdgUploadType = Nothing
, _pdgName = pPdgName_
, _pdgCallback = Nothing
}
pdgXgafv :: Lens' PartnersDevicesGet (Maybe Xgafv)
pdgXgafv = lens _pdgXgafv (\ s a -> s{_pdgXgafv = a})
pdgUploadProtocol :: Lens' PartnersDevicesGet (Maybe Text)
pdgUploadProtocol
= lens _pdgUploadProtocol
(\ s a -> s{_pdgUploadProtocol = a})
pdgAccessToken :: Lens' PartnersDevicesGet (Maybe Text)
pdgAccessToken
= lens _pdgAccessToken
(\ s a -> s{_pdgAccessToken = a})
pdgUploadType :: Lens' PartnersDevicesGet (Maybe Text)
pdgUploadType
= lens _pdgUploadType
(\ s a -> s{_pdgUploadType = a})
pdgName :: Lens' PartnersDevicesGet Text
pdgName = lens _pdgName (\ s a -> s{_pdgName = a})
pdgCallback :: Lens' PartnersDevicesGet (Maybe Text)
pdgCallback
= lens _pdgCallback (\ s a -> s{_pdgCallback = a})
instance GoogleRequest PartnersDevicesGet where
type Rs PartnersDevicesGet = Device
type Scopes PartnersDevicesGet = '[]
requestClient PartnersDevicesGet'{..}
= go _pdgName _pdgXgafv _pdgUploadProtocol
_pdgAccessToken
_pdgUploadType
_pdgCallback
(Just AltJSON)
androidDeviceProvisioningService
where go
= buildClient
(Proxy :: Proxy PartnersDevicesGetResource)
mempty