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 Details

    • GitOpsStatus

      public GitOpsStatus()
      Instantiates a new GitOpsStatus and 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

      @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 in the last successful sync.
      Returns:
      a Integer
    • getErrors

      @Nullable public List<GitOpsError> 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
      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 in the last successful sync.
      Returns:
      a Integer
    • getLastSuccessfulSync

      @Nullable public OffsetDateTime getLastSuccessfulSync()
      Gets the lastSuccessfulSync property value. ISO 8601 timestamp of the last successful synchronization.
      Returns:
      a OffsetDateTime
    • getLastSyncAttempt

      @Nullable public OffsetDateTime getLastSyncAttempt()
      Gets the lastSyncAttempt property value. ISO 8601 timestamp of the last synchronization attempt (successful or not).
      Returns:
      a OffsetDateTime
    • getSources

      @Nullable public GitOpsStatusSources 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

      @Nullable public String 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

      @Nullable public Integer 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:
      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 in the last successful sync.
      Parameters:
      value - Value to set for the artifactCount property.
    • setErrors

      public void setErrors(@Nullable List<GitOpsError> value)
      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

      public void setGroupCount(@Nullable Integer value)
      Sets the groupCount property value. Number of groups loaded in the last successful sync.
      Parameters:
      value - Value to set for the groupCount property.
    • setLastSuccessfulSync

      public void setLastSuccessfulSync(@Nullable OffsetDateTime value)
      Sets the lastSuccessfulSync property value. ISO 8601 timestamp of the last successful synchronization.
      Parameters:
      value - Value to set for the lastSuccessfulSync property.
    • setLastSyncAttempt

      public void setLastSyncAttempt(@Nullable OffsetDateTime value)
      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

      public void setSources(@Nullable GitOpsStatusSources value)
      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

      public void setSyncState(@Nullable String value)
      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

      public void setVersionCount(@Nullable Integer value)
      Sets the versionCount property value. Number of artifact versions loaded in the last successful sync.
      Parameters:
      value - Value to set for the versionCount property.