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 |
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
- 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)))))))))
- alertsUndelete :: Text -> UndeleteAlertRequest -> AlertsUndelete
- data AlertsUndelete
- auXgafv :: Lens' AlertsUndelete (Maybe Xgafv)
- auUploadProtocol :: Lens' AlertsUndelete (Maybe Text)
- auAccessToken :: Lens' AlertsUndelete (Maybe Text)
- auAlertId :: Lens' AlertsUndelete Text
- auUploadType :: Lens' AlertsUndelete (Maybe Text)
- auPayload :: Lens' AlertsUndelete UndeleteAlertRequest
- auCallback :: Lens' AlertsUndelete (Maybe Text)
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
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
Request Lenses
auUploadProtocol :: Lens' AlertsUndelete (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
auAccessToken :: Lens' AlertsUndelete (Maybe Text) Source #
OAuth access token.
auUploadType :: Lens' AlertsUndelete (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
auPayload :: Lens' AlertsUndelete UndeleteAlertRequest Source #
Multipart request metadata.
auCallback :: Lens' AlertsUndelete (Maybe Text) Source #
JSONP