-----------------------------------------------------------------------------
-- |
-- License     :  BSD-3-Clause
-- Maintainer  :  Oleg Grenrus <oleg.grenrus@iki.fi>
--
module GitHub.Data.Webhooks where

import GitHub.Data.Id          (Id)
import GitHub.Data.URL         (URL)
import GitHub.Internal.Prelude
import Prelude ()

import qualified Data.Map as M
import qualified Data.Text as T

data RepoWebhook = RepoWebhook
    { RepoWebhook -> URL
repoWebhookUrl          :: !URL
    , RepoWebhook -> URL
repoWebhookTestUrl      :: !URL
    , RepoWebhook -> Id RepoWebhook
repoWebhookId           :: !(Id RepoWebhook)
    , RepoWebhook -> Text
repoWebhookName         :: !Text
    , RepoWebhook -> Bool
repoWebhookActive       :: !Bool
    , RepoWebhook -> Vector RepoWebhookEvent
repoWebhookEvents       :: !(Vector RepoWebhookEvent)
    , RepoWebhook -> Map Text Text
repoWebhookConfig       :: !(M.Map Text Text)
    , RepoWebhook -> RepoWebhookResponse
repoWebhookLastResponse :: !RepoWebhookResponse
    , RepoWebhook -> UTCTime
repoWebhookUpdatedAt    :: !UTCTime
    , RepoWebhook -> UTCTime
repoWebhookCreatedAt    :: !UTCTime
    }
  deriving (Int -> RepoWebhook -> ShowS
[RepoWebhook] -> ShowS
RepoWebhook -> String
(Int -> RepoWebhook -> ShowS)
-> (RepoWebhook -> String)
-> ([RepoWebhook] -> ShowS)
-> Show RepoWebhook
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RepoWebhook] -> ShowS
$cshowList :: [RepoWebhook] -> ShowS
show :: RepoWebhook -> String
$cshow :: RepoWebhook -> String
showsPrec :: Int -> RepoWebhook -> ShowS
$cshowsPrec :: Int -> RepoWebhook -> ShowS
Show, Typeable RepoWebhook
DataType
Constr
Typeable RepoWebhook
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> RepoWebhook -> c RepoWebhook)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c RepoWebhook)
-> (RepoWebhook -> Constr)
-> (RepoWebhook -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c RepoWebhook))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e))
    -> Maybe (c RepoWebhook))
-> ((forall b. Data b => b -> b) -> RepoWebhook -> RepoWebhook)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> RepoWebhook -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> RepoWebhook -> r)
-> (forall u. (forall d. Data d => d -> u) -> RepoWebhook -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> RepoWebhook -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> RepoWebhook -> m RepoWebhook)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> RepoWebhook -> m RepoWebhook)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> RepoWebhook -> m RepoWebhook)
-> Data RepoWebhook
RepoWebhook -> DataType
RepoWebhook -> Constr
(forall b. Data b => b -> b) -> RepoWebhook -> RepoWebhook
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> RepoWebhook -> c RepoWebhook
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhook
forall a.
Typeable a
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u. Int -> (forall d. Data d => d -> u) -> RepoWebhook -> u
forall u. (forall d. Data d => d -> u) -> RepoWebhook -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhook -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhook -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> RepoWebhook -> m RepoWebhook
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> RepoWebhook -> m RepoWebhook
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhook
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> RepoWebhook -> c RepoWebhook
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c RepoWebhook)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhook)
$cRepoWebhook :: Constr
$tRepoWebhook :: DataType
gmapMo :: (forall d. Data d => d -> m d) -> RepoWebhook -> m RepoWebhook
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> RepoWebhook -> m RepoWebhook
gmapMp :: (forall d. Data d => d -> m d) -> RepoWebhook -> m RepoWebhook
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> RepoWebhook -> m RepoWebhook
gmapM :: (forall d. Data d => d -> m d) -> RepoWebhook -> m RepoWebhook
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> RepoWebhook -> m RepoWebhook
gmapQi :: Int -> (forall d. Data d => d -> u) -> RepoWebhook -> u
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> RepoWebhook -> u
gmapQ :: (forall d. Data d => d -> u) -> RepoWebhook -> [u]
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> RepoWebhook -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhook -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhook -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhook -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhook -> r
gmapT :: (forall b. Data b => b -> b) -> RepoWebhook -> RepoWebhook
$cgmapT :: (forall b. Data b => b -> b) -> RepoWebhook -> RepoWebhook
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhook)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhook)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c RepoWebhook)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c RepoWebhook)
dataTypeOf :: RepoWebhook -> DataType
$cdataTypeOf :: RepoWebhook -> DataType
toConstr :: RepoWebhook -> Constr
$ctoConstr :: RepoWebhook -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhook
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhook
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> RepoWebhook -> c RepoWebhook
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> RepoWebhook -> c RepoWebhook
$cp1Data :: Typeable RepoWebhook
Data, Typeable, RepoWebhook -> RepoWebhook -> Bool
(RepoWebhook -> RepoWebhook -> Bool)
-> (RepoWebhook -> RepoWebhook -> Bool) -> Eq RepoWebhook
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RepoWebhook -> RepoWebhook -> Bool
$c/= :: RepoWebhook -> RepoWebhook -> Bool
== :: RepoWebhook -> RepoWebhook -> Bool
$c== :: RepoWebhook -> RepoWebhook -> Bool
Eq, Eq RepoWebhook
Eq RepoWebhook
-> (RepoWebhook -> RepoWebhook -> Ordering)
-> (RepoWebhook -> RepoWebhook -> Bool)
-> (RepoWebhook -> RepoWebhook -> Bool)
-> (RepoWebhook -> RepoWebhook -> Bool)
-> (RepoWebhook -> RepoWebhook -> Bool)
-> (RepoWebhook -> RepoWebhook -> RepoWebhook)
-> (RepoWebhook -> RepoWebhook -> RepoWebhook)
-> Ord RepoWebhook
RepoWebhook -> RepoWebhook -> Bool
RepoWebhook -> RepoWebhook -> Ordering
RepoWebhook -> RepoWebhook -> RepoWebhook
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: RepoWebhook -> RepoWebhook -> RepoWebhook
$cmin :: RepoWebhook -> RepoWebhook -> RepoWebhook
max :: RepoWebhook -> RepoWebhook -> RepoWebhook
$cmax :: RepoWebhook -> RepoWebhook -> RepoWebhook
>= :: RepoWebhook -> RepoWebhook -> Bool
$c>= :: RepoWebhook -> RepoWebhook -> Bool
> :: RepoWebhook -> RepoWebhook -> Bool
$c> :: RepoWebhook -> RepoWebhook -> Bool
<= :: RepoWebhook -> RepoWebhook -> Bool
$c<= :: RepoWebhook -> RepoWebhook -> Bool
< :: RepoWebhook -> RepoWebhook -> Bool
$c< :: RepoWebhook -> RepoWebhook -> Bool
compare :: RepoWebhook -> RepoWebhook -> Ordering
$ccompare :: RepoWebhook -> RepoWebhook -> Ordering
$cp1Ord :: Eq RepoWebhook
Ord, (forall x. RepoWebhook -> Rep RepoWebhook x)
-> (forall x. Rep RepoWebhook x -> RepoWebhook)
-> Generic RepoWebhook
forall x. Rep RepoWebhook x -> RepoWebhook
forall x. RepoWebhook -> Rep RepoWebhook x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RepoWebhook x -> RepoWebhook
$cfrom :: forall x. RepoWebhook -> Rep RepoWebhook x
Generic)

instance NFData RepoWebhook where rnf :: RepoWebhook -> ()
rnf = RepoWebhook -> ()
forall a. (Generic a, GNFData (Rep a)) => a -> ()
genericRnf
instance Binary RepoWebhook

