Record Class ReleaseSnapshots.Request

java.lang.Object
java.lang.Record
com.egoge.ai.atlas.plugin.ReleaseSnapshots.Request
Record Components:
version - the version, MAJOR.MINOR.PATCH
versionTracksApiMajor - whether the version's major must equal the contract's apiMajor
policy - the release policy
baseline - the accepted baseline
emittedIr - the IR the build emitted, or the empty document when it declares nothing
artifacts - the class output's snapshotted artifacts ( ContractResources.snapshotted), keyed by snapshot file name, such as openapi-v2.json or mcp-tools.json
contractResourcesJson - the class output's contract-resources manifest, verbatim
tagName - the resolved git tag name this release is proved by, such as "v1.4.0" (F1), recorded verbatim in release.json
published - the versions, among the releases already on disk, that a proved git tag backs (F1, D10.1): the plugin's PublishedHistory verdict, as only the plugin can read git. Only a published release earns deprecation credit; the newest release on disk missing from this set is pending, and this release refuses to be made until it is tagged.
Enclosing class:
ReleaseSnapshots

public static record ReleaseSnapshots.Request(String version, boolean versionTracksApiMajor, com.egoge.ai.atlas.processor.release.ReleasePolicy.Policy policy, Path baseline, byte[] emittedIr, Map<String,byte[]> artifacts, String contractResourcesJson, String tagName, Set<com.egoge.ai.atlas.processor.release.ReleaseVersion> published) extends Record
What to release.
  • Constructor Details

    • Request

      public Request(String version, boolean versionTracksApiMajor, com.egoge.ai.atlas.processor.release.ReleasePolicy.Policy policy, Path baseline, byte[] emittedIr, Map<String,byte[]> artifacts, String contractResourcesJson, String tagName, Set<com.egoge.ai.atlas.processor.release.ReleaseVersion> published)
      Creates an instance of a Request record class.
      Parameters:
      version - the value for the version record component
      versionTracksApiMajor - the value for the versionTracksApiMajor record component
      policy - the value for the policy record component
      baseline - the value for the baseline record component
      emittedIr - the value for the emittedIr record component
      artifacts - the value for the artifacts record component
      contractResourcesJson - the value for the contractResourcesJson record component
      tagName - the value for the tagName record component
      published - the value for the published record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • versionTracksApiMajor

      public boolean versionTracksApiMajor()
      Returns the value of the versionTracksApiMajor record component.
      Returns:
      the value of the versionTracksApiMajor record component
    • policy

      public com.egoge.ai.atlas.processor.release.ReleasePolicy.Policy policy()
      Returns the value of the policy record component.
      Returns:
      the value of the policy record component
    • baseline

      public Path baseline()
      Returns the value of the baseline record component.
      Returns:
      the value of the baseline record component
    • emittedIr

      public byte[] emittedIr()
      Returns the value of the emittedIr record component.
      Returns:
      the value of the emittedIr record component
    • artifacts

      public Map<String,byte[]> artifacts()
      Returns the value of the artifacts record component.
      Returns:
      the value of the artifacts record component
    • contractResourcesJson

      public String contractResourcesJson()
      Returns the value of the contractResourcesJson record component.
      Returns:
      the value of the contractResourcesJson record component
    • tagName

      public String tagName()
      Returns the value of the tagName record component.
      Returns:
      the value of the tagName record component
    • published

      public Set<com.egoge.ai.atlas.processor.release.ReleaseVersion> published()
      Returns the value of the published record component.
      Returns:
      the value of the published record component