Skip to content

Commit

Permalink
azure-mgmt-monitor 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel committed Mar 19, 2018
1 parent b6af5b9 commit f612b92
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 11 deletions.
43 changes: 43 additions & 0 deletions azure-mgmt-monitor/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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)
++++++++++++++++++

Expand Down
10 changes: 5 additions & 5 deletions azure-mgmt-monitor/README.rst
Original file line number Diff line number Diff line change
@@ -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 <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down Expand Up @@ -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
<https://azure-sdk-for-python.readthedocs.org/en/latest/sample_azure-mgmt-monitor.html>`__
on readthedocs.org.
For code examples, see `Monitor
<https://docs.microsoft.com/python/api/overview/azure/monitoring>`__
on docs.microsoft.com.


Provide Feedback
Expand Down
11 changes: 5 additions & 6 deletions azure-mgmt-monitor/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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('-', '/')
Expand Down Expand Up @@ -61,25 +61,24 @@
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',
'Programming Language :: Python',
'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
)

0 comments on commit f612b92

Please sign in to comment.