-- | See <https://developer.github.com/webhooks/#events>.
data RepoWebhookEvent
    = WebhookWildcardEvent
    | WebhookCheckRunEvent
    | WebhookCheckSuiteEvent
    | WebhookCodeScanningAlert
    | WebhookCommitCommentEvent
    | WebhookContentReferenceEvent
    | WebhookCreateEvent
    | WebhookDeleteEvent
    | WebhookDeployKeyEvent
    | WebhookDeploymentEvent
    | WebhookDeploymentStatusEvent
    | WebhookDiscussion
    | WebhookDiscussionComment
    | WebhookDownloadEvent
    | WebhookFollowEvent
    | WebhookForkEvent
    | WebhookGistEvent
    | WebhookGitHubAppAuthorizationEvent
    | WebhookGollumEvent
    | WebhookInstallationEvent
    | WebhookInstallationRepositoriesEvent
    | WebhookIssueCommentEvent
    | WebhookIssuesEvent
    | WebhookLabelEvent
    | WebhookMarketplacePurchaseEvent
    | WebhookMemberEvent
    | WebhookMembershipEvent
    | WebhookMetaEvent
    | WebhookMilestoneEvent
    | WebhookOrgBlockEvent
    | WebhookOrganizationEvent
    | WebhookPackage
    | WebhookPageBuildEvent
    | WebhookPingEvent
    | WebhookProjectCardEvent
    | WebhookProjectColumnEvent
    | WebhookProjectEvent
    | WebhookPublicEvent
    | WebhookPullRequestEvent
    | WebhookPullRequestReviewCommentEvent
    | WebhookPullRequestReviewEvent
    | WebhookPushEvent
    | WebhookRegistryPackageEvent
    | WebhookReleaseEvent
    | WebhookRepositoryDispatch
    | WebhookRepositoryEvent
    | WebhookRepositoryImportEvent
    | WebhookRepositoryVulnerabilityAlertEvent
    | WebhookSecretScanningAlert
    | WebhookSecurityAdvisoryEvent
    | WebhookSponsorship
    | WebhookStarEvent
    | WebhookStatusEvent
    | WebhookTeamAddEvent
    | WebhookTeamEvent
    | WebhookWatchEvent
    | WebhookWorkflowDispatch
    | WebhookWorkflowRun
  deriving (Int -> RepoWebhookEvent -> ShowS
[RepoWebhookEvent] -> ShowS
RepoWebhookEvent -> String
(Int -> RepoWebhookEvent -> ShowS)
-> (RepoWebhookEvent -> String)
-> ([RepoWebhookEvent] -> ShowS)
-> Show RepoWebhookEvent
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RepoWebhookEvent] -> ShowS
$cshowList :: [RepoWebhookEvent] -> ShowS
show :: RepoWebhookEvent -> String
$cshow :: RepoWebhookEvent -> String
showsPrec :: Int -> RepoWebhookEvent -> ShowS
$cshowsPrec :: Int -> RepoWebhookEvent -> ShowS
Show, Typeable RepoWebhookEvent
DataType
Constr
Typeable RepoWebhookEvent
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> RepoWebhookEvent -> c RepoWebhookEvent)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c RepoWebhookEvent)
-> (RepoWebhookEvent -> Constr)
-> (RepoWebhookEvent -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c RepoWebhookEvent))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e))
    -> Maybe (c RepoWebhookEvent))
-> ((forall b. Data b => b -> b)
    -> RepoWebhookEvent -> RepoWebhookEvent)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> RepoWebhookEvent -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> RepoWebhookEvent -> r)
-> (forall u.
    (forall d. Data d => d -> u) -> RepoWebhookEvent -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> RepoWebhookEvent -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d)
    -> RepoWebhookEvent -> m RepoWebhookEvent)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> RepoWebhookEvent -> m RepoWebhookEvent)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> RepoWebhookEvent -> m RepoWebhookEvent)
-> Data RepoWebhookEvent
RepoWebhookEvent -> DataType
RepoWebhookEvent -> Constr
(forall b. Data b => b -> b)
-> RepoWebhookEvent -> RepoWebhookEvent
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> RepoWebhookEvent -> c RepoWebhookEvent
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhookEvent
forall a.
Typeable a
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u.
Int -> (forall d. Data d => d -> u) -> RepoWebhookEvent -> u
forall u. (forall d. Data d => d -> u) -> RepoWebhookEvent -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookEvent -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookEvent -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> RepoWebhookEvent -> m RepoWebhookEvent
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> RepoWebhookEvent -> m RepoWebhookEvent
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhookEvent
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> RepoWebhookEvent -> c RepoWebhookEvent
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c RepoWebhookEvent)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhookEvent)
$cWebhookWorkflowRun :: Constr
$cWebhookWorkflowDispatch :: Constr
$cWebhookWatchEvent :: Constr
$cWebhookTeamEvent :: Constr
$cWebhookTeamAddEvent :: Constr
$cWebhookStatusEvent :: Constr
$cWebhookStarEvent :: Constr
$cWebhookSponsorship :: Constr
$cWebhookSecurityAdvisoryEvent :: Constr
$cWebhookSecretScanningAlert :: Constr
$cWebhookRepositoryVulnerabilityAlertEvent :: Constr
$cWebhookRepositoryImportEvent :: Constr
$cWebhookRepositoryEvent :: Constr
$cWebhookRepositoryDispatch :: Constr
$cWebhookReleaseEvent :: Constr
$cWebhookRegistryPackageEvent :: Constr
$cWebhookPushEvent :: Constr
$cWebhookPullRequestReviewEvent :: Constr
$cWebhookPullRequestReviewCommentEvent :: Constr
$cWebhookPullRequestEvent :: Constr
$cWebhookPublicEvent :: Constr
$cWebhookProjectEvent :: Constr
$cWebhookProjectColumnEvent :: Constr
$cWebhookProjectCardEvent :: Constr
$cWebhookPingEvent :: Constr
$cWebhookPageBuildEvent :: Constr
$cWebhookPackage :: Constr
$cWebhookOrganizationEvent :: Constr
$cWebhookOrgBlockEvent :: Constr
$cWebhookMilestoneEvent :: Constr
$cWebhookMetaEvent :: Constr
$cWebhookMembershipEvent :: Constr
$cWebhookMemberEvent :: Constr
$cWebhookMarketplacePurchaseEvent :: Constr
$cWebhookLabelEvent :: Constr
$cWebhookIssuesEvent :: Constr
$cWebhookIssueCommentEvent :: Constr
$cWebhookInstallationRepositoriesEvent :: Constr
$cWebhookInstallationEvent :: Constr
$cWebhookGollumEvent :: Constr
$cWebhookGitHubAppAuthorizationEvent :: Constr
$cWebhookGistEvent :: Constr
$cWebhookForkEvent :: Constr
$cWebhookFollowEvent :: Constr
$cWebhookDownloadEvent :: Constr
$cWebhookDiscussionComment :: Constr
$cWebhookDiscussion :: Constr
$cWebhookDeploymentStatusEvent :: Constr
$cWebhookDeploymentEvent :: Constr
$cWebhookDeployKeyEvent :: Constr
$cWebhookDeleteEvent :: Constr
$cWebhookCreateEvent :: Constr
$cWebhookContentReferenceEvent :: Constr
$cWebhookCommitCommentEvent :: Constr
$cWebhookCodeScanningAlert :: Constr
$cWebhookCheckSuiteEvent :: Constr
$cWebhookCheckRunEvent :: Constr
$cWebhookWildcardEvent :: Constr
$tRepoWebhookEvent :: DataType
gmapMo :: (forall d. Data d => d -> m d)
-> RepoWebhookEvent -> m RepoWebhookEvent
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> RepoWebhookEvent -> m RepoWebhookEvent
gmapMp :: (forall d. Data d => d -> m d)
-> RepoWebhookEvent -> m RepoWebhookEvent
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> RepoWebhookEvent -> m RepoWebhookEvent
gmapM :: (forall d. Data d => d -> m d)
-> RepoWebhookEvent -> m RepoWebhookEvent
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> RepoWebhookEvent -> m RepoWebhookEvent
gmapQi :: Int -> (forall d. Data d => d -> u) -> RepoWebhookEvent -> u
$cgmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> RepoWebhookEvent -> u
gmapQ :: (forall d. Data d => d -> u) -> RepoWebhookEvent -> [u]
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> RepoWebhookEvent -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookEvent -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookEvent -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookEvent -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookEvent -> r
gmapT :: (forall b. Data b => b -> b)
-> RepoWebhookEvent -> RepoWebhookEvent
$cgmapT :: (forall b. Data b => b -> b)
-> RepoWebhookEvent -> RepoWebhookEvent
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhookEvent)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhookEvent)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c RepoWebhookEvent)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c RepoWebhookEvent)
dataTypeOf :: RepoWebhookEvent -> DataType
$cdataTypeOf :: RepoWebhookEvent -> DataType
toConstr :: RepoWebhookEvent -> Constr
$ctoConstr :: RepoWebhookEvent -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhookEvent
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhookEvent
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> RepoWebhookEvent -> c RepoWebhookEvent
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> RepoWebhookEvent -> c RepoWebhookEvent
$cp1Data :: Typeable RepoWebhookEvent
Data, Typeable, RepoWebhookEvent -> RepoWebhookEvent -> Bool
(RepoWebhookEvent -> RepoWebhookEvent -> Bool)
-> (RepoWebhookEvent -> RepoWebhookEvent -> Bool)
-> Eq RepoWebhookEvent
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
$c/= :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
== :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
$c== :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
Eq, Eq RepoWebhookEvent
Eq RepoWebhookEvent
-> (RepoWebhookEvent -> RepoWebhookEvent -> Ordering)
-> (RepoWebhookEvent -> RepoWebhookEvent -> Bool)
-> (RepoWebhookEvent -> RepoWebhookEvent -> Bool)
-> (RepoWebhookEvent -> RepoWebhookEvent -> Bool)
-> (RepoWebhookEvent -> RepoWebhookEvent -> Bool)
-> (RepoWebhookEvent -> RepoWebhookEvent -> RepoWebhookEvent)
-> (RepoWebhookEvent -> RepoWebhookEvent -> RepoWebhookEvent)
-> Ord RepoWebhookEvent
RepoWebhookEvent -> RepoWebhookEvent -> Bool
RepoWebhookEvent -> RepoWebhookEvent -> Ordering
RepoWebhookEvent -> RepoWebhookEvent -> RepoWebhookEvent
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: RepoWebhookEvent -> RepoWebhookEvent -> RepoWebhookEvent
$cmin :: RepoWebhookEvent -> RepoWebhookEvent -> RepoWebhookEvent
max :: RepoWebhookEvent -> RepoWebhookEvent -> RepoWebhookEvent
$cmax :: RepoWebhookEvent -> RepoWebhookEvent -> RepoWebhookEvent
>= :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
$c>= :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
> :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
$c> :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
<= :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
$c<= :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
< :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
$c< :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
compare :: RepoWebhookEvent -> RepoWebhookEvent -> Ordering
$ccompare :: RepoWebhookEvent -> RepoWebhookEvent -> Ordering
$cp1Ord :: Eq RepoWebhookEvent
Ord, (forall x. RepoWebhookEvent -> Rep RepoWebhookEvent x)
-> (forall x. Rep RepoWebhookEvent x -> RepoWebhookEvent)
-> Generic RepoWebhookEvent
forall x. Rep RepoWebhookEvent x -> RepoWebhookEvent
forall x. RepoWebhookEvent -> Rep RepoWebhookEvent x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RepoWebhookEvent x -> RepoWebhookEvent
$cfrom :: forall x. RepoWebhookEvent -> Rep RepoWebhookEvent x
Generic)

