Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"artifactTags": {
"ShareTag-CommunityGallery": "CommunityGallery"
},
"disclaimer": "https://test-uri.com"
"disclaimer": "https://test-uri.com",
"consumptionEndTime": "2026-04-20T09:12:28Z",
"imageState": "SoftDeleted"
},
"location": "myLocation",
"name": "myGalleryImageVersionName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"artifactTags": {
"ShareTag-CommunityGallery": "CommunityGallery"
},
"disclaimer": "https://test-uri.com"
"disclaimer": "https://test-uri.com",
"imageState": "Active"
},
"location": "myLocation",
"name": "myGalleryImageVersionName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"properties": {
"resourceArmId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/images/myGalleryImageName/versions/1.0.0",
"softDeletedTime": "2024-10-17T13:01:05+00:00",
"softDeletedArtifactType": "Images"
"softDeletedArtifactType": "Images",
"consumptionEndTime": "2024-11-16T13:01:05+00:00",
"hardDeletionTargetTime": "2024-11-23T13:01:05+00:00"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
},
"artifactTags": {
"ShareTag-Official1PGallery": "Official1PGallery"
}
},
"consumptionEndTime": "2026-04-20T09:12:28Z",
"imageState": "SoftDeleted"
},
"location": "myLocation",
"name": "myGalleryImageVersionName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"artifactTags": {
"ShareTag-Official1PGallery": "Official1PGallery"
}
},
"imageState": "Active"
},
"location": "myLocation",
"name": "myGalleryImageVersionName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1822,6 +1822,20 @@ model GallerySoftDeletedResourceProperties {
* The timestamp for when the resource is soft-deleted. In dateTime offset format.
*/
softDeletedTime?: string;

/**
* The timestamp at which a soft-deleted gallery image version transitions to a simulated hard-deleted state and can no longer be consumed. It is calculated from the soft-deleted time plus the retention period. In dateTime offset format.
*/
@added(Versions.v2026_03_03)
@visibility(Lifecycle.Read)
consumptionEndTime?: utcDateTime;

/**
* The timestamp at which a soft-deleted gallery image version is permanently (hard) deleted and can no longer be recovered. In dateTime offset format.
*/
@added(Versions.v2026_03_03)
@visibility(Lifecycle.Read)
hardDeletionTargetTime?: utcDateTime;
}

/**
Expand Down Expand Up @@ -2413,6 +2427,24 @@ model SharedGalleryImageVersionList
is Azure.Core.Page<SharedGalleryImageVersion>;
@@identifiers(SharedGalleryImageVersionList.value, #[]);

/**
* The state of a gallery image version, derived from its soft-delete status.
*/
@added(Versions.v2026_03_03)
union GalleryImageVersionState {
string,

/**
* The gallery image version is active and available for use.
*/
Active: "Active",

/**
* The gallery image version has been soft-deleted. It is available for use only when a specific version is requested, and it will not be referenced by the latest version.
*/
SoftDeleted: "SoftDeleted",
}

/**
* Describes the properties of a gallery image version.
*/
Expand Down Expand Up @@ -2445,6 +2477,20 @@ model SharedGalleryImageVersionProperties {
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility"
artifactTags?: Record<string>;

/**
* The timestamp at which a soft-deleted gallery image version transitions to a simulated hard-deleted state and can no longer be consumed. It is calculated from the delete-requested time plus the retention period, and is null for active gallery image versions.
*/
@added(Versions.v2026_03_03)
@visibility(Lifecycle.Read)
consumptionEndTime?: utcDateTime;

/**
* The state of the gallery image version, derived from its soft-delete status.
*/
@added(Versions.v2026_03_03)
@visibility(Lifecycle.Read)
imageState?: GalleryImageVersionState;
}

/**
Expand Down Expand Up @@ -2725,6 +2771,20 @@ model CommunityGalleryImageVersionProperties {
*/
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "For backward compatibility"
artifactTags?: Record<string>;

/**
* The timestamp at which a soft-deleted gallery image version transitions to a simulated hard-deleted state and can no longer be consumed. It is calculated from the delete-requested time plus the retention period, and is null for active gallery image versions.
*/
@added(Versions.v2026_03_03)
@visibility(Lifecycle.Read)
consumptionEndTime?: utcDateTime;

