{-# 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.ProximityBeacon.GetEidparams
(
GetEidparamsResource
, getEidparams
, GetEidparams
, geXgafv
, geUploadProtocol
, geAccessToken
, geUploadType
, geCallback
) where
import Network.Google.Prelude
import Network.Google.ProximityBeacon.Types
type GetEidparamsResource =
"v1beta1" :>
"eidparams" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
Get '[JSON] EphemeralIdRegistrationParams
data GetEidparams = GetEidparams'
{ _geXgafv :: !(Maybe Xgafv)
, _geUploadProtocol :: !(Maybe Text)
, _geAccessToken :: !(Maybe Text)
, _geUploadType :: !(Maybe Text)
, _geCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
getEidparams
:: GetEidparams
getEidparams =
GetEidparams'
{ _geXgafv = Nothing
, _geUploadProtocol = Nothing
, _geAccessToken = Nothing
, _geUploadType = Nothing
, _geCallback = Nothing
}
geXgafv :: Lens' GetEidparams (Maybe Xgafv)
geXgafv = lens _geXgafv (\ s a -> s{_geXgafv = a})
geUploadProtocol :: Lens' GetEidparams (Maybe Text)
geUploadProtocol
= lens _geUploadProtocol
(\ s a -> s{_geUploadProtocol = a})
geAccessToken :: Lens' GetEidparams (Maybe Text)
geAccessToken
= lens _geAccessToken
(\ s a -> s{_geAccessToken = a})
geUploadType :: Lens' GetEidparams (Maybe Text)
geUploadType
= lens _geUploadType (\ s a -> s{_geUploadType = a})
geCallback :: Lens' GetEidparams (Maybe Text)
geCallback
= lens _geCallback (\ s a -> s{_geCallback = a})
instance GoogleRequest GetEidparams where
type Rs GetEidparams = EphemeralIdRegistrationParams
type Scopes GetEidparams =
'["https://www.googleapis.com/auth/userlocation.beacon.registry"]
requestClient GetEidparams'{..}
= go _geXgafv _geUploadProtocol _geAccessToken
_geUploadType
_geCallback
(Just AltJSON)
proximityBeaconService
where go
= buildClient (Proxy :: Proxy GetEidparamsResource)
mempty