instance NFData RepoWebhookEvent where rnf :: RepoWebhookEvent -> ()
rnf = RepoWebhookEvent -> ()
forall a. (Generic a, GNFData (Rep a)) => a -> ()
genericRnf
instance Binary RepoWebhookEvent

data RepoWebhookResponse = RepoWebhookResponse
    { RepoWebhookResponse -> Maybe Int
repoWebhookResponseCode    :: !(Maybe Int)
    , RepoWebhookResponse -> Maybe Text
repoWebhookResponseStatus  :: !(Maybe Text)
    , RepoWebhookResponse -> Maybe Text
repoWebhookResponseMessage :: !(Maybe Text)
    }
  deriving (Int -> RepoWebhookResponse -> ShowS
[RepoWebhookResponse] -> ShowS
RepoWebhookResponse -> String
(Int -> RepoWebhookResponse -> ShowS)
-> (RepoWebhookResponse -> String)
-> ([RepoWebhookResponse] -> ShowS)
-> Show RepoWebhookResponse
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [RepoWebhookResponse] -> ShowS
$cshowList :: [RepoWebhookResponse] -> ShowS
show :: RepoWebhookResponse -> String
$cshow :: RepoWebhookResponse -> String
showsPrec :: Int -> RepoWebhookResponse -> ShowS
$cshowsPrec :: Int -> RepoWebhookResponse -> ShowS
Show, Typeable RepoWebhookResponse
DataType
Constr
Typeable RepoWebhookResponse
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g)
    -> RepoWebhookResponse
    -> c RepoWebhookResponse)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c RepoWebhookResponse)
-> (RepoWebhookResponse -> Constr)
-> (RepoWebhookResponse -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c RepoWebhookResponse))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e))
    -> Maybe (c RepoWebhookResponse))
-> ((forall b. Data b => b -> b)
    -> RepoWebhookResponse -> RepoWebhookResponse)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> RepoWebhookResponse -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> RepoWebhookResponse -> r)
-> (forall u.
    (forall d. Data d => d -> u) -> RepoWebhookResponse -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> RepoWebhookResponse -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d)
    -> RepoWebhookResponse -> m RepoWebhookResponse)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> RepoWebhookResponse -> m RepoWebhookResponse)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> RepoWebhookResponse -> m RepoWebhookResponse)
-> Data RepoWebhookResponse
RepoWebhookResponse -> DataType
RepoWebhookResponse -> Constr
(forall b. Data b => b -> b)
-> RepoWebhookResponse -> RepoWebhookResponse
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> RepoWebhookResponse
-> c RepoWebhookResponse
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhookResponse
forall a.
Typeable a
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u.
Int -> (forall d. Data d => d -> u) -> RepoWebhookResponse -> u
forall u.
(forall d. Data d => d -> u) -> RepoWebhookResponse -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookResponse -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookResponse -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> RepoWebhookResponse -> m RepoWebhookResponse
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> RepoWebhookResponse -> m RepoWebhookResponse
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhookResponse
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> RepoWebhookResponse
-> c RepoWebhookResponse
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c RepoWebhookResponse)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhookResponse)
$cRepoWebhookResponse :: Constr
$tRepoWebhookResponse :: DataType
gmapMo :: (forall d. Data d => d -> m d)
-> RepoWebhookResponse -> m RepoWebhookResponse
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> RepoWebhookResponse -> m RepoWebhookResponse
gmapMp :: (forall d. Data d => d -> m d)
-> RepoWebhookResponse -> m RepoWebhookResponse
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> RepoWebhookResponse -> m RepoWebhookResponse
gmapM :: (forall d. Data d => d -> m d)
-> RepoWebhookResponse -> m RepoWebhookResponse
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> RepoWebhookResponse -> m RepoWebhookResponse
gmapQi :: Int -> (forall d. Data d => d -> u) -> RepoWebhookResponse -> u
$cgmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> RepoWebhookResponse -> u
gmapQ :: (forall d. Data d => d -> u) -> RepoWebhookResponse -> [u]
$cgmapQ :: forall u.
(forall d. Data d => d -> u) -> RepoWebhookResponse -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookResponse -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookResponse -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookResponse -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookResponse -> r
gmapT :: (forall b. Data b => b -> b)
-> RepoWebhookResponse -> RepoWebhookResponse
$cgmapT :: (forall b. Data b => b -> b)
-> RepoWebhookResponse -> RepoWebhookResponse
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhookResponse)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhookResponse)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c RepoWebhookResponse)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c RepoWebhookResponse)
dataTypeOf :: RepoWebhookResponse -> DataType
$cdataTypeOf :: RepoWebhookResponse -> DataType
toConstr :: RepoWebhookResponse -> Constr
$ctoConstr :: RepoWebhookResponse -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhookResponse
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhookResponse
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> RepoWebhookResponse
-> c RepoWebhookResponse
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> RepoWebhookResponse
-> c RepoWebhookResponse
$cp1Data :: Typeable RepoWebhookResponse
Data, Typeable, RepoWebhookResponse -> RepoWebhookResponse -> Bool
(RepoWebhookResponse -> RepoWebhookResponse -> Bool)
-> (RepoWebhookResponse -> RepoWebhookResponse -> Bool)
-> Eq RepoWebhookResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
$c/= :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
== :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
$c== :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
Eq, Eq RepoWebhookResponse
Eq RepoWebhookResponse
-> (RepoWebhookResponse -> RepoWebhookResponse -> Ordering)
-> (RepoWebhookResponse -> RepoWebhookResponse -> Bool)
-> (RepoWebhookResponse -> RepoWebhookResponse -> Bool)
-> (RepoWebhookResponse -> RepoWebhookResponse -> Bool)
-> (RepoWebhookResponse -> RepoWebhookResponse -> Bool)
-> (RepoWebhookResponse
    -> RepoWebhookResponse -> RepoWebhookResponse)
-> (RepoWebhookResponse
    -> RepoWebhookResponse -> RepoWebhookResponse)
-> Ord RepoWebhookResponse
RepoWebhookResponse -> RepoWebhookResponse -> Bool
RepoWebhookResponse -> RepoWebhookResponse -> Ordering
RepoWebhookResponse -> RepoWebhookResponse -> RepoWebhookResponse
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: RepoWebhookResponse -> RepoWebhookResponse -> RepoWebhookResponse
$cmin :: RepoWebhookResponse -> RepoWebhookResponse -> RepoWebhookResponse
max :: RepoWebhookResponse -> RepoWebhookResponse -> RepoWebhookResponse
$cmax :: RepoWebhookResponse -> RepoWebhookResponse -> RepoWebhookResponse
>= :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
$c>= :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
> :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
$c> :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
<= :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
$c<= :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
< :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
$c< :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
compare :: RepoWebhookResponse -> RepoWebhookResponse -> Ordering
$ccompare :: RepoWebhookResponse -> RepoWebhookResponse -> Ordering
$cp1Ord :: Eq RepoWebhookResponse
Ord, (forall x. RepoWebhookResponse -> Rep RepoWebhookResponse x)
-> (forall x. Rep RepoWebhookResponse x -> RepoWebhookResponse)
-> Generic RepoWebhookResponse
forall x. Rep RepoWebhookResponse x -> RepoWebhookResponse
forall x. RepoWebhookResponse -> Rep RepoWebhookResponse x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep RepoWebhookResponse x -> RepoWebhookResponse
$cfrom :: forall x. RepoWebhookResponse -> Rep RepoWebhookResponse x
Generic)

instance NFData RepoWebhookResponse where rnf :: RepoWebhookResponse -> ()
rnf = RepoWebhookResponse -> ()
forall a. (Generic a, GNFData (Rep a)) => a -> ()
genericRnf
instance Binary RepoWebhookResponse

