Class GitOpsValidateTask

java.lang.Object
io.apicurio.registry.rest.v3.beans.GitOpsValidateTask

@Generated("jsonschema2pojo") public class GitOpsValidateTask extends Object
Root Type for GitOpsValidateTask

Represents a dry-run validation task with its current state and results.

  • Constructor Details

    • GitOpsValidateTask

      public GitOpsValidateTask()
  • Method Details

    • getTaskId

      public String getTaskId()
      Unique identifier for the validation task. (Required)
    • setTaskId

      public void setTaskId(String taskId)
      Unique identifier for the validation task. (Required)
    • getType

      public String getType()
      Validation type (`pull` or `push`).
    • setType

      public void setType(String type)
      Validation type (`pull` or `push`).
    • getRepoId

      public String getRepoId()
      Repository ID being validated.
    • setRepoId

      public void setRepoId(String repoId)
      Repository ID being validated.
    • getRef

      public String getRef()
      Git ref being validated.
    • setRef

      public void setRef(String ref)
      Git ref being validated.
    • getState

      public GitOpsValidateTask.State getState()
      Current task state: `pending` (queued, waiting for capacity), `submitted` (request sent to sidecar), `fetching` (sidecar is cloning), `validating` (registry is loading and validating), `completed` (finished with results), `failed` (an error occurred). (Required)
    • setState

      public void setState(GitOpsValidateTask.State state)
      Current task state: `pending` (queued, waiting for capacity), `submitted` (request sent to sidecar), `fetching` (sidecar is cloning), `validating` (registry is loading and validating), `completed` (finished with results), `failed` (an error occurred). (Required)
    • getResult

      public GitOpsValidateTask.Result getResult()
      Validation result: `success` (all checks passed) or `failure` (validation errors found). Only present when state is `completed`.
    • setResult

      public void setResult(GitOpsValidateTask.Result result)
      Validation result: `success` (all checks passed) or `failure` (validation errors found). Only present when state is `completed`.
    • getCreatedAt

      public Date getCreatedAt()
      ISO 8601 timestamp of when the task was created.
    • setCreatedAt

      public void setCreatedAt(Date createdAt)
      ISO 8601 timestamp of when the task was created.
    • getCompletedAt

      public Date getCompletedAt()
      ISO 8601 timestamp of when the task completed. Only present when state is `completed` or `failed`.
    • setCompletedAt

      public void setCompletedAt(Date completedAt)
      ISO 8601 timestamp of when the task completed. Only present when state is `completed` or `failed`.
    • getGroupCount

      public Integer getGroupCount()
      Number of groups loaded during validation. Only present when state is `completed`.
    • setGroupCount

      public void setGroupCount(Integer groupCount)
      Number of groups loaded during validation. Only present when state is `completed`.
    • getArtifactCount

      public Integer getArtifactCount()
      Number of artifacts loaded during validation. Only present when state is `completed`.
    • setArtifactCount

      public void setArtifactCount(Integer artifactCount)
      Number of artifacts loaded during validation. Only present when state is `completed`.
    • getVersionCount

      public Integer getVersionCount()
      Number of artifact versions loaded during validation. Only present when state is `completed`.
    • setVersionCount

      public void setVersionCount(Integer versionCount)
      Number of artifact versions loaded during validation. Only present when state is `completed`.
    • getErrors

      public List<GitOpsError> getErrors()
      Validation errors. Empty if validation passed.
    • setErrors

      public void setErrors(List<GitOpsError> errors)
      Validation errors. Empty if validation passed.