Skip to content

Commit d27aca7

Browse files
dw511214992SDK Automation
and
SDK Automation
authored
Release for azure mgmt eventhub (#11403)
* Update from master * bump version update CHANGELOG.md update test update test recording Co-authored-by: SDK Automation <[email protected]>
1 parent 7817d44 commit d27aca7

Some content is hidden

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

41 files changed

+7701
-2586
lines changed

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

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

3+
## 3.1.0 (2020-05-13)
4+
5+
**Features**
6+
7+
- Model EHNamespace has a new parameter encryption
8+
- Model EHNamespace has a new parameter identity
9+
- Model EHNamespace has a new parameter cluster_arm_id
10+
- Added operation NamespacesOperations.list_keys
11+
- Added operation NamespacesOperations.get_authorization_rule
12+
- Added operation NamespacesOperations.check_name_availability
13+
- Added operation NamespacesOperations.list_authorization_rules
14+
- Added operation NamespacesOperations.regenerate_keys
15+
- Added operation NamespacesOperations.create_or_update_authorization_rule
16+
- Added operation NamespacesOperations.delete_authorization_rule
17+
318
## 3.0.0 (2019-06-18)
419

520
**General Breaking changes**
Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,21 @@
1-
## Microsoft Azure SDK for Python
1+
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure EventHub Management Client Library.
4+
This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8.
5+
For a more complete view of Azure libraries, see the [Github repo](https://github.com/Azure/azure-sdk-for-python/)
46

5-
Azure Resource Manager (ARM) is the next generation of management APIs
6-
that replace the old Azure Service Management (ASM).
77

8-
This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
9-
10-
For the older Azure Service Management (ASM) libraries, see
11-
[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy) library.
12-
13-
For a more complete set of Azure libraries, see the [azure](https://pypi.python.org/pypi/azure) bundle package.
14-
15-
## Usage
8+
# Usage
169

1710
For code examples, see [EventHub Management](https://docs.microsoft.com/python/api/overview/azure/event-hub)
1811
on docs.microsoft.com.
1912

20-
## Provide Feedback
13+
14+
# Provide Feedback
2115

2216
If you encounter any bugs or have suggestions, please file an issue in the
2317
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
2418
section of the project.
2519

26-
![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-eventhub%2FREADME.png)
20+
21+
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-eventhub%2FREADME.png)

sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/_event_hub_management_client.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,12 +119,15 @@ def consumer_groups(self):
119119
120120
* 2015-08-01: :class:`ConsumerGroupsOperations<azure.mgmt.eventhub.v2015_08_01.operations.ConsumerGroupsOperations>`
121121
* 2017-04-01: :class:`ConsumerGroupsOperations<azure.mgmt.eventhub.v2017_04_01.operations.ConsumerGroupsOperations>`
122+
* 2018-01-01-preview: :class:`ConsumerGroupsOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.ConsumerGroupsOperations>`
122123
"""
123124
api_version = self._get_api_version('consumer_groups')
124125
if api_version == '2015-08-01':
125126
from .v2015_08_01.operations import ConsumerGroupsOperations as OperationClass
126127
elif api_version == '2017-04-01':
127128
from .v2017_04_01.operations import ConsumerGroupsOperations as OperationClass
129+
elif api_version == '2018-01-01-preview':
130+
from .v2018_01_01_preview.operations import ConsumerGroupsOperations as OperationClass
128131
else:
129132
raise NotImplementedError("APIVersion {} is not available".format(api_version))
130133
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -134,10 +137,13 @@ def disaster_recovery_configs(self):
134137
"""Instance depends on the API version:
135138
136139
* 2017-04-01: :class:`DisasterRecoveryConfigsOperations<azure.mgmt.eventhub.v2017_04_01.operations.DisasterRecoveryConfigsOperations>`
140+
* 2018-01-01-preview: :class:`DisasterRecoveryConfigsOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.DisasterRecoveryConfigsOperations>`
137141
"""
138142
api_version = self._get_api_version('disaster_recovery_configs')
139143
if api_version == '2017-04-01':
140144
from .v2017_04_01.operations import DisasterRecoveryConfigsOperations as OperationClass
145+
elif api_version == '2018-01-01-preview':
146+
from .v2018_01_01_preview.operations import DisasterRecoveryConfigsOperations as OperationClass
141147
else:
142148
raise NotImplementedError("APIVersion {} is not available".format(api_version))
143149
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -148,12 +154,15 @@ def event_hubs(self):
148154
149155
* 2015-08-01: :class:`EventHubsOperations<azure.mgmt.eventhub.v2015_08_01.operations.EventHubsOperations>`
150156
* 2017-04-01: :class:`EventHubsOperations<azure.mgmt.eventhub.v2017_04_01.operations.EventHubsOperations>`
157+
* 2018-01-01-preview: :class:`EventHubsOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.EventHubsOperations>`
151158
"""
152159
api_version = self._get_api_version('event_hubs')
153160
if api_version == '2015-08-01':
154161
from .v2015_08_01.operations import EventHubsOperations as OperationClass
155162
elif api_version == '2017-04-01':
156163
from .v2017_04_01.operations import EventHubsOperations as OperationClass
164+
elif api_version == '2018-01-01-preview':
165+
from .v2018_01_01_preview.operations import EventHubsOperations as OperationClass
157166
else:
158167
raise NotImplementedError("APIVersion {} is not available".format(api_version))
159168
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -201,10 +210,13 @@ def regions(self):
201210
"""Instance depends on the API version:
202211
203212
* 2017-04-01: :class:`RegionsOperations<azure.mgmt.eventhub.v2017_04_01.operations.RegionsOperations>`
213+
* 2018-01-01-preview: :class:`RegionsOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.RegionsOperations>`
204214
"""
205215
api_version = self._get_api_version('regions')
206216
if api_version == '2017-04-01':
207217
from .v2017_04_01.operations import RegionsOperations as OperationClass
218+
elif api_version == '2018-01-01-preview':
219+
from .v2018_01_01_preview.operations import RegionsOperations as OperationClass
208220
else:
209221
raise NotImplementedError("APIVersion {} is not available".format(api_version))
210222
return OperationClass(self._client, self.config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))

sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2015_08_01/operations/_event_hubs_operations.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ def get_authorization_rule(
532532
return deserialized
533533
get_authorization_rule.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}'}
534534

535-
def postt_authorization_rule(
535+
def post_authorization_rule(
536536
self, resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config):
537537
"""Gets an AuthorizationRule for an Event Hub by rule name.
538538
@@ -558,7 +558,7 @@ def postt_authorization_rule(
558558
:raises: :class:`CloudError<msrestazure.azure_exceptions.CloudError>`
559559
"""
560560
# Construct URL
561-
url = self.postt_authorization_rule.metadata['url']
561+
url = self.post_authorization_rule.metadata['url']
562562
path_format_arguments = {
563563
'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1),
564564
'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6),
@@ -600,7 +600,7 @@ def postt_authorization_rule(
600600
return client_raw_response
601601

602602
return deserialized
603-
postt_authorization_rule.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}'}
603+
post_authorization_rule.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}'}
604604

605605
def delete_authorization_rule(
606606
self, resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config):

sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01/_event_hub_management_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
from msrest import Serializer, Deserializer
1414

1515
from ._configuration import EventHubManagementClientConfiguration
16-
from .operations import Operations
1716
from .operations import NamespacesOperations
1817
from .operations import DisasterRecoveryConfigsOperations
1918
from .operations import EventHubsOperations
2019
from .operations import ConsumerGroupsOperations
20+
from .operations import Operations
2121
from .operations import RegionsOperations
2222
from . import models
2323

@@ -28,8 +28,6 @@ class EventHubManagementClient(SDKClient):
2828
:ivar config: Configuration for client.
2929
:vartype config: EventHubManagementClientConfiguration
3030
31-
:ivar operations: Operations operations
32-
:vartype operations: azure.mgmt.eventhub.v2017_04_01.operations.Operations
3331
:ivar namespaces: Namespaces operations
3432
:vartype namespaces: azure.mgmt.eventhub.v2017_04_01.operations.NamespacesOperations
3533
:ivar disaster_recovery_configs: DisasterRecoveryConfigs operations
@@ -38,6 +36,8 @@ class EventHubManagementClient(SDKClient):
3836
:vartype event_hubs: azure.mgmt.eventhub.v2017_04_01.operations.EventHubsOperations
3937
:ivar consumer_groups: ConsumerGroups operations
4038
:vartype consumer_groups: azure.mgmt.eventhub.v2017_04_01.operations.ConsumerGroupsOperations
39+
:ivar operations: Operations operations
40+
:vartype operations: azure.mgmt.eventhub.v2017_04_01.operations.Operations
4141
:ivar regions: Regions operations
4242
:vartype regions: azure.mgmt.eventhub.v2017_04_01.operations.RegionsOperations
4343
@@ -62,8 +62,6 @@ def __init__(
6262
self._serialize = Serializer(client_models)
6363
self._deserialize = Deserializer(client_models)
6464

65-
self.operations = Operations(
66-
self._client, self.config, self._serialize, self._deserialize)
6765
self.namespaces = NamespacesOperations(
6866
self._client, self.config, self._serialize, self._deserialize)
6967
self.disaster_recovery_configs = DisasterRecoveryConfigsOperations(
@@ -72,5 +70,7 @@ def __init__(
7270
self._client, self.config, self._serialize, self._deserialize)
7371
self.consumer_groups = ConsumerGroupsOperations(
7472
self._client, self.config, self._serialize, self._deserialize)
73+
self.operations = Operations(
74+
self._client, self.config, self._serialize, self._deserialize)
7575
self.regions = RegionsOperations(
7676
self._client, self.config, self._serialize, self._deserialize)

sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01/models/__init__.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,18 @@
6565
from ._paged_models import EHNamespacePaged
6666
from ._paged_models import EventhubPaged
6767
from ._paged_models import MessagingRegionsPaged
68+
from ._paged_models import NetworkRuleSetPaged
6869
from ._paged_models import OperationPaged
6970
from ._event_hub_management_client_enums import (
70-
SkuName,
71-
SkuTier,
7271
AccessRights,
7372
KeyType,
74-
EntityStatus,
75-
EncodingCaptureDescription,
7673
UnavailableReason,
7774
ProvisioningStateDR,
7875
RoleDisasterRecovery,
76+
EncodingCaptureDescription,
77+
EntityStatus,
78+
SkuName,
79+
SkuTier,
7980
NetworkRuleIPAction,
8081
DefaultAction,
8182
)
@@ -105,22 +106,23 @@
105106
'Sku',
106107
'Subnet',
107108
'TrackedResource',
108-
'OperationPaged',
109-
'EHNamespacePaged',
110109
'AuthorizationRulePaged',
110+
'EHNamespacePaged',
111+
'NetworkRuleSetPaged',
111112
'ArmDisasterRecoveryPaged',
112113
'EventhubPaged',
113114
'ConsumerGroupPaged',
115+
'OperationPaged',
114116
'MessagingRegionsPaged',
115-
'SkuName',
116-
'SkuTier',
117117
'AccessRights',
118118
'KeyType',
119-
'EntityStatus',
120-
'EncodingCaptureDescription',
121119
'UnavailableReason',
122120
'ProvisioningStateDR',
123121
'RoleDisasterRecovery',
122+
'EncodingCaptureDescription',
123+
'EntityStatus',
124+
'SkuName',
125+
'SkuTier',
124126
'NetworkRuleIPAction',
125127
'DefaultAction',
126128
]

sdk/eventhub/azure-mgmt-eventhub/azure/mgmt/eventhub/v2017_04_01/models/_event_hub_management_client_enums.py

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -12,18 +12,6 @@
1212
from enum import Enum
1313

1414

15-
class SkuName(str, Enum):
16-
17-
basic = "Basic"
18-
standard = "Standard"
19-
20-
21-
class SkuTier(str, Enum):
22-
23-
basic = "Basic"
24-
standard = "Standard"
25-
26-
2715
class AccessRights(str, Enum):
2816

2917
manage = "Manage"
@@ -37,25 +25,6 @@ class KeyType(str, Enum):
3725
secondary_key = "SecondaryKey"
3826

3927

40-
class EntityStatus(str, Enum):
41-
42-
active = "Active"
43-
disabled = "Disabled"
44-
restoring = "Restoring"
45-
send_disabled = "SendDisabled"
46-
receive_disabled = "ReceiveDisabled"
47-
creating = "Creating"
48-
deleting = "Deleting"
49-
renaming = "Renaming"
50-
unknown = "Unknown"
51-
52-
53-
class EncodingCaptureDescription(str, Enum):
54-
55-
avro = "Avro"
56-
avro_deflate = "AvroDeflate"
57-
58-
5928
class UnavailableReason(str, Enum):
6029

6130
none = "None"
@@ -80,6 +49,37 @@ class RoleDisasterRecovery(str, Enum):
8049
secondary = "Secondary"
8150

8251

52+
class EncodingCaptureDescription(str, Enum):
53+
54+
avro = "Avro"
55+
avro_deflate = "AvroDeflate"
56+
57+
58+
class EntityStatus(str, Enum):
59+
60+
active = "Active"
61+
disabled = "Disabled"
62+
restoring = "Restoring"
63+
send_disabled = "SendDisabled"
64+
receive_disabled = "ReceiveDisabled"
65+
creating = "Creating"
66+
deleting = "Deleting"
67+
renaming = "Renaming"
68+
unknown = "Unknown"
69+
70+
71+
class SkuName(str, Enum):
72+
73+
basic = "Basic"
74+
standard = "Standard"
75+
76+
77+
class SkuTier(str, Enum):
78+
79+
basic = "Basic"
80+
standard = "Standard"
81+
82+
8383
class NetworkRuleIPAction(str, Enum):
8484

8585
allow = "Allow"

0 commit comments

Comments
 (0)