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 multiple attachments on a given beacon. This operation is permanent and cannot be undone. You can optionally specify `namespacedType` to choose which attachments should be deleted. If you do not specify `namespacedType`, all your attachments on the given beacon will be deleted. You also may explicitly specify `*/*` to delete all. 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.attachments.batchDelete
.
Synopsis
- type BeaconsAttachmentsBatchDeleteResource = "v1beta1" :> (Capture "beaconName" Text :> ("attachments:batchDelete" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "namespacedType" Text :> (QueryParam "projectId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] DeleteAttachmentsResponse))))))))))
- beaconsAttachmentsBatchDelete :: Text -> BeaconsAttachmentsBatchDelete
- data BeaconsAttachmentsBatchDelete
- babdXgafv :: Lens' BeaconsAttachmentsBatchDelete (Maybe Xgafv)
- babdUploadProtocol :: Lens' BeaconsAttachmentsBatchDelete (Maybe Text)
- babdAccessToken :: Lens' BeaconsAttachmentsBatchDelete (Maybe Text)
- babdBeaconName :: Lens' BeaconsAttachmentsBatchDelete Text
- babdUploadType :: Lens' BeaconsAttachmentsBatchDelete (Maybe Text)
- babdNamespacedType :: Lens' BeaconsAttachmentsBatchDelete (Maybe Text)
- babdProjectId :: Lens' BeaconsAttachmentsBatchDelete (Maybe Text)
- babdCallback :: Lens' BeaconsAttachmentsBatchDelete (Maybe Text)
REST Resource
type BeaconsAttachmentsBatchDeleteResource = "v1beta1" :> (Capture "beaconName" Text :> ("attachments:batchDelete" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "namespacedType" Text :> (QueryParam "projectId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Post '[JSON] DeleteAttachmentsResponse)))))))))) Source #
A resource alias for proximitybeacon.beacons.attachments.batchDelete
method which the
BeaconsAttachmentsBatchDelete
request conforms to.
Creating a Request
beaconsAttachmentsBatchDelete Source #
Creates a value of BeaconsAttachmentsBatchDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BeaconsAttachmentsBatchDelete Source #
Deletes multiple attachments on a given beacon. This operation is permanent and cannot be undone. You can optionally specify `namespacedType` to choose which attachments should be deleted. If you do not specify `namespacedType`, all your attachments on the given beacon will be deleted. You also may explicitly specify `*/*` to delete all. 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: beaconsAttachmentsBatchDelete
smart constructor.
Instances
Request Lenses
babdUploadProtocol :: Lens' BeaconsAttachmentsBatchDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
babdAccessToken :: Lens' BeaconsAttachmentsBatchDelete (Maybe Text) Source #
OAuth access token.
babdBeaconName :: Lens' BeaconsAttachmentsBatchDelete Text Source #
The beacon whose attachments 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.
babdUploadType :: Lens' BeaconsAttachmentsBatchDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
babdNamespacedType :: Lens' BeaconsAttachmentsBatchDelete (Maybe Text) Source #
Specifies the namespace and type of attachments to delete in `namespace/type` format. Accepts `*/*` to specify "all types in all namespaces". Optional.
babdProjectId :: Lens' BeaconsAttachmentsBatchDelete (Maybe Text) Source #
The project id to delete beacon attachments under. This field can be used when "*" is specified to mean all attachment namespaces. Projects may have multiple attachments with multiple namespaces. If "*" is specified and the projectId string is empty, then the project making the request is used. Optional.
babdCallback :: Lens' BeaconsAttachmentsBatchDelete (Maybe Text) Source #
JSONP