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 |
Creates new feedback for an alert.
See: G Suite Alert Center API Reference for alertcenter.alerts.feedback.create
.
Synopsis
- type AlertsFeedbackCreateResource = "v1beta1" :> ("alerts" :> (Capture "alertId" Text :> ("feedback" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "customerId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AlertFeedback :> Post '[JSON] AlertFeedback)))))))))))
- alertsFeedbackCreate :: Text -> AlertFeedback -> AlertsFeedbackCreate
- data AlertsFeedbackCreate
- afcXgafv :: Lens' AlertsFeedbackCreate (Maybe Xgafv)
- afcUploadProtocol :: Lens' AlertsFeedbackCreate (Maybe Text)
- afcAccessToken :: Lens' AlertsFeedbackCreate (Maybe Text)
- afcAlertId :: Lens' AlertsFeedbackCreate Text
- afcUploadType :: Lens' AlertsFeedbackCreate (Maybe Text)
- afcPayload :: Lens' AlertsFeedbackCreate AlertFeedback
- afcCustomerId :: Lens' AlertsFeedbackCreate (Maybe Text)
- afcCallback :: Lens' AlertsFeedbackCreate (Maybe Text)
REST Resource
type AlertsFeedbackCreateResource = "v1beta1" :> ("alerts" :> (Capture "alertId" Text :> ("feedback" :> (QueryParam "$.xgafv" Xgafv :> (QueryParam "upload_protocol" Text :> (QueryParam "access_token" Text :> (QueryParam "uploadType" Text :> (QueryParam "customerId" Text :> (QueryParam "callback" Text :> (QueryParam "alt" AltJSON :> (ReqBody '[JSON] AlertFeedback :> Post '[JSON] AlertFeedback))))))))))) Source #
A resource alias for alertcenter.alerts.feedback.create
method which the
AlertsFeedbackCreate
request conforms to.
Creating a Request
Creates a value of AlertsFeedbackCreate
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AlertsFeedbackCreate Source #
Creates new feedback for an alert.
See: alertsFeedbackCreate
smart constructor.
Instances
Request Lenses
afcUploadProtocol :: Lens' AlertsFeedbackCreate (Maybe Text) Source #
Upload protocol for media (e.g. "raw", "multipart").
afcAccessToken :: Lens' AlertsFeedbackCreate (Maybe Text) Source #
OAuth access token.
afcAlertId :: Lens' AlertsFeedbackCreate Text Source #
Required. The identifier of the alert this feedback belongs to. Returns a `NOT_FOUND` error if no such alert.
afcUploadType :: Lens' AlertsFeedbackCreate (Maybe Text) Source #
Legacy upload protocol for media (e.g. "media", "multipart").
afcPayload :: Lens' AlertsFeedbackCreate AlertFeedback Source #
Multipart request metadata.
afcCustomerId :: Lens' AlertsFeedbackCreate (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.
afcCallback :: Lens' AlertsFeedbackCreate (Maybe Text) Source #
JSONP