Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 12 additions & 1 deletion azure-mgmt-eventhub/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
Release History
===============

2.1.0 (2018-07-31)
++++++++++++++++++

**Features**

- Add pending_replication_operations_count support

**Bugfixes**

- Fix some Python3 models

2.0.0 (2018-05-04)
++++++++++++++++++

Expand All @@ -24,7 +35,7 @@ This version uses a next-generation code generator that *might* introduce breaki

- 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`,
- 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.
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-eventhub/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure EventHub Management 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.4, 3.5 and 3.6.
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ class ArmDisasterRecovery(Resource):
'PrimaryNotReplicating' or 'Secondary'. Possible values include:
'Primary', 'PrimaryNotReplicating', 'Secondary'
:vartype role: str or ~azure.mgmt.eventhub.models.RoleDisasterRecovery
:ivar pending_replication_operations_count: Number of entities pending to
be replicated.
:vartype pending_replication_operations_count: long
"""

_validation = {
Expand All @@ -48,6 +51,7 @@ class ArmDisasterRecovery(Resource):
'type': {'readonly': True},
'provisioning_state': {'readonly': True},
'role': {'readonly': True},
'pending_replication_operations_count': {'readonly': True},
}

_attribute_map = {
Expand All @@ -58,6 +62,7 @@ class ArmDisasterRecovery(Resource):
'partner_namespace': {'key': 'properties.partnerNamespace', 'type': 'str'},
'alternate_name': {'key': 'properties.alternateName', 'type': 'str'},
'role': {'key': 'properties.role', 'type': 'RoleDisasterRecovery'},
'pending_replication_operations_count': {'key': 'properties.pendingReplicationOperationsCount', 'type': 'long'},
}

def __init__(self, **kwargs):
Expand All @@ -66,3 +71,4 @@ def __init__(self, **kwargs):
self.partner_namespace = kwargs.get('partner_namespace', None)
self.alternate_name = kwargs.get('alternate_name', None)
self.role = None
self.pending_replication_operations_count = None
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class ArmDisasterRecovery(Resource):
Expand Down Expand Up @@ -40,6 +40,9 @@ class ArmDisasterRecovery(Resource):
'PrimaryNotReplicating' or 'Secondary'. Possible values include:
'Primary', 'PrimaryNotReplicating', 'Secondary'
:vartype role: str or ~azure.mgmt.eventhub.models.RoleDisasterRecovery
:ivar pending_replication_operations_count: Number of entities pending to
be replicated.
:vartype pending_replication_operations_count: long
"""

_validation = {
Expand All @@ -48,6 +51,7 @@ class ArmDisasterRecovery(Resource):
'type': {'readonly': True},
'provisioning_state': {'readonly': True},
'role': {'readonly': True},
'pending_replication_operations_count': {'readonly': True},
}

_attribute_map = {
Expand All @@ -58,6 +62,7 @@ class ArmDisasterRecovery(Resource):
'partner_namespace': {'key': 'properties.partnerNamespace', 'type': 'str'},
'alternate_name': {'key': 'properties.alternateName', 'type': 'str'},
'role': {'key': 'properties.role', 'type': 'RoleDisasterRecovery'},
'pending_replication_operations_count': {'key': 'properties.pendingReplicationOperationsCount', 'type': 'long'},
}

def __init__(self, *, partner_namespace: str=None, alternate_name: str=None, **kwargs) -> None:
Expand All @@ -66,3 +71,4 @@ def __init__(self, *, partner_namespace: str=None, alternate_name: str=None, **k
self.partner_namespace = partner_namespace
self.alternate_name = alternate_name
self.role = None
self.pending_replication_operations_count = None
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class AuthorizationRule(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class ConsumerGroup(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .tracked_resource import TrackedResource
from .tracked_resource_py3 import TrackedResource


class EHNamespace(TrackedResource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class Eventhub(Resource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .tracked_resource import TrackedResource
from .tracked_resource_py3 import TrackedResource


class MessagingPlan(TrackedResource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .tracked_resource import TrackedResource
from .tracked_resource_py3 import TrackedResource


class MessagingRegions(TrackedResource):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .resource_py3 import Resource


class TrackedResource(Resource):
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-eventhub/azure/mgmt/eventhub/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "2.0.0"
VERSION = "2.1.0"

5 changes: 5 additions & 0 deletions azure-mgmt-eventhub/sdk_packaging.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[packaging]
package_name = "azure-mgmt-eventhub"
package_pprint_name = "EventHub Management"
package_doc_id = "event-hub"
is_stable = true
6 changes: 4 additions & 2 deletions azure-mgmt-eventhub/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,22 @@
author_email='[email protected]',
url='https://github.com/Azure/azure-sdk-for-python',
classifiers=[
'Development Status :: 4 - Beta',
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'License :: OSI Approved :: MIT License',
],
zip_safe=False,
packages=find_packages(exclude=["tests"]),
install_requires=[
'msrestazure>=0.4.27,<2.0.0',
'msrest>=0.5.0',
'msrestazure>=0.4.32,<2.0.0',
'azure-common~=1.1',
],
cmdclass=cmdclass
Expand Down