gogol-alertcenter-0.5.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.Feedback.Create

Contents

Description

Creates new feedback for an alert. Attempting to create a feedback for a non-existent alert returns `NOT_FOUND` error.

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

Synopsis

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

alertsFeedbackCreate Source #

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. Attempting to create a feedback for a non-existent alert returns `NOT_FOUND` error.

See: alertsFeedbackCreate smart constructor.

Instances
Eq AlertsFeedbackCreate Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Feedback.Create

Data AlertsFeedbackCreate Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Feedback.Create

Methods

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

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

toConstr :: AlertsFeedbackCreate -> Constr #

dataTypeOf :: AlertsFeedbackCreate -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AlertsFeedbackCreate Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Feedback.Create

Generic AlertsFeedbackCreate Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Feedback.Create

Associated Types

type Rep AlertsFeedbackCreate :: Type -> Type #

GoogleRequest AlertsFeedbackCreate Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Feedback.Create

Associated Types

type Rs AlertsFeedbackCreate :: Type #

type Scopes AlertsFeedbackCreate :: [Symbol] #

type Rep AlertsFeedbackCreate Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Feedback.Create

type Rep AlertsFeedbackCreate = D1 (MetaData "AlertsFeedbackCreate" "Network.Google.Resource.AlertCenter.Alerts.Feedback.Create" "gogol-alertcenter-0.5.0-En3gsptQ27r5uAEQtfFlkt" False) (C1 (MetaCons "AlertsFeedbackCreate'" PrefixI True) (((S1 (MetaSel (Just "_afcXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: S1 (MetaSel (Just "_afcUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_afcAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_afcAlertId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) :*: ((S1 (MetaSel (Just "_afcUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_afcPayload") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 AlertFeedback)) :*: (S1 (MetaSel (Just "_afcCustomerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_afcCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes AlertsFeedbackCreate Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Feedback.Create

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

Defined in Network.Google.Resource.AlertCenter.Alerts.Feedback.Create

Request Lenses

afcUploadProtocol :: Lens' AlertsFeedbackCreate (Maybe Text) Source #

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

afcAlertId :: Lens' AlertsFeedbackCreate Text Source #

Required. The identifier of the alert this feedback belongs to.

afcUploadType :: Lens' AlertsFeedbackCreate (Maybe Text) Source #

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

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.