From bcea67844d67ec0cc73945059daa570f89412f2e Mon Sep 17 00:00:00 2001 From: RajalakshmiSwaminathan Date: Fri, 16 Dec 2022 01:02:18 +0530 Subject: [PATCH] Adding imageDeprecationStatus properties to VirtualMachineImage response (#21615) * Changes to virtualMachineImage.json to include ImageDeprecationStatus properties * Changes to example json * Fixed LintDiff errors * Addressed review comment --- ...rtualMachineImages_Get_MaximumSet_Gen.json | 10 +++- .../2022-11-01/virtualMachineImage.json | 53 +++++++++++++++++++ 2 files changed, 62 insertions(+), 1 deletion(-) diff --git a/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_Get_MaximumSet_Gen.json b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_Get_MaximumSet_Gen.json index 052435b265d7..f363ff38c32f 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_Get_MaximumSet_Gen.json +++ b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/examples/virtualMachineImageExamples/VirtualMachineImages_Get_MaximumSet_Gen.json @@ -37,7 +37,15 @@ "name": "aaaaaaaaaaaaaaaaaaaaa", "value": "aaaaaaaaaaaaaaaaaaaa" } - ] + ], + "imageDeprecationStatus": { + "imageState": "ScheduledForDeprecation", + "scheduledDeprecationTime": "2023-01-13T00:00:00+00:00", + "alternativeOption": { + "type": "Offer", + "value": "aaaaaaa" + } + } }, "name": "aaaaaaaaa", "location": "aaaaa", diff --git a/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/virtualMachineImage.json b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/virtualMachineImage.json index 139e40becf41..45a12c2740da 100644 --- a/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/virtualMachineImage.json +++ b/specification/compute/resource-manager/Microsoft.Compute/ComputeRP/stable/2022-11-01/virtualMachineImage.json @@ -905,6 +905,56 @@ ], "description": "Describes automatic OS upgrade properties on the image." }, + "ImageDeprecationStatus": { + "type": "object", + "properties": { + "imageState": { + "type": "string", + "description": "Describes the state of the image.", + "enum": [ + "Active", + "ScheduledForDeprecation", + "Deprecated" + ], + "x-ms-enum": { + "name": "ImageState", + "modelAsString": true + } + }, + "scheduledDeprecationTime": { + "type": "string", + "format": "date-time", + "description": "The time, in future, at which this image will be marked as deprecated. This scheduled time is chosen by the Publisher." + }, + "alternativeOption": { + "$ref": "#/definitions/AlternativeOption" + } + }, + "description": "Describes image deprecation status properties on the image." + }, + "AlternativeOption": { + "type": "object", + "properties": { + "type": { + "type": "string", + "description": "Describes the type of the alternative option.", + "enum": [ + "None", + "Offer", + "Plan" + ], + "x-ms-enum": { + "name": "AlternativeType", + "modelAsString": true + } + }, + "value": { + "type": "string", + "description": "Indicates the alternative option value specified by the Publisher. This is the Offer name when the type is Offer or the Plan name when the type is Plan." + } + }, + "description": "Describes the alternative option specified by the Publisher for this image when this image is deprecated." + }, "VirtualMachineImageFeature": { "properties": { "name": { @@ -956,6 +1006,9 @@ }, "architecture": { "$ref": "#/definitions/ArchitectureType" + }, + "imageDeprecationStatus": { + "$ref": "#/definitions/ImageDeprecationStatus" } }, "description": "Describes the properties of a Virtual Machine Image."