@@ -457,6 +457,74 @@ def __init__(
457457 self .statuses = None
458458
459459
460+ class AvailablePatchSummary (msrest .serialization .Model ):
461+ """Describes the properties of an virtual machine instance view for available patch summary.
462+
463+ Variables are only populated by the server, and will be ignored when sending a request.
464+
465+ :ivar status: The overall success or failure status of the operation. It remains "InProgress"
466+ until the operation completes. At that point it will become "Failed", "Succeeded", or
467+ "CompletedWithWarnings.". Possible values include: "InProgress", "Failed", "Succeeded",
468+ "CompletedWithWarnings".
469+ :vartype status: str or ~azure.mgmt.compute.v2020_06_01.models.PatchOperationStatus
470+ :ivar assessment_activity_id: The activity ID of the operation that produced this result. It is
471+ used to correlate across CRP and extension logs.
472+ :vartype assessment_activity_id: str
473+ :ivar reboot_pending: The overall reboot status of the VM. It will be true when partially
474+ installed patches require a reboot to complete installation but the reboot has not yet
475+ occurred.
476+ :vartype reboot_pending: bool
477+ :ivar critical_and_security_patch_count: The number of critical or security patches that have
478+ been detected as available and not yet installed.
479+ :vartype critical_and_security_patch_count: int
480+ :ivar other_patch_count: The number of all available patches excluding critical and security.
481+ :vartype other_patch_count: int
482+ :ivar start_time: The UTC timestamp when the operation began.
483+ :vartype start_time: ~datetime.datetime
484+ :ivar last_modified_time: The UTC timestamp when the operation began.
485+ :vartype last_modified_time: ~datetime.datetime
486+ :ivar error: The errors that were encountered during execution of the operation. The details
487+ array contains the list of them.
488+ :vartype error: ~azure.mgmt.compute.v2020_06_01.models.ApiError
489+ """
490+
491+ _validation = {
492+ 'status' : {'readonly' : True },
493+ 'assessment_activity_id' : {'readonly' : True },
494+ 'reboot_pending' : {'readonly' : True },
495+ 'critical_and_security_patch_count' : {'readonly' : True },
496+ 'other_patch_count' : {'readonly' : True },
497+ 'start_time' : {'readonly' : True },
498+ 'last_modified_time' : {'readonly' : True },
499+ 'error' : {'readonly' : True },
500+ }
501+
502+ _attribute_map = {
503+ 'status' : {'key' : 'status' , 'type' : 'str' },
504+ 'assessment_activity_id' : {'key' : 'assessmentActivityId' , 'type' : 'str' },
505+ 'reboot_pending' : {'key' : 'rebootPending' , 'type' : 'bool' },
506+ 'critical_and_security_patch_count' : {'key' : 'criticalAndSecurityPatchCount' , 'type' : 'int' },
507+ 'other_patch_count' : {'key' : 'otherPatchCount' , 'type' : 'int' },
508+ 'start_time' : {'key' : 'startTime' , 'type' : 'iso-8601' },
509+ 'last_modified_time' : {'key' : 'lastModifiedTime' , 'type' : 'iso-8601' },
510+ 'error' : {'key' : 'error' , 'type' : 'ApiError' },
511+ }
512+
513+ def __init__ (
514+ self ,
515+ ** kwargs
516+ ):
517+ super (AvailablePatchSummary , self ).__init__ (** kwargs )
518+ self .status = None
519+ self .assessment_activity_id = None
520+ self .reboot_pending = None
521+ self .critical_and_security_patch_count = None
522+ self .other_patch_count = None
523+ self .start_time = None
524+ self .last_modified_time = None
525+ self .error = None
526+
527+
460528class BillingProfile (msrest .serialization .Model ):
461529 """Specifies the billing related details of a Azure Spot VM or VMSS. :code:`<br>`:code:`<br>`Minimum api-version: 2019-03-01.
462530
@@ -2026,6 +2094,106 @@ def __init__(
20262094 self .source_vault = kwargs ['source_vault' ]
20272095
20282096
2097+ class LastPatchInstallationSummary (msrest .serialization .Model ):
2098+ """Describes the properties of the last installed patch summary.
2099+
2100+ Variables are only populated by the server, and will be ignored when sending a request.
2101+
2102+ :ivar status: The overall success or failure status of the operation. It remains "InProgress"
2103+ until the operation completes. At that point it will become "Failed", "Succeeded", or
2104+ "CompletedWithWarnings.". Possible values include: "InProgress", "Failed", "Succeeded",
2105+ "CompletedWithWarnings".
2106+ :vartype status: str or ~azure.mgmt.compute.v2020_06_01.models.PatchOperationStatus
2107+ :ivar installation_activity_id: The activity ID of the operation that produced this result. It
2108+ is used to correlate across CRP and extension logs.
2109+ :vartype installation_activity_id: str
2110+ :ivar maintenance_window_exceeded: Describes whether the operation ran out of time before it
2111+ completed all its intended actions.
2112+ :vartype maintenance_window_exceeded: bool
2113+ :ivar reboot_status: The reboot status of the machine after the patch operation. It will be in
2114+ "NotNeeded" status if reboot is not needed after the patch operation. "Required" will be the
2115+ status once the patch is applied and machine is required to reboot. "Started" will be the
2116+ reboot status when the machine has started to reboot. "Failed" will be the status if the
2117+ machine is failed to reboot. "Completed" will be the status once the machine is rebooted
2118+ successfully. Possible values include: "NotNeeded", "Required", "Started", "Failed",
2119+ "Completed".
2120+ :vartype reboot_status: str or ~azure.mgmt.compute.v2020_06_01.models.RebootStatus
2121+ :ivar not_selected_patch_count: The number of all available patches but not going to be
2122+ installed because it didn't match a classification or inclusion list entry.
2123+ :vartype not_selected_patch_count: int
2124+ :ivar excluded_patch_count: The number of all available patches but excluded explicitly by a
2125+ customer-specified exclusion list match.
2126+ :vartype excluded_patch_count: int
2127+ :ivar pending_patch_count: The number of all available patches expected to be installed over
2128+ the course of the patch installation operation.
2129+ :vartype pending_patch_count: int
2130+ :ivar installed_patch_count: The count of patches that successfully installed.
2131+ :vartype installed_patch_count: int
2132+ :ivar failed_patch_count: The count of patches that failed installation.
2133+ :vartype failed_patch_count: int
2134+ :ivar start_time: The UTC timestamp when the operation began.
2135+ :vartype start_time: ~datetime.datetime
2136+ :ivar last_modified_time: The UTC timestamp when the operation began.
2137+ :vartype last_modified_time: ~datetime.datetime
2138+ :ivar started_by: The person or system account that started the operation.
2139+ :vartype started_by: str
2140+ :ivar error: The errors that were encountered during execution of the operation. The details
2141+ array contains the list of them.
2142+ :vartype error: ~azure.mgmt.compute.v2020_06_01.models.ApiError
2143+ """
2144+
2145+ _validation = {
2146+ 'status' : {'readonly' : True },
2147+ 'installation_activity_id' : {'readonly' : True },
2148+ 'maintenance_window_exceeded' : {'readonly' : True },
2149+ 'reboot_status' : {'readonly' : True },
2150+ 'not_selected_patch_count' : {'readonly' : True },
2151+ 'excluded_patch_count' : {'readonly' : True },
2152+ 'pending_patch_count' : {'readonly' : True },
2153+ 'installed_patch_count' : {'readonly' : True },
2154+ 'failed_patch_count' : {'readonly' : True },
2155+ 'start_time' : {'readonly' : True },
2156+ 'last_modified_time' : {'readonly' : True },
2157+ 'started_by' : {'readonly' : True },
2158+ 'error' : {'readonly' : True },
2159+ }
2160+
2161+ _attribute_map = {
2162+ 'status' : {'key' : 'status' , 'type' : 'str' },
2163+ 'installation_activity_id' : {'key' : 'installationActivityId' , 'type' : 'str' },
2164+ 'maintenance_window_exceeded' : {'key' : 'maintenanceWindowExceeded' , 'type' : 'bool' },
2165+ 'reboot_status' : {'key' : 'rebootStatus' , 'type' : 'str' },
2166+ 'not_selected_patch_count' : {'key' : 'notSelectedPatchCount' , 'type' : 'int' },
2167+ 'excluded_patch_count' : {'key' : 'excludedPatchCount' , 'type' : 'int' },
2168+ 'pending_patch_count' : {'key' : 'pendingPatchCount' , 'type' : 'int' },
2169+ 'installed_patch_count' : {'key' : 'installedPatchCount' , 'type' : 'int' },
2170+ 'failed_patch_count' : {'key' : 'failedPatchCount' , 'type' : 'int' },
2171+ 'start_time' : {'key' : 'startTime' , 'type' : 'iso-8601' },
2172+ 'last_modified_time' : {'key' : 'lastModifiedTime' , 'type' : 'iso-8601' },
2173+ 'started_by' : {'key' : 'startedBy' , 'type' : 'str' },
2174+ 'error' : {'key' : 'error' , 'type' : 'ApiError' },
2175+ }
2176+
2177+ def __init__ (
2178+ self ,
2179+ ** kwargs
2180+ ):
2181+ super (LastPatchInstallationSummary , self ).__init__ (** kwargs )
2182+ self .status = None
2183+ self .installation_activity_id = None
2184+ self .maintenance_window_exceeded = None
2185+ self .reboot_status = None
2186+ self .not_selected_patch_count = None
2187+ self .excluded_patch_count = None
2188+ self .pending_patch_count = None
2189+ self .installed_patch_count = None
2190+ self .failed_patch_count = None
2191+ self .start_time = None
2192+ self .last_modified_time = None
2193+ self .started_by = None
2194+ self .error = None
2195+
2196+
20292197class LinuxConfiguration (msrest .serialization .Model ):
20302198 """Specifies the Linux operating system settings on the virtual machine. :code:`<br>`:code:`<br>`For a list of supported Linux distributions, see `Linux on Azure-Endorsed Distributions <https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-endorsed-distros?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json>`_ :code:`<br>`:code:`<br>` For running non-endorsed distributions, see `Information for Non-Endorsed Distributions <https://docs.microsoft.com/azure/virtual-machines/virtual-machines-linux-create-upload-generic?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json>`_.
20312199
@@ -2599,7 +2767,7 @@ class PatchSettings(msrest.serialization.Model):
25992767 WindowsConfiguration.enableAutomaticUpdates must be false:code:`<br />`:code:`<br />`
26002768 **AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property
26012769 WindowsConfiguration.enableAutomaticUpdates must be true. :code:`<br />`:code:`<br />` **
2602- AutomaticByPlatform** - the virtual machine will automatically updated by the OS . The
2770+ AutomaticByPlatform** - the virtual machine will automatically updated by the platform . The
26032771 properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true.
26042772 Possible values include: "Manual", "AutomaticByOS", "AutomaticByPlatform".
26052773 :type patch_mode: str or ~azure.mgmt.compute.v2020_06_01.models.InGuestPatchMode
@@ -5018,6 +5186,8 @@ class VirtualMachineInstanceView(msrest.serialization.Model):
50185186 :vartype assigned_host: str
50195187 :param statuses: The resource status information.
50205188 :type statuses: list[~azure.mgmt.compute.v2020_06_01.models.InstanceViewStatus]
5189+ :param patch_status: The status of virtual machine patch operations.
5190+ :type patch_status: ~azure.mgmt.compute.v2020_06_01.models.VirtualMachinePatchStatus
50215191 """
50225192
50235193 _validation = {
@@ -5041,6 +5211,7 @@ class VirtualMachineInstanceView(msrest.serialization.Model):
50415211 'boot_diagnostics' : {'key' : 'bootDiagnostics' , 'type' : 'BootDiagnosticsInstanceView' },
50425212 'assigned_host' : {'key' : 'assignedHost' , 'type' : 'str' },
50435213 'statuses' : {'key' : 'statuses' , 'type' : '[InstanceViewStatus]' },
5214+ 'patch_status' : {'key' : 'patchStatus' , 'type' : 'VirtualMachinePatchStatus' },
50445215 }
50455216
50465217 def __init__ (
@@ -5063,6 +5234,7 @@ def __init__(
50635234 self .boot_diagnostics = kwargs .get ('boot_diagnostics' , None )
50645235 self .assigned_host = None
50655236 self .statuses = kwargs .get ('statuses' , None )
5237+ self .patch_status = kwargs .get ('patch_status' , None )
50665238
50675239
50685240class VirtualMachineListResult (msrest .serialization .Model ):
@@ -5095,6 +5267,32 @@ def __init__(
50955267 self .next_link = kwargs .get ('next_link' , None )
50965268
50975269
5270+ class VirtualMachinePatchStatus (msrest .serialization .Model ):
5271+ """The status of virtual machine patch operations.
5272+
5273+ :param available_patch_summary: The available patch summary of the latest assessment operation
5274+ for the virtual machine.
5275+ :type available_patch_summary: ~azure.mgmt.compute.v2020_06_01.models.AvailablePatchSummary
5276+ :param last_patch_installation_summary: The installation summary of the latest installation
5277+ operation for the virtual machine.
5278+ :type last_patch_installation_summary:
5279+ ~azure.mgmt.compute.v2020_06_01.models.LastPatchInstallationSummary
5280+ """
5281+
5282+ _attribute_map = {
5283+ 'available_patch_summary' : {'key' : 'availablePatchSummary' , 'type' : 'AvailablePatchSummary' },
5284+ 'last_patch_installation_summary' : {'key' : 'lastPatchInstallationSummary' , 'type' : 'LastPatchInstallationSummary' },
5285+ }
5286+
5287+ def __init__ (
5288+ self ,
5289+ ** kwargs
5290+ ):
5291+ super (VirtualMachinePatchStatus , self ).__init__ (** kwargs )
5292+ self .available_patch_summary = kwargs .get ('available_patch_summary' , None )
5293+ self .last_patch_installation_summary = kwargs .get ('last_patch_installation_summary' , None )
5294+
5295+
50985296class VirtualMachineReimageParameters (msrest .serialization .Model ):
50995297 """Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged.
51005298
0 commit comments