{-# 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.BeaconInfo.GetforObserved
(
BeaconInfoGetforObservedResource
, beaconInfoGetforObserved
, BeaconInfoGetforObserved
, bigoXgafv
, bigoUploadProtocol
, bigoAccessToken
, bigoUploadType
, bigoPayload
, bigoCallback
) where
import Network.Google.Prelude
import Network.Google.ProximityBeacon.Types
type BeaconInfoGetforObservedResource =
"v1beta1" :>
"beaconinfo:getforobserved" :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :>
ReqBody '[JSON] GetInfoForObservedBeaconsRequest :>
Post '[JSON] GetInfoForObservedBeaconsResponse
data BeaconInfoGetforObserved = BeaconInfoGetforObserved'
{ _bigoXgafv :: !(Maybe Xgafv)
, _bigoUploadProtocol :: !(Maybe Text)
, _bigoAccessToken :: !(Maybe Text)
, _bigoUploadType :: !(Maybe Text)
, _bigoPayload :: !GetInfoForObservedBeaconsRequest
, _bigoCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
beaconInfoGetforObserved
:: GetInfoForObservedBeaconsRequest
-> BeaconInfoGetforObserved
beaconInfoGetforObserved pBigoPayload_ =
BeaconInfoGetforObserved'
{ _bigoXgafv = Nothing
, _bigoUploadProtocol = Nothing
, _bigoAccessToken = Nothing
, _bigoUploadType = Nothing
, _bigoPayload = pBigoPayload_
, _bigoCallback = Nothing
}
bigoXgafv :: Lens' BeaconInfoGetforObserved (Maybe Xgafv)
bigoXgafv
= lens _bigoXgafv (\ s a -> s{_bigoXgafv = a})
bigoUploadProtocol :: Lens' BeaconInfoGetforObserved (Maybe Text)
bigoUploadProtocol
= lens _bigoUploadProtocol
(\ s a -> s{_bigoUploadProtocol = a})
bigoAccessToken :: Lens' BeaconInfoGetforObserved (Maybe Text)
bigoAccessToken
= lens _bigoAccessToken
(\ s a -> s{_bigoAccessToken = a})
bigoUploadType :: Lens' BeaconInfoGetforObserved (Maybe Text)
bigoUploadType
= lens _bigoUploadType
(\ s a -> s{_bigoUploadType = a})
bigoPayload :: Lens' BeaconInfoGetforObserved GetInfoForObservedBeaconsRequest
bigoPayload
= lens _bigoPayload (\ s a -> s{_bigoPayload = a})
bigoCallback :: Lens' BeaconInfoGetforObserved (Maybe Text)
bigoCallback
= lens _bigoCallback (\ s a -> s{_bigoCallback = a})
instance GoogleRequest BeaconInfoGetforObserved where
type Rs BeaconInfoGetforObserved =
GetInfoForObservedBeaconsResponse
type Scopes BeaconInfoGetforObserved = '[]
requestClient BeaconInfoGetforObserved'{..}
= go _bigoXgafv _bigoUploadProtocol _bigoAccessToken
_bigoUploadType
_bigoCallback
(Just AltJSON)
_bigoPayload
proximityBeaconService
where go
= buildClient
(Proxy :: Proxy BeaconInfoGetforObservedResource)
mempty