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 attachment for the given beacon. Each attachment has a unique attachment name (`attachmentName`) which is returned when you fetch the attachment data via this API. You specify this with the delete request to control which attachment is removed. 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.attachments.delete
.
Synopsis
- type BeaconsAttachmentsDeleteResource = "v1beta1" :> (Capture "attachmentName" 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))))))))
- beaconsAttachmentsDelete :: Text -> BeaconsAttachmentsDelete
- data BeaconsAttachmentsDelete
- badXgafv :: Lens' BeaconsAttachmentsDelete (Maybe Xgafv)
- badUploadProtocol :: Lens' BeaconsAttachmentsDelete (Maybe Text)
- badAccessToken :: Lens' BeaconsAttachmentsDelete (Maybe Text)
- badUploadType :: Lens' BeaconsAttachmentsDelete (Maybe Text)
- badAttachmentName :: Lens' BeaconsAttachmentsDelete Text
- badProjectId :: Lens' BeaconsAttachmentsDelete (Maybe Text)
- badCallback :: Lens' BeaconsAttachmentsDelete (Maybe Text)
REST Resource
type BeaconsAttachmentsDeleteResource = "v1beta1" :> (Capture "attachmentName" 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.attachments.delete
method which the
BeaconsAttachmentsDelete
request conforms to.
Creating a Request
beaconsAttachmentsDelete Source #
Creates a value of BeaconsAttachmentsDelete
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data BeaconsAttachmentsDelete Source #
Deletes the specified attachment for the given beacon. Each attachment has a unique attachment name (`attachmentName`) which is returned when you fetch the attachment data via this API. You specify this with the delete request to control which attachment is removed. 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: beaconsAttachmentsDelete
smart constructor.
Instances
Request Lenses
badUploadProtocol :: Lens' BeaconsAttachmentsDelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
badAccessToken :: Lens' BeaconsAttachmentsDelete (Maybe Text) Source #
OAuth access token.
badUploadType :: Lens' BeaconsAttachmentsDelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
badAttachmentName :: Lens' BeaconsAttachmentsDelete Text Source #
The attachment name (`attachmentName`) of the attachment to remove. For example: `beacons/3!893737abc9/attachments/c5e937-af0-494-959-ec49d12738`. For Eddystone-EID beacons, the beacon ID portion (`3!893737abc9`) may be the beacon's current EID, or its "stable" Eddystone-UID. Required.
badProjectId :: Lens' BeaconsAttachmentsDelete (Maybe Text) Source #
The project id of the attachment to delete. If not provided, the project that is making the request is used. Optional.
badCallback :: Lens' BeaconsAttachmentsDelete (Maybe Text) Source #
JSONP