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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GitOpsValidateTaskcreateFromDiscriminatorValue(com.microsoft.kiota.serialization.ParseNode parseNode) Creates a new instance of the appropriate class based on discriminator valueGets the AdditionalData property value.Gets the artifactCount property value.Gets the completedAt property value.Gets the createdAt property value.Gets the errors property value.The deserialization information for the current modelGets the groupCount property value.getRef()Gets the ref property value.Gets the repoId property value.Gets the result property value.getState()Gets the state property value.Gets the taskId property value.getType()Gets the type property value.Gets the versionCount property value.voidserialize(com.microsoft.kiota.serialization.SerializationWriter writer) Serializes information the current objectvoidsetAdditionalData(Map<String, Object> value) Sets the AdditionalData property value.voidsetArtifactCount(Integer value) Sets the artifactCount property value.voidsetCompletedAt(OffsetDateTime value) Sets the completedAt property value.voidsetCreatedAt(OffsetDateTime value) Sets the createdAt property value.voidsetErrors(List<GitOpsError> value) Sets the errors property value.voidsetGroupCount(Integer value) Sets the groupCount property value.voidSets the ref property value.voidSets the repoId property value.voidSets the result property value.voidsetState(GitOpsValidateTaskState value) Sets the state property value.voidSets the taskId property value.voidSets the type property value.voidsetVersionCount(Integer value) Sets the versionCount property value.
-
Constructor Details
-
GitOpsValidateTask
public GitOpsValidateTask()Instantiates a newGitOpsValidateTaskand 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
Gets the AdditionalData property value. Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. -
getArtifactCount
Gets the artifactCount property value. Number of artifacts loaded during validation. Only present when state is `completed`.- Returns:
- a
Integer
-
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
Gets the createdAt property value. ISO 8601 timestamp of when the task was created.- Returns:
- a
OffsetDateTime
-
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 -
getGroupCount
Gets the groupCount property value. Number of groups loaded during validation. Only present when state is `completed`.- Returns:
- a
Integer
-
getRef
Gets the ref property value. Git ref being validated.- Returns:
- a
String
-
getRepoId
Gets the repoId property value. Repository ID being validated.- Returns:
- a
String
-
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
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
Gets the taskId property value. Unique identifier for the validation task.- Returns:
- a
String
-
getType
Gets the type property value. Validation type (`pull` or `push`).- Returns:
- a
String
-
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:
serializein interfacecom.microsoft.kiota.serialization.Parsable- Parameters:
writer- Serialization writer to use to serialize this model
-
setAdditionalData
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
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
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
Sets the createdAt property value. ISO 8601 timestamp of when the task was created.- Parameters:
value- Value to set for the createdAt property.
-
setErrors
Sets the errors property value. Validation errors. Empty if validation passed.- Parameters:
value- Value to set for the errors property.
-
setGroupCount
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
Sets the ref property value. Git ref being validated.- Parameters:
value- Value to set for the ref property.
-
setRepoId
Sets the repoId property value. Repository ID being validated.- Parameters:
value- Value to set for the repoId property.
-
setResult
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
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
Sets the taskId property value. Unique identifier for the validation task.- Parameters:
value- Value to set for the taskId property.
-
setType
Sets the type property value. Validation type (`pull` or `push`).- Parameters:
value- Value to set for the type property.
-
setVersionCount
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.
-