gogol-alertcenter-0.5.0: Google G Suite Alert Center 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.AlertCenter.Alerts.Delete

Contents

Description

Marks the specified alert for deletion. An alert that has been marked for deletion is removed from Alert Center after 30 days. Marking an alert for deletion has no effect on an alert which has already been marked for deletion. Attempting to mark a nonexistent alert for deletion results in a `NOT_FOUND` error.

See: G Suite Alert Center API Reference for alertcenter.alerts.delete.

Synopsis

REST Resource

type AlertsDeleteResource = "v1beta1" :> ("alerts" :> (Capture "alertId" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "customerId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Delete '[JSON] Empty))))))))) Source #

A resource alias for alertcenter.alerts.delete method which the AlertsDelete request conforms to.

Creating a Request

alertsDelete Source #

Arguments

:: Text

adAlertId

-> AlertsDelete 

Creates a value of AlertsDelete with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AlertsDelete Source #

Marks the specified alert for deletion. An alert that has been marked for deletion is removed from Alert Center after 30 days. Marking an alert for deletion has no effect on an alert which has already been marked for deletion. Attempting to mark a nonexistent alert for deletion results in a `NOT_FOUND` error.

See: alertsDelete smart constructor.

Instances
Eq AlertsDelete Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Delete

Data AlertsDelete Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Delete

Methods

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

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

toConstr :: AlertsDelete -> Constr #

dataTypeOf :: AlertsDelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AlertsDelete Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Delete

Generic AlertsDelete Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Delete

Associated Types

type Rep AlertsDelete :: Type -> Type #

GoogleRequest AlertsDelete Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Delete

Associated Types

type Rs AlertsDelete :: Type #

type Scopes AlertsDelete :: [Symbol] #

type Rep AlertsDelete Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Delete

type Rep AlertsDelete = D1 (MetaData "AlertsDelete" "Network.Google.Resource.AlertCenter.Alerts.Delete" "gogol-alertcenter-0.5.0-En3gsptQ27r5uAEQtfFlkt" False) (C1 (MetaCons "AlertsDelete'" PrefixI True) ((S1 (MetaSel (Just "_adXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_adUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_adAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_adAlertId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_adUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_adCustomerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_adCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes AlertsDelete Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Delete

type Scopes AlertsDelete = "https://www.googleapis.com/auth/apps.alerts" ': ([] :: [Symbol])
type Rs AlertsDelete Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Delete

Request Lenses

adUploadProtocol :: Lens' AlertsDelete (Maybe Text) Source #

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

adAlertId :: Lens' AlertsDelete Text Source #

Required. The identifier of the alert to delete.

adUploadType :: Lens' AlertsDelete (Maybe Text) Source #

Legacy upload protocol for media (e.g. "media", "multipart").

adCustomerId :: Lens' AlertsDelete (Maybe Text) Source #

Optional. The unique identifier of the G Suite organization account of the customer the alert is associated with. Inferred from the caller identity if not provided.