data PingEvent = PingEvent
    { PingEvent -> Text
pingEventZen    :: !Text
    , PingEvent -> RepoWebhook
pingEventHook   :: !RepoWebhook
    , PingEvent -> Id RepoWebhook
pingEventHookId :: !(Id RepoWebhook)
    }
  deriving (Int -> PingEvent -> ShowS
[PingEvent] -> ShowS
PingEvent -> String
(Int -> PingEvent -> ShowS)
-> (PingEvent -> String)
-> ([PingEvent] -> ShowS)
-> Show PingEvent
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [PingEvent] -> ShowS
$cshowList :: [PingEvent] -> ShowS
show :: PingEvent -> String
$cshow :: PingEvent -> String
showsPrec :: Int -> PingEvent -> ShowS
$cshowsPrec :: Int -> PingEvent -> ShowS
Show, Typeable PingEvent
DataType
Constr
Typeable PingEvent
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> PingEvent -> c PingEvent)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c PingEvent)
-> (PingEvent -> Constr)
-> (PingEvent -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c PingEvent))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PingEvent))
-> ((forall b. Data b => b -> b) -> PingEvent -> PingEvent)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> PingEvent -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> PingEvent -> r)
-> (forall u. (forall d. Data d => d -> u) -> PingEvent -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> PingEvent -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> PingEvent -> m PingEvent)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> PingEvent -> m PingEvent)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> PingEvent -> m PingEvent)
-> Data PingEvent
PingEvent -> DataType
PingEvent -> Constr
(forall b. Data b => b -> b) -> PingEvent -> PingEvent
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> PingEvent -> c PingEvent
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c PingEvent
forall a.
Typeable a
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u. Int -> (forall d. Data d => d -> u) -> PingEvent -> u
forall u. (forall d. Data d => d -> u) -> PingEvent -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> PingEvent -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> PingEvent -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> PingEvent -> m PingEvent
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> PingEvent -> m PingEvent
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c PingEvent
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> PingEvent -> c PingEvent
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c PingEvent)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PingEvent)
$cPingEvent :: Constr
$tPingEvent :: DataType
gmapMo :: (forall d. Data d => d -> m d) -> PingEvent -> m PingEvent
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> PingEvent -> m PingEvent
gmapMp :: (forall d. Data d => d -> m d) -> PingEvent -> m PingEvent
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> PingEvent -> m PingEvent
gmapM :: (forall d. Data d => d -> m d) -> PingEvent -> m PingEvent
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> PingEvent -> m PingEvent
gmapQi :: Int -> (forall d. Data d => d -> u) -> PingEvent -> u
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> PingEvent -> u
gmapQ :: (forall d. Data d => d -> u) -> PingEvent -> [u]
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> PingEvent -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> PingEvent -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> PingEvent -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> PingEvent -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> PingEvent -> r
gmapT :: (forall b. Data b => b -> b) -> PingEvent -> PingEvent
$cgmapT :: (forall b. Data b => b -> b) -> PingEvent -> PingEvent
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PingEvent)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PingEvent)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c PingEvent)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c PingEvent)
dataTypeOf :: PingEvent -> DataType
$cdataTypeOf :: PingEvent -> DataType
toConstr :: PingEvent -> Constr
$ctoConstr :: PingEvent -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c PingEvent
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c PingEvent
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> PingEvent -> c PingEvent
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> PingEvent -> c PingEvent
$cp1Data :: Typeable PingEvent
Data, Typeable, PingEvent -> PingEvent -> Bool
(PingEvent -> PingEvent -> Bool)
-> (PingEvent -> PingEvent -> Bool) -> Eq PingEvent
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: PingEvent -> PingEvent -> Bool
$c/= :: PingEvent -> PingEvent -> Bool
== :: PingEvent -> PingEvent -> Bool
$c== :: PingEvent -> PingEvent -> Bool
Eq, Eq PingEvent
Eq PingEvent
-> (PingEvent -> PingEvent -> Ordering)
-> (PingEvent -> PingEvent -> Bool)
-> (PingEvent -> PingEvent -> Bool)
-> (PingEvent -> PingEvent -> Bool)
-> (PingEvent -> PingEvent -> Bool)
-> (PingEvent -> PingEvent -> PingEvent)
-> (PingEvent -> PingEvent -> PingEvent)
-> Ord PingEvent
PingEvent -> PingEvent -> Bool
PingEvent -> PingEvent -> Ordering
PingEvent -> PingEvent -> PingEvent
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: PingEvent -> PingEvent -> PingEvent
$cmin :: PingEvent -> PingEvent -> PingEvent
max :: PingEvent -> PingEvent -> PingEvent
$cmax :: PingEvent -> PingEvent -> PingEvent
>= :: PingEvent -> PingEvent -> Bool
$c>= :: PingEvent -> PingEvent -> Bool
> :: PingEvent -> PingEvent -> Bool
$c> :: PingEvent -> PingEvent -> Bool
<= :: PingEvent -> PingEvent -> Bool
$c<= :: PingEvent -> PingEvent -> Bool
< :: PingEvent -> PingEvent -> Bool
$c< :: PingEvent -> PingEvent -> Bool
compare :: PingEvent -> PingEvent -> Ordering
$ccompare :: PingEvent -> PingEvent -> Ordering
$cp1Ord :: Eq PingEvent
Ord, (forall x. PingEvent -> Rep PingEvent x)
-> (forall x. Rep PingEvent x -> PingEvent) -> Generic PingEvent
forall x. Rep PingEvent x -> PingEvent
forall x. PingEvent -> Rep PingEvent x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep PingEvent x -> PingEvent
$cfrom :: forall x. PingEvent -> Rep PingEvent x
Generic)

instance NFData PingEvent where rnf :: PingEvent -> ()
rnf = PingEvent -> ()
forall a. (Generic a, GNFData (Rep a)) => a -> ()
genericRnf
instance Binary PingEvent

data NewRepoWebhook = NewRepoWebhook
    { NewRepoWebhook -> Text
newRepoWebhookName   :: !Text
    , NewRepoWebhook -> Map Text Text
newRepoWebhookConfig :: !(M.Map Text Text)
    , NewRepoWebhook -> Maybe (Vector RepoWebhookEvent)
newRepoWebhookEvents :: !(Maybe (Vector RepoWebhookEvent))
    , NewRepoWebhook -> Maybe Bool
newRepoWebhookActive :: !(Maybe Bool)
    }
  deriving (NewRepoWebhook -> NewRepoWebhook -> Bool
(NewRepoWebhook -> NewRepoWebhook -> Bool)
-> (NewRepoWebhook -> NewRepoWebhook -> Bool) -> Eq NewRepoWebhook
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: NewRepoWebhook -> NewRepoWebhook -> Bool
$c/= :: NewRepoWebhook -> NewRepoWebhook -> Bool
== :: NewRepoWebhook -> NewRepoWebhook -> Bool
$c== :: NewRepoWebhook -> NewRepoWebhook -> Bool
Eq, Eq NewRepoWebhook
Eq NewRepoWebhook
-> (NewRepoWebhook -> NewRepoWebhook -> Ordering)
-> (NewRepoWebhook -> NewRepoWebhook -> Bool)
-> (NewRepoWebhook -> NewRepoWebhook -> Bool)
-> (NewRepoWebhook -> NewRepoWebhook -> Bool)
-> (NewRepoWebhook -> NewRepoWebhook -> Bool)
-> (NewRepoWebhook -> NewRepoWebhook -> NewRepoWebhook)
-> (NewRepoWebhook -> NewRepoWebhook -> NewRepoWebhook)
-> Ord NewRepoWebhook
NewRepoWebhook -> NewRepoWebhook -> Bool
NewRepoWebhook -> NewRepoWebhook -> Ordering
NewRepoWebhook -> NewRepoWebhook -> NewRepoWebhook
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: NewRepoWebhook -> NewRepoWebhook -> NewRepoWebhook
$cmin :: NewRepoWebhook -> NewRepoWebhook -> NewRepoWebhook
max :: NewRepoWebhook -> NewRepoWebhook -> NewRepoWebhook
$cmax :: NewRepoWebhook -> NewRepoWebhook -> NewRepoWebhook
>= :: NewRepoWebhook -> NewRepoWebhook -> Bool
$c>= :: NewRepoWebhook -> NewRepoWebhook -> Bool
> :: NewRepoWebhook -> NewRepoWebhook -> Bool
$c> :: NewRepoWebhook -> NewRepoWebhook -> Bool
<= :: NewRepoWebhook -> NewRepoWebhook -> Bool
$c<= :: NewRepoWebhook -> NewRepoWebhook -> Bool
< :: NewRepoWebhook -> NewRepoWebhook -> Bool
$c< :: NewRepoWebhook -> NewRepoWebhook -> Bool
compare :: NewRepoWebhook -> NewRepoWebhook -> Ordering
$ccompare :: NewRepoWebhook -> NewRepoWebhook -> Ordering
$cp1Ord :: Eq NewRepoWebhook
Ord, Int -> NewRepoWebhook -> ShowS
[NewRepoWebhook] -> ShowS
NewRepoWebhook -> String
(Int -> NewRepoWebhook -> ShowS)
-> (NewRepoWebhook -> String)
-> ([NewRepoWebhook] -> ShowS)
-> Show NewRepoWebhook
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [NewRepoWebhook] -> ShowS
$cshowList :: [NewRepoWebhook] -> ShowS
show :: NewRepoWebhook -> String
$cshow :: NewRepoWebhook -> String
showsPrec :: Int -> NewRepoWebhook -> ShowS
$cshowsPrec :: Int -> NewRepoWebhook -> ShowS
Show, Typeable, Typeable NewRepoWebhook
DataType
Constr
Typeable NewRepoWebhook
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> NewRepoWebhook -> c NewRepoWebhook)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c NewRepoWebhook)
-> (NewRepoWebhook -> Constr)
-> (NewRepoWebhook -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c NewRepoWebhook))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e))
    -> Maybe (c NewRepoWebhook))
-> ((forall b. Data b => b -> b)
    -> NewRepoWebhook -> NewRepoWebhook)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> NewRepoWebhook -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> NewRepoWebhook -> r)
