Skip to content

Commit

Permalink
Adding imageDeprecationStatus properties to VirtualMachineImage respo…
Browse files Browse the repository at this point in the history
…nse (#21615)

* Changes to virtualMachineImage.json to include ImageDeprecationStatus properties

* Changes to example json

* Fixed LintDiff errors

* Addressed review comment
  • Loading branch information
RajalakshmiSwaminathan authored Dec 15, 2022
1 parent ca4bdf7 commit bcea678
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -956,6 +1006,9 @@
},
"architecture": {
"$ref": "#/definitions/ArchitectureType"
},
"imageDeprecationStatus": {
"$ref": "#/definitions/ImageDeprecationStatus"
}
},
"description": "Describes the properties of a Virtual Machine Image."
Expand Down

0 comments on commit bcea678

Please sign in to comment.