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.Get

Contents

Description

Gets the specified alert. Attempting to get a nonexistent alert returns `NOT_FOUND` error.

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

Synopsis

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

alertsGet Source #

Arguments

:: Text

agAlertId

-> AlertsGet 

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:

data AlertsGet Source #

Gets the specified alert. Attempting to get a nonexistent alert returns `NOT_FOUND` error.

See: alertsGet smart constructor.

Instances
Eq AlertsGet Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Get

Data AlertsGet Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Get

Methods

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

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

toConstr :: AlertsGet -> Constr #

dataTypeOf :: AlertsGet -> DataType #

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

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

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

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

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

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

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

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

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

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

Show AlertsGet Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Get

Generic AlertsGet Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Get

Associated Types

type Rep AlertsGet :: Type -> Type #

GoogleRequest AlertsGet Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Get

Associated Types

type Rs AlertsGet :: Type #

type Scopes AlertsGet :: [Symbol] #

type Rep AlertsGet Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Get

type Rep AlertsGet = D1 (MetaData "AlertsGet" "Network.Google.Resource.AlertCenter.Alerts.Get" "gogol-alertcenter-0.5.0-En3gsptQ27r5uAEQtfFlkt" False) (C1 (MetaCons "AlertsGet'" PrefixI True) ((S1 (MetaSel (Just "_agXgafv") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Xgafv)) :*: (S1 (MetaSel (Just "_agUploadProtocol") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_agAccessToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: ((S1 (MetaSel (Just "_agAlertId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_agUploadType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 (MetaSel (Just "_agCustomerId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_agCallback") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))
type Scopes AlertsGet Source # 
Instance details

Defined in Network.Google.Resource.AlertCenter.Alerts.Get

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

Defined in Network.Google.Resource.AlertCenter.Alerts.Get

Request Lenses

agXgafv :: Lens' AlertsGet (Maybe Xgafv) Source #

V1 error format.

agUploadProtocol :: Lens' AlertsGet (Maybe Text) Source #

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

agAccessToken :: Lens' AlertsGet (Maybe Text) Source #

OAuth access token.

agAlertId :: Lens' AlertsGet Text Source #

Required. The identifier of the alert to retrieve.

agUploadType :: Lens' AlertsGet (Maybe Text) Source #

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

agCustomerId :: Lens' AlertsGet (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.