gogol-alertcenter-0.4.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.Undelete

Contents

Description

Restores, or "undeletes", an alert that was marked for deletion within the past 30 days. Attempting to undelete an alert which was marked for deletion over 30 days ago (which has been removed from the Alert Center database) or a nonexistent alert returns a `NOT_FOUND` error. Attempting to undelete an alert which has not been marked for deletion has no effect.

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

Synopsis

REST Resource

type AlertsUndeleteResource = "v1beta1" :> ("alerts" :> (CaptureMode "alertId" "undelete" Text :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] UndeleteAlertRequest :> Post '[JSON] Alert))))))))) Source #

A resource alias for alertcenter.alerts.undelete method which the AlertsUndelete request conforms to.

Creating a Request

alertsUndelete Source #

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

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

data AlertsUndelete Source #

Restores, or "undeletes", an alert that was marked for deletion within the past 30 days. Attempting to undelete an alert which was marked for deletion over 30 days ago (which has been removed from the Alert Center database) or a nonexistent alert returns a `NOT_FOUND` error. Attempting to undelete an alert which has not been marked for deletion has no effect.

See: alertsUndelete smart constructor.

Instances
Eq AlertsUndelete Source # 
Instance details

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

Data AlertsUndelete Source # 
Instance details

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

Methods

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

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

toConstr :: AlertsUndelete -> Constr #

dataTypeOf :: AlertsUndelete -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AlertsUndelete Source # 
Instance details

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

Generic AlertsUndelete Source # 
Instance details

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

Associated Types

type Rep AlertsUndelete :: Type -> Type #

GoogleRequest AlertsUndelete Source # 
Instance details

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

Associated Types

type Rs AlertsUndelete :: Type #

type Scopes AlertsUndelete :: [Symbol] #

type Rep AlertsUndelete Source # 
Instance details

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

type Rep AlertsUndelete = D1 (MetaData "AlertsUndelete" "Network.Google.Resource.AlertCenter.Alerts.Undelete" "gogol-alertcenter-0.4.0-9dY40O2r8HE66nfrCXN2KD" False) (C1 (MetaCons "AlertsUndelete'" PrefixI True) ((S1 (MetaSel (Just "_auXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_auUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_auAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_auAlertId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_auUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_auPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 UndeleteAlertRequest) :*: S1 (MetaSel (Just "_auCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes AlertsUndelete Source # 
Instance details

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

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

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

Request Lenses

auUploadProtocol :: Lens' AlertsUndelete (Maybe Text) Source #

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

auAlertId :: Lens' AlertsUndelete Text Source #

Required. The identifier of the alert to undelete.

auUploadType :: Lens' AlertsUndelete (Maybe Text) Source #

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