-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Adding swagger change for virtual machine patching instance view #10216
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
Changes from 8 commits
c30a5e9
8026630
cd0c90e
503f5e4
805ca3c
1fc482e
f6716ba
bada88a
96fe111
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8884,6 +8884,10 @@ | |
| "$ref": "#/definitions/InstanceViewStatus" | ||
| }, | ||
| "description": "The resource status information." | ||
| }, | ||
| "patchStatus": { | ||
| "$ref": "#/definitions/VirtualMachinePatchStatus", | ||
| "description": "The status of virtual machine patch operations." | ||
| } | ||
| }, | ||
| "description": "The instance view of a virtual machine." | ||
|
|
@@ -11537,7 +11541,7 @@ | |
| "properties": { | ||
| "patchMode": { | ||
| "type": "string", | ||
| "description": "Specifies the mode of in-guest patching to IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true. <br /><br /> ** AutomaticByPlatform** - the virtual machine will automatically updated by the OS. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true ", | ||
| "description": "Specifies the mode of in-guest patching to IaaS virtual machine.<br /><br /> Possible values are:<br /><br /> **Manual** - You control the application of patches to a virtual machine. You do this by applying patches manually inside the VM. In this mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates must be false<br /><br /> **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates must be true. <br /><br /> ** AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true ", | ||
| "enum": [ | ||
| "Manual", | ||
| "AutomaticByOS", | ||
|
|
@@ -11549,6 +11553,210 @@ | |
| } | ||
| } | ||
| } | ||
| }, | ||
| "VirtualMachinePatchStatus": { | ||
| "properties": { | ||
| "availablePatchSummary": { | ||
| "$ref": "#/definitions/AvailablePatchSummary", | ||
| "description": "The available patch summary of the latest assessment operation for the virtual machine." | ||
| }, | ||
| "lastPatchInstallationSummary": { | ||
| "$ref": "#/definitions/LastPatchInstallationSummary", | ||
| "description": "The installation summary of the latest installation operation for the virtual machine." | ||
| }, | ||
| "configurationStatusSummary": { | ||
| "$ref": "#/definitions/ConfigurationStatusSummary", | ||
| "description": "The configuration status summary for the virtual machine." | ||
| } | ||
| }, | ||
| "description": "The status of virtual machine patch operations." | ||
| }, | ||
| "AvailablePatchSummary": { | ||
| "properties": { | ||
| "status": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The overall success or failure status of the operation. It remains \"InProgress\" until the operation completes. At that point it will become \"Failed\", \"Succeeded\", or \"CompletedWithWarnings.\"", | ||
| "enum": [ | ||
| "InProgress", | ||
| "Failed", | ||
| "Succeeded", | ||
| "CompletedWithWarnings" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "PatchOperationStatus", | ||
| "modelAsString": true | ||
| } | ||
| }, | ||
| "assessmentActivityId": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs." | ||
| }, | ||
| "rebootPending": { | ||
| "type": "boolean", | ||
| "readOnly": true, | ||
| "description": "The overall reboot status of the VM. It will be true when partially installed patches require a reboot to complete installation but the reboot has not yet occurred." | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "Whether a reboot was pending due to an installation operation, but the reboot had not yet taken place at the time of the assessment. When true, it indicates that partially installed patches require a reboot to complete their installation." |
||
| }, | ||
| "criticalAndSecurityPatchCount": { | ||
| "type": "integer", | ||
| "readOnly": true, | ||
| "format": "int32", | ||
| "description": "The number of critical or security patches that have been detected as available and not yet installed." | ||
| }, | ||
| "otherPatchCount": { | ||
| "type": "integer", | ||
| "readOnly": true, | ||
| "format": "int32", | ||
| "description": "The number of all available patches excluding critical and security." | ||
| }, | ||
| "startTime": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "format": "date-time", | ||
| "description": "The UTC timestamp when the operation began." | ||
| }, | ||
| "lastModifiedTime": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "format": "date-time", | ||
| "description": "The UTC timestamp when the operation began." | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "The UTC timestamp of the last update of the operation results." Applies to all "lastModifiedTime" descriptions |
||
| }, | ||
| "error": { | ||
| "$ref": "#/definitions/ApiError", | ||
| "readOnly": true, | ||
| "description": "The errors that were encountered during execution of the operation. The details array contains the list of them." | ||
| } | ||
| }, | ||
| "description": "Describes the properties of an virtual machine instance view for available patch summary." | ||
| }, | ||
| "LastPatchInstallationSummary": { | ||
| "properties": { | ||
| "status": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The overall success or failure status of the operation. It remains \"InProgress\" until the operation completes. At that point it will become \"Failed\", \"Succeeded\", or \"CompletedWithWarnings.\"", | ||
| "enum": [ | ||
| "InProgress", | ||
| "Failed", | ||
| "Succeeded", | ||
| "CompletedWithWarnings" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "PatchOperationStatus", | ||
| "modelAsString": true | ||
| } | ||
| }, | ||
| "installationActivityId": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The activity ID of the operation that produced this result. It is used to correlate across CRP and extension logs." | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove the second sentence |
||
| }, | ||
| "maintenanceWindowExceeded": { | ||
| "type": "boolean", | ||
| "readOnly": true, | ||
| "description": "Describes whether the operation ran out of time before it completed all its intended actions" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add a "." at the end |
||
| }, | ||
| "rebootStatus": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The reboot status of the machine after the patch operation. It will be in \"NotNeeded\" status if reboot is not needed after the patch operation. \"Required\" will be the status once the patch is applied and machine is required to reboot. \"Started\" will be the reboot status when the machine has started to reboot. \"Failed\" will be the status if the machine is failed to reboot. \"Completed\" will be the status once the machine is rebooted successfully", | ||
| "enum": [ | ||
| "NotNeeded", | ||
| "Required", | ||
| "Started", | ||
| "Failed", | ||
| "Completed" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "RebootStatus", | ||
| "modelAsString": true | ||
| } | ||
| }, | ||
| "notSelectedPatchCount": { | ||
| "type": "integer", | ||
| "readOnly": true, | ||
| "format": "int32", | ||
| "description": "The number of all available patches but not going to be installed because it didn't match a classification or inclusion list entry." | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "The count of available patches that didn't match a classification or inclusion list entry of the operation. Unmatched available patches are not selected for installation." |
||
| }, | ||
| "excludedPatchCount": { | ||
| "type": "integer", | ||
| "readOnly": true, | ||
| "format": "int32", | ||
| "description": "The number of all available patches but excluded explicitly by a customer-specified exclusion list match." | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "The count of available patches explicitly excluded through and exclusion list." |
||
| }, | ||
| "pendingPatchCount": { | ||
| "type": "integer", | ||
| "readOnly": true, | ||
| "format": "int32", | ||
| "description": "The number of all available patches expected to be installed over the course of the patch installation operation." | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For this description and the rest of the counts: |
||
| }, | ||
| "installedPatchCount": { | ||
| "type": "integer", | ||
| "readOnly": true, | ||
| "format": "int32", | ||
| "description": "The count of patches that successfully installed." | ||
| }, | ||
| "failedPatchCount": { | ||
| "type": "integer", | ||
| "readOnly": true, | ||
| "format": "int32", | ||
| "description": "The count of patches that failed installation." | ||
| }, | ||
| "startTime": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "format": "date-time", | ||
| "description": "The UTC timestamp when the operation began." | ||
| }, | ||
| "lastModifiedTime": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "format": "date-time", | ||
| "description": "The UTC timestamp when the operation began." | ||
| }, | ||
| "startedBy": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "The person or system account that started the operation" | ||
| }, | ||
| "error": { | ||
| "$ref": "#/definitions/ApiError", | ||
| "readOnly": true, | ||
| "description": "The errors that were encountered during execution of the operation. The details array contains the list of them." | ||
| } | ||
| }, | ||
| "description": "Describes the properties of the last installed patch summary." | ||
| }, | ||
| "ConfigurationStatusSummary": { | ||
| "properties": { | ||
| "patchModeProvisioningState": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "description": "Describes the enablement status of the specified patchMode of a VM.. \"Unknown\" is the state when the status is unknown. \"Pending\" indicates that required configuration of the VM has not yet completed. \"Ready\" indicates that the VM is configured as specified by its patchMode.", | ||
| "enum": [ | ||
| "Unknown", | ||
| "Pending", | ||
| "Ready" | ||
| ], | ||
| "x-ms-enum": { | ||
| "name": "patchModeProvisioningState", | ||
| "modelAsString": true | ||
| } | ||
| }, | ||
| "lastModifiedTime": { | ||
| "type": "string", | ||
| "readOnly": true, | ||
| "format": "date-time", | ||
| "description": "The UTC timestamp when the operation began." | ||
| }, | ||
| "error": { | ||
| "$ref": "#/definitions/ApiError", | ||
| "readOnly": true, | ||
| "description": "The errors that were encountered during execution of the operation. The details array contains the list of them." | ||
| } | ||
| }, | ||
| "description": "Describes the properties of the last detected patch configuration status." | ||
| } | ||
| }, | ||
| "parameters": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the second sentence. That is a note for our code, not a generic API user.