Copyright | (c) 2015 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.
See: Google Proximity Beacon API Reference for proximitybeacon.beacons.attachments.delete
.
- type BeaconsAttachmentsDeleteResource = "v1beta1" :> (Capture "attachmentName" 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 :> Delete `[JSON]` Empty)))))))))
- beaconsAttachmentsDelete :: Text -> BeaconsAttachmentsDelete
- data BeaconsAttachmentsDelete
- badXgafv :: Lens' BeaconsAttachmentsDelete (Maybe Text)
- badUploadProtocol :: Lens' BeaconsAttachmentsDelete (Maybe Text)
- badPp :: Lens' BeaconsAttachmentsDelete Bool
- badAccessToken :: Lens' BeaconsAttachmentsDelete (Maybe Text)
- badUploadType :: Lens' BeaconsAttachmentsDelete (Maybe Text)
- badAttachmentName :: Lens' BeaconsAttachmentsDelete Text
- badBearerToken :: Lens' BeaconsAttachmentsDelete (Maybe Text)
- badCallback :: Lens' BeaconsAttachmentsDelete (Maybe Text)
REST Resource
type BeaconsAttachmentsDeleteResource = "v1beta1" :> (Capture "attachmentName" 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 :> 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.
See: beaconsAttachmentsDelete
smart constructor.
Request Lenses
badUploadProtocol :: Lens' BeaconsAttachmentsDelete (Maybe Text) Source
Upload protocol for media (e.g. "raw", "multipart").
badPp :: Lens' BeaconsAttachmentsDelete Bool Source
Pretty-print response.
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` Required.
badBearerToken :: Lens' BeaconsAttachmentsDelete (Maybe Text) Source
OAuth bearer token.
badCallback :: Lens' BeaconsAttachmentsDelete (Maybe Text) Source
JSONP