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 |
Deletes the specified beacon including all diagnostics data for the beacon as well as any attachments on the beacon (including those belonging to other projects). This operation cannot be undone. 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.delete
.
Synopsis
- type BeaconsDeleteResource = "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 :> Delete '[JSON] Empty))))))))
- beaconsDelete :: Text -> BeaconsDelete
- data BeaconsDelete
- bXgafv :: Lens' BeaconsDelete (Maybe Xgafv)
- bUploadProtocol :: Lens' BeaconsDelete (Maybe Text)
- bAccessToken :: Lens' BeaconsDelete (Maybe Text)
- bBeaconName :: Lens' BeaconsDelete Text
- bUploadType :: Lens' BeaconsDelete (Maybe Text)
- bProjectId :: Lens' BeaconsDelete (Maybe Text)
- bCallback :: Lens' BeaconsDelete (Maybe Text)
REST Resource
type BeaconsDeleteResource = "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 :> Delete '[JSON] Empty)))))))) Source #
A resource alias for proximitybeacon.beacons.delete
method which the
BeaconsDelete
request conforms to.
Creating a Request
Creates a value of BeaconsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BeaconsDelete Source #
Deletes the specified beacon including all diagnostics data for the beacon as well as any attachments on the beacon (including those belonging to other projects). This operation cannot be undone. 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: beaconsDelete
smart constructor.
Instances
Request Lenses
bUploadProtocol :: Lens' BeaconsDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
bAccessToken :: Lens' BeaconsDelete (Maybe Text) Source #
OAuth access token.
bBeaconName :: Lens' BeaconsDelete Text Source #
Beacon that should be deleted. 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-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` for AltBeacon. For Eddystone-EID beacons, you may use either the current EID or the beacon's "stable" UID. Required.
bUploadType :: Lens' BeaconsDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
bProjectId :: Lens' BeaconsDelete (Maybe Text) Source #
The project id of the beacon to delete. If not provided, the project that is making the request is used. Optional.