/**
* The state of the gallery image version, derived from its soft-delete status.
*/
@added(Versions.v2026_03_03)
@visibility(Lifecycle.Read)
imageState?: GalleryImageVersionState;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5136,6 +5136,17 @@
"additionalProperties": {
"type": "string"
}
},
"consumptionEndTime": {
"type": "string",
"format": "date-time",
"description": "The timestamp at which a soft-deleted gallery image version transitions to a simulated hard-deleted state and can no longer be consumed. It is calculated from the delete-requested time plus the retention period, and is null for active gallery image versions.",
"readOnly": true
},
"imageState": {
"$ref": "#/definitions/GalleryImageVersionState",
"description": "The state of the gallery image version, derived from its soft-delete status.",
"readOnly": true
}
}
},
Expand Down Expand Up @@ -6310,6 +6321,30 @@
}
]
},
"GalleryImageVersionState": {
"type": "string",
"description": "The state of a gallery image version, derived from its soft-delete status.",
"enum": [
"Active",
"SoftDeleted"
],
"x-ms-enum": {
"name": "GalleryImageVersionState",
"modelAsString": true,
"values": [
{
"name": "Active",
"value": "Active",
"description": "The gallery image version is active and available for use."
},
{
"name": "SoftDeleted",
"value": "SoftDeleted",
"description": "The gallery image version has been soft-deleted. It is available for use only when a specific version is requested, and it will not be referenced by the latest version."
}
]
}
},
"GalleryImageVersionStorageProfile": {
"type": "object",
"description": "This is the storage profile of a Gallery Image Version.",
Expand Down Expand Up @@ -7030,6 +7065,18 @@
"softDeletedTime": {
"type": "string",
"description": "The timestamp for when the resource is soft-deleted. In dateTime offset format."
},
"consumptionEndTime": {
"type": "string",
"format": "date-time",
"description": "The timestamp at which a soft-deleted gallery image version transitions to a simulated hard-deleted state and can no longer be consumed. It is calculated from the soft-deleted time plus the retention period. In dateTime offset format.",
"readOnly": true
},
"hardDeletionTargetTime": {
"type": "string",
"format": "date-time",
"description": "The timestamp at which a soft-deleted gallery image version is permanently (hard) deleted and can no longer be recovered. In dateTime offset format.",
"readOnly": true
}
}
},
Expand Down Expand Up @@ -7758,6 +7805,17 @@
"additionalProperties": {
"type": "string"
}
},
"consumptionEndTime": {
"type": "string",
"format": "date-time",
"description": "The timestamp at which a soft-deleted gallery image version transitions to a simulated hard-deleted state and can no longer be consumed. It is calculated from the delete-requested time plus the retention period, and is null for active gallery image versions.",
"readOnly": true
},
"imageState": {
"$ref": "#/definitions/GalleryImageVersionState",
"description": "The state of the gallery image version, derived from its soft-delete status.",
"readOnly": true
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"artifactTags": {
"ShareTag-CommunityGallery": "CommunityGallery"
},
"disclaimer": "https://test-uri.com"
"disclaimer": "https://test-uri.com",
"consumptionEndTime": "2026-04-20T09:12:28Z",
"imageState": "SoftDeleted"
},
"location": "myLocation",
"name": "myGalleryImageVersionName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
"artifactTags": {
"ShareTag-CommunityGallery": "CommunityGallery"
},
"disclaimer": "https://test-uri.com"
"disclaimer": "https://test-uri.com",
"imageState": "Active"
},
"location": "myLocation",
"name": "myGalleryImageVersionName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@
"properties": {
"resourceArmId": "/subscriptions/{subscription-id}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/galleries/myGalleryName/images/myGalleryImageName/versions/1.0.0",
"softDeletedTime": "2024-10-17T13:01:05+00:00",
"softDeletedArtifactType": "Images"
"softDeletedArtifactType": "Images",
"consumptionEndTime": "2024-11-16T13:01:05+00:00",
"hardDeletionTargetTime": "2024-11-23T13:01:05+00:00"
}
}
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
},
"artifactTags": {
"ShareTag-Official1PGallery": "Official1PGallery"
}
},
"consumptionEndTime": "2026-04-20T09:12:28Z",
"imageState": "SoftDeleted"
},
"location": "myLocation",
"name": "myGalleryImageVersionName",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
},
"artifactTags": {
"ShareTag-Official1PGallery": "Official1PGallery"
}
},
"imageState": "Active"
},
"location": "myLocation",
"name": "myGalleryImageVersionName",
Expand Down
Loading