{-# 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.Get
(
CustomersDevicesGetResource
, customersDevicesGet
, CustomersDevicesGet
, cdgXgafv
, cdgUploadProtocol
, cdgAccessToken
, cdgUploadType
, cdgName
, cdgCallback
) where
import Network.Google.AndroidDeviceProvisioning.Types
import Network.Google.Prelude
type CustomersDevicesGetResource =
"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 CustomersDevicesGet = CustomersDevicesGet'
{ _cdgXgafv :: !(Maybe Xgafv)
, _cdgUploadProtocol :: !(Maybe Text)
, _cdgAccessToken :: !(Maybe Text)
, _cdgUploadType :: !(Maybe Text)
, _cdgName :: !Text
, _cdgCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
customersDevicesGet
:: Text
-> CustomersDevicesGet
customersDevicesGet pCdgName_ =
CustomersDevicesGet'
{ _cdgXgafv = Nothing
, _cdgUploadProtocol = Nothing
, _cdgAccessToken = Nothing
, _cdgUploadType = Nothing
, _cdgName = pCdgName_
, _cdgCallback = Nothing
}
cdgXgafv :: Lens' CustomersDevicesGet (Maybe Xgafv)
cdgXgafv = lens _cdgXgafv (\ s a -> s{_cdgXgafv = a})
cdgUploadProtocol :: Lens' CustomersDevicesGet (Maybe Text)
cdgUploadProtocol
= lens _cdgUploadProtocol
(\ s a -> s{_cdgUploadProtocol = a})
cdgAccessToken :: Lens' CustomersDevicesGet (Maybe Text)
cdgAccessToken
= lens _cdgAccessToken
(\ s a -> s{_cdgAccessToken = a})
cdgUploadType :: Lens' CustomersDevicesGet (Maybe Text)
cdgUploadType
= lens _cdgUploadType
(\ s a -> s{_cdgUploadType = a})
cdgName :: Lens' CustomersDevicesGet Text
cdgName = lens _cdgName (\ s a -> s{_cdgName = a})
cdgCallback :: Lens' CustomersDevicesGet (Maybe Text)
cdgCallback
= lens _cdgCallback (\ s a -> s{_cdgCallback = a})
instance GoogleRequest CustomersDevicesGet where
type Rs CustomersDevicesGet = Device
type Scopes CustomersDevicesGet = '[]
requestClient CustomersDevicesGet'{..}
= go _cdgName _cdgXgafv _cdgUploadProtocol
_cdgAccessToken
_cdgUploadType
_cdgCallback
(Just AltJSON)
androidDeviceProvisioningService
where go
= buildClient
(Proxy :: Proxy CustomersDevicesGetResource)
mempty