Skip to content

Commit 2ef6b48

Browse files
author
SDK Automation
committed
Generated from 96fe111089e67941dadc684249c9225d879e4a5c
removing the configurePatchSummary
1 parent f0087ef commit 2ef6b48

File tree

4 files changed

+428
-3
lines changed

4 files changed

+428
-3
lines changed

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/__init__.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from ._models_py3 import AvailabilitySet
1919
from ._models_py3 import AvailabilitySetListResult
2020
from ._models_py3 import AvailabilitySetUpdate
21+
from ._models_py3 import AvailablePatchSummary
2122
from ._models_py3 import BillingProfile
2223
from ._models_py3 import BootDiagnostics
2324
from ._models_py3 import BootDiagnosticsInstanceView
@@ -57,6 +58,7 @@
5758
from ._models_py3 import InstanceViewStatus
5859
from ._models_py3 import KeyVaultKeyReference
5960
from ._models_py3 import KeyVaultSecretReference
61+
from ._models_py3 import LastPatchInstallationSummary
6062
from ._models_py3 import LinuxConfiguration
6163
from ._models_py3 import ListUsagesResult
6264
from ._models_py3 import LogAnalyticsInputBase
@@ -137,6 +139,7 @@
137139
from ._models_py3 import VirtualMachineImageResource
138140
from ._models_py3 import VirtualMachineInstanceView
139141
from ._models_py3 import VirtualMachineListResult
142+
from ._models_py3 import VirtualMachinePatchStatus
140143
from ._models_py3 import VirtualMachineReimageParameters
141144
from ._models_py3 import VirtualMachineScaleSet
142145
from ._models_py3 import VirtualMachineScaleSetDataDisk
@@ -204,6 +207,7 @@
204207
from ._models import AvailabilitySet # type: ignore
205208
from ._models import AvailabilitySetListResult # type: ignore
206209
from ._models import AvailabilitySetUpdate # type: ignore
210+
from ._models import AvailablePatchSummary # type: ignore
207211
from ._models import BillingProfile # type: ignore
208212
from ._models import BootDiagnostics # type: ignore
209213
from ._models import BootDiagnosticsInstanceView # type: ignore
@@ -243,6 +247,7 @@
243247
from ._models import InstanceViewStatus # type: ignore
244248
from ._models import KeyVaultKeyReference # type: ignore
245249
from ._models import KeyVaultSecretReference # type: ignore
250+
from ._models import LastPatchInstallationSummary # type: ignore
246251
from ._models import LinuxConfiguration # type: ignore
247252
from ._models import ListUsagesResult # type: ignore
248253
from ._models import LogAnalyticsInputBase # type: ignore
@@ -323,6 +328,7 @@
323328
from ._models import VirtualMachineImageResource # type: ignore
324329
from ._models import VirtualMachineInstanceView # type: ignore
325330
from ._models import VirtualMachineListResult # type: ignore
331+
from ._models import VirtualMachinePatchStatus # type: ignore
326332
from ._models import VirtualMachineReimageParameters # type: ignore
327333
from ._models import VirtualMachineScaleSet # type: ignore
328334
from ._models import VirtualMachineScaleSetDataDisk # type: ignore
@@ -400,6 +406,7 @@
400406
PatchOperationStatus,
401407
ProtocolTypes,
402408
ProximityPlacementGroupType,
409+
RebootStatus,
403410
ResourceIdentityType,
404411
RollingUpgradeActionType,
405412
RollingUpgradeStatusCode,
@@ -430,6 +437,7 @@
430437
'AvailabilitySet',
431438
'AvailabilitySetListResult',
432439
'AvailabilitySetUpdate',
440+
'AvailablePatchSummary',
433441
'BillingProfile',
434442
'BootDiagnostics',
435443
'BootDiagnosticsInstanceView',
@@ -469,6 +477,7 @@
469477
'InstanceViewStatus',
470478
'KeyVaultKeyReference',
471479
'KeyVaultSecretReference',
480+
'LastPatchInstallationSummary',
472481
'LinuxConfiguration',
473482
'ListUsagesResult',
474483
'LogAnalyticsInputBase',
@@ -549,6 +558,7 @@
549558
'VirtualMachineImageResource',
550559
'VirtualMachineInstanceView',
551560
'VirtualMachineListResult',
561+
'VirtualMachinePatchStatus',
552562
'VirtualMachineReimageParameters',
553563
'VirtualMachineScaleSet',
554564
'VirtualMachineScaleSetDataDisk',
@@ -624,6 +634,7 @@
624634
'PatchOperationStatus',
625635
'ProtocolTypes',
626636
'ProximityPlacementGroupType',
637+
'RebootStatus',
627638
'ResourceIdentityType',
628639
'RollingUpgradeActionType',
629640
'RollingUpgradeStatusCode',

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_compute_management_client_enums.py

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ class InGuestPatchMode(str, Enum):
8686
must be false:code:`<br />`:code:`<br />` **AutomaticByOS** - The virtual machine will
8787
automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates
8888
must be true. :code:`<br />`:code:`<br />` ** AutomaticByPlatform** - the virtual machine will
89-
automatically updated by the OS. The properties provisionVMAgent and
89+
automatically updated by the platform. The properties provisionVMAgent and
9090
WindowsConfiguration.enableAutomaticUpdates must be true
9191
"""
9292

@@ -196,6 +196,20 @@ class ProximityPlacementGroupType(str, Enum):
196196
standard = "Standard"
197197
ultra = "Ultra"
198198

199+
class RebootStatus(str, Enum):
200+
"""The reboot status of the machine after the patch operation. It will be in "NotNeeded" status if
201+
reboot is not needed after the patch operation. "Required" will be the status once the patch is
202+
applied and machine is required to reboot. "Started" will be the reboot status when the machine
203+
has started to reboot. "Failed" will be the status if the machine is failed to reboot.
204+
"Completed" will be the status once the machine is rebooted successfully
205+
"""
206+
207+
not_needed = "NotNeeded"
208+
required = "Required"
209+
started = "Started"
210+
failed = "Failed"
211+
completed = "Completed"
212+
199213
class ResourceIdentityType(str, Enum):
200214
"""The type of identity used for the virtual machine. The type 'SystemAssigned, UserAssigned'
201215
includes both an implicitly created identity and a set of user assigned identities. The type

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/v2020_06_01/models/_models.py

Lines changed: 199 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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+
460528
class 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+
20292197
class 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

50685240
class 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+
50985296
class VirtualMachineReimageParameters(msrest.serialization.Model):
50995297
"""Parameters for Reimaging Virtual Machine. NOTE: Virtual Machine OS disk will always be reimaged.
51005298

0 commit comments

Comments
 (0)