Add SIG soft-delete GET/LIST fields for gallery image versions (2026-03-03)#44434
Open
anuraganand202 wants to merge 1 commit into
Open
Conversation
…03-03) Adds read-only soft-delete metadata to the Compute Gallery API in api-version 2026-03-03: - SharedGalleryImageVersionProperties / CommunityGalleryImageVersionProperties: add consumptionEndTime and imageState (new GalleryImageVersionState enum: Active, SoftDeleted). - GallerySoftDeletedResourceProperties (SoftDeletedResource_ListByArtifactName): add consumptionEndTime and hardDeletionTargetTime. All fields are gated with @added(Versions.v2026_03_03) and are read-only. Examples updated to demonstrate active (LIST) and soft-deleted (GET) states. Swagger regenerated via tsp compile. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Next Steps to MergeNext steps that must be taken to merge this PR:
Comment generated by summarize-checks workflow run. |
API Change CheckAPIView identified API level changes in this PR and created the following API reviews
Comment generated by After APIView workflow run. |
Contributor
|
@anuraganand202 please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
As part of the SIG Soft Delete feature, the GET/LIST responses for shared and community gallery image versions, and the soft-deleted artifacts LIST, now expose soft-delete metadata. This PR adds the corresponding read-only properties to the Compute Gallery (
Microsoft.Compute) API in api-version 2026-03-03.All new members are gated with
@added(Versions.v2026_03_03), so they appear only in the2026-03-03contract and do not alter previously published api-versions. This follows the same pattern as PR #44214 (which addedretentionPeriodInDays/gracePeriodInDaystoSoftDeletePolicy).Changes
ComputeGallery/models.tsp(source of truth):SharedGalleryImageVersionPropertiesandCommunityGalleryImageVersionProperties— addconsumptionEndTime(utcDateTime) andimageState(new extensible enumGalleryImageVersionState:Active,SoftDeleted).GallerySoftDeletedResourceProperties(SoftDeletedResource_ListByArtifactName) — addconsumptionEndTimeandhardDeletionTargetTime(utcDateTime).Field meanings (sourced from the CAPS/PIR service models in
Compute-CPlat-PIR):consumptionEndTime— when a soft-deleted gallery image version transitions to a simulated hard-deleted state and can no longer be consumed (delete-requested/soft-deleted time + retention period).hardDeletionTargetTime— when a soft-deleted gallery image version is permanently (hard) deleted.imageState— the state of the gallery image version derived from its soft-delete status.Regenerated / updated:
stable/2026-03-03/GalleryRP.json— regenerated viatsp compile.SoftDeletedstate (withconsumptionEndTime).Activestate (soft-deleted versions are hidden from LIST but retrievable via GET).GallerySoftDeletedResource_ListByArtifactNameshowsconsumptionEndTime+hardDeletionTargetTime.Validation
tsp compile .passes.azsdk_run_typespec_validationsucceeds.2026-03-03only;2024-03-03/2025-03-03/2025-12-03are unchanged.Notes
These are additive, read-only response fields — no breaking changes to the API contract.
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com