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
$cshowsPrec :: Int -> RepoWebhook -> ShowS
showsPrec :: Int -> RepoWebhook -> ShowS
$cshow :: RepoWebhook -> String
show :: RepoWebhook -> String
$cshowList :: [RepoWebhook] -> ShowS
showList :: [RepoWebhook] -> ShowS
Show, Typeable RepoWebhook
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 -> Constr
RepoWebhook -> DataType
(forall b. Data b => b -> b) -> RepoWebhook -> 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)
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> RepoWebhook -> c RepoWebhook
gfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> RepoWebhook -> c RepoWebhook
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhook
gunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhook
$ctoConstr :: RepoWebhook -> Constr
toConstr :: RepoWebhook -> Constr
$cdataTypeOf :: RepoWebhook -> DataType
dataTypeOf :: RepoWebhook -> DataType
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c RepoWebhook)
dataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c RepoWebhook)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhook)
dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhook)
$cgmapT :: (forall b. Data b => b -> b) -> RepoWebhook -> RepoWebhook
gmapT :: (forall b. Data b => b -> b) -> RepoWebhook -> RepoWebhook
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhook -> r
gmapQl :: forall r r'.
(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
gmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhook -> r
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> RepoWebhook -> [u]
gmapQ :: forall u. (forall d. Data d => d -> u) -> RepoWebhook -> [u]
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> RepoWebhook -> u
gmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> RepoWebhook -> u
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> RepoWebhook -> m RepoWebhook
gmapM :: forall (m :: * -> *).
Monad m =>
(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
gmapMp :: forall (m :: * -> *).
MonadPlus m =>
(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
gmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> RepoWebhook -> m RepoWebhook
Data, Typeable, RepoWebhook -> RepoWebhook -> Bool
(RepoWebhook -> RepoWebhook -> Bool)
-> (RepoWebhook -> RepoWebhook -> Bool) -> Eq RepoWebhook
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RepoWebhook -> RepoWebhook -> Bool
== :: RepoWebhook -> RepoWebhook -> Bool
$c/= :: RepoWebhook -> RepoWebhook -> Bool
/= :: 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
$ccompare :: RepoWebhook -> RepoWebhook -> Ordering
compare :: RepoWebhook -> RepoWebhook -> Ordering
$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
>= :: RepoWebhook -> RepoWebhook -> Bool
$cmax :: RepoWebhook -> RepoWebhook -> RepoWebhook
max :: RepoWebhook -> RepoWebhook -> RepoWebhook
$cmin :: RepoWebhook -> RepoWebhook -> RepoWebhook
min :: RepoWebhook -> RepoWebhook -> 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
$cfrom :: forall x. RepoWebhook -> Rep RepoWebhook x
from :: forall x. RepoWebhook -> Rep RepoWebhook x
$cto :: forall x. Rep RepoWebhook x -> RepoWebhook
to :: forall x. Rep RepoWebhook x -> RepoWebhook
Generic)
instance NFData RepoWebhook where rnf :: RepoWebhook -> ()
rnf = RepoWebhook -> ()
forall a. (Generic a, GNFData (Rep a)) => a -> ()
genericRnf
instance Binary RepoWebhook
data RepoWebhookEvent
= WebhookWildcardEvent
| WebhookCheckRunEvent
| WebhookCheckSuiteEvent
| WebhookCodeScanningAlert
|
| WebhookContentReferenceEvent
| WebhookCreateEvent
| WebhookDeleteEvent
| WebhookDeployKeyEvent
| WebhookDeploymentEvent
| WebhookDeploymentStatusEvent
| WebhookDiscussion
|
| WebhookDownloadEvent
| WebhookFollowEvent
| WebhookForkEvent
| WebhookGistEvent
| WebhookGitHubAppAuthorizationEvent
| WebhookGollumEvent
| WebhookInstallationEvent
| WebhookInstallationRepositoriesEvent
|
| WebhookIssuesEvent
| WebhookLabelEvent
| WebhookMarketplacePurchaseEvent
| WebhookMemberEvent
| WebhookMembershipEvent
| WebhookMetaEvent
| WebhookMilestoneEvent
| WebhookOrgBlockEvent
| WebhookOrganizationEvent
| WebhookPackage
| WebhookPageBuildEvent
| WebhookPingEvent
| WebhookProjectCardEvent
| WebhookProjectColumnEvent
| WebhookProjectEvent
| WebhookPublicEvent
| WebhookPullRequestEvent
|
| WebhookPullRequestReviewEvent
| WebhookPushEvent
| WebhookRegistryPackageEvent
| WebhookReleaseEvent
| WebhookRepositoryDispatch
| WebhookRepositoryEvent
| WebhookRepositoryImportEvent
| WebhookRepositoryVulnerabilityAlertEvent
| WebhookSecretScanningAlert
| WebhookSecurityAdvisoryEvent
|
| 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
$cshowsPrec :: Int -> RepoWebhookEvent -> ShowS
showsPrec :: Int -> RepoWebhookEvent -> ShowS
$cshow :: RepoWebhookEvent -> String
show :: RepoWebhookEvent -> String
$cshowList :: [RepoWebhookEvent] -> ShowS
showList :: [RepoWebhookEvent] -> ShowS
Show, Typeable RepoWebhookEvent
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 -> Constr
RepoWebhookEvent -> DataType
(forall b. Data b => b -> b)
-> RepoWebhookEvent -> 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)
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> RepoWebhookEvent -> c RepoWebhookEvent
gfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> RepoWebhookEvent -> c RepoWebhookEvent
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhookEvent
gunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhookEvent
$ctoConstr :: RepoWebhookEvent -> Constr
toConstr :: RepoWebhookEvent -> Constr
$cdataTypeOf :: RepoWebhookEvent -> DataType
dataTypeOf :: RepoWebhookEvent -> DataType
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c RepoWebhookEvent)
dataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c RepoWebhookEvent)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhookEvent)
dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhookEvent)
$cgmapT :: (forall b. Data b => b -> b)
-> RepoWebhookEvent -> RepoWebhookEvent
gmapT :: (forall b. Data b => b -> b)
-> RepoWebhookEvent -> RepoWebhookEvent
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookEvent -> r
gmapQl :: forall r r'.
(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
gmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookEvent -> r
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> RepoWebhookEvent -> [u]
gmapQ :: forall u. (forall d. Data d => d -> u) -> RepoWebhookEvent -> [u]
$cgmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> RepoWebhookEvent -> u
gmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> RepoWebhookEvent -> u
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> RepoWebhookEvent -> m RepoWebhookEvent
gmapM :: forall (m :: * -> *).
Monad m =>
(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
gmapMp :: forall (m :: * -> *).
MonadPlus m =>
(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
gmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> RepoWebhookEvent -> m RepoWebhookEvent
Data, Typeable, RepoWebhookEvent -> RepoWebhookEvent -> Bool
(RepoWebhookEvent -> RepoWebhookEvent -> Bool)
-> (RepoWebhookEvent -> RepoWebhookEvent -> Bool)
-> Eq RepoWebhookEvent
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
== :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
$c/= :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
/= :: 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
$ccompare :: RepoWebhookEvent -> RepoWebhookEvent -> Ordering
compare :: RepoWebhookEvent -> RepoWebhookEvent -> Ordering
$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
>= :: RepoWebhookEvent -> RepoWebhookEvent -> Bool
$cmax :: RepoWebhookEvent -> RepoWebhookEvent -> RepoWebhookEvent
max :: RepoWebhookEvent -> RepoWebhookEvent -> RepoWebhookEvent
$cmin :: RepoWebhookEvent -> RepoWebhookEvent -> RepoWebhookEvent
min :: RepoWebhookEvent -> RepoWebhookEvent -> 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
$cfrom :: forall x. RepoWebhookEvent -> Rep RepoWebhookEvent x
from :: forall x. RepoWebhookEvent -> Rep RepoWebhookEvent x
$cto :: forall x. Rep RepoWebhookEvent x -> RepoWebhookEvent
to :: forall x. Rep RepoWebhookEvent x -> RepoWebhookEvent
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
$cshowsPrec :: Int -> RepoWebhookResponse -> ShowS
showsPrec :: Int -> RepoWebhookResponse -> ShowS
$cshow :: RepoWebhookResponse -> String
show :: RepoWebhookResponse -> String
$cshowList :: [RepoWebhookResponse] -> ShowS
showList :: [RepoWebhookResponse] -> ShowS
Show, Typeable RepoWebhookResponse
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 -> Constr
RepoWebhookResponse -> DataType
(forall b. Data b => b -> b)
-> RepoWebhookResponse -> 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)
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> RepoWebhookResponse
-> c RepoWebhookResponse
gfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g)
-> RepoWebhookResponse
-> c RepoWebhookResponse
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhookResponse
gunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c RepoWebhookResponse
$ctoConstr :: RepoWebhookResponse -> Constr
toConstr :: RepoWebhookResponse -> Constr
$cdataTypeOf :: RepoWebhookResponse -> DataType
dataTypeOf :: RepoWebhookResponse -> DataType
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c RepoWebhookResponse)
dataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c RepoWebhookResponse)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhookResponse)
dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c RepoWebhookResponse)
$cgmapT :: (forall b. Data b => b -> b)
-> RepoWebhookResponse -> RepoWebhookResponse
gmapT :: (forall b. Data b => b -> b)
-> RepoWebhookResponse -> RepoWebhookResponse
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookResponse -> r
gmapQl :: forall r r'.
(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
gmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> RepoWebhookResponse -> r
$cgmapQ :: forall u.
(forall d. Data d => d -> u) -> RepoWebhookResponse -> [u]
gmapQ :: forall u.
(forall d. Data d => d -> u) -> RepoWebhookResponse -> [u]
$cgmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> RepoWebhookResponse -> u
gmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> RepoWebhookResponse -> u
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> RepoWebhookResponse -> m RepoWebhookResponse
gmapM :: forall (m :: * -> *).
Monad m =>
(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
gmapMp :: forall (m :: * -> *).
MonadPlus m =>
(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
gmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> RepoWebhookResponse -> m RepoWebhookResponse
Data, Typeable, RepoWebhookResponse -> RepoWebhookResponse -> Bool
(RepoWebhookResponse -> RepoWebhookResponse -> Bool)
-> (RepoWebhookResponse -> RepoWebhookResponse -> Bool)
-> Eq RepoWebhookResponse
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
== :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
$c/= :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
/= :: 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
$ccompare :: RepoWebhookResponse -> RepoWebhookResponse -> Ordering
compare :: RepoWebhookResponse -> RepoWebhookResponse -> Ordering
$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
>= :: RepoWebhookResponse -> RepoWebhookResponse -> Bool
$cmax :: RepoWebhookResponse -> RepoWebhookResponse -> RepoWebhookResponse
max :: RepoWebhookResponse -> RepoWebhookResponse -> RepoWebhookResponse
$cmin :: RepoWebhookResponse -> RepoWebhookResponse -> RepoWebhookResponse
min :: RepoWebhookResponse -> RepoWebhookResponse -> 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
$cfrom :: forall x. RepoWebhookResponse -> Rep RepoWebhookResponse x
from :: forall x. RepoWebhookResponse -> Rep RepoWebhookResponse x
$cto :: forall x. Rep RepoWebhookResponse x -> RepoWebhookResponse
to :: forall x. Rep RepoWebhookResponse x -> RepoWebhookResponse
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
$cshowsPrec :: Int -> PingEvent -> ShowS
showsPrec :: Int -> PingEvent -> ShowS
$cshow :: PingEvent -> String
show :: PingEvent -> String
$cshowList :: [PingEvent] -> ShowS
showList :: [PingEvent] -> ShowS
Show, Typeable PingEvent
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 -> Constr
PingEvent -> DataType
(forall b. Data b => b -> b) -> PingEvent -> 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)
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> PingEvent -> c PingEvent
gfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> PingEvent -> c PingEvent
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c PingEvent
gunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c PingEvent
$ctoConstr :: PingEvent -> Constr
toConstr :: PingEvent -> Constr
$cdataTypeOf :: PingEvent -> DataType
dataTypeOf :: PingEvent -> DataType
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c PingEvent)
dataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c PingEvent)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PingEvent)
dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PingEvent)
$cgmapT :: (forall b. Data b => b -> b) -> PingEvent -> PingEvent
gmapT :: (forall b. Data b => b -> b) -> PingEvent -> PingEvent
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> PingEvent -> r
gmapQl :: forall r r'.
(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
gmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> PingEvent -> r
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> PingEvent -> [u]
gmapQ :: forall u. (forall d. Data d => d -> u) -> PingEvent -> [u]
$cgmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> PingEvent -> u
gmapQi :: forall u. Int -> (forall d. Data d => d -> u) -> PingEvent -> u
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d) -> PingEvent -> m PingEvent
gmapM :: forall (m :: * -> *).
Monad m =>
(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
gmapMp :: forall (m :: * -> *).
MonadPlus m =>
(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
gmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d) -> PingEvent -> m PingEvent
Data, Typeable, PingEvent -> PingEvent -> Bool
(PingEvent -> PingEvent -> Bool)
-> (PingEvent -> PingEvent -> Bool) -> Eq PingEvent
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
$c== :: PingEvent -> PingEvent -> Bool
== :: PingEvent -> PingEvent -> Bool
$c/= :: PingEvent -> PingEvent -> Bool
/= :: 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
$ccompare :: PingEvent -> PingEvent -> Ordering
compare :: PingEvent -> PingEvent -> Ordering
$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
>= :: PingEvent -> PingEvent -> Bool
$cmax :: PingEvent -> PingEvent -> PingEvent
max :: PingEvent -> PingEvent -> PingEvent
$cmin :: PingEvent -> PingEvent -> PingEvent
min :: PingEvent -> PingEvent -> 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
$cfrom :: forall x. PingEvent -> Rep PingEvent x
from :: forall x. PingEvent -> Rep PingEvent x
$cto :: forall x. Rep PingEvent x -> PingEvent
to :: forall x. Rep PingEvent x -> PingEvent
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
$c== :: NewRepoWebhook -> NewRepoWebhook -> Bool
== :: NewRepoWebhook -> NewRepoWebhook -> Bool
$c/= :: NewRepoWebhook -> NewRepoWebhook -> Bool
/= :: 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
$ccompare :: NewRepoWebhook -> NewRepoWebhook -> Ordering
compare :: NewRepoWebhook -> NewRepoWebhook -> Ordering
$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
>= :: NewRepoWebhook -> NewRepoWebhook -> Bool
$cmax :: NewRepoWebhook -> NewRepoWebhook -> NewRepoWebhook
max :: NewRepoWebhook -> NewRepoWebhook -> NewRepoWebhook
$cmin :: NewRepoWebhook -> NewRepoWebhook -> NewRepoWebhook
min :: NewRepoWebhook -> NewRepoWebhook -> 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
$cshowsPrec :: Int -> NewRepoWebhook -> ShowS
showsPrec :: Int -> NewRepoWebhook -> ShowS
$cshow :: NewRepoWebhook -> String
show :: NewRepoWebhook -> String
$cshowList :: [NewRepoWebhook] -> ShowS
showList :: [NewRepoWebhook] -> ShowS
Show, Typeable, Typeable NewRepoWebhook
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 -> Constr
NewRepoWebhook -> DataType
(forall b. Data b => b -> b) -> NewRepoWebhook -> 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)
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> NewRepoWebhook -> c NewRepoWebhook
gfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> NewRepoWebhook -> c NewRepoWebhook
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c NewRepoWebhook
gunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c NewRepoWebhook
$ctoConstr :: NewRepoWebhook -> Constr
toConstr :: NewRepoWebhook -> Constr
$cdataTypeOf :: NewRepoWebhook -> DataType
dataTypeOf :: NewRepoWebhook -> DataType
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c NewRepoWebhook)
dataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c NewRepoWebhook)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c NewRepoWebhook)
dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c NewRepoWebhook)
$cgmapT :: (forall b. Data b => b -> b) -> NewRepoWebhook -> NewRepoWebhook
gmapT :: (forall b. Data b => b -> b) -> NewRepoWebhook -> NewRepoWebhook
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> NewRepoWebhook -> r
gmapQl :: forall r r'.
(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
gmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> NewRepoWebhook -> r
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> NewRepoWebhook -> [u]
gmapQ :: forall u. (forall d. Data d => d -> u) -> NewRepoWebhook -> [u]
$cgmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> NewRepoWebhook -> u
gmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> NewRepoWebhook -> u
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> NewRepoWebhook -> m NewRepoWebhook
gmapM :: forall (m :: * -> *).
Monad m =>
(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
gmapMp :: forall (m :: * -> *).
MonadPlus m =>
(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
gmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> NewRepoWebhook -> m 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
$cfrom :: forall x. NewRepoWebhook -> Rep NewRepoWebhook x
from :: forall x. NewRepoWebhook -> Rep NewRepoWebhook x
$cto :: forall x. Rep NewRepoWebhook x -> NewRepoWebhook
to :: forall x. Rep NewRepoWebhook x -> NewRepoWebhook
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
$c== :: EditRepoWebhook -> EditRepoWebhook -> Bool
== :: EditRepoWebhook -> EditRepoWebhook -> Bool
$c/= :: EditRepoWebhook -> EditRepoWebhook -> Bool
/= :: 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
$ccompare :: EditRepoWebhook -> EditRepoWebhook -> Ordering
compare :: EditRepoWebhook -> EditRepoWebhook -> Ordering
$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
>= :: EditRepoWebhook -> EditRepoWebhook -> Bool
$cmax :: EditRepoWebhook -> EditRepoWebhook -> EditRepoWebhook
max :: EditRepoWebhook -> EditRepoWebhook -> EditRepoWebhook
$cmin :: EditRepoWebhook -> EditRepoWebhook -> EditRepoWebhook
min :: EditRepoWebhook -> EditRepoWebhook -> 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
$cshowsPrec :: Int -> EditRepoWebhook -> ShowS
showsPrec :: Int -> EditRepoWebhook -> ShowS
$cshow :: EditRepoWebhook -> String
show :: EditRepoWebhook -> String
$cshowList :: [EditRepoWebhook] -> ShowS
showList :: [EditRepoWebhook] -> ShowS
Show, Typeable, Typeable EditRepoWebhook
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 -> Constr
EditRepoWebhook -> DataType
(forall b. Data b => b -> b) -> EditRepoWebhook -> 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)
$cgfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> EditRepoWebhook -> c EditRepoWebhook
gfoldl :: forall (c :: * -> *).
(forall d b. Data d => c (d -> b) -> d -> c b)
-> (forall g. g -> c g) -> EditRepoWebhook -> c EditRepoWebhook
$cgunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c EditRepoWebhook
gunfold :: forall (c :: * -> *).
(forall b r. Data b => c (b -> r) -> c r)
-> (forall r. r -> c r) -> Constr -> c EditRepoWebhook
$ctoConstr :: EditRepoWebhook -> Constr
toConstr :: EditRepoWebhook -> Constr
$cdataTypeOf :: EditRepoWebhook -> DataType
dataTypeOf :: EditRepoWebhook -> DataType
$cdataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c EditRepoWebhook)
dataCast1 :: forall (t :: * -> *) (c :: * -> *).
Typeable t =>
(forall d. Data d => c (t d)) -> Maybe (c EditRepoWebhook)
$cdataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c EditRepoWebhook)
dataCast2 :: forall (t :: * -> * -> *) (c :: * -> *).
Typeable t =>
(forall d e. (Data d, Data e) => c (t d e))
-> Maybe (c EditRepoWebhook)
$cgmapT :: (forall b. Data b => b -> b) -> EditRepoWebhook -> EditRepoWebhook
gmapT :: (forall b. Data b => b -> b) -> EditRepoWebhook -> EditRepoWebhook
$cgmapQl :: forall r r'.
(r -> r' -> r)
-> r -> (forall d. Data d => d -> r') -> EditRepoWebhook -> r
gmapQl :: forall r r'.
(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
gmapQr :: forall r r'.
(r' -> r -> r)
-> r -> (forall d. Data d => d -> r') -> EditRepoWebhook -> r
$cgmapQ :: forall u. (forall d. Data d => d -> u) -> EditRepoWebhook -> [u]
gmapQ :: forall u. (forall d. Data d => d -> u) -> EditRepoWebhook -> [u]
$cgmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> EditRepoWebhook -> u
gmapQi :: forall u.
Int -> (forall d. Data d => d -> u) -> EditRepoWebhook -> u
$cgmapM :: forall (m :: * -> *).
Monad m =>
(forall d. Data d => d -> m d)
-> EditRepoWebhook -> m EditRepoWebhook
gmapM :: forall (m :: * -> *).
Monad m =>
(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
gmapMp :: forall (m :: * -> *).
MonadPlus m =>
(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
gmapMo :: forall (m :: * -> *).
MonadPlus m =>
(forall d. Data d => d -> m d)
-> EditRepoWebhook -> m 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
$cfrom :: forall x. EditRepoWebhook -> Rep EditRepoWebhook x
from :: forall x. EditRepoWebhook -> Rep EditRepoWebhook x
$cto :: forall x. Rep EditRepoWebhook x -> EditRepoWebhook
to :: forall x. Rep EditRepoWebhook x -> EditRepoWebhook
Generic)
instance NFData EditRepoWebhook where rnf :: EditRepoWebhook -> ()
rnf = EditRepoWebhook -> ()
forall a. (Generic a, GNFData (Rep a)) => a -> ()
genericRnf
instance Binary EditRepoWebhook
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 a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookWildcardEvent
Text
"check_run" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookCheckRunEvent
Text
"check_suite" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookCheckSuiteEvent
Text
"code_scanning_alert" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookCodeScanningAlert
Text
"commit_comment" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookCommitCommentEvent
Text
"content_reference" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookContentReferenceEvent
Text
"create" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookCreateEvent
Text
"delete" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookDeleteEvent
Text
"deploy_key" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookDeployKeyEvent
Text
"deployment" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookDeploymentEvent
Text
"deployment_status" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookDeploymentStatusEvent
Text
"discussion" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookDiscussion
Text
"discussion_comment" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookDiscussionComment
Text
"download" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookDownloadEvent
Text
"follow" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookFollowEvent
Text
"fork" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookForkEvent
Text
"gist" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookGistEvent
Text
"github_app_authorization" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookGitHubAppAuthorizationEvent
Text
"gollum" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookGollumEvent
Text
"installation" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookInstallationEvent
Text
"installation_repositories" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookInstallationRepositoriesEvent
Text
"issue_comment" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookIssueCommentEvent
Text
"issues" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookIssuesEvent
Text
"label" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookLabelEvent
Text
"marketplace_purchase" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookMarketplacePurchaseEvent
Text
"member" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookMemberEvent
Text
"membership" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookMembershipEvent
Text
"meta" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookMetaEvent
Text
"milestone" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookMilestoneEvent
Text
"org_block" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookOrgBlockEvent
Text
"organization" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookOrganizationEvent
Text
"package" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPackage
Text
"page_build" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPageBuildEvent
Text
"ping" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPingEvent
Text
"project" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookProjectEvent
Text
"project_card" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookProjectCardEvent
Text
"project_column" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookProjectColumnEvent
Text
"public" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPublicEvent
Text
"pull_request" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPullRequestEvent
Text
"pull_request_review" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPullRequestReviewEvent
Text
"pull_request_review_comment" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPullRequestReviewCommentEvent
Text
"push" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookPushEvent
Text
"registry_package" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookRegistryPackageEvent
Text
"release" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookReleaseEvent
Text
"repository" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookRepositoryEvent
Text
"repository_dispatch" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookRepositoryDispatch
Text
"repository_import" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookRepositoryImportEvent
Text
"repository_vulnerability_alert" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookRepositoryVulnerabilityAlertEvent
Text
"secret_scanning_alert" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookSecretScanningAlert
Text
"security_advisory" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookSecurityAdvisoryEvent
Text
"sponsorship" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookSponsorship
Text
"star" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookStarEvent
Text
"status" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookStatusEvent
Text
"team" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookTeamEvent
Text
"team_add" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookTeamAddEvent
Text
"watch" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookWatchEvent
Text
"workflow_dispatch" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookWorkflowDispatch
Text
"workflow_run" -> RepoWebhookEvent -> Parser RepoWebhookEvent
forall a. a -> Parser a
forall (f :: * -> *) a. Applicative f => a -> f a
pure RepoWebhookEvent
WebhookWorkflowRun
Text
_ -> String -> Parser RepoWebhookEvent
forall a. String -> Parser a
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 a b. Parser (a -> b) -> Parser a -> Parser b
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 a b. Parser (a -> b) -> Parser a -> Parser b
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 a b. Parser (a -> b) -> Parser a -> Parser b
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 a b. Parser (a -> b) -> Parser a -> Parser b
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 a b. Parser (a -> b) -> Parser a -> Parser b
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 a b. Parser (a -> b) -> Parser a -> Parser b
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 a b. Parser (a -> b) -> Parser a -> Parser b
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 a b. Parser (a -> b) -> Parser a -> Parser b
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 a b. Parser (a -> b) -> Parser a -> Parser b
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 a b. Parser (a -> b) -> Parser a -> Parser b
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 a b. Parser (a -> b) -> Parser a -> Parser b
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
forall v. ToJSON v => Key -> v -> Pair
.= Text
name
, Key
"config" Key -> Map Text Text -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
.= Map Text Text
config
, Key
"events" Key -> Maybe (Vector RepoWebhookEvent) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
.= Maybe (Vector RepoWebhookEvent)
events
, Key
"active" Key -> Maybe Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
.= 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
forall v. ToJSON v => Key -> v -> Pair
.= Maybe (Map Text Text)
config
, Key
"events" Key -> Maybe (Vector RepoWebhookEvent) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
.= Maybe (Vector RepoWebhookEvent)
events
, Key
"add_events" Key -> Maybe (Vector RepoWebhookEvent) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
.= Maybe (Vector RepoWebhookEvent)
addEvents
, Key
"remove_events" Key -> Maybe (Vector RepoWebhookEvent) -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
.= Maybe (Vector RepoWebhookEvent)
removeEvents
, Key
"active" Key -> Maybe Bool -> Pair
forall kv v. (KeyValue kv, ToJSON v) => Key -> v -> kv
forall v. ToJSON v => Key -> v -> Pair
.= 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 a b. Parser (a -> b) -> Parser a -> Parser b
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 a b. Parser (a -> b) -> Parser a -> Parser b
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"