Copyright | (c) 2015-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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 activation, deactivation, and decommissioning. 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: Proximity Beacon API Reference for proximitybeacon.beacons.update
.
Synopsis
- type BeaconsUpdateResource = "v1beta1" :> (Capture "beaconName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "projectId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] Beacon :> Put '[JSON] Beacon)))))))))
- beaconsUpdate :: Text -> Beacon -> BeaconsUpdate
- data BeaconsUpdate
- buXgafv :: Lens' BeaconsUpdate (Maybe Xgafv)
- buUploadProtocol :: Lens' BeaconsUpdate (Maybe Text)
- buAccessToken :: Lens' BeaconsUpdate (Maybe Text)
- buBeaconName :: Lens' BeaconsUpdate Text
- buUploadType :: Lens' BeaconsUpdate (Maybe Text)
- buPayload :: Lens' BeaconsUpdate Beacon
- buProjectId :: Lens' BeaconsUpdate (Maybe Text)
- buCallback :: Lens' BeaconsUpdate (Maybe Text)
REST Resource
type BeaconsUpdateResource = "v1beta1" :> (Capture "beaconName" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "projectId" 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
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 activation, deactivation, and decommissioning. 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: beaconsUpdate
smart constructor.
Instances
Request Lenses
buUploadProtocol :: Lens' BeaconsUpdate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
buAccessToken :: Lens' BeaconsUpdate (Maybe Text) Source #
OAuth access token.
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").
buProjectId :: Lens' BeaconsUpdate (Maybe Text) Source #
The project id of the beacon to update. If the project id is not specified then the project making the request is used. The project id must match the project that owns the beacon. Optional.
buCallback :: Lens' BeaconsUpdate (Maybe Text) Source #
JSONP