Package com.egoge.ai.atlas.plugin
Record Class ReleaseSnapshots.Request
java.lang.Object
java.lang.Record
com.egoge.ai.atlas.plugin.ReleaseSnapshots.Request
- Record Components:
version- the version,MAJOR.MINOR.PATCHversionTracksApiMajor- whether the version's major must equal the contract'sapiMajorpolicy- the release policybaseline- the accepted baselineemittedIr- the IR the build emitted, or the empty document when it declares nothingartifacts- the class output's snapshotted artifacts (ContractResources.snapshotted), keyed by snapshot file name, such asopenapi-v2.jsonormcp-tools.jsoncontractResourcesJson- the class output's contract-resources manifest, verbatimtagName- the resolved git tag name this release is proved by, such as"v1.4.0"(F1), recorded verbatim inrelease.jsonpublished- the versions, among the releases already on disk, that a proved git tag backs (F1, D10.1): the plugin'sPublishedHistoryverdict, 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 Summary
ConstructorsConstructorDescriptionRequest(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 aRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theartifactsrecord component.baseline()Returns the value of thebaselinerecord component.Returns the value of thecontractResourcesJsonrecord component.byte[]Returns the value of theemittedIrrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.com.egoge.ai.atlas.processor.release.ReleasePolicy.Policypolicy()Returns the value of thepolicyrecord component.Set<com.egoge.ai.atlas.processor.release.ReleaseVersion>Returns the value of thepublishedrecord component.tagName()Returns the value of thetagNamerecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.booleanReturns the value of theversionTracksApiMajorrecord component.
-
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 aRequestrecord class.- Parameters:
version- the value for theversionrecord componentversionTracksApiMajor- the value for theversionTracksApiMajorrecord componentpolicy- the value for thepolicyrecord componentbaseline- the value for thebaselinerecord componentemittedIr- the value for theemittedIrrecord componentartifacts- the value for theartifactsrecord componentcontractResourcesJson- the value for thecontractResourcesJsonrecord componenttagName- the value for thetagNamerecord componentpublished- the value for thepublishedrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
versionTracksApiMajor
public boolean versionTracksApiMajor()Returns the value of theversionTracksApiMajorrecord component.- Returns:
- the value of the
versionTracksApiMajorrecord component
-
policy
public com.egoge.ai.atlas.processor.release.ReleasePolicy.Policy policy()Returns the value of thepolicyrecord component.- Returns:
- the value of the
policyrecord component
-
baseline
Returns the value of thebaselinerecord component.- Returns:
- the value of the
baselinerecord component
-
emittedIr
public byte[] emittedIr()Returns the value of theemittedIrrecord component.- Returns:
- the value of the
emittedIrrecord component
-
artifacts
Returns the value of theartifactsrecord component.- Returns:
- the value of the
artifactsrecord component
-
contractResourcesJson
Returns the value of thecontractResourcesJsonrecord component.- Returns:
- the value of the
contractResourcesJsonrecord component
-
tagName
Returns the value of thetagNamerecord component.- Returns:
- the value of the
tagNamerecord component
-
published
Returns the value of thepublishedrecord component.- Returns:
- the value of the
publishedrecord component
-