hercules-ci-api-0.8.4.0: Hercules CI API definition with Servant
Safe HaskellSafe-Inferred
LanguageHaskell2010

Hercules.API.Projects.Job

Documentation

data Job Source #

Instances

Instances details
FromJSON Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

ToJSON Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

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 #

Show Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

showsPrec :: Int -> Job -> ShowS #

show :: Job -> String #

showList :: [Job] -> ShowS #

NFData Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

rnf :: Job -> () #

Eq Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

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

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

ToSchema Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

ToSchema Job Source # 
Instance details

Defined in Hercules.API.Projects.Job

HasField "get" PagedJobs (PagedResponse Job) Source # 
Instance details

Defined in Hercules.API.Projects

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.8.4.0-inplace" '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 "repoName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Name Project)) :*: (S1 ('MetaSel ('Just "ownerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Name Account)) :*: S1 ('MetaSel ('Just "forgeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Name Forge))))) :*: ((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 "extraInputs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map Text ImmutableInput)) :*: S1 ('MetaSel ('Just "jobType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 JobType)))) :*: ((S1 ('MetaSel ('Just "jobName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: (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 JobType Source #

Constructors

Config 
Legacy 
OnPush 
OnSchedule 

Instances

Instances details
FromJSON JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

ToJSON JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

Bounded JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

Enum JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

Generic JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

Associated Types

type Rep JobType :: Type -> Type #

Methods

from :: JobType -> Rep JobType x #

to :: Rep JobType x -> JobType #

Read JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

Show JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

NFData JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

rnf :: JobType -> () #

Eq JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

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

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

FromHttpApiData JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

ToHttpApiData JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

ToParamSchema JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

ToSchema JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

ToParamSchema JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

toParamSchema :: forall (t :: SwaggerKind Type). Proxy JobType -> ParamSchema t #

ToSchema JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

type Rep JobType Source # 
Instance details

Defined in Hercules.API.Projects.Job

type Rep JobType = D1 ('MetaData "JobType" "Hercules.API.Projects.Job" "hercules-ci-api-0.8.4.0-inplace" 'False) ((C1 ('MetaCons "Config" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Legacy" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "OnPush" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OnSchedule" 'PrefixI 'False) (U1 :: Type -> Type)))

data ProjectAndJobs Source #

Constructors

ProjectAndJobs 

Fields

Instances

Instances details
FromJSON ProjectAndJobs Source # 
Instance details

Defined in Hercules.API.Projects.Job

ToJSON 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 #

Show ProjectAndJobs Source # 
Instance details

Defined in Hercules.API.Projects.Job

NFData ProjectAndJobs Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

rnf :: ProjectAndJobs -> () #

Eq ProjectAndJobs Source # 
Instance details

Defined in Hercules.API.Projects.Job

ToSchema ProjectAndJobs Source # 
Instance details

Defined in Hercules.API.Projects.Job

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.8.4.0-inplace" 'False) (C1 ('MetaCons "ProjectAndJobs" 'PrefixI 'True) (S1 ('MetaSel ('Just "project") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Project) :*: S1 ('MetaSel ('Just "jobs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Job])))

data GitCommitSource Source #

Instances

Instances details
FromJSON GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

ToJSON 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 #

Show GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

NFData GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

Methods

rnf :: GitCommitSource -> () #

Eq GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

ToSchema GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

ToSchema GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

type Rep GitCommitSource Source # 
Instance details

Defined in Hercules.API.Projects.Job

data JobStatus Source #

Constructors

Pending 
Failure 
Success 

Instances

Instances details
FromJSON JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

ToJSON JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

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.SimpleJob

Semigroup JobStatus Source #

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

Instance details

Defined in Hercules.API.Projects.SimpleJob

Generic JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

Associated Types

type Rep JobStatus :: Type -> Type #

Show JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

NFData JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

Methods

rnf :: JobStatus -> () #

Eq JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

ToSchema JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

ToSchema JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

type Rep JobStatus Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

type Rep JobStatus = D1 ('MetaData "JobStatus" "Hercules.API.Projects.SimpleJob" "hercules-ci-api-0.8.4.0-inplace" '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 JobPhase Source #

Instances

Instances details
FromJSON JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

ToJSON JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

Generic JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

Associated Types

type Rep JobPhase :: Type -> Type #

Methods

from :: JobPhase -> Rep JobPhase x #

to :: Rep JobPhase x -> JobPhase #

Show JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

NFData JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

Methods

rnf :: JobPhase -> () #

Eq JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

ToSchema JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

ToSchema JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

type Rep JobPhase Source # 
Instance details

Defined in Hercules.API.Projects.SimpleJob

type Rep JobPhase = D1 ('MetaData "JobPhase" "Hercules.API.Projects.SimpleJob" "hercules-ci-api-0.8.4.0-inplace" '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))))