Skip to content

Commit dce924b

Browse files
lmazuelZim Kalinowski
authored and
Zim Kalinowski
committed
[AutoPR] compute/resource-manager (#5853)
* Compute with autorest v4 * [AutoPR compute/resource-manager] Update enableAutomaticUpdates and enableAutomaticOSUpgrade descriptions to reflect exclusivity (#5870) * Generated from efab187b804b358a24606688e81ba0232f07f509 Update enableAutomaticUpdates and enableAutomaticOSUpgrade descriptions * Generated from 4687781cbc4891656516db2bbd4200360b70565c br tag fix * [AutoPR compute/resource-manager] Added Examples and Updated Comments for SKU and Computer APIs in the swagger (#5907) * Generated from 2d93cea773d3bfdb88557bd87401ed5eea190598 updated swagger documentation and reverted the breaking changes * Generated from f72e6426d0f4bcdfd0d79ed7841632b718deb296 updated swagger to remove the model validation errors for existing examples where we are passing read only parameter in the request * [AutoPR compute/resource-manager] [Do Not Merge] Update compute.json to include hyperVGeneration property for Virtua… (#5901) * Generated from 5e589ea1eac49504c9d6f856b22a3d799c85a6d6 Update compute.json to include hyperVGeneration property for VirtualMachineInstanceView Adds hyperVGeneration which displays what HyperVisor Generation the VM Boots in, via the VirtualMachineInstanceView. * Generated from 5e589ea1eac49504c9d6f856b22a3d799c85a6d6 Update compute.json to include hyperVGeneration property for VirtualMachineInstanceView Adds hyperVGeneration which displays what HyperVisor Generation the VM Boots in, via the VirtualMachineInstanceView. * Generated from 451b51f1b58bc4f824676c3e48157bc66761b4be (#6009) Modified ProxmityPlacementGroupType description * [AutoPR compute/resource-manager] Dev/ccelik/dedicated host swagger (#6149) * Generated from beed92f79dacff0ce3d1a65d3ecf42449d17a47c Removed extra comma * Packaging update of azure-mgmt-compute * Rebuild by #5853 * [AutoPR compute/resource-manager] Dev/ccelik/dedicatedhostswagger (#6339) * Generated from 4e21b51a1eb644bbed2b7d1d7016490b8d54cdf0 Update compute.json Documentation changes and marked required fields * Generated from 007443c407844b7e8d76bdb617fa2b1b21a26a04 Use min max * Generated from 124f9aa0504f60c88ea83ae34cd2404627c240b1 Removed availableVCpus * updated changelog * additional changes
1 parent 2550aee commit dce924b

File tree

2,831 files changed

+180736
-205428
lines changed

Some content is hidden

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

2,831 files changed

+180736
-205428
lines changed

sdk/compute/azure-mgmt-compute/HISTORY.rst

+29
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,35 @@
33
Release History
44
===============
55

6+
6.0.0 (2019-07-20)
7+
++++++++++++++++++
8+
9+
**Features**
10+
11+
- Model VirtualMachine has a new parameter host
12+
- Model VirtualMachineUpdate has a new parameter host
13+
- Model VirtualMachineInstanceView has a new parameter hyper_vgeneration
14+
- Added operation group GalleryApplicationVersionsOperations
15+
- Added operation group GalleryApplicationsOperations
16+
- Added operation group DedicatedHostsOperations
17+
- Added operation group DedicatedHostGroupsOperations
18+
19+
**Breaking changes**
20+
21+
- Model GalleryArtifactPublishingProfileBase has a new signature
22+
23+
**General Breaking changes**
24+
25+
This version uses a next-generation code generator that *might* introduce breaking changes if you were importing from the v20xx_yy_zz API folders.
26+
In summary, some modules were incorrectly visible/importable and have been renamed. This fixed several issues caused by usage of classes that were not supposed to be used in the first place.
27+
28+
- ComputeManagementClient cannot be imported from `azure.mgmt.compute.v20xx_yy_zz.compute_management_client` anymore (import from `azure.mgmt.compute.v20xx_yy_zz` works like before)
29+
- ComputeManagementClientConfiguration import has been moved from `azure.mgmt.compute.v20xx_yy_zz.compute_management_client` to `azure.mgmt.compute.v20xx_yy_zz`
30+
- A model `MyClass` from a "models" sub-module cannot be imported anymore using `azure.mgmt.compute.v20xx_yy_zz.models.my_class` (import from `azure.mgmt.compute.v20xx_yy_zz.models` works like before)
31+
- An operation class `MyClassOperations` from an `operations` sub-module cannot be imported anymore using `azure.mgmt.compute.v20xx_yy_zz.operations.my_class_operations` (import from `azure.mgmt.compute.v20xx_yy_zz.operations` works like before)
32+
33+
Last but not least, HTTP connection pooling is now enabled by default. You should always use a client as a context manager, or call close(), or use no more than one client per process.
34+
635
5.0.0 (2019-04-26)
736
++++++++++++++++++
837

sdk/compute/azure-mgmt-compute/README.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ This is the Microsoft Azure Compute Management Client Library.
66
Azure Resource Manager (ARM) is the next generation of management APIs that
77
replace the old Azure Service Management (ASM).
88

9-
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
9+
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.
1010

1111
For the older Azure Service Management (ASM) libraries, see
1212
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
1-
# coding=utf-8
1+
# coding=utf-8
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for
55
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
610
# --------------------------------------------------------------------------
711

8-
from .compute_management_client import ComputeManagementClient
12+
from ._configuration import ComputeManagementClientConfiguration
13+
from ._compute_management_client import ComputeManagementClient
14+
__all__ = ['ComputeManagementClient', 'ComputeManagementClientConfiguration']
15+
916
from .version import VERSION
1017

1118
__version__ = VERSION
12-
__all__ = ['ComputeManagementClient']
19+

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

+838
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class ComputeManagementClientConfiguration(AzureConfiguration):
17+
"""Configuration for ComputeManagementClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: Subscription credentials which uniquely identify
25+
Microsoft Azure subscription. The subscription ID forms part of the URI
26+
for every service call.
27+
:type subscription_id: str
28+
:param str base_url: Service URL
29+
"""
30+
31+
def __init__(
32+
self, credentials, subscription_id, base_url=None):
33+
34+
if credentials is None:
35+
raise ValueError("Parameter 'credentials' must not be None.")
36+
if subscription_id is None:
37+
raise ValueError("Parameter 'subscription_id' must not be None.")
38+
if not base_url:
39+
base_url = 'https://management.azure.com'
40+
41+
super(ComputeManagementClientConfiguration, self).__init__(base_url)
42+
43+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
44+
self.keep_alive = True
45+
46+
self.add_user_agent('azure-mgmt-compute/{}'.format(VERSION))
47+
self.add_user_agent('Azure-SDK-For-Python')
48+
49+
self.credentials = credentials
50+
self.subscription_id = subscription_id

0 commit comments

Comments
 (0)