{-# 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.Beacons.Activate
(
BeaconsActivateResource
, beaconsActivate
, BeaconsActivate
, baXgafv
, baUploadProtocol
, baAccessToken
, baBeaconName
, baUploadType
, baProjectId
, baCallback
) where
import Network.Google.Prelude
import Network.Google.ProximityBeacon.Types
type BeaconsActivateResource =
"v1beta1" :>
CaptureMode "beaconName" "activate" Text :>
QueryParam "$.xgafv" Xgafv :>
QueryParam "upload_protocol" Text :>
QueryParam "access_token" Text :>
QueryParam "uploadType" Text :>
QueryParam "projectId" Text :>
QueryParam "callback" Text :>
QueryParam "alt" AltJSON :> Post '[JSON] Empty
data BeaconsActivate = BeaconsActivate'
{ _baXgafv :: !(Maybe Xgafv)
, _baUploadProtocol :: !(Maybe Text)
, _baAccessToken :: !(Maybe Text)
, _baBeaconName :: !Text
, _baUploadType :: !(Maybe Text)
, _baProjectId :: !(Maybe Text)
, _baCallback :: !(Maybe Text)
} deriving (Eq,Show,Data,Typeable,Generic)
beaconsActivate
:: Text
-> BeaconsActivate
beaconsActivate pBaBeaconName_ =
BeaconsActivate'
{ _baXgafv = Nothing
, _baUploadProtocol = Nothing
, _baAccessToken = Nothing
, _baBeaconName = pBaBeaconName_
, _baUploadType = Nothing
, _baProjectId = Nothing
, _baCallback = Nothing
}
baXgafv :: Lens' BeaconsActivate (Maybe Xgafv)
baXgafv = lens _baXgafv (\ s a -> s{_baXgafv = a})
baUploadProtocol :: Lens' BeaconsActivate (Maybe Text)
baUploadProtocol
= lens _baUploadProtocol
(\ s a -> s{_baUploadProtocol = a})
baAccessToken :: Lens' BeaconsActivate (Maybe Text)
baAccessToken
= lens _baAccessToken
(\ s a -> s{_baAccessToken = a})
baBeaconName :: Lens' BeaconsActivate Text
baBeaconName
= lens _baBeaconName (\ s a -> s{_baBeaconName = a})
baUploadType :: Lens' BeaconsActivate (Maybe Text)
baUploadType
= lens _baUploadType (\ s a -> s{_baUploadType = a})
baProjectId :: Lens' BeaconsActivate (Maybe Text)
baProjectId
= lens _baProjectId (\ s a -> s{_baProjectId = a})
baCallback :: Lens' BeaconsActivate (Maybe Text)
baCallback
= lens _baCallback (\ s a -> s{_baCallback = a})
instance GoogleRequest BeaconsActivate where
type Rs BeaconsActivate = Empty
type Scopes BeaconsActivate =
'["https://www.googleapis.com/auth/userlocation.beacon.registry"]
requestClient BeaconsActivate'{..}
= go _baBeaconName _baXgafv _baUploadProtocol
_baAccessToken
_baUploadType
_baProjectId
_baCallback
(Just AltJSON)
proximityBeaconService
where go
= buildClient
(Proxy :: Proxy BeaconsActivateResource)
mempty