Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding imageDeprecationStatus properties to VirtualMachineImage response #21615

Merged
Show file tree
Hide file tree
Changes from 3 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 @@ -28,6 +28,14 @@
"automaticOSUpgradeProperties": {
"automaticOSUpgradeSupported": true
},
"imageDeprecationStatus": {
"imageState": "ScheduledForDeprecation",
"scheduledDeprecationTime": "2023-01-13T00:00:00+00:00",
"alternativeOption": {
"type": "Offer",
"value": "aaaaaaa"
}
},
"hyperVGeneration": "V1",
"disallowed": {
"vmDiskType": "None"
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 @@ -938,6 +988,9 @@
"automaticOSUpgradeProperties": {
"$ref": "#/definitions/AutomaticOSUpgradeProperties"
},
"imageDeprecationStatus": {
RajalakshmiSwaminathan marked this conversation as resolved.
Show resolved Hide resolved
"$ref": "#/definitions/ImageDeprecationStatus"
},
"hyperVGeneration": {
"$ref": "./computeRPCommon.json#/definitions/HyperVGenerationType"
},
Expand Down