From f612b9283a63dd066228a0cea599d512a59d9175 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Mon, 19 Mar 2018 12:47:40 -0700 Subject: [PATCH] azure-mgmt-monitor 0.5.0 --- azure-mgmt-monitor/HISTORY.rst | 43 ++++++++++++++++++++++++++++++++++ azure-mgmt-monitor/README.rst | 10 ++++---- azure-mgmt-monitor/setup.py | 11 ++++----- 3 files changed, 53 insertions(+), 11 deletions(-) diff --git a/azure-mgmt-monitor/HISTORY.rst b/azure-mgmt-monitor/HISTORY.rst index 53018fbc70f4..cfe241635d45 100644 --- a/azure-mgmt-monitor/HISTORY.rst +++ b/azure-mgmt-monitor/HISTORY.rst @@ -3,6 +3,49 @@ Release History =============== +0.5.0 (2017-03-19) +++++++++++++++++++ + +**General Breaking changes** + +This version uses a next-generation code generator that *might* introduce breaking changes. + +- Model signatures now use only keyword-argument syntax. All positional arguments must be re-written as keyword-arguments. + To keep auto-completion in most cases, models are now generated for Python 2 and Python 3. Python 3 uses the "*" syntax for keyword-only arguments. +- Enum types now use the "str" mixin (class AzureEnum(str, Enum)) to improve the behavior when unrecognized enum values are encountered. + While this is not a breaking change, the distinctions are important, and are documented here: + https://docs.python.org/3/library/enum.html#others + At a glance: + + - "is" should not be used at all. + - "format" will return the string value, where "%s" string formatting will return `NameOfEnum.stringvalue`. Format syntax should be prefered. + +- New Long Running Operation: + + - Return type changes from `msrestazure.azure_operation.AzureOperationPoller` to `msrest.polling.LROPoller`. External API is the same. + - Return type is now **always** a `msrest.polling.LROPoller`, regardless of the optional parameters used. + - The behavior has changed when using `raw=True`. Instead of returning the initial call result as `ClientRawResponse`, + without polling, now this returns an LROPoller. After polling, the final resource will be returned as a `ClientRawResponse`. + - New `polling` parameter. The default behavior is `Polling=True` which will poll using ARM algorithm. When `Polling=False`, + the response of the initial call will be returned without polling. + - `polling` parameter accepts instances of subclasses of `msrest.polling.PollingMethod`. + - `add_done_callback` will no longer raise if called after polling is finished, but will instead execute the callback right away. + +**Bugfixes** + +- Fix invalid type of "top" in metrics.list operation + +**Features** + +- New operation group metric_baseline +- Add attribute action_group_resource itsm_receivers +- Add operation action_groups.update +- Add new parameter "metricnames" to metrics.list +- Add new parameter "metricnamespace" to metrics.list +- All operations group have now a "models" attribute + +New ApiVersion version of metrics to 2018-01-01 + 0.4.0 (2017-10-25) ++++++++++++++++++ diff --git a/azure-mgmt-monitor/README.rst b/azure-mgmt-monitor/README.rst index 7b462aca9b04..dbfab2bfccfb 100644 --- a/azure-mgmt-monitor/README.rst +++ b/azure-mgmt-monitor/README.rst @@ -1,12 +1,12 @@ Microsoft Azure SDK for Python ============================== -This is the Microsoft Azure Monitor Management Client Library. +This is the Microsoft Azure Monitor Client Library. Azure Resource Manager (ARM) is the next generation of management APIs that replace the old Azure Service Management (ASM). -This package has been tested with Python 2.7, 3.3, 3.4, 3.5 and 3.6. +This package has been tested with Python 2.7, 3.4, 3.5 and 3.6. For the older Azure Service Management (ASM) libraries, see `azure-servicemanagement-legacy `__ library. @@ -36,9 +36,9 @@ If you see azure==0.11.0 (or any version below 1.0), uninstall it first: Usage ===== -For code examples, see `Monitor Management -`__ -on readthedocs.org. +For code examples, see `Monitor +`__ +on docs.microsoft.com. Provide Feedback diff --git a/azure-mgmt-monitor/setup.py b/azure-mgmt-monitor/setup.py index bbaf2bd4cae7..e0c133de0bf6 100644 --- a/azure-mgmt-monitor/setup.py +++ b/azure-mgmt-monitor/setup.py @@ -19,7 +19,7 @@ # Change the PACKAGE_NAME only to change folder and different name PACKAGE_NAME = "azure-mgmt-monitor" -PACKAGE_PPRINT_NAME = "Monitor Management" +PACKAGE_PPRINT_NAME = "Monitor" # a-b-c => a/b/c package_folder_path = PACKAGE_NAME.replace('-', '/') @@ -61,7 +61,7 @@ long_description=readme + '\n\n' + history, license='MIT License', author='Microsoft Corporation', - author_email='ptvshelp@microsoft.com', + author_email='azpysdkhelp@microsoft.com', url='https://github.com/Azure/azure-sdk-for-python', classifiers=[ 'Development Status :: 4 - Beta', @@ -69,17 +69,16 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'License :: OSI Approved :: MIT License', ], zip_safe=False, - packages=find_packages(), + packages=find_packages(exclude=["tests"]), install_requires=[ - 'msrestazure~=0.4.8', - 'azure-common~=1.1.6', + 'msrestazure>=0.4.20,<2.0.0', + 'azure-common~=1.1', ], cmdclass=cmdclass )