ms-graph-api-0.8.0.0: Microsoft Graph API
Safe HaskellSafe-Inferred
LanguageHaskell2010

MSGraphAPI.ChangeNotifications.Subscription

Description

Subscription to change notifications through webhooks

see https://learn.microsoft.com/en-us/graph/webhooks#supported-resources for a list of resources that can produce change notifications

see https://learn.microsoft.com/en-us/graph/change-notifications-delivery-webhooks?tabs=http for protocol details

Synopsis

Documentation

data ChangeNotification a Source #

Instances

Instances details
FromJSON a => FromJSON (ChangeNotification a) Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

Generic (ChangeNotification a) Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

Associated Types

type Rep (ChangeNotification a) :: Type -> Type #

Show a => Show (ChangeNotification a) Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

Eq a => Eq (ChangeNotification a) Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

type Rep (ChangeNotification a) Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

type Rep (ChangeNotification a) = D1 ('MetaData "ChangeNotification" "MSGraphAPI.ChangeNotifications.Subscription" "ms-graph-api-0.8.0.0-1Hc87tdNmGcmk9g3yH9mp" 'False) (C1 ('MetaCons "ChangeNotification" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cnChangeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ChangeType) :*: (S1 ('MetaSel ('Just "cnClientState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "cnId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "cnResource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "cnResourceData") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe a))) :*: (S1 ('MetaSel ('Just "cnSubscriptionId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "cnTenantId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))))

createSubscription :: FromJSON b => Subscription -> AccessToken -> Req b Source #

Create a subscription https://learn.microsoft.com/en-us/graph/api/subscription-post-subscriptions?view=graph-rest-1.0&tabs=http

 POST https://graph.microsoft.com/v1.0/subscriptions

Creating a subscription requires read scope to the resource. For example, to get change notifications on messages, your app needs the Mail.Read permission.

data Subscription Source #

A subscription allows a client app to receive change notifications about changes to data in Microsoft Graph.

https://learn.microsoft.com/en-us/graph/api/resources/subscription?view=graph-rest-1.0

Constructors

Subscription 

Fields

Instances

Instances details
FromJSON Subscription Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

ToJSON Subscription Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

Generic Subscription Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

Associated Types

type Rep Subscription :: Type -> Type #

Show Subscription Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

Eq Subscription Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

type Rep Subscription Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

type Rep Subscription = D1 ('MetaData "Subscription" "MSGraphAPI.ChangeNotifications.Subscription" "ms-graph-api-0.8.0.0-1Hc87tdNmGcmk9g3yH9mp" 'False) (C1 ('MetaCons "Subscription" 'PrefixI 'True) ((S1 ('MetaSel ('Just "cnsId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "cnsChangeType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty ChangeType)) :*: S1 ('MetaSel ('Just "cnsClientState") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: ((S1 ('MetaSel ('Just "cnsExpirationDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LocalTime) :*: S1 ('MetaSel ('Just "cnsNotificationUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "cnsResource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "cnsLatestSupportedTLSVersion") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 LatestTLSVer)))))

data LatestTLSVer Source #

Constructors

LTV10 
LTV11 
LTV12 
LTV13 

Instances

Instances details
FromJSON LatestTLSVer Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

ToJSON LatestTLSVer Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

Generic LatestTLSVer Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

Associated Types

type Rep LatestTLSVer :: Type -> Type #

Show LatestTLSVer Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

Eq LatestTLSVer Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

type Rep LatestTLSVer Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

type Rep LatestTLSVer = D1 ('MetaData "LatestTLSVer" "MSGraphAPI.ChangeNotifications.Subscription" "ms-graph-api-0.8.0.0-1Hc87tdNmGcmk9g3yH9mp" 'False) ((C1 ('MetaCons "LTV10" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LTV11" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "LTV12" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "LTV13" 'PrefixI 'False) (U1 :: Type -> Type)))

data ChangeType Source #

Constructors

CTCreated 
CTUpdated 
CTDeleted 

Instances

Instances details
FromJSON ChangeType Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

ToJSON ChangeType Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

Generic ChangeType Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

Associated Types

type Rep ChangeType :: Type -> Type #

Show ChangeType Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

Eq ChangeType Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

type Rep ChangeType Source # 
Instance details

Defined in MSGraphAPI.ChangeNotifications.Subscription

type Rep ChangeType = D1 ('MetaData "ChangeType" "MSGraphAPI.ChangeNotifications.Subscription" "ms-graph-api-0.8.0.0-1Hc87tdNmGcmk9g3yH9mp" 'False) (C1 ('MetaCons "CTCreated" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "CTUpdated" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "CTDeleted" 'PrefixI 'False) (U1 :: Type -> Type)))