gogol-proximitybeacon-0.4.0: Google Proximity Beacon SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.ProximityBeacon.Beacons.Attachments.Delete

Contents

Description

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

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
Eq BeaconsAttachmentsDelete Source # 
Instance details

Defined in Network.Google.Resource.ProximityBeacon.Beacons.Attachments.Delete

Data BeaconsAttachmentsDelete Source # 
Instance details

Defined in Network.Google.Resource.ProximityBeacon.Beacons.Attachments.Delete

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> BeaconsAttachmentsDelete -> c BeaconsAttachmentsDelete #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c BeaconsAttachmentsDelete #

toConstr :: BeaconsAttachmentsDelete -> Constr #

dataTypeOf :: BeaconsAttachmentsDelete -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c BeaconsAttachmentsDelete) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c BeaconsAttachmentsDelete) #

gmapT :: (forall b. Data b => b -> b) -> BeaconsAttachmentsDelete -> BeaconsAttachmentsDelete #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> BeaconsAttachmentsDelete -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> BeaconsAttachmentsDelete -> r #

gmapQ :: (forall d. Data d => d -> u) -> BeaconsAttachmentsDelete -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> BeaconsAttachmentsDelete -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> BeaconsAttachmentsDelete -> m BeaconsAttachmentsDelete #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> BeaconsAttachmentsDelete -> m BeaconsAttachmentsDelete #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> BeaconsAttachmentsDelete -> m BeaconsAttachmentsDelete #

Show BeaconsAttachmentsDelete Source # 
Instance details

Defined in Network.Google.Resource.ProximityBeacon.Beacons.Attachments.Delete

Generic BeaconsAttachmentsDelete Source # 
Instance details

Defined in Network.Google.Resource.ProximityBeacon.Beacons.Attachments.Delete

Associated Types

type Rep BeaconsAttachmentsDelete :: Type -> Type #

GoogleRequest BeaconsAttachmentsDelete Source # 
Instance details

Defined in Network.Google.Resource.ProximityBeacon.Beacons.Attachments.Delete

type Rep BeaconsAttachmentsDelete Source # 
Instance details

Defined in Network.Google.Resource.ProximityBeacon.Beacons.Attachments.Delete

type Rep BeaconsAttachmentsDelete = D1 (MetaData "BeaconsAttachmentsDelete" "Network.Google.Resource.ProximityBeacon.Beacons.Attachments.Delete" "gogol-proximitybeacon-0.4.0-81RQBGEh3ZRFwA4LNDaUi1" False) (C1 (MetaCons "BeaconsAttachmentsDelete'" PrefixI True) ((S1 (MetaSel (Just "_badXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_badUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_badAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_badUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_badAttachmentName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) :*: (S1 (MetaSel (Just "_badProjectId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_badCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes BeaconsAttachmentsDelete Source # 
Instance details

Defined in Network.Google.Resource.ProximityBeacon.Beacons.Attachments.Delete

type Scopes BeaconsAttachmentsDelete = "https://www.googleapis.com/auth/userlocation.beacon.registry" ': ([] :: [Symbol])
type Rs BeaconsAttachmentsDelete Source # 
Instance details

Defined in Network.Google.Resource.ProximityBeacon.Beacons.Attachments.Delete

Request Lenses

badUploadProtocol :: Lens' BeaconsAttachmentsDelete (Maybe Text) Source #

Upload protocol for media (e.g. "raw", "multipart").

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.