Class GitOpsStatus
java.lang.Object
io.apicurio.registry.rest.client.models.GitOpsStatus
- All Implemented Interfaces:
com.microsoft.kiota.serialization.AdditionalDataHolder,com.microsoft.kiota.serialization.Parsable
@Generated("com.microsoft.kiota")
public class GitOpsStatus
extends Object
implements com.microsoft.kiota.serialization.AdditionalDataHolder, com.microsoft.kiota.serialization.Parsable
Describes the current synchronization status of the GitOps storage backend. This includes the current sync state, the Git commit marker, load statistics, and any errors from the last sync attempt.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GitOpsStatuscreateFromDiscriminatorValue(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 errors property value.The deserialization information for the current modelGets the groupCount property value.Gets the lastSuccessfulSync property value.Gets the lastSyncAttempt property value.Gets the sources property value.Gets the syncState 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.voidsetErrors(List<GitOpsError> value) Sets the errors property value.voidsetGroupCount(Integer value) Sets the groupCount property value.voidSets the lastSuccessfulSync property value.voidsetLastSyncAttempt(OffsetDateTime value) Sets the lastSyncAttempt property value.voidsetSources(GitOpsStatusSources value) Sets the sources property value.voidsetSyncState(String value) Sets the syncState property value.voidsetVersionCount(Integer value) Sets the versionCount property value.
-
Constructor Details
-
GitOpsStatus
public GitOpsStatus()Instantiates a newGitOpsStatusand sets the default values.
-
-
Method Details
-
createFromDiscriminatorValue
@Nonnull public static GitOpsStatus 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
GitOpsStatus
-
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 in the last successful sync.- Returns:
- a
Integer
-
getErrors
Gets the errors property value. Errors from the last failed load attempt. Empty if the last load was successful.- 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 in the last successful sync.- Returns:
- a
Integer
-
getLastSuccessfulSync
Gets the lastSuccessfulSync property value. ISO 8601 timestamp of the last successful synchronization.- Returns:
- a
OffsetDateTime
-
getLastSyncAttempt
Gets the lastSyncAttempt property value. ISO 8601 timestamp of the last synchronization attempt (successful or not).- Returns:
- a
OffsetDateTime
-
getSources
Gets the sources property value. Per-source identifiers. Maps source ID (e.g., repository ID, Kubernetes server/namespace) to its current marker (e.g., abbreviated commit SHA, resource version).- Returns:
- a
GitOpsStatusSources
-
getSyncState
Gets the syncState property value. The current synchronization state of the GitOps storage. Possible values: INITIALIZING (first load not yet completed), IDLE (serving latest data), LOADING (sync in progress), SWITCHING (data loaded, waiting for write lock to publish), ERROR (last sync or switch failed, serving previous data).- Returns:
- a
String
-
getVersionCount
Gets the versionCount property value. Number of artifact versions loaded in the last successful sync.- 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 in the last successful sync.- Parameters:
value- Value to set for the artifactCount property.
-
setErrors
Sets the errors property value. Errors from the last failed load attempt. Empty if the last load was successful.- Parameters:
value- Value to set for the errors property.
-
setGroupCount
Sets the groupCount property value. Number of groups loaded in the last successful sync.- Parameters:
value- Value to set for the groupCount property.
-
setLastSuccessfulSync
Sets the lastSuccessfulSync property value. ISO 8601 timestamp of the last successful synchronization.- Parameters:
value- Value to set for the lastSuccessfulSync property.
-
setLastSyncAttempt
Sets the lastSyncAttempt property value. ISO 8601 timestamp of the last synchronization attempt (successful or not).- Parameters:
value- Value to set for the lastSyncAttempt property.
-
setSources
Sets the sources property value. Per-source identifiers. Maps source ID (e.g., repository ID, Kubernetes server/namespace) to its current marker (e.g., abbreviated commit SHA, resource version).- Parameters:
value- Value to set for the sources property.
-
setSyncState
Sets the syncState property value. The current synchronization state of the GitOps storage. Possible values: INITIALIZING (first load not yet completed), IDLE (serving latest data), LOADING (sync in progress), SWITCHING (data loaded, waiting for write lock to publish), ERROR (last sync or switch failed, serving previous data).- Parameters:
value- Value to set for the syncState property.
-
setVersionCount
Sets the versionCount property value. Number of artifact versions loaded in the last successful sync.- Parameters:
value- Value to set for the versionCount property.
-