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 |
Gets the specified alert.
See: G Suite Alert Center API Reference for alertcenter.alerts.get
.
Synopsis
- type AlertsGetResource = "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 :> Get '[JSON] Alert)))))))))
- alertsGet :: Text -> AlertsGet
- data AlertsGet
- agXgafv :: Lens' AlertsGet (Maybe Xgafv)
- agUploadProtocol :: Lens' AlertsGet (Maybe Text)
- agAccessToken :: Lens' AlertsGet (Maybe Text)
- agAlertId :: Lens' AlertsGet Text
- agUploadType :: Lens' AlertsGet (Maybe Text)
- agCustomerId :: Lens' AlertsGet (Maybe Text)
- agCallback :: Lens' AlertsGet (Maybe Text)
REST Resource
type AlertsGetResource = "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 :> Get '[JSON] Alert))))))))) Source #
A resource alias for alertcenter.alerts.get
method which the
AlertsGet
request conforms to.
Creating a Request
Creates a value of AlertsGet
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
Gets the specified alert.
See: alertsGet
smart constructor.
Instances
Request Lenses
agUploadProtocol :: Lens' AlertsGet (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
agAlertId :: Lens' AlertsGet Text Source #
Required. The identifier of the alert to retrieve. Returns a NOT_FOUND error if no such alert.
agUploadType :: Lens' AlertsGet (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").