gogol-proximitybeacon-0.0.1: Google Proximity Beacon SDK.

Copyright(c) 2015 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.Update

Contents

Description

Updates the information about the specified beacon. **Any field that you do not populate in the submitted beacon will be permanently erased**, so you should follow the "read, modify, write" pattern to avoid inadvertently destroying data. Changes to the beacon status via this method will be silently ignored. To update beacon status, use the separate methods on this API for (de)activation and decommissioning.

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

Synopsis

REST Resource

type BeaconsUpdateResource = "v1beta1" :> (Capture "beaconName" Text :> (QueryParam "$.xgafv" Text :> (QueryParam "upload_protocol" Text :> (QueryParam "pp" Bool :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "bearer_token" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody `[JSON]` Beacon :> Put `[JSON]` Beacon)))))))))) Source

A resource alias for proximitybeacon.beacons.update method which the BeaconsUpdate request conforms to.

Creating a Request

beaconsUpdate Source

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

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

data BeaconsUpdate Source

Updates the information about the specified beacon. **Any field that you do not populate in the submitted beacon will be permanently erased**, so you should follow the "read, modify, write" pattern to avoid inadvertently destroying data. Changes to the beacon status via this method will be silently ignored. To update beacon status, use the separate methods on this API for (de)activation and decommissioning.

See: beaconsUpdate smart constructor.

Request Lenses

buUploadProtocol :: Lens' BeaconsUpdate (Maybe Text) Source

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

buPp :: Lens' BeaconsUpdate Bool Source

Pretty-print response.

buBeaconName :: Lens' BeaconsUpdate Text Source

Resource name of this beacon. A beacon name has the format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast by the beacon and N is a code for the beacon's type. Possible values are `3` for Eddystone, `1` for iBeacon, or `5` for AltBeacon. This field must be left empty when registering. After reading a beacon, clients can use the name for future operations.

buUploadType :: Lens' BeaconsUpdate (Maybe Text) Source

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

buPayload :: Lens' BeaconsUpdate Beacon Source

Multipart request metadata.