Class GitOpsValidateTask

java.lang.Object
io.apicurio.registry.rest.client.models.GitOpsValidateTask
All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable

@Generated("com.microsoft.kiota") public class GitOpsValidateTask extends Object implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable
Represents a dry-run validation task with its current state and results.
  • Constructor Details

    • GitOpsValidateTask

      public GitOpsValidateTask()
      Instantiates a new GitOpsValidateTask and sets the default values.
  • Method Details

    • createFromDiscriminatorValue

      @Nonnull public static GitOpsValidateTask createFromDiscriminatorValue(@Nonnull com.microsoft.kiota.serialization.ParseNode parseNode)
      Creates a new instance of the appropriate class based on discriminator value
      Parameters:
      parseNode - The parse node to use to read the discriminator value and create the object
      Returns:
      a GitOpsValidateTask
    • getAdditionalData

      @Nonnull public Map<String,Object> getAdditionalData()
      Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Specified by:
      getAdditionalData in interface com.microsoft.kiota.serialization.AdditionalDataHolder
      Returns:
      a Map<String,Object>
    • getArtifactCount

      @Nullable public Integer getArtifactCount()
      Gets the artifactCount property value. Number of artifacts loaded during validation. Only present when state is `completed`.
      Returns:
      a Integer
    • getCompletedAt

      @Nullable public OffsetDateTime getCompletedAt()
      Gets the completedAt property value. ISO 8601 timestamp of when the task completed. Only present when state is `completed` or `failed`.
      Returns:
      a OffsetDateTime
    • getCreatedAt

      @Nullable public OffsetDateTime getCreatedAt()
      Gets the createdAt property value. ISO 8601 timestamp of when the task was created.
      Returns:
      a OffsetDateTime
    • getErrors

      @Nullable public List<GitOpsError> getErrors()
      Gets the errors property value. Validation errors. Empty if validation passed.
      Returns:
      a List<GitOpsError>
    • getFieldDeserializers

      @Nonnull public Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>> getFieldDeserializers()
      The deserialization information for the current model
      Specified by:
      getFieldDeserializers in interface com.microsoft.kiota.serialization.Parsable
      Returns:
      a Map<String,Consumer<com.microsoft.kiota.serialization.ParseNode>>
    • getGroupCount

      @Nullable public Integer getGroupCount()
      Gets the groupCount property value. Number of groups loaded during validation. Only present when state is `completed`.
      Returns:
      a Integer
    • getRef

      @Nullable public String getRef()
      Gets the ref property value. Git ref being validated.
      Returns:
      a String
    • getRepoId

      @Nullable public String getRepoId()
      Gets the repoId property value. Repository ID being validated.
      Returns:
      a String
    • getResult

      @Nullable public GitOpsValidateTaskResult getResult()
      Gets the result property value. Validation result: `success` (all checks passed) or `failure` (validation errors found). Only present when state is `completed`.
      Returns:
      a GitOpsValidateTaskResult
    • getState

      @Nullable public GitOpsValidateTaskState getState()
      Gets the state property value. 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).
      Returns:
      a GitOpsValidateTaskState
    • getTaskId

      @Nullable public String getTaskId()
      Gets the taskId property value. Unique identifier for the validation task.
      Returns:
      a String
    • getType

      @Nullable public String getType()
      Gets the type property value. Validation type (`pull` or `push`).
      Returns:
      a String
    • getVersionCount

      @Nullable public Integer getVersionCount()
      Gets the versionCount property value. Number of artifact versions loaded during validation. Only present when state is `completed`.
      Returns:
      a Integer
    • serialize

      public void serialize(@Nonnull com.microsoft.kiota.serialization.SerializationWriter writer)
      Serializes information the current object
      Specified by:
      serialize in interface com.microsoft.kiota.serialization.Parsable
      Parameters:
      writer - Serialization writer to use to serialize this model
    • setAdditionalData

      public void setAdditionalData(@Nullable Map<String,Object> value)
      Sets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
      Parameters:
      value - Value to set for the AdditionalData property.
    • setArtifactCount

      public void setArtifactCount(@Nullable Integer value)
      Sets the artifactCount property value. Number of artifacts loaded during validation. Only present when state is `completed`.
      Parameters:
      value - Value to set for the artifactCount property.
    • setCompletedAt

      public void setCompletedAt(@Nullable OffsetDateTime value)
      Sets the completedAt property value. ISO 8601 timestamp of when the task completed. Only present when state is `completed` or `failed`.
      Parameters:
      value - Value to set for the completedAt property.
    • setCreatedAt

      public void setCreatedAt(@Nullable OffsetDateTime value)
      Sets the createdAt property value. ISO 8601 timestamp of when the task was created.
      Parameters:
      value - Value to set for the createdAt property.
    • setErrors

      public void setErrors(@Nullable List<GitOpsError> value)
      Sets the errors property value. Validation errors. Empty if validation passed.
      Parameters:
      value - Value to set for the errors property.
    • setGroupCount

      public void setGroupCount(@Nullable Integer value)
      Sets the groupCount property value. Number of groups loaded during validation. Only present when state is `completed`.
      Parameters:
      value - Value to set for the groupCount property.
    • setRef

      public void setRef(@Nullable String value)
      Sets the ref property value. Git ref being validated.
      Parameters:
      value - Value to set for the ref property.
    • setRepoId

      public void setRepoId(@Nullable String value)
      Sets the repoId property value. Repository ID being validated.
      Parameters:
      value - Value to set for the repoId property.
    • setResult

      public void setResult(@Nullable GitOpsValidateTaskResult value)
      Sets the result property value. Validation result: `success` (all checks passed) or `failure` (validation errors found). Only present when state is `completed`.
      Parameters:
      value - Value to set for the result property.
    • setState

      public void setState(@Nullable GitOpsValidateTaskState value)
      Sets the state property value. 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).
      Parameters:
      value - Value to set for the state property.
    • setTaskId

      public void setTaskId(@Nullable String value)
      Sets the taskId property value. Unique identifier for the validation task.
      Parameters:
      value - Value to set for the taskId property.
    • setType

      public void setType(@Nullable String value)
      Sets the type property value. Validation type (`pull` or `push`).
      Parameters:
      value - Value to set for the type property.
    • setVersionCount

      public void setVersionCount(@Nullable Integer value)
      Sets the versionCount property value. Number of artifact versions loaded during validation. Only present when state is `completed`.
      Parameters:
      value - Value to set for the versionCount property.