Skip to content

Commit 47957be

Browse files
00Kai0SDKAuto
andauthored
T2 compute 2021 02 20 (#16845)
* CodeGen from PR 13074 in Azure/azure-rest-api-specs fix readme (#13074) * test,version,CHANGELOG * fix test * remove other usage Co-authored-by: SDKAuto <[email protected]>
1 parent 6fd75b3 commit 47957be

File tree

88 files changed

+56434
-6505
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+56434
-6505
lines changed

sdk/compute/azure-mgmt-compute/CHANGELOG.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,43 @@
11
# Release History
22

3+
## 19.0.0 (2021-02-20)
4+
5+
**Features**
6+
7+
- Model VirtualMachineUpdate has a new parameter platform_fault_domain
8+
- Model VirtualMachineImage has a new parameter extended_location
9+
- Model VirtualMachineImage has a new parameter features
10+
- Model VirtualMachineSoftwarePatchProperties has a new parameter kb_id
11+
- Model LinuxConfiguration has a new parameter patch_settings
12+
- Model PatchSettings has a new parameter enable_hotpatching
13+
- Model VirtualMachineAssessPatchesResult has a new parameter available_patches
14+
- Model VirtualMachineImageResource has a new parameter extended_location
15+
- Model VirtualMachinePatchStatus has a new parameter configuration_statuses
16+
- Model RollingUpgradePolicy has a new parameter enable_cross_zone_upgrade
17+
- Model RollingUpgradePolicy has a new parameter prioritize_unhealthy_instances
18+
- Model DataDisk has a new parameter detach_option
19+
- Model Image has a new parameter extended_location
20+
- Model VirtualMachine has a new parameter extended_location
21+
- Model VirtualMachine has a new parameter platform_fault_domain
22+
- Model SecurityProfile has a new parameter uefi_settings
23+
- Model SecurityProfile has a new parameter security_type
24+
- Model VirtualMachineScaleSet has a new parameter extended_location
25+
- Model VirtualMachineScaleSet has a new parameter orchestration_mode
26+
- Added operation VirtualMachinesOperations.begin_install_patches
27+
- Added operation VirtualMachineScaleSetsOperations.list_by_location
28+
- Added operation group VirtualMachineImagesEdgeZoneOperations
29+
30+
**Breaking changes**
31+
32+
- Operation VirtualMachineScaleSetVMsOperations.begin_delete has a new signature
33+
- Operation VirtualMachineScaleSetsOperations.begin_delete has a new signature
34+
- Operation VirtualMachineScaleSetsOperations.begin_delete_instances has a new signature
35+
- Model VirtualMachineSoftwarePatchProperties no longer has parameter kbid
36+
- Model LastPatchInstallationSummary no longer has parameter started_by
37+
- Model LastPatchInstallationSummary no longer has parameter reboot_status
38+
- Model VirtualMachineAssessPatchesResult no longer has parameter patches
39+
- Model PurchasePlan no longer has parameter promotion_code
40+
341
## 18.2.0 (2021-02-02)
442

543
**Features**

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_compute_management_client.py

Lines changed: 99 additions & 22 deletions
Large diffs are not rendered by default.

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "18.2.0"
8+
VERSION = "19.0.0"

sdk/compute/azure-mgmt-compute/azure/mgmt/compute/aio/_compute_management_client.py

Lines changed: 99 additions & 22 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
# license information.
66
# --------------------------------------------------------------------------
77
from .v2019_04_01.models import *
8-
from .v2020_06_01.models import *
98
from .v2020_09_30.models import *
9+
from .v2020_10_01_preview.models import *
10+
from .v2020_12_01.models import *

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ class InGuestPatchMode(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
121121
mode, automatic updates are disabled; the property WindowsConfiguration.enableAutomaticUpdates
122122
must be false:code:`<br />`:code:`<br />` **AutomaticByOS** - The virtual machine will
123123
automatically be updated by the OS. The property WindowsConfiguration.enableAutomaticUpdates
124-
must be true. :code:`<br />`:code:`<br />` ** AutomaticByPlatform** - the virtual machine will
124+
must be true. :code:`<br />`:code:`<br />` **AutomaticByPlatform** - the virtual machine will
125125
automatically updated by the platform. The properties provisionVMAgent and
126126
WindowsConfiguration.enableAutomaticUpdates must be true
127127
"""

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2710,8 +2710,8 @@ class PatchSettings(msrest.serialization.Model):
27102710
inside the VM. In this mode, automatic updates are disabled; the property
27112711
WindowsConfiguration.enableAutomaticUpdates must be false:code:`<br />`:code:`<br />`
27122712
**AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property
2713-
WindowsConfiguration.enableAutomaticUpdates must be true. :code:`<br />`:code:`<br />` **
2714-
AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The
2713+
WindowsConfiguration.enableAutomaticUpdates must be true. :code:`<br />`:code:`<br />`
2714+
**AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The
27152715
properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true.
27162716
Possible values include: "Manual", "AutomaticByOS", "AutomaticByPlatform".
27172717
:type patch_mode: str or ~azure.mgmt.compute.v2020_06_01.models.InGuestPatchMode

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2968,8 +2968,8 @@ class PatchSettings(msrest.serialization.Model):
29682968
inside the VM. In this mode, automatic updates are disabled; the property
29692969
WindowsConfiguration.enableAutomaticUpdates must be false:code:`<br />`:code:`<br />`
29702970
**AutomaticByOS** - The virtual machine will automatically be updated by the OS. The property
2971-
WindowsConfiguration.enableAutomaticUpdates must be true. :code:`<br />`:code:`<br />` **
2972-
AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The
2971+
WindowsConfiguration.enableAutomaticUpdates must be true. :code:`<br />`:code:`<br />`
2972+
**AutomaticByPlatform** - the virtual machine will automatically updated by the platform. The
29732973
properties provisionVMAgent and WindowsConfiguration.enableAutomaticUpdates must be true.
29742974
Possible values include: "Manual", "AutomaticByOS", "AutomaticByPlatform".
29752975
:type patch_mode: str or ~azure.mgmt.compute.v2020_06_01.models.InGuestPatchMode
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
from ._compute_management_client import ComputeManagementClient
10+
__all__ = ['ComputeManagementClient']
11+
12+
try:
13+
from ._patch import patch_sdk # type: ignore
14+
patch_sdk()
15+
except ImportError:
16+
pass
Lines changed: 174 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,174 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# Code generated by Microsoft (R) AutoRest Code Generator.
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------
8+
9+
from typing import TYPE_CHECKING
10+
11+
from azure.mgmt.core import ARMPipelineClient
12+
from msrest import Deserializer, Serializer
13+
14+
if TYPE_CHECKING:
15+
# pylint: disable=unused-import,ungrouped-imports
16+
from typing import Any, Optional
17+
18+
from azure.core.credentials import TokenCredential
19+
20+
from ._configuration import ComputeManagementClientConfiguration
21+
from .operations import Operations
22+
from .operations import AvailabilitySetsOperations
23+
from .operations import ProximityPlacementGroupsOperations
24+
from .operations import DedicatedHostGroupsOperations
25+
from .operations import DedicatedHostsOperations
26+
from .operations import SshPublicKeysOperations
27+
from .operations import VirtualMachineExtensionImagesOperations
28+
from .operations import VirtualMachineExtensionsOperations
29+
from .operations import VirtualMachineImagesOperations
30+
from .operations import VirtualMachineImagesEdgeZoneOperations
31+
from .operations import UsageOperations
32+
from .operations import VirtualMachinesOperations
33+
from .operations import VirtualMachineScaleSetsOperations
34+
from .operations import VirtualMachineSizesOperations
35+
from .operations import ImagesOperations
36+
from .operations import VirtualMachineScaleSetExtensionsOperations
37+
from .operations import VirtualMachineScaleSetRollingUpgradesOperations
38+
from .operations import VirtualMachineScaleSetVMExtensionsOperations
39+
from .operations import VirtualMachineScaleSetVMsOperations
40+
from .operations import LogAnalyticsOperations
41+
from .operations import VirtualMachineRunCommandsOperations
42+
from .operations import VirtualMachineScaleSetVMRunCommandsOperations
43+
from . import models
44+
45+
46+
class ComputeManagementClient(object):
47+
"""Compute Client.
48+
49+
:ivar operations: Operations operations
50+
:vartype operations: azure.mgmt.compute.v2020_12_01.operations.Operations
51+
:ivar availability_sets: AvailabilitySetsOperations operations
52+
:vartype availability_sets: azure.mgmt.compute.v2020_12_01.operations.AvailabilitySetsOperations
53+
:ivar proximity_placement_groups: ProximityPlacementGroupsOperations operations
54+
:vartype proximity_placement_groups: azure.mgmt.compute.v2020_12_01.operations.ProximityPlacementGroupsOperations
55+
:ivar dedicated_host_groups: DedicatedHostGroupsOperations operations
56+
:vartype dedicated_host_groups: azure.mgmt.compute.v2020_12_01.operations.DedicatedHostGroupsOperations
57+
:ivar dedicated_hosts: DedicatedHostsOperations operations
58+
:vartype dedicated_hosts: azure.mgmt.compute.v2020_12_01.operations.DedicatedHostsOperations
59+
:ivar ssh_public_keys: SshPublicKeysOperations operations
60+
:vartype ssh_public_keys: azure.mgmt.compute.v2020_12_01.operations.SshPublicKeysOperations
61+
:ivar virtual_machine_extension_images: VirtualMachineExtensionImagesOperations operations
62+
:vartype virtual_machine_extension_images: azure.mgmt.compute.v2020_12_01.operations.VirtualMachineExtensionImagesOperations
63+
:ivar virtual_machine_extensions: VirtualMachineExtensionsOperations operations
64+
:vartype virtual_machine_extensions: azure.mgmt.compute.v2020_12_01.operations.VirtualMachineExtensionsOperations
65+
:ivar virtual_machine_images: VirtualMachineImagesOperations operations
66+
:vartype virtual_machine_images: azure.mgmt.compute.v2020_12_01.operations.VirtualMachineImagesOperations
67+
:ivar virtual_machine_images_edge_zone: VirtualMachineImagesEdgeZoneOperations operations
68+
:vartype virtual_machine_images_edge_zone: azure.mgmt.compute.v2020_12_01.operations.VirtualMachineImagesEdgeZoneOperations
69+
:ivar usage: UsageOperations operations
70+
:vartype usage: azure.mgmt.compute.v2020_12_01.operations.UsageOperations
71+
:ivar virtual_machines: VirtualMachinesOperations operations
72+
:vartype virtual_machines: azure.mgmt.compute.v2020_12_01.operations.VirtualMachinesOperations
73+
:ivar virtual_machine_scale_sets: VirtualMachineScaleSetsOperations operations
74+
:vartype virtual_machine_scale_sets: azure.mgmt.compute.v2020_12_01.operations.VirtualMachineScaleSetsOperations
75+
:ivar virtual_machine_sizes: VirtualMachineSizesOperations operations
76+
:vartype virtual_machine_sizes: azure.mgmt.compute.v2020_12_01.operations.VirtualMachineSizesOperations
77+
:ivar images: ImagesOperations operations
78+
:vartype images: azure.mgmt.compute.v2020_12_01.operations.ImagesOperations
79+
:ivar virtual_machine_scale_set_extensions: VirtualMachineScaleSetExtensionsOperations operations
80+
:vartype virtual_machine_scale_set_extensions: azure.mgmt.compute.v2020_12_01.operations.VirtualMachineScaleSetExtensionsOperations
81+
:ivar virtual_machine_scale_set_rolling_upgrades: VirtualMachineScaleSetRollingUpgradesOperations operations
82+
:vartype virtual_machine_scale_set_rolling_upgrades: azure.mgmt.compute.v2020_12_01.operations.VirtualMachineScaleSetRollingUpgradesOperations
83+
:ivar virtual_machine_scale_set_vm_extensions: VirtualMachineScaleSetVMExtensionsOperations operations
84+
:vartype virtual_machine_scale_set_vm_extensions: azure.mgmt.compute.v2020_12_01.operations.VirtualMachineScaleSetVMExtensionsOperations
85+
:ivar virtual_machine_scale_set_vms: VirtualMachineScaleSetVMsOperations operations
86+
:vartype virtual_machine_scale_set_vms: azure.mgmt.compute.v2020_12_01.operations.VirtualMachineScaleSetVMsOperations
87+
:ivar log_analytics: LogAnalyticsOperations operations
88+
:vartype log_analytics: azure.mgmt.compute.v2020_12_01.operations.LogAnalyticsOperations
89+
:ivar virtual_machine_run_commands: VirtualMachineRunCommandsOperations operations
90+
:vartype virtual_machine_run_commands: azure.mgmt.compute.v2020_12_01.operations.VirtualMachineRunCommandsOperations
91+
:ivar virtual_machine_scale_set_vm_run_commands: VirtualMachineScaleSetVMRunCommandsOperations operations
92+
:vartype virtual_machine_scale_set_vm_run_commands: azure.mgmt.compute.v2020_12_01.operations.VirtualMachineScaleSetVMRunCommandsOperations
93+
:param credential: Credential needed for the client to connect to Azure.
94+
:type credential: ~azure.core.credentials.TokenCredential
95+
:param subscription_id: Subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call.
96+
:type subscription_id: str
97+
:param str base_url: Service URL
98+
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
99+
"""
100+
101+
def __init__(
102+
self,
103+
credential, # type: "TokenCredential"
104+
subscription_id, # type: str
105+
base_url=None, # type: Optional[str]
106+
**kwargs # type: Any
107+
):
108+
# type: (...) -> None
109+
if not base_url:
110+
base_url = 'https://management.azure.com'
111+
self._config = ComputeManagementClientConfiguration(credential, subscription_id, **kwargs)
112+
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
113+
114+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
115+
self._serialize = Serializer(client_models)
116+
self._deserialize = Deserializer(client_models)
117+
118+
self.operations = Operations(
119+
self._client, self._config, self._serialize, self._deserialize)
120+
self.availability_sets = AvailabilitySetsOperations(
121+
self._client, self._config, self._serialize, self._deserialize)
122+
self.proximity_placement_groups = ProximityPlacementGroupsOperations(
123+
self._client, self._config, self._serialize, self._deserialize)
124+
self.dedicated_host_groups = DedicatedHostGroupsOperations(
125+
self._client, self._config, self._serialize, self._deserialize)
126+
self.dedicated_hosts = DedicatedHostsOperations(
127+
self._client, self._config, self._serialize, self._deserialize)
128+
self.ssh_public_keys = SshPublicKeysOperations(
129+
self._client, self._config, self._serialize, self._deserialize)
130+
self.virtual_machine_extension_images = VirtualMachineExtensionImagesOperations(
131+
self._client, self._config, self._serialize, self._deserialize)
132+
self.virtual_machine_extensions = VirtualMachineExtensionsOperations(
133+
self._client, self._config, self._serialize, self._deserialize)
134+
self.virtual_machine_images = VirtualMachineImagesOperations(
135+
self._client, self._config, self._serialize, self._deserialize)
136+
self.virtual_machine_images_edge_zone = VirtualMachineImagesEdgeZoneOperations(
137+
self._client, self._config, self._serialize, self._deserialize)
138+
self.usage = UsageOperations(
139+
self._client, self._config, self._serialize, self._deserialize)
140+
self.virtual_machines = VirtualMachinesOperations(
141+
self._client, self._config, self._serialize, self._deserialize)
142+
self.virtual_machine_scale_sets = VirtualMachineScaleSetsOperations(
143+
self._client, self._config, self._serialize, self._deserialize)
144+
self.virtual_machine_sizes = VirtualMachineSizesOperations(
145+
self._client, self._config, self._serialize, self._deserialize)
146+
self.images = ImagesOperations(
147+
self._client, self._config, self._serialize, self._deserialize)
148+
self.virtual_machine_scale_set_extensions = VirtualMachineScaleSetExtensionsOperations(
149+
self._client, self._config, self._serialize, self._deserialize)
150+
self.virtual_machine_scale_set_rolling_upgrades = VirtualMachineScaleSetRollingUpgradesOperations(
151+
self._client, self._config, self._serialize, self._deserialize)
152+
self.virtual_machine_scale_set_vm_extensions = VirtualMachineScaleSetVMExtensionsOperations(
153+
self._client, self._config, self._serialize, self._deserialize)
154+
self.virtual_machine_scale_set_vms = VirtualMachineScaleSetVMsOperations(
155+
self._client, self._config, self._serialize, self._deserialize)
156+
self.log_analytics = LogAnalyticsOperations(
157+
self._client, self._config, self._serialize, self._deserialize)
158+
self.virtual_machine_run_commands = VirtualMachineRunCommandsOperations(
159+
self._client, self._config, self._serialize, self._deserialize)
160+
self.virtual_machine_scale_set_vm_run_commands = VirtualMachineScaleSetVMRunCommandsOperations(
161+
self._client, self._config, self._serialize, self._deserialize)
162+
163+
def close(self):
164+
# type: () -> None
165+
self._client.close()
166+
167+
def __enter__(self):
168+
# type: () -> ComputeManagementClient
169+
self._client.__enter__()
170+
return self
171+
172+
def __exit__(self, *exc_details):
173+
# type: (Any) -> None
174+
self._client.__exit__(*exc_details)

0 commit comments

Comments
 (0)