hercules-ci-api-0.6.0.1: Hercules CI API definition with Servant
Safe HaskellNone
LanguageHaskell2010

Hercules.API.Projects.Job

Documentation

data Job Source #

Instances

Instances details
Eq Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

(==) :: Job -> Job -> Bool #

(/=) :: Job -> Job -> Bool #

Show Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

showsPrec :: Int -> Job -> ShowS #

show :: Job -> String #

showList :: [Job] -> ShowS #

Generic Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

Associated Types

type Rep Job :: Type -> Type #

Methods

from :: Job -> Rep Job x #

to :: Rep Job x -> Job #

ToJSON Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

FromJSON Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

NFData Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

rnf :: Job -> () #

ToSchema Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

type Rep Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

type Rep Job = D1 ('MetaData "Job" "Hercules.API.Projects.Job" "hercules-ci-api-0.6.0.1-L0iUsBHZSJOKN1YKeFqdwV" 'False) (C1 ('MetaCons "Job" 'PrefixI 'True) ((((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Id Job)) :*: S1 ('MetaSel ('Just "projectId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Id Project))) :*: (S1 ('MetaSel ('Just "index") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int64) :*: (S1 ('MetaSel ('Just "repoId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Id Repo)) :*: S1 ('MetaSel ('Just "startTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UTCTime)))) :*: ((S1 ('MetaSel ('Just "endTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe UTCTime)) :*: S1 ('MetaSel ('Just "jobPhase") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 JobPhase)) :*: (S1 ('MetaSel ('Just "isCancelled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: (S1 ('MetaSel ('Just "jobStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 JobStatus) :*: S1 ('MetaSel ('Just "evaluationStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 JobStatus))))) :*: (((S1 ('MetaSel ('Just "derivationStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 JobStatus) :*: S1 ('MetaSel ('Just "effectsStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 JobStatus)) :*: (S1 ('MetaSel ('Just "evaluationId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Id Evaluation)) :*: (S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 GitCommitSource) :*: S1 ('MetaSel ('Just "rerunOf") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Id Job)))))) :*: ((S1 ('MetaSel ('Just "rerunOfIndex") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "startedBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Id Account)))) :*: (S1 ('MetaSel ('Just "cancelledBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe (Id Account))) :*: (S1 ('MetaSel ('Just "mayCancel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool) :*: S1 ('MetaSel ('Just "mayRerun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Bool)))))))

data GitCommitSource Source #

Instances

Instances details
Eq GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

Show GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

Generic GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

Associated Types

type Rep GitCommitSource :: Type -> Type #

ToJSON GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

FromJSON GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

NFData GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

rnf :: GitCommitSource -> () #

ToSchema GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

type Rep GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

type Rep GitCommitSource = D1 ('MetaData "GitCommitSource" "Hercules.API.Projects.Job" "hercules-ci-api-0.6.0.1-L0iUsBHZSJOKN1YKeFqdwV" 'False) (C1 ('MetaCons "GitCommitSource" 'PrefixI 'True) ((S1 ('MetaSel ('Just "revision") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "ref") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))) :*: (S1 ('MetaSel ('Just "gitCommitterName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "committer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Account)) :*: S1 ('MetaSel ('Just "link") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))))

data JobPhase Source #

Instances

Instances details
Eq JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.Job

Show JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.Job

Generic JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.Job

Associated Types

type Rep JobPhase :: Type -> Type #

Methods

from :: JobPhase -> Rep JobPhase x #

to :: Rep JobPhase x -> JobPhase #

ToJSON JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.Job

FromJSON JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.Job

NFData JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

rnf :: JobPhase -> () #

ToSchema JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.Job

type Rep JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.Job

type Rep JobPhase = D1 ('MetaData "JobPhase" "Hercules.API.Projects.Job" "hercules-ci-api-0.6.0.1-L0iUsBHZSJOKN1YKeFqdwV" 'False) ((C1 ('MetaCons "Queued" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Evaluating" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Building" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Effects" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Done" 'PrefixI 'False) (U1 :: Type -> Type))))

data JobStatus Source #

Constructors

Pending 
Failure 
Success 

Instances

Instances details
Eq JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.Job

Show JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.Job

Generic JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.Job

Associated Types

type Rep JobStatus :: Type -> Type #

Semigroup JobStatus Source #

Whichever is "worse": Failure wins out, otherwise Pending wins out, otherwise all are Success.

Instance details

Defined in Hercules.API.Projects.Job

Monoid JobStatus Source #

mappend: Whichever is "worse": Failure wins out, otherwise Pending wins out, otherwise all are Success.

mempty: Success

Instance details

Defined in Hercules.API.Projects.Job

ToJSON JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.Job

FromJSON JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.Job

NFData JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

rnf :: JobStatus -> () #

ToSchema JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.Job

type Rep JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.Job

type Rep JobStatus = D1 ('MetaData "JobStatus" "Hercules.API.Projects.Job" "hercules-ci-api-0.6.0.1-L0iUsBHZSJOKN1YKeFqdwV" 'False) (C1 ('MetaCons "Pending" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Failure" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Success" 'PrefixI 'False) (U1 :: Type -> Type)))

data ProjectAndJobs Source #

Constructors

ProjectAndJobs 

Fields

Instances

Instances details
Eq ProjectAndJobs Source # 
Instance details

Defined in Hercules.API.Projects.Job

Show ProjectAndJobs Source # 
Instance details

Defined in Hercules.API.Projects.Job

Generic ProjectAndJobs Source # 
Instance details

Defined in Hercules.API.Projects.Job

Associated Types

type Rep ProjectAndJobs :: Type -> Type #

ToJSON ProjectAndJobs Source # 
Instance details

Defined in Hercules.API.Projects.Job

FromJSON ProjectAndJobs Source # 
Instance details

Defined in Hercules.API.Projects.Job

NFData ProjectAndJobs Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

rnf :: ProjectAndJobs -> () #

ToSchema ProjectAndJobs Source # 
Instance details

Defined in Hercules.API.Projects.Job

type Rep ProjectAndJobs Source # 
Instance details

Defined in Hercules.API.Projects.Job

type Rep ProjectAndJobs = D1 ('MetaData "ProjectAndJobs" "Hercules.API.Projects.Job" "hercules-ci-api-0.6.0.1-L0iUsBHZSJOKN1YKeFqdwV" 'False) (C1 ('MetaCons "ProjectAndJobs" 'PrefixI 'True) (S1 ('MetaSel ('Just "project") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Project) :*: S1 ('MetaSel ('Just "jobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Job])))