gogol-proximitybeacon-0.3.0: Google Proximity Beacon SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.ProximityBeacon.Beacons.Register

Contents

Description

Registers a previously unregistered beacon given its `advertisedId`. These IDs are unique within the system. An ID can be registered only once. Authenticate using an OAuth access token from a signed-in user with **Is owner** or **Can edit** permissions in the Google Developers Console project.

See: Google Proximity Beacon API Reference for proximitybeacon.beacons.register.

Synopsis

REST Resource

type BeaconsRegisterResource = "v1beta1" :> ("beacons:register" :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "projectId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Beacon :> Post '[JSON] Beacon))))))))))) Source #

A resource alias for proximitybeacon.beacons.register method which the BeaconsRegister request conforms to.

Creating a Request

beaconsRegister Source #

Creates a value of BeaconsRegister with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data BeaconsRegister Source #

Registers a previously unregistered beacon given its `advertisedId`. These IDs are unique within the system. An ID can be registered only once. Authenticate using an OAuth access token from a signed-in user with **Is owner** or **Can edit** permissions in the Google Developers Console project.

See: beaconsRegister smart constructor.

Instances

Eq BeaconsRegister Source # 
Data BeaconsRegister Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BeaconsRegister -> c BeaconsRegister #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BeaconsRegister #

toConstr :: BeaconsRegister -> Constr #

dataTypeOf :: BeaconsRegister -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c BeaconsRegister) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BeaconsRegister) #

gmapT :: (forall b. Data b => b -> b) -> BeaconsRegister -> BeaconsRegister #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BeaconsRegister -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BeaconsRegister -> r #

gmapQ :: (forall d. Data d => d -> u) -> BeaconsRegister -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BeaconsRegister -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BeaconsRegister -> m BeaconsRegister #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BeaconsRegister -> m BeaconsRegister #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BeaconsRegister -> m BeaconsRegister #

Show BeaconsRegister Source # 
Generic BeaconsRegister Source # 
GoogleRequest BeaconsRegister Source # 
type Rep BeaconsRegister Source # 
type Scopes BeaconsRegister Source # 
type Scopes BeaconsRegister = (:) Symbol "https://www.googleapis.com/auth/userlocation.beacon.registry" ([] Symbol)
type Rs BeaconsRegister Source # 

Request Lenses

brUploadProtocol :: Lens' BeaconsRegister (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

brPp :: Lens' BeaconsRegister Bool Source #

Pretty-print response.

brUploadType :: Lens' BeaconsRegister (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

brPayload :: Lens' BeaconsRegister Beacon Source #

Multipart request metadata.

brProjectId :: Lens' BeaconsRegister (Maybe Text) Source #

The project id of the project the beacon will be registered to. If the project id is not specified then the project making the request is used. Optional.