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 |
Lists the alerts.
See: G Suite Alert Center API Reference for alertcenter.alerts.list
.
Synopsis
- type AlertsListResource = "v1beta1" :> ("alerts" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "customerId" Text :> (QueryParam "filter" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListAlertsResponse))))))))))))
- alertsList :: AlertsList
- data AlertsList
- alXgafv :: Lens' AlertsList (Maybe Xgafv)
- alUploadProtocol :: Lens' AlertsList (Maybe Text)
- alOrderBy :: Lens' AlertsList (Maybe Text)
- alAccessToken :: Lens' AlertsList (Maybe Text)
- alUploadType :: Lens' AlertsList (Maybe Text)
- alCustomerId :: Lens' AlertsList (Maybe Text)
- alFilter :: Lens' AlertsList (Maybe Text)
- alPageToken :: Lens' AlertsList (Maybe Text)
- alPageSize :: Lens' AlertsList (Maybe Int32)
- alCallback :: Lens' AlertsList (Maybe Text)
REST Resource
type AlertsListResource = "v1beta1" :> ("alerts" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "orderBy" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "customerId" Text :> (QueryParam "filter" Text :> (QueryParam "pageToken" Text :> (QueryParam "pageSize" (Textual Int32) :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> Get '[JSON] ListAlertsResponse)))))))))))) Source #
A resource alias for alertcenter.alerts.list
method which the
AlertsList
request conforms to.
Creating a Request
alertsList :: AlertsList Source #
Creates a value of AlertsList
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AlertsList Source #
Lists the alerts.
See: alertsList
smart constructor.
Instances
Request Lenses
alUploadProtocol :: Lens' AlertsList (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
alOrderBy :: Lens' AlertsList (Maybe Text) Source #
Optional. The sort order of the list results. If not specified results may be returned in arbitrary order. You can sort the results in descending order based on the creation timestamp using `order_by="create_time desc"`. Currently, only sorting by `create_time desc` is supported.
alAccessToken :: Lens' AlertsList (Maybe Text) Source #
OAuth access token.
alUploadType :: Lens' AlertsList (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
alCustomerId :: Lens' AlertsList (Maybe Text) Source #
Optional. The unique identifier of the G Suite organization account of the customer the alerts are associated with. Inferred from the caller identity if not provided.
alFilter :: Lens' AlertsList (Maybe Text) Source #
Optional. A query string for filtering alert results. For more details, see Query filters and Supported query filter fields.
alPageToken :: Lens' AlertsList (Maybe Text) Source #
Optional. A token identifying a page of results the server should return. If empty, a new iteration is started. To continue an iteration, pass in the value from the previous ListAlertsResponse's next_page_token field.
alPageSize :: Lens' AlertsList (Maybe Int32) Source #
Optional. The requested page size. Server may return fewer items than requested. If unspecified, server picks an appropriate default.
alCallback :: Lens' AlertsList (Maybe Text) Source #
JSONP