Skip to content

Commit a644e1e

Browse files
Azure CLI BotSDKAutodamodaravadhaniv-ajnavaBigCat20196
authored
[AutoRelease] t2-eventhub-2021-10-25-83263 (Azure#21397)
* CodeGen from PR 16363 in Azure/azure-rest-api-specs EventHub : New API version 2021-11-01 (Azure#16363) * base commit for new api version 2021-11-01 * new api version 2021-11-01 changes * CI fixes * CI fixes * fix for Python SDK * added common def v2 * avocado fix * updated common types * update to address S360 * S360 fix for DisasterRecoveryConfigs * Revert "S360 fix for DisasterRecoveryConfigs" This reverts commit 2476975abd304ee89f1382ceaee280ad3a711e15. * Added SchemaRegistry API * CI fixes - Schemagroup * corrected Schemagroup group properties * reverted the proxyresource location change * Revert "reverted the proxyresource location change" This reverts commit ac79e8a163198742f32adfdc40cc11aa2e039e90. * addresing S360 swagger correctness fro operations and capture * updated description for datalake in capture * subscription format to uuid Co-authored-by: Damodar Avadhani <davadhani@microsoft.com> Co-authored-by: v-ajnava <v-ajnava@microsoft.com> * version,CHANGELOG * Update CHANGELOG.md Co-authored-by: SDKAuto <sdkautomation@microsoft.com> Co-authored-by: Damodar Avadhani <davadhani@microsoft.com> Co-authored-by: v-ajnava <v-ajnava@microsoft.com> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Jiefeng Chen <51037443+BigCat20196@users.noreply.github.com>
1 parent 4b79413 commit a644e1e

Some content is hidden

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

54 files changed

+15398
-272
lines changed

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

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# Release History
22

3+
## 10.0.0 (2021-11-01)
4+
5+
**Features**
6+
7+
- Model ErrorResponse has a new parameter error
8+
- Model NetworkRuleSet has a new parameter location
9+
- Model Eventhub has a new parameter location
10+
- Model ConsumerGroup has a new parameter location
11+
- Model ArmDisasterRecovery has a new parameter location
12+
- Model Operation has a new parameter is_data_action
13+
- Model Operation has a new parameter origin
14+
- Model Operation has a new parameter properties
15+
- Model PrivateEndpointConnection has a new parameter location
16+
- Model Destination has a new parameter data_lake_account_name
17+
- Model Destination has a new parameter data_lake_subscription_id
18+
- Model Destination has a new parameter data_lake_folder_path
19+
- Model EHNamespace has a new parameter alternate_name
20+
- Model OperationDisplay has a new parameter description
21+
- Model AuthorizationRule has a new parameter location
22+
- Added operation NamespacesOperations.list_network_rule_set
23+
- Added operation group SchemaRegistryOperations
24+
25+
**Breaking changes**
26+
27+
- Model ErrorResponse no longer has parameter message
28+
- Model ErrorResponse no longer has parameter code
29+
330
## 9.1.0 (2021-09-17)
431

532
**Features**
@@ -291,4 +318,4 @@ This wheel package is built with the azure wheel extension
291318

292319
## 0.1.0 (2016-10-27)
293320

294-
- Initial Release
321+
- Initial Release

sdk/eventhub/azure-mgmt-eventhub/_meta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"@autorest/python@5.8.4",
55
"@autorest/modelerfour@4.19.2"
66
],
7-
"commit": "c9992af7235a6550087d4fed8f081ed35019f605",
7+
"commit": "ea69fef496210478b8a9e2c3f8804f3acfb35891",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
99
"autorest_command": "autorest specification/eventhub/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/python@5.8.4 --use=@autorest/modelerfour@4.19.2 --version=3.4.5",
1010
"readme": "specification/eventhub/resource-manager/readme.md"

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

Lines changed: 47 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(self, *args, **kwargs):
3333
pass
3434

3535
class EventHubManagementClient(MultiApiClientMixin, _SDKClient):
36-
"""Azure Event Hubs client.
36+
"""Azure Event Hubs client for managing Event Hubs Cluster, IPFilter Rules and VirtualNetworkRules resources.
3737
3838
This ready contains multiple API versions, to help you deal with all of the Azure clouds
3939
(Azure Stack, Azure Government, Azure China, etc.).
@@ -56,11 +56,12 @@ class EventHubManagementClient(MultiApiClientMixin, _SDKClient):
5656
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no Retry-After header is present.
5757
"""
5858

59-
DEFAULT_API_VERSION = '2017-04-01'
59+
DEFAULT_API_VERSION = '2021-11-01'
6060
_PROFILE_TAG = "azure.mgmt.eventhub.EventHubManagementClient"
6161
LATEST_PROFILE = ProfileDefinition({
6262
_PROFILE_TAG: {
6363
None: DEFAULT_API_VERSION,
64+
'regions': '2017-04-01',
6465
}},
6566
_PROFILE_TAG + " latest"
6667
)
@@ -96,6 +97,7 @@ def models(cls, api_version=DEFAULT_API_VERSION):
9697
* 2018-01-01-preview: :mod:`v2018_01_01_preview.models<azure.mgmt.eventhub.v2018_01_01_preview.models>`
9798
* 2021-01-01-preview: :mod:`v2021_01_01_preview.models<azure.mgmt.eventhub.v2021_01_01_preview.models>`
9899
* 2021-06-01-preview: :mod:`v2021_06_01_preview.models<azure.mgmt.eventhub.v2021_06_01_preview.models>`
100+
* 2021-11-01: :mod:`v2021_11_01.models<azure.mgmt.eventhub.v2021_11_01.models>`
99101
"""
100102
if api_version == '2015-08-01':
101103
from .v2015_08_01 import models
@@ -112,6 +114,9 @@ def models(cls, api_version=DEFAULT_API_VERSION):
112114
elif api_version == '2021-06-01-preview':
113115
from .v2021_06_01_preview import models
114116
return models
117+
elif api_version == '2021-11-01':
118+
from .v2021_11_01 import models
119+
return models
115120
raise ValueError("API version {} is not available".format(api_version))
116121

117122
@property
@@ -120,12 +125,15 @@ def clusters(self):
120125
121126
* 2018-01-01-preview: :class:`ClustersOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.ClustersOperations>`
122127
* 2021-06-01-preview: :class:`ClustersOperations<azure.mgmt.eventhub.v2021_06_01_preview.operations.ClustersOperations>`
128+
* 2021-11-01: :class:`ClustersOperations<azure.mgmt.eventhub.v2021_11_01.operations.ClustersOperations>`
123129
"""
124130
api_version = self._get_api_version('clusters')
125131
if api_version == '2018-01-01-preview':
126132
from .v2018_01_01_preview.operations import ClustersOperations as OperationClass
127133
elif api_version == '2021-06-01-preview':
128134
from .v2021_06_01_preview.operations import ClustersOperations as OperationClass
135+
elif api_version == '2021-11-01':
136+
from .v2021_11_01.operations import ClustersOperations as OperationClass
129137
else:
130138
raise ValueError("API version {} does not have operation group 'clusters'".format(api_version))
131139
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -136,12 +144,15 @@ def configuration(self):
136144
137145
* 2018-01-01-preview: :class:`ConfigurationOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.ConfigurationOperations>`
138146
* 2021-06-01-preview: :class:`ConfigurationOperations<azure.mgmt.eventhub.v2021_06_01_preview.operations.ConfigurationOperations>`
147+
* 2021-11-01: :class:`ConfigurationOperations<azure.mgmt.eventhub.v2021_11_01.operations.ConfigurationOperations>`
139148
"""
140149
api_version = self._get_api_version('configuration')
141150
if api_version == '2018-01-01-preview':
142151
from .v2018_01_01_preview.operations import ConfigurationOperations as OperationClass
143152
elif api_version == '2021-06-01-preview':
144153
from .v2021_06_01_preview.operations import ConfigurationOperations as OperationClass
154+
elif api_version == '2021-11-01':
155+
from .v2021_11_01.operations import ConfigurationOperations as OperationClass
145156
else:
146157
raise ValueError("API version {} does not have operation group 'configuration'".format(api_version))
147158
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -155,6 +166,7 @@ def consumer_groups(self):
155166
* 2018-01-01-preview: :class:`ConsumerGroupsOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.ConsumerGroupsOperations>`
156167
* 2021-01-01-preview: :class:`ConsumerGroupsOperations<azure.mgmt.eventhub.v2021_01_01_preview.operations.ConsumerGroupsOperations>`
157168
* 2021-06-01-preview: :class:`ConsumerGroupsOperations<azure.mgmt.eventhub.v2021_06_01_preview.operations.ConsumerGroupsOperations>`
169+
* 2021-11-01: :class:`ConsumerGroupsOperations<azure.mgmt.eventhub.v2021_11_01.operations.ConsumerGroupsOperations>`
158170
"""
159171
api_version = self._get_api_version('consumer_groups')
160172
if api_version == '2015-08-01':
@@ -167,6 +179,8 @@ def consumer_groups(self):
167179
from .v2021_01_01_preview.operations import ConsumerGroupsOperations as OperationClass
168180
elif api_version == '2021-06-01-preview':
169181
from .v2021_06_01_preview.operations import ConsumerGroupsOperations as OperationClass
182+
elif api_version == '2021-11-01':
183+
from .v2021_11_01.operations import ConsumerGroupsOperations as OperationClass
170184
else:
171185
raise ValueError("API version {} does not have operation group 'consumer_groups'".format(api_version))
172186
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -179,6 +193,7 @@ def disaster_recovery_configs(self):
179193
* 2018-01-01-preview: :class:`DisasterRecoveryConfigsOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.DisasterRecoveryConfigsOperations>`
180194
* 2021-01-01-preview: :class:`DisasterRecoveryConfigsOperations<azure.mgmt.eventhub.v2021_01_01_preview.operations.DisasterRecoveryConfigsOperations>`
181195
* 2021-06-01-preview: :class:`DisasterRecoveryConfigsOperations<azure.mgmt.eventhub.v2021_06_01_preview.operations.DisasterRecoveryConfigsOperations>`
196+
* 2021-11-01: :class:`DisasterRecoveryConfigsOperations<azure.mgmt.eventhub.v2021_11_01.operations.DisasterRecoveryConfigsOperations>`
182197
"""
183198
api_version = self._get_api_version('disaster_recovery_configs')
184199
if api_version == '2017-04-01':
@@ -189,6 +204,8 @@ def disaster_recovery_configs(self):
189204
from .v2021_01_01_preview.operations import DisasterRecoveryConfigsOperations as OperationClass
190205
elif api_version == '2021-06-01-preview':
191206
from .v2021_06_01_preview.operations import DisasterRecoveryConfigsOperations as OperationClass
207+
elif api_version == '2021-11-01':
208+
from .v2021_11_01.operations import DisasterRecoveryConfigsOperations as OperationClass
192209
else:
193210
raise ValueError("API version {} does not have operation group 'disaster_recovery_configs'".format(api_version))
194211
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -202,6 +219,7 @@ def event_hubs(self):
202219
* 2018-01-01-preview: :class:`EventHubsOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.EventHubsOperations>`
203220
* 2021-01-01-preview: :class:`EventHubsOperations<azure.mgmt.eventhub.v2021_01_01_preview.operations.EventHubsOperations>`
204221
* 2021-06-01-preview: :class:`EventHubsOperations<azure.mgmt.eventhub.v2021_06_01_preview.operations.EventHubsOperations>`
222+
* 2021-11-01: :class:`EventHubsOperations<azure.mgmt.eventhub.v2021_11_01.operations.EventHubsOperations>`
205223
"""
206224
api_version = self._get_api_version('event_hubs')
207225
if api_version == '2015-08-01':
@@ -214,6 +232,8 @@ def event_hubs(self):
214232
from .v2021_01_01_preview.operations import EventHubsOperations as OperationClass
215233
elif api_version == '2021-06-01-preview':
216234
from .v2021_06_01_preview.operations import EventHubsOperations as OperationClass
235+
elif api_version == '2021-11-01':
236+
from .v2021_11_01.operations import EventHubsOperations as OperationClass
217237
else:
218238
raise ValueError("API version {} does not have operation group 'event_hubs'".format(api_version))
219239
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -227,6 +247,7 @@ def namespaces(self):
227247
* 2018-01-01-preview: :class:`NamespacesOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.NamespacesOperations>`
228248
* 2021-01-01-preview: :class:`NamespacesOperations<azure.mgmt.eventhub.v2021_01_01_preview.operations.NamespacesOperations>`
229249
* 2021-06-01-preview: :class:`NamespacesOperations<azure.mgmt.eventhub.v2021_06_01_preview.operations.NamespacesOperations>`
250+
* 2021-11-01: :class:`NamespacesOperations<azure.mgmt.eventhub.v2021_11_01.operations.NamespacesOperations>`
230251
"""
231252
api_version = self._get_api_version('namespaces')
232253
if api_version == '2015-08-01':
@@ -239,6 +260,8 @@ def namespaces(self):
239260
from .v2021_01_01_preview.operations import NamespacesOperations as OperationClass
240261
elif api_version == '2021-06-01-preview':
241262
from .v2021_06_01_preview.operations import NamespacesOperations as OperationClass
263+
elif api_version == '2021-11-01':
264+
from .v2021_11_01.operations import NamespacesOperations as OperationClass
242265
else:
243266
raise ValueError("API version {} does not have operation group 'namespaces'".format(api_version))
244267
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -252,6 +275,7 @@ def operations(self):
252275
* 2018-01-01-preview: :class:`Operations<azure.mgmt.eventhub.v2018_01_01_preview.operations.Operations>`
253276
* 2021-01-01-preview: :class:`Operations<azure.mgmt.eventhub.v2021_01_01_preview.operations.Operations>`
254277
* 2021-06-01-preview: :class:`Operations<azure.mgmt.eventhub.v2021_06_01_preview.operations.Operations>`
278+
* 2021-11-01: :class:`Operations<azure.mgmt.eventhub.v2021_11_01.operations.Operations>`
255279
"""
256280
api_version = self._get_api_version('operations')
257281
if api_version == '2015-08-01':
@@ -264,6 +288,8 @@ def operations(self):
264288
from .v2021_01_01_preview.operations import Operations as OperationClass
265289
elif api_version == '2021-06-01-preview':
266290
from .v2021_06_01_preview.operations import Operations as OperationClass
291+
elif api_version == '2021-11-01':
292+
from .v2021_11_01.operations import Operations as OperationClass
267293
else:
268294
raise ValueError("API version {} does not have operation group 'operations'".format(api_version))
269295
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -275,6 +301,7 @@ def private_endpoint_connections(self):
275301
* 2018-01-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.PrivateEndpointConnectionsOperations>`
276302
* 2021-01-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.eventhub.v2021_01_01_preview.operations.PrivateEndpointConnectionsOperations>`
277303
* 2021-06-01-preview: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.eventhub.v2021_06_01_preview.operations.PrivateEndpointConnectionsOperations>`
304+
* 2021-11-01: :class:`PrivateEndpointConnectionsOperations<azure.mgmt.eventhub.v2021_11_01.operations.PrivateEndpointConnectionsOperations>`
278305
"""
279306
api_version = self._get_api_version('private_endpoint_connections')
280307
if api_version == '2018-01-01-preview':
@@ -283,6 +310,8 @@ def private_endpoint_connections(self):
283310
from .v2021_01_01_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
284311
elif api_version == '2021-06-01-preview':
285312
from .v2021_06_01_preview.operations import PrivateEndpointConnectionsOperations as OperationClass
313+
elif api_version == '2021-11-01':
314+
from .v2021_11_01.operations import PrivateEndpointConnectionsOperations as OperationClass
286315
else:
287316
raise ValueError("API version {} does not have operation group 'private_endpoint_connections'".format(api_version))
288317
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -294,6 +323,7 @@ def private_link_resources(self):
294323
* 2018-01-01-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.eventhub.v2018_01_01_preview.operations.PrivateLinkResourcesOperations>`
295324
* 2021-01-01-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.eventhub.v2021_01_01_preview.operations.PrivateLinkResourcesOperations>`
296325
* 2021-06-01-preview: :class:`PrivateLinkResourcesOperations<azure.mgmt.eventhub.v2021_06_01_preview.operations.PrivateLinkResourcesOperations>`
326+
* 2021-11-01: :class:`PrivateLinkResourcesOperations<azure.mgmt.eventhub.v2021_11_01.operations.PrivateLinkResourcesOperations>`
297327
"""
298328
api_version = self._get_api_version('private_link_resources')
299329
if api_version == '2018-01-01-preview':
@@ -302,6 +332,8 @@ def private_link_resources(self):
302332
from .v2021_01_01_preview.operations import PrivateLinkResourcesOperations as OperationClass
303333
elif api_version == '2021-06-01-preview':
304334
from .v2021_06_01_preview.operations import PrivateLinkResourcesOperations as OperationClass
335+
elif api_version == '2021-11-01':
336+
from .v2021_11_01.operations import PrivateLinkResourcesOperations as OperationClass
305337
else:
306338
raise ValueError("API version {} does not have operation group 'private_link_resources'".format(api_version))
307339
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
@@ -322,6 +354,19 @@ def regions(self):
322354
raise ValueError("API version {} does not have operation group 'regions'".format(api_version))
323355
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
324356

357+
@property
358+
def schema_registry(self):
359+
"""Instance depends on the API version:
360+
361+
* 2021-11-01: :class:`SchemaRegistryOperations<azure.mgmt.eventhub.v2021_11_01.operations.SchemaRegistryOperations>`
362+
"""
363+
api_version = self._get_api_version('schema_registry')
364+
if api_version == '2021-11-01':
365+
from .v2021_11_01.operations import SchemaRegistryOperations as OperationClass
366+
else:
367+
raise ValueError("API version {} does not have operation group 'schema_registry'".format(api_version))
368+
return OperationClass(self._client, self._config, Serializer(self._models_dict(api_version)), Deserializer(self._models_dict(api_version)))
369+
325370
def close(self):
326371
self._client.close()
327372
def __enter__(self):

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# license information.
66
# --------------------------------------------------------------------------
77

8-
VERSION = "9.1.0"
8+
VERSION = "10.0.0"

0 commit comments

Comments
 (0)