-> (forall u.
    (forall d. Data d => d -> u) -> NewRepoWebhook -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> NewRepoWebhook -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d)
    -> NewRepoWebhook -> m NewRepoWebhook)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> NewRepoWebhook -> m NewRepoWebhook)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> NewRepoWebhook -> m NewRepoWebhook)
-> Data NewRepoWebhook
NewRepoWebhook -> DataType
NewRepoWebhook -> Constr
(forall b. Data b => b -> b) -> NewRepoWebhook -> NewRepoWebhook
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> NewRepoWebhook -> c NewRepoWebhook
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c NewRepoWebhook
forall a.
Typeable a
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u.
Int -> (forall d. Data d => d -> u) -> NewRepoWebhook -> u
forall u. (forall d. Data d => d -> u) -> NewRepoWebhook -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> NewRepoWebhook -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> NewRepoWebhook -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> NewRepoWebhook -> m NewRepoWebhook
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> NewRepoWebhook -> m NewRepoWebhook
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c NewRepoWebhook
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> NewRepoWebhook -> c NewRepoWebhook
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c NewRepoWebhook)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c NewRepoWebhook)
$cNewRepoWebhook :: Constr
$tNewRepoWebhook :: DataType
gmapMo :: (forall d. Data d => d -> m d)
-> NewRepoWebhook -> m NewRepoWebhook
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> NewRepoWebhook -> m NewRepoWebhook
gmapMp :: (forall d. Data d => d -> m d)
-> NewRepoWebhook -> m NewRepoWebhook
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> NewRepoWebhook -> m NewRepoWebhook
gmapM :: (forall d. Data d => d -> m d)
-> NewRepoWebhook -> m NewRepoWebhook
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> NewRepoWebhook -> m NewRepoWebhook
gmapQi :: Int -> (forall d. Data d => d -> u) -> NewRepoWebhook -> u
$cgmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> NewRepoWebhook -> u
gmapQ :: (forall d. Data d => d -> u) -> NewRepoWebhook -> [u]
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> NewRepoWebhook -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> NewRepoWebhook -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> NewRepoWebhook -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> NewRepoWebhook -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> NewRepoWebhook -> r
gmapT :: (forall b. Data b => b -> b) -> NewRepoWebhook -> NewRepoWebhook
$cgmapT :: (forall b. Data b => b -> b) -> NewRepoWebhook -> NewRepoWebhook
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c NewRepoWebhook)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c NewRepoWebhook)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c NewRepoWebhook)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c NewRepoWebhook)
dataTypeOf :: NewRepoWebhook -> DataType
$cdataTypeOf :: NewRepoWebhook -> DataType
toConstr :: NewRepoWebhook -> Constr
$ctoConstr :: NewRepoWebhook -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c NewRepoWebhook
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c NewRepoWebhook
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> NewRepoWebhook -> c NewRepoWebhook
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> NewRepoWebhook -> c NewRepoWebhook
$cp1Data :: Typeable NewRepoWebhook
Data, (forall x. NewRepoWebhook -> Rep NewRepoWebhook x)
-> (forall x. Rep NewRepoWebhook x -> NewRepoWebhook)
-> Generic NewRepoWebhook
forall x. Rep NewRepoWebhook x -> NewRepoWebhook
forall x. NewRepoWebhook -> Rep NewRepoWebhook x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep NewRepoWebhook x -> NewRepoWebhook
$cfrom :: forall x. NewRepoWebhook -> Rep NewRepoWebhook x
Generic)

instance NFData NewRepoWebhook where rnf :: NewRepoWebhook -> ()
rnf = NewRepoWebhook -> ()
forall a. (Generic a, GNFData (Rep a)) => a -> ()
genericRnf
instance Binary NewRepoWebhook

data EditRepoWebhook = EditRepoWebhook
    { EditRepoWebhook -> Maybe (Map Text Text)
editRepoWebhookConfig       :: !(Maybe (M.Map Text Text))
    , EditRepoWebhook -> Maybe (Vector RepoWebhookEvent)
editRepoWebhookEvents       :: !(Maybe (Vector RepoWebhookEvent))
    , EditRepoWebhook -> Maybe (Vector RepoWebhookEvent)
editRepoWebhookAddEvents    :: !(Maybe (Vector RepoWebhookEvent))
    , EditRepoWebhook -> Maybe (Vector RepoWebhookEvent)
editRepoWebhookRemoveEvents :: !(Maybe (Vector RepoWebhookEvent))
    , EditRepoWebhook -> Maybe Bool
editRepoWebhookActive       :: !(Maybe Bool)
    }
  deriving (EditRepoWebhook -> EditRepoWebhook -> Bool
(EditRepoWebhook -> EditRepoWebhook -> Bool)
-> (EditRepoWebhook -> EditRepoWebhook -> Bool)
-> Eq EditRepoWebhook
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: EditRepoWebhook -> EditRepoWebhook -> Bool
$c/= :: EditRepoWebhook -> EditRepoWebhook -> Bool
== :: EditRepoWebhook -> EditRepoWebhook -> Bool
$c== :: EditRepoWebhook -> EditRepoWebhook -> Bool
Eq, Eq EditRepoWebhook
Eq EditRepoWebhook
-> (EditRepoWebhook -> EditRepoWebhook -> Ordering)
-> (EditRepoWebhook -> EditRepoWebhook -> Bool)
-> (EditRepoWebhook -> EditRepoWebhook -> Bool)
-> (EditRepoWebhook -> EditRepoWebhook -> Bool)
-> (EditRepoWebhook -> EditRepoWebhook -> Bool)
-> (EditRepoWebhook -> EditRepoWebhook -> EditRepoWebhook)
-> (EditRepoWebhook -> EditRepoWebhook -> EditRepoWebhook)
-> Ord EditRepoWebhook
EditRepoWebhook -> EditRepoWebhook -> Bool
EditRepoWebhook -> EditRepoWebhook -> Ordering
EditRepoWebhook -> EditRepoWebhook -> EditRepoWebhook
forall a.
Eq a
-> (a -> a -> Ordering)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> Bool)
-> (a -> a -> a)
-> (a -> a -> a)
-> Ord a
min :: EditRepoWebhook -> EditRepoWebhook -> EditRepoWebhook
$cmin :: EditRepoWebhook -> EditRepoWebhook -> EditRepoWebhook
max :: EditRepoWebhook -> EditRepoWebhook -> EditRepoWebhook
$cmax :: EditRepoWebhook -> EditRepoWebhook -> EditRepoWebhook
>= :: EditRepoWebhook -> EditRepoWebhook -> Bool
$c>= :: EditRepoWebhook -> EditRepoWebhook -> Bool
> :: EditRepoWebhook -> EditRepoWebhook -> Bool
$c> :: EditRepoWebhook -> EditRepoWebhook -> Bool
<= :: EditRepoWebhook -> EditRepoWebhook -> Bool
$c<= :: EditRepoWebhook -> EditRepoWebhook -> Bool
< :: EditRepoWebhook -> EditRepoWebhook -> Bool
$c< :: EditRepoWebhook -> EditRepoWebhook -> Bool
compare :: EditRepoWebhook -> EditRepoWebhook -> Ordering
$ccompare :: EditRepoWebhook -> EditRepoWebhook -> Ordering
$cp1Ord :: Eq EditRepoWebhook
Ord, Int -> EditRepoWebhook -> ShowS
[EditRepoWebhook] -> ShowS
EditRepoWebhook -> String
(Int -> EditRepoWebhook -> ShowS)
-> (EditRepoWebhook -> String)
-> ([EditRepoWebhook] -> ShowS)
-> Show EditRepoWebhook
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [EditRepoWebhook] -> ShowS
$cshowList :: [EditRepoWebhook] -> ShowS
show :: EditRepoWebhook -> String
$cshow :: EditRepoWebhook -> String
showsPrec :: Int -> EditRepoWebhook -> ShowS
$cshowsPrec :: Int -> EditRepoWebhook -> ShowS
Show, Typeable, Typeable EditRepoWebhook
DataType
Constr
Typeable EditRepoWebhook
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> EditRepoWebhook -> c EditRepoWebhook)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c EditRepoWebhook)
-> (EditRepoWebhook -> Constr)
-> (EditRepoWebhook -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c EditRepoWebhook))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e))
    -> Maybe (c EditRepoWebhook))
-> ((forall b. Data b => b -> b)
    -> EditRepoWebhook -> EditRepoWebhook)
