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

MSGraphAPI.ChangeNotifications.Subscription

Synopsis

Documentation

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

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.7.0.0-6iJNojiWxjhIHN0oe2Qeyg" '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.7.0.0-6iJNojiWxjhIHN0oe2Qeyg" '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.7.0.0-6iJNojiWxjhIHN0oe2Qeyg" '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)))