-> (forall r r'.
    (r -> r' -> r)
    -> r -> (forall d. Data d => d -> r') -> EditRepoWebhook -> r)
-> (forall r r'.
    (r' -> r -> r)
    -> r -> (forall d. Data d => d -> r') -> EditRepoWebhook -> r)
-> (forall u.
    (forall d. Data d => d -> u) -> EditRepoWebhook -> [u])
-> (forall u.
    Int -> (forall d. Data d => d -> u) -> EditRepoWebhook -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d)
    -> EditRepoWebhook -> m EditRepoWebhook)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> EditRepoWebhook -> m EditRepoWebhook)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d)
    -> EditRepoWebhook -> m EditRepoWebhook)
-> Data EditRepoWebhook
EditRepoWebhook -> DataType
EditRepoWebhook -> Constr
(forall b. Data b => b -> b) -> EditRepoWebhook -> EditRepoWebhook
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> EditRepoWebhook -> c EditRepoWebhook
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c EditRepoWebhook
forall a.
Typeable a
-> (forall (c :: * -> *).
    (forall d b. Data d => c (d -> b) -> d -> c b)
    -> (forall g. g -> c g) -> a -> c a)
-> (forall (c :: * -> *).
    (forall b r. Data b => c (b -> r) -> c r)
    -> (forall r. r -> c r) -> Constr -> c a)
-> (a -> Constr)
-> (a -> DataType)
-> (forall (t :: * -> *) (c :: * -> *).
    Typeable t =>
    (forall d. Data d => c (t d)) -> Maybe (c a))
-> (forall (t :: * -> * -> *) (c :: * -> *).
    Typeable t =>
    (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c a))
-> ((forall b. Data b => b -> b) -> a -> a)
-> (forall r r'.
    (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall r r'.
    (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> a -> r)
-> (forall u. (forall d. Data d => d -> u) -> a -> [u])
-> (forall u. Int -> (forall d. Data d => d -> u) -> a -> u)
-> (forall (m :: * -> *).
    Monad m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> (forall (m :: * -> *).
    MonadPlus m =>
    (forall d. Data d => d -> m d) -> a -> m a)
-> Data a
forall u.
Int -> (forall d. Data d => d -> u) -> EditRepoWebhook -> u
forall u. (forall d. Data d => d -> u) -> EditRepoWebhook -> [u]
forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> EditRepoWebhook -> r
forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> EditRepoWebhook -> r
forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> EditRepoWebhook -> m EditRepoWebhook
forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> EditRepoWebhook -> m EditRepoWebhook
forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c EditRepoWebhook
forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> EditRepoWebhook -> c EditRepoWebhook
forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c EditRepoWebhook)
forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c EditRepoWebhook)
$cEditRepoWebhook :: Constr
$tEditRepoWebhook :: DataType
gmapMo :: (forall d. Data d => d -> m d)
-> EditRepoWebhook -> m EditRepoWebhook
$cgmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> EditRepoWebhook -> m EditRepoWebhook
gmapMp :: (forall d. Data d => d -> m d)
-> EditRepoWebhook -> m EditRepoWebhook
$cgmapMp :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> EditRepoWebhook -> m EditRepoWebhook
gmapM :: (forall d. Data d => d -> m d)
-> EditRepoWebhook -> m EditRepoWebhook
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> EditRepoWebhook -> m EditRepoWebhook
gmapQi :: Int -> (forall d. Data d => d -> u) -> EditRepoWebhook -> u
$cgmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> EditRepoWebhook -> u
gmapQ :: (forall d. Data d => d -> u) -> EditRepoWebhook -> [u]
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> EditRepoWebhook -> [u]
gmapQr :: (r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> EditRepoWebhook -> r
$cgmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> EditRepoWebhook -> r
gmapQl :: (r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> EditRepoWebhook -> r
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> EditRepoWebhook -> r
gmapT :: (forall b. Data b => b -> b) -> EditRepoWebhook -> EditRepoWebhook
$cgmapT :: (forall b. Data b => b -> b) -> EditRepoWebhook -> EditRepoWebhook
dataCast2 :: (forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c EditRepoWebhook)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c EditRepoWebhook)
dataCast1 :: (forall d. Data d => c (t d)) -> Maybe (c EditRepoWebhook)
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c EditRepoWebhook)
dataTypeOf :: EditRepoWebhook -> DataType
$cdataTypeOf :: EditRepoWebhook -> DataType
toConstr :: EditRepoWebhook -> Constr
$ctoConstr :: EditRepoWebhook -> Constr
gunfold :: (forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c EditRepoWebhook
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c EditRepoWebhook
gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> EditRepoWebhook -> c EditRepoWebhook
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> EditRepoWebhook -> c EditRepoWebhook
$cp1Data :: Typeable EditRepoWebhook
Data, (forall x. EditRepoWebhook -> Rep EditRepoWebhook x)
-> (forall x. Rep EditRepoWebhook x -> EditRepoWebhook)
-> Generic EditRepoWebhook
forall x. Rep EditRepoWebhook x -> EditRepoWebhook
forall x. EditRepoWebhook -> Rep EditRepoWebhook x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x. Rep EditRepoWebhook x -> EditRepoWebhook
$cfrom :: forall x. EditRepoWebhook -> Rep EditRepoWebhook x
Generic)

instance NFData EditRepoWebhook where rnf :: EditRepoWebhook -> ()
rnf = EditRepoWebhook -> ()
forall a. (Generic a, GNFData (Rep a)) => a -> ()
genericRnf
instance Binary EditRepoWebhook

-- JSON instances

instance FromJSON RepoWebhookEvent where
    parseJSON :: Value -> Parser RepoWebhookEvent
parseJSON = String
-> (Text -> Parser RepoWebhookEvent)
-> Value
-> Parser RepoWebhookEvent
forall a. String -> (Text -> Parser a) -> Value -> Parser a
withText String
"RepoWebhookEvent" ((Text -> Parser RepoWebhookEvent)
 -> Value -> Parser RepoWebhookEvent)
-> (Text -> Parser RepoWebhookEvent)
-> Value
-> Parser RepoWebhookEvent
forall a b. (a -> b) -> a -> b
$ \Text
t -> case Text -> Text
T.toLower Text
t of
        Text
"*"                              -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookWildcardEvent
        Text
"check_run"                      -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookCheckRunEvent
        Text
"check_suite"                    -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookCheckSuiteEvent
        Text
"code_scanning_alert"            -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookCodeScanningAlert
        Text
"commit_comment"                 -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookCommitCommentEvent
        Text
"content_reference"              -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookContentReferenceEvent
        Text
"create"                         -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookCreateEvent
        Text
"delete"                         -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookDeleteEvent
        Text
"deploy_key"                     -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookDeployKeyEvent
        Text
"deployment"                     -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookDeploymentEvent
        Text
"deployment_status"              -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookDeploymentStatusEvent
        Text
"discussion"                     -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookDiscussion
        Text
"discussion_comment"             -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookDiscussionComment
        Text
"download"                       -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookDownloadEvent
        Text
"follow"                         -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookFollowEvent
        Text
"fork"                           -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookForkEvent
        Text
"gist"                           -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookGistEvent
        Text
"github_app_authorization"       -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookGitHubAppAuthorizationEvent
        Text
"gollum"                         -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookGollumEvent
        Text
"installation"                   -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookInstallationEvent
        Text
"installation_repositories"      -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookInstallationRepositoriesEvent
        Text
"issue_comment"                  -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookIssueCommentEvent
        Text
"issues"                         -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookIssuesEvent
        Text
"label"                          -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookLabelEvent
        Text
"marketplace_purchase"           -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookMarketplacePurchaseEvent
        Text
"member"                         -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookMemberEvent
        Text
"membership"                     -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookMembershipEvent
        Text
"meta"                           -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookMetaEvent
        Text
"milestone"                      -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookMilestoneEvent
        Text
"org_block"                      -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookOrgBlockEvent
        Text
"organization"                   -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookOrganizationEvent
        Text
"package"                        -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPackage
        Text
"page_build"                     -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPageBuildEvent
        Text
"ping"                           -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPingEvent
        Text
"project"                        -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookProjectEvent
        Text
"project_card"                   -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookProjectCardEvent
        Text
"project_column"                 -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookProjectColumnEvent
        Text
"public"                         -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPublicEvent
        Text
"pull_request"                   -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPullRequestEvent
        Text
"pull_request_review"            -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPullRequestReviewEvent
        Text
"pull_request_review_comment"    -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPullRequestReviewCommentEvent
        Text
"push"                           -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPushEvent
        Text
"registry_package"               -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookRegistryPackageEvent
        Text
"release"                        -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookReleaseEvent
        Text
"repository"                     -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookRepositoryEvent
        Text
"repository_dispatch"            -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookRepositoryDispatch
        Text
"repository_import"              -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookRepositoryImportEvent
        Text
"repository_vulnerability_alert" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookRepositoryVulnerabilityAlertEvent
        Text
"secret_scanning_alert"          -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookSecretScanningAlert
        Text
"security_advisory"              -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookSecurityAdvisoryEvent
        Text
"sponsorship"                    -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookSponsorship
        Text
"star"                           -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookStarEvent
        Text
"status"                         -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookStatusEvent
        Text
"team"                           -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookTeamEvent
        Text
"team_add"                       -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookTeamAddEvent
        Text
"watch"                          -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookWatchEvent
        Text
"workflow_dispatch"              -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookWorkflowDispatch
        Text
"workflow_run"                   -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookWorkflowRun
        Text
_                                -> String -> Parser RepoWebhookEvent
forall (m :: * -> *) a. MonadFail m => String -> m a
fail (String -> Parser RepoWebhookEvent)
-> String -> Parser RepoWebhookEvent
forall a b. (a -> b) -> a -> b
$ String
"Unknown RepoWebhookEvent: " String -> ShowS
forall a. Semigroup a => a -> a -> a
<> Text -> String
T.unpack Text
t

instance ToJSON RepoWebhookEvent where
    toJSON :: RepoWebhookEvent -> Value
toJSON RepoWebhookEvent
WebhookWildcardEvent                     = Text -> Value
String Text
"*"
    toJSON RepoWebhookEvent
WebhookCheckRunEvent                     = Text -> Value
String Text
"check_run"
    toJSON RepoWebhookEvent
WebhookCheckSuiteEvent                   = Text -> Value
String Text
"check_suite"
    toJSON RepoWebhookEvent
WebhookCodeScanningAlert                 = Text -> Value
String Text
"code_scanning_alert"
    toJSON RepoWebhookEvent
WebhookCommitCommentEvent                = Text -> Value
String Text
"commit_comment"
    toJSON RepoWebhookEvent
WebhookContentReferenceEvent             = Text -> Value
String Text
"content_reference"
    toJSON RepoWebhookEvent
WebhookCreateEvent                       = Text -> Value
String Text
"create"
    toJSON RepoWebhookEvent
WebhookDeleteEvent                       = Text -> Value
String Text
"delete"
    toJSON RepoWebhookEvent
WebhookDeployKeyEvent                    = Text -> Value
String Text
"deploy_key"
    toJSON RepoWebhookEvent
WebhookDeploymentEvent                   = Text -> Value
String Text
"deployment"
    toJSON RepoWebhookEvent
WebhookDeploymentStatusEvent             = Text -> Value
String Text
"deployment_status"
    toJSON RepoWebhookEvent
WebhookDiscussion                        = Text -> Value
String Text
"discussion"
    toJSON RepoWebhookEvent
WebhookDiscussionComment                 = Text -> Value
String Text
"discussion_comment"
    toJSON RepoWebhookEvent
WebhookDownloadEvent                     = Text -> Value
String Text
"download"
    toJSON RepoWebhookEvent
WebhookFollowEvent                       = Text -> Value
String Text
"follow"
    toJSON RepoWebhookEvent
WebhookForkEvent                         = Text -> Value
String Text
"fork"
    toJSON RepoWebhookEvent
WebhookGistEvent                         = Text -> Value
String Text
"gist"
    toJSON RepoWebhookEvent
WebhookGitHubAppAuthorizationEvent       = Text -> Value
String Text
"github_app_authorization"
    toJSON RepoWebhookEvent
WebhookGollumEvent                       = Text -> Value
String Text
"gollum"
    toJSON RepoWebhookEvent
WebhookInstallationEvent                 = Text -> Value
String Text
"installation"
    toJSON RepoWebhookEvent
WebhookInstallationRepositoriesEvent     = Text -> Value
String Text
"installation_repositories"
    toJSON RepoWebhookEvent
WebhookIssueCommentEvent                 = Text -> Value
String Text
"issue_comment"
    toJSON RepoWebhookEvent
WebhookIssuesEvent                       = Text -> Value
String Text
"issues"
    toJSON RepoWebhookEvent
WebhookLabelEvent                        = Text -> Value
String Text
"label"
    toJSON RepoWebhookEvent
WebhookMarketplacePurchaseEvent          = Text -> Value
String Text
"marketplace_purchase"
    toJSON RepoWebhookEvent
WebhookMemberEvent                       = Text -> Value
String Text
"member"
    toJSON RepoWebhookEvent
WebhookMembershipEvent                   = Text -> Value
String Text
"membership"
    toJSON RepoWebhookEvent
WebhookMetaEvent                         = Text -> Value
String Text
"meta"
    toJSON RepoWebhookEvent
WebhookMilestoneEvent                    = Text -> Value
String Text
"milestone"
    toJSON RepoWebhookEvent
WebhookOrgBlockEvent                     = Text -> Value
String Text
"org_block"
    toJSON RepoWebhookEvent
WebhookOrganizationEvent                 = Text -> Value
String Text
"organization"
    toJSON RepoWebhookEvent
WebhookPackage                           = Text -> Value
String Text
"package"
    toJSON RepoWebhookEvent
WebhookPageBuildEvent                    = Text -> Value
String Text
"page_build"
    toJSON RepoWebhookEvent
WebhookPingEvent                         = Text -> Value
String Text
"ping"
    toJSON RepoWebhookEvent
WebhookProjectCardEvent                  = Text -> Value
String Text
"project_card"
    toJSON RepoWebhookEvent
WebhookProjectColumnEvent                = Text -> Value
String Text
"project_column"
    toJSON RepoWebhookEvent
WebhookProjectEvent                      = Text -> Value
String Text
"project"
    toJSON RepoWebhookEvent
WebhookPublicEvent                       = Text -> Value
String Text
"public"
    toJSON RepoWebhookEvent
WebhookPullRequestEvent                  = Text -> Value
String Text
"pull_request"
    toJSON RepoWebhookEvent
WebhookPullRequestReviewCommentEvent     = Text -> Value
String Text
"pull_request_review_comment"
    toJSON RepoWebhookEvent
WebhookPullRequestReviewEvent            = Text -> Value
String Text
"pull_request_review"
    toJSON RepoWebhookEvent
WebhookPushEvent                         = Text -> Value
String Text
"push"
    toJSON RepoWebhookEvent
WebhookRegistryPackageEvent              = Text -> Value
String Text
"registry_package"
    toJSON RepoWebhookEvent
WebhookReleaseEvent                      = Text -> Value
String Text
"release"
    toJSON RepoWebhookEvent
WebhookRepositoryDispatch                = Text -> Value
String Text
"repository_dispatch"
    toJSON RepoWebhookEvent
WebhookRepositoryEvent                   = Text -> Value
String Text
"repository"
    toJSON RepoWebhookEvent
WebhookRepositoryImportEvent             = Text -> Value
String Text
"repository_import"
    toJSON RepoWebhookEvent
WebhookRepositoryVulnerabilityAlertEvent = Text -> Value
String Text
"repository_vulnerability_alert"
    toJSON RepoWebhookEvent
WebhookSecretScanningAlert               = Text -> Value
String Text
"secret_scanning_alert"
    toJSON RepoWebhookEvent
WebhookSecurityAdvisoryEvent             = Text -> Value
String Text
"security_advisory"
    toJSON RepoWebhookEvent
WebhookSponsorship                       = Text -> Value
String Text
"sponsorship"
    toJSON RepoWebhookEvent
WebhookStarEvent                         = Text -> Value
String Text
"star"
    toJSON RepoWebhookEvent
WebhookStatusEvent                       = Text -> Value
String Text
"status"
    toJSON RepoWebhookEvent
WebhookTeamAddEvent                      = Text -> Value
String Text
"team_add"
    toJSON RepoWebhookEvent
WebhookTeamEvent                         = Text -> Value
String Text
"team"
    toJSON RepoWebhookEvent
WebhookWatchEvent                        = Text -> Value
String Text
"watch"
    toJSON RepoWebhookEvent
WebhookWorkflowDispatch                  = Text -> Value
String Text
"workflow_dispatch"
    toJSON RepoWebhookEvent
WebhookWorkflowRun                       = Text -> Value
String Text
"workflow_run"

instance FromJSON RepoWebhook where
    parseJSON :: Value -> Parser RepoWebhook
parseJSON = String
-> (Object -> Parser RepoWebhook) -> Value -> Parser RepoWebhook
forall a. String -> (Object -> Parser a) -> Value -> Parser a
withObject String
"RepoWebhook" ((Object -> Parser RepoWebhook) -> Value -> Parser RepoWebhook)
-> (Object -> Parser RepoWebhook) -> Value -> Parser RepoWebhook
forall a b. (a -> b) -> a -> b
$ \Object
o -> URL
-> URL
-> Id RepoWebhook
-> Text
-> Bool
-> Vector RepoWebhookEvent
-> Map Text Text
-> RepoWebhookResponse
-> UTCTime
-> UTCTime
-> RepoWebhook
RepoWebhook
        (URL
 -> URL
 -> Id RepoWebhook
 -> Text
 -> Bool
 -> Vector RepoWebhookEvent
 -> Map Text Text
 -> RepoWebhookResponse
 -> UTCTime
 -> UTCTime
 -> RepoWebhook)
-> Parser URL
-> Parser
     (URL
      -> Id RepoWebhook
      -> Text
      -> Bool
      -> Vector RepoWebhookEvent
      -> Map Text Text
      -> RepoWebhookResponse
      -> UTCTime
      -> UTCTime
      -> RepoWebhook)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> Object
o Object -> Key -> Parser URL
forall a. FromJSON a => Object -> Key -> Parser a
.: Key
"url"
        Parser
  (URL
   -> Id RepoWebhook
   -> Text
   -> Bool
   -> Vector RepoWebhookEvent
   -> Map Text Text
   -> RepoWebhookResponse
   -> UTCTime
   -> UTCTime
   -> RepoWebhook)
-> Parser URL
-> Parser
     (Id RepoWebhook
      -> Text
      -> Bool
      -> Vector RepoWebhookEvent
      -> Map Text Text
      -> RepoWebhookResponse
      -> UTCTime
      -> UTCTime
      -> RepoWebhook)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> Object
o Object -> Key -> Parser URL
forall a. FromJSON a => Object -> Key -> Parser a
.: Key
"test_url"
        Parser
  (Id RepoWebhook
   -> Text
   -> Bool
   -> Vector RepoWebhookEvent
   -> Map Text Text
   -> RepoWebhookResponse
   -> UTCTime
   -> UTCTime
   -> RepoWebhook)
-> Parser (Id RepoWebhook)
-> Parser
     (Text
      -> Bool
      -> Vector RepoWebhookEvent
      -> Map Text Text
      -> RepoWebhookResponse
      -> UTCTime
      -> UTCTime
      -> RepoWebhook)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> Object
o Object -> Key -> Parser (Id RepoWebhook)
forall a. FromJSON a => Object -> Key -> Parser a
.: Key
"id"
        Parser
  (Text
   -> Bool
   -> Vector RepoWebhookEvent
   -> Map Text Text
   -> RepoWebhookResponse
   -> UTCTime
   -> UTCTime
   -> RepoWebhook)
-> Parser Text
-> Parser
     (Bool
      -> Vector RepoWebhookEvent
      -> Map Text Text
      -> RepoWebhookResponse
      -> UTCTime
      -> UTCTime
      -> RepoWebhook)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> Object
o Object -> Key -> Parser Text
forall a. FromJSON a => Object -> Key -> Parser a
.: Key
"name"
        Parser
  (Bool
   -> Vector RepoWebhookEvent
   -> Map Text Text
   -> RepoWebhookResponse
   -> UTCTime
   -> UTCTime
   -> RepoWebhook)
-> Parser Bool
-> Parser
     (Vector RepoWebhookEvent
      -> Map Text Text
      -> RepoWebhookResponse
      -> UTCTime
      -> UTCTime
      -> RepoWebhook)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> Object
o Object -> Key -> Parser Bool
forall a. FromJSON a => Object -> Key -> Parser a
.: Key
"active"
        Parser
  (Vector RepoWebhookEvent
   -> Map Text Text
   -> RepoWebhookResponse
   -> UTCTime
   -> UTCTime
   -> RepoWebhook)
-> Parser (Vector RepoWebhookEvent)
-> Parser
     (Map Text Text
      -> RepoWebhookResponse -> UTCTime -> UTCTime -> RepoWebhook)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> Object
o Object -> Key -> Parser (Vector RepoWebhookEvent)
forall a. FromJSON a => Object -> Key -> Parser a
.: Key
"events"
        Parser
  (Map Text Text
   -> RepoWebhookResponse -> UTCTime -> UTCTime -> RepoWebhook)
-> Parser (Map Text Text)
-> Parser
     (RepoWebhookResponse -> UTCTime -> UTCTime -> RepoWebhook)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> Object
o Object -> Key -> Parser (Map Text Text)
forall a. FromJSON a => Object -> Key -> Parser a
.: Key
"config"
        Parser (RepoWebhookResponse -> UTCTime -> UTCTime -> RepoWebhook)
-> Parser RepoWebhookResponse
-> Parser (UTCTime -> UTCTime -> RepoWebhook)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> Object
o Object -> Key -> Parser RepoWebhookResponse
forall a. FromJSON a => Object -> Key -> Parser a
.: Key
"last_response"
        Parser (UTCTime -> UTCTime -> RepoWebhook)
-> Parser UTCTime -> Parser (UTCTime -> RepoWebhook)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> Object
o Object -> Key -> Parser UTCTime
forall a. FromJSON a => Object -> Key -> Parser a
.: Key
"updated_at"
        Parser (UTCTime -> RepoWebhook)
-> Parser UTCTime -> Parser RepoWebhook
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> Object
o Object -> Key -> Parser UTCTime
forall a. FromJSON a => Object -> Key -> Parser a
.: Key
"created_at"

instance FromJSON RepoWebhookResponse where
    parseJSON :: Value -> Parser RepoWebhookResponse
parseJSON = String
-> (Object -> Parser RepoWebhookResponse)
-> Value
-> Parser RepoWebhookResponse
forall a. String -> (Object -> Parser a) -> Value -> Parser a
withObject String
"RepoWebhookResponse" ((Object -> Parser RepoWebhookResponse)
 -> Value -> Parser RepoWebhookResponse)
-> (Object -> Parser RepoWebhookResponse)
-> Value
-> Parser RepoWebhookResponse
forall a b. (a -> b) -> a -> b
$ \Object
o -> Maybe Int -> Maybe Text -> Maybe Text -> RepoWebhookResponse
RepoWebhookResponse
        (Maybe Int -> Maybe Text -> Maybe Text -> RepoWebhookResponse)
-> Parser (Maybe Int)
-> Parser (Maybe Text -> Maybe Text -> RepoWebhookResponse)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> Object
o Object -> Key -> Parser (Maybe Int)
forall a. FromJSON a => Object -> Key -> Parser a
.: Key
"code"
        Parser (Maybe Text -> Maybe Text -> RepoWebhookResponse)
-> Parser (Maybe Text)
-> Parser (Maybe Text -> RepoWebhookResponse)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> Object
o Object -> Key -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
.:? Key
"status"
        Parser (Maybe Text -> RepoWebhookResponse)
-> Parser (Maybe Text) -> Parser RepoWebhookResponse
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> Object
o Object -> Key -> Parser (Maybe Text)
forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
.:? Key
"message"

instance ToJSON NewRepoWebhook where
  toJSON :: NewRepoWebhook -> Value
toJSON (NewRepoWebhook { newRepoWebhookName :: NewRepoWebhook -> Text
newRepoWebhookName = Text
name
                         , newRepoWebhookConfig :: NewRepoWebhook -> Map Text Text
newRepoWebhookConfig = Map Text Text
config
                         , newRepoWebhookEvents :: NewRepoWebhook -> Maybe (Vector RepoWebhookEvent)
newRepoWebhookEvents = Maybe (Vector RepoWebhookEvent)
events
                         , newRepoWebhookActive :: NewRepoWebhook -> Maybe Bool
newRepoWebhookActive = Maybe Bool
active

             }) = [Pair] -> Value
object
             [ Key
"name" Key -> Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
.= Text
name
             , Key
"config" Key -> Map Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
.= Map Text Text
config
             , Key
"events" Key -> Maybe (Vector RepoWebhookEvent) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
.= Maybe (Vector RepoWebhookEvent)
events
             , Key
"active" Key -> Maybe Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
.= Maybe Bool
active
             ]

instance ToJSON EditRepoWebhook where
  toJSON :: EditRepoWebhook -> Value
toJSON (EditRepoWebhook { editRepoWebhookConfig :: EditRepoWebhook -> Maybe (Map Text Text)
editRepoWebhookConfig = Maybe (Map Text Text)
config
                          , editRepoWebhookEvents :: EditRepoWebhook -> Maybe (Vector RepoWebhookEvent)
editRepoWebhookEvents = Maybe (Vector RepoWebhookEvent)
events
                          , editRepoWebhookAddEvents :: EditRepoWebhook -> Maybe (Vector RepoWebhookEvent)
editRepoWebhookAddEvents = Maybe (Vector RepoWebhookEvent)
addEvents
                          , editRepoWebhookRemoveEvents :: EditRepoWebhook -> Maybe (Vector RepoWebhookEvent)
editRepoWebhookRemoveEvents = Maybe (Vector RepoWebhookEvent)
removeEvents
                          , editRepoWebhookActive :: EditRepoWebhook -> Maybe Bool
editRepoWebhookActive = Maybe Bool
active
             }) = [Pair] -> Value
object
             [ Key
"config" Key -> Maybe (Map Text Text) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
.= Maybe (Map Text Text)
config
             , Key
"events" Key -> Maybe (Vector RepoWebhookEvent) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
.= Maybe (Vector RepoWebhookEvent)
events
             , Key
"add_events" Key -> Maybe (Vector RepoWebhookEvent) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
.= Maybe (Vector RepoWebhookEvent)
addEvents
             , Key
"remove_events" Key -> Maybe (Vector RepoWebhookEvent) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
.= Maybe (Vector RepoWebhookEvent)
removeEvents
             , Key
"active" Key -> Maybe Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
.= Maybe Bool
active
             ]

instance FromJSON PingEvent where
    parseJSON :: Value -> Parser PingEvent
parseJSON = String -> (Object -> Parser PingEvent) -> Value -> Parser PingEvent
forall a. String -> (Object -> Parser a) -> Value -> Parser a
withObject String
"PingEvent" ((Object -> Parser PingEvent) -> Value -> Parser PingEvent)
-> (Object -> Parser PingEvent) -> Value -> Parser PingEvent
forall a b. (a -> b) -> a -> b
$ \Object
o -> Text -> RepoWebhook -> Id RepoWebhook -> PingEvent
PingEvent
        (Text -> RepoWebhook -> Id RepoWebhook -> PingEvent)
-> Parser Text
-> Parser (RepoWebhook -> Id RepoWebhook -> PingEvent)
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
<$> Object
o Object -> Key -> Parser Text
forall a. FromJSON a => Object -> Key -> Parser a
.: Key
"zen"
        Parser (RepoWebhook -> Id RepoWebhook -> PingEvent)
-> Parser RepoWebhook -> Parser (Id RepoWebhook -> PingEvent)
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> Object
o Object -> Key -> Parser RepoWebhook
forall a. FromJSON a => Object -> Key -> Parser a
.: Key
"hook"
        Parser (Id RepoWebhook -> PingEvent)
-> Parser (Id RepoWebhook) -> Parser PingEvent
forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
<*> Object
o Object -> Key -> Parser (Id RepoWebhook)
forall a. FromJSON a => Object -> Key -> Parser a
.: Key
"hook_id"