From 1f152ffd5a7463ba2b8bbc963db43868e6cf0a9b Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Fri, 23 Feb 2018 10:17:40 -0800 Subject: [PATCH 1/7] Generated from eccd0ab7c8d44acd1bbb8413573076ebf3f8b74f (#2045) Added the missing API discovered in ARM_RP_Fundamentals to the respective API version swagger and review comments --- .../eventhub/event_hub_management_client.py | 10 ++ .../azure/mgmt/eventhub/models/__init__.py | 8 ++ .../mgmt/eventhub/models/messaging_plan.py | 65 +++++++++++ .../mgmt/eventhub/models/messaging_regions.py | 52 +++++++++ .../models/messaging_regions_paged.py | 27 +++++ .../models/messaging_regions_properties.py | 40 +++++++ .../mgmt/eventhub/operations/__init__.py | 4 + .../operations/consumer_groups_operations.py | 14 ++- .../disaster_recovery_configs_operations.py | 32 ++++-- .../operations/event_hubs_operations.py | 32 ++++-- .../operations/messaging_plan_operations.py | 101 +++++++++++++++++ .../operations/namespaces_operations.py | 41 ++++--- .../mgmt/eventhub/operations/operations.py | 5 +- .../eventhub/operations/regions_operations.py | 104 ++++++++++++++++++ .../azure/mgmt/eventhub/version.py | 2 +- 15 files changed, 493 insertions(+), 44 deletions(-) create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_paged.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_properties.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/operations/messaging_plan_operations.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/operations/regions_operations.py diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py index 71a30fe7027a..3956f8446e7e 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py @@ -15,9 +15,11 @@ from .version import VERSION from .operations.operations import Operations from .operations.namespaces_operations import NamespacesOperations +from .operations.messaging_plan_operations import MessagingPlanOperations from .operations.disaster_recovery_configs_operations import DisasterRecoveryConfigsOperations from .operations.event_hubs_operations import EventHubsOperations from .operations.consumer_groups_operations import ConsumerGroupsOperations +from .operations.regions_operations import RegionsOperations from . import models @@ -65,12 +67,16 @@ class EventHubManagementClient(object): :vartype operations: azure.mgmt.eventhub.operations.Operations :ivar namespaces: Namespaces operations :vartype namespaces: azure.mgmt.eventhub.operations.NamespacesOperations + :ivar messaging_plan: MessagingPlan operations + :vartype messaging_plan: azure.mgmt.eventhub.operations.MessagingPlanOperations :ivar disaster_recovery_configs: DisasterRecoveryConfigs operations :vartype disaster_recovery_configs: azure.mgmt.eventhub.operations.DisasterRecoveryConfigsOperations :ivar event_hubs: EventHubs operations :vartype event_hubs: azure.mgmt.eventhub.operations.EventHubsOperations :ivar consumer_groups: ConsumerGroups operations :vartype consumer_groups: azure.mgmt.eventhub.operations.ConsumerGroupsOperations + :ivar regions: Regions operations + :vartype regions: azure.mgmt.eventhub.operations.RegionsOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -97,9 +103,13 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.namespaces = NamespacesOperations( self._client, self.config, self._serialize, self._deserialize) + self.messaging_plan = MessagingPlanOperations( + self._client, self.config, self._serialize, self._deserialize) self.disaster_recovery_configs = DisasterRecoveryConfigsOperations( self._client, self.config, self._serialize, self._deserialize) self.event_hubs = EventHubsOperations( self._client, self.config, self._serialize, self._deserialize) self.consumer_groups = ConsumerGroupsOperations( self._client, self.config, self._serialize, self._deserialize) + self.regions = RegionsOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py index 4b11427822c9..36c7d006d528 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py @@ -26,12 +26,16 @@ from .operation import Operation from .error_response import ErrorResponse, ErrorResponseException from .arm_disaster_recovery import ArmDisasterRecovery +from .messaging_regions_properties import MessagingRegionsProperties +from .messaging_regions import MessagingRegions +from .messaging_plan import MessagingPlan from .operation_paged import OperationPaged from .eh_namespace_paged import EHNamespacePaged from .authorization_rule_paged import AuthorizationRulePaged from .arm_disaster_recovery_paged import ArmDisasterRecoveryPaged from .eventhub_paged import EventhubPaged from .consumer_group_paged import ConsumerGroupPaged +from .messaging_regions_paged import MessagingRegionsPaged from .event_hub_management_client_enums import ( SkuName, SkuTier, @@ -62,12 +66,16 @@ 'Operation', 'ErrorResponse', 'ErrorResponseException', 'ArmDisasterRecovery', + 'MessagingRegionsProperties', + 'MessagingRegions', + 'MessagingPlan', 'OperationPaged', 'EHNamespacePaged', 'AuthorizationRulePaged', 'ArmDisasterRecoveryPaged', 'EventhubPaged', 'ConsumerGroupPaged', + 'MessagingRegionsPaged', 'SkuName', 'SkuTier', 'AccessRights', diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py new file mode 100644 index 000000000000..04115687a696 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py @@ -0,0 +1,65 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .tracked_resource import TrackedResource + + +class MessagingPlan(TrackedResource): + """Messaging. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param sku: Sku type + :type sku: int + :param selected_event_hub_unit: Selected event hub unit + :type selected_event_hub_unit: int + :ivar updated_at: The exact time the messaging plan was updated. + :vartype updated_at: datetime + :param revision: revision number + :type revision: long + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'updated_at': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'properties.sku', 'type': 'int'}, + 'selected_event_hub_unit': {'key': 'properties.selectedEventHubUnit', 'type': 'int'}, + 'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'}, + 'revision': {'key': 'properties.revision', 'type': 'long'}, + } + + def __init__(self, location=None, tags=None, sku=None, selected_event_hub_unit=None, revision=None): + super(MessagingPlan, self).__init__(location=location, tags=tags) + self.sku = sku + self.selected_event_hub_unit = selected_event_hub_unit + self.updated_at = None + self.revision = revision diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions.py new file mode 100644 index 000000000000..6d4a810d53e2 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .tracked_resource import TrackedResource + + +class MessagingRegions(TrackedResource): + """Messaging Region. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param properties: + :type properties: ~azure.mgmt.eventhub.models.MessagingRegionsProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'MessagingRegionsProperties'}, + } + + def __init__(self, location=None, tags=None, properties=None): + super(MessagingRegions, self).__init__(location=location, tags=tags) + self.properties = properties diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_paged.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_paged.py new file mode 100644 index 000000000000..6697e580f246 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class MessagingRegionsPaged(Paged): + """ + A paging container for iterating over a list of :class:`MessagingRegions ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[MessagingRegions]'} + } + + def __init__(self, *args, **kwargs): + + super(MessagingRegionsPaged, self).__init__(*args, **kwargs) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_properties.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_properties.py new file mode 100644 index 000000000000..cf7269d6b8f1 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_properties.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MessagingRegionsProperties(Model): + """MessagingRegionsProperties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Region code + :vartype code: str + :ivar full_name: Full name of the region + :vartype full_name: str + """ + + _validation = { + 'code': {'readonly': True}, + 'full_name': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'full_name': {'key': 'fullName', 'type': 'str'}, + } + + def __init__(self): + super(MessagingRegionsProperties, self).__init__() + self.code = None + self.full_name = None diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/__init__.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/__init__.py index 754191f262b2..a573bb6e8a0c 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/__init__.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/__init__.py @@ -11,14 +11,18 @@ from .operations import Operations from .namespaces_operations import NamespacesOperations +from .messaging_plan_operations import MessagingPlanOperations from .disaster_recovery_configs_operations import DisasterRecoveryConfigsOperations from .event_hubs_operations import EventHubsOperations from .consumer_groups_operations import ConsumerGroupsOperations +from .regions_operations import RegionsOperations __all__ = [ 'Operations', 'NamespacesOperations', + 'MessagingPlanOperations', 'DisasterRecoveryConfigsOperations', 'EventHubsOperations', 'ConsumerGroupsOperations', + 'RegionsOperations', ] diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/consumer_groups_operations.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/consumer_groups_operations.py index 30967466801e..ab068cf11968 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/consumer_groups_operations.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/consumer_groups_operations.py @@ -21,7 +21,7 @@ class ConsumerGroupsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: Client API Version. Constant value: "2017-04-01". """ @@ -69,7 +69,7 @@ def create_or_update( parameters = models.ConsumerGroup(user_metadata=user_metadata) # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -114,6 +114,7 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}'} def delete( self, resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers=None, raw=False, **operation_config): @@ -140,7 +141,7 @@ def delete( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -174,6 +175,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}'} def get( self, resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers=None, raw=False, **operation_config): @@ -200,7 +202,7 @@ def get( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -241,6 +243,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}'} def list_by_event_hub( self, resource_group_name, namespace_name, event_hub_name, custom_headers=None, raw=False, **operation_config): @@ -269,7 +272,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups' + url = self.list_by_event_hub.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -315,3 +318,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_by_event_hub.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups'} diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/disaster_recovery_configs_operations.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/disaster_recovery_configs_operations.py index 0eb19fb58cdb..b58d874d0e4c 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/disaster_recovery_configs_operations.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/disaster_recovery_configs_operations.py @@ -21,7 +21,7 @@ class DisasterRecoveryConfigsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: Client API Version. Constant value: "2017-04-01". """ @@ -61,7 +61,7 @@ def check_name_availability( parameters = models.CheckNameAvailabilityParameter(name=name) # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/CheckNameAvailability' + url = self.check_name_availability.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), @@ -104,6 +104,7 @@ def check_name_availability( return client_raw_response return deserialized + check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/CheckNameAvailability'} def list( self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): @@ -129,7 +130,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs' + url = self.list.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -174,6 +175,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs'} def create_or_update( self, resource_group_name, namespace_name, alias, partner_namespace=None, alternate_name=None, custom_headers=None, raw=False, **operation_config): @@ -206,7 +208,7 @@ def create_or_update( parameters = models.ArmDisasterRecovery(partner_namespace=partner_namespace, alternate_name=alternate_name) # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -250,6 +252,7 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}'} def delete( self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): @@ -273,7 +276,7 @@ def delete( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -306,6 +309,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}'} def get( self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): @@ -331,7 +335,7 @@ def get( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -371,6 +375,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}'} def break_pairing( self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): @@ -395,7 +400,7 @@ def break_pairing( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/breakPairing' + url = self.break_pairing.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -428,6 +433,7 @@ def break_pairing( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + break_pairing.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/breakPairing'} def fail_over( self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): @@ -452,7 +458,7 @@ def fail_over( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/failover' + url = self.fail_over.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -485,6 +491,7 @@ def fail_over( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + fail_over.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/failover'} def list_authorization_rules( self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): @@ -512,7 +519,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules' + url = self.list_authorization_rules.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -558,6 +565,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_authorization_rules.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules'} def get_authorization_rule( self, resource_group_name, namespace_name, alias, authorization_rule_name, custom_headers=None, raw=False, **operation_config): @@ -584,7 +592,7 @@ def get_authorization_rule( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules/{authorizationRuleName}' + url = self.get_authorization_rule.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -625,6 +633,7 @@ def get_authorization_rule( return client_raw_response return deserialized + get_authorization_rule.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules/{authorizationRuleName}'} def list_keys( self, resource_group_name, namespace_name, alias, authorization_rule_name, custom_headers=None, raw=False, **operation_config): @@ -651,7 +660,7 @@ def list_keys( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules/{authorizationRuleName}/listKeys' + url = self.list_keys.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -692,3 +701,4 @@ def list_keys( return client_raw_response return deserialized + list_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules/{authorizationRuleName}/listKeys'} diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/event_hubs_operations.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/event_hubs_operations.py index 927049b208ef..8f404c400ac9 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/event_hubs_operations.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/event_hubs_operations.py @@ -21,7 +21,7 @@ class EventHubsOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: Client API Version. Constant value: "2017-04-01". """ @@ -60,7 +60,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs' + url = self.list_by_namespace.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -105,6 +105,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_by_namespace.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs'} def create_or_update( self, resource_group_name, namespace_name, event_hub_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -133,7 +134,7 @@ def create_or_update( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -177,6 +178,7 @@ def create_or_update( return client_raw_response return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}'} def delete( self, resource_group_name, namespace_name, event_hub_name, custom_headers=None, raw=False, **operation_config): @@ -200,7 +202,7 @@ def delete( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -233,6 +235,7 @@ def delete( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}'} def get( self, resource_group_name, namespace_name, event_hub_name, custom_headers=None, raw=False, **operation_config): @@ -257,7 +260,7 @@ def get( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -297,6 +300,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}'} def list_authorization_rules( self, resource_group_name, namespace_name, event_hub_name, custom_headers=None, raw=False, **operation_config): @@ -324,7 +328,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules' + url = self.list_authorization_rules.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -370,6 +374,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_authorization_rules.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules'} def create_or_update_authorization_rule( self, resource_group_name, namespace_name, event_hub_name, authorization_rule_name, rights, custom_headers=None, raw=False, **operation_config): @@ -400,7 +405,7 @@ def create_or_update_authorization_rule( parameters = models.AuthorizationRule(rights=rights) # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}' + url = self.create_or_update_authorization_rule.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -445,6 +450,7 @@ def create_or_update_authorization_rule( return client_raw_response return deserialized + create_or_update_authorization_rule.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}'} def get_authorization_rule( self, resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): @@ -471,7 +477,7 @@ def get_authorization_rule( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}' + url = self.get_authorization_rule.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -512,6 +518,7 @@ def get_authorization_rule( return client_raw_response return deserialized + get_authorization_rule.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}'} def delete_authorization_rule( self, resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): @@ -537,7 +544,7 @@ def delete_authorization_rule( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}' + url = self.delete_authorization_rule.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -571,6 +578,7 @@ def delete_authorization_rule( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_authorization_rule.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}'} def list_keys( self, resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): @@ -597,7 +605,7 @@ def list_keys( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/ListKeys' + url = self.list_keys.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -638,6 +646,7 @@ def list_keys( return client_raw_response return deserialized + list_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/ListKeys'} def regenerate_keys( self, resource_group_name, namespace_name, event_hub_name, authorization_rule_name, key_type, key=None, custom_headers=None, raw=False, **operation_config): @@ -672,7 +681,7 @@ def regenerate_keys( parameters = models.RegenerateAccessKeyParameters(key_type=key_type, key=key) # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys' + url = self.regenerate_keys.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -717,3 +726,4 @@ def regenerate_keys( return client_raw_response return deserialized + regenerate_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys'} diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/messaging_plan_operations.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/messaging_plan_operations.py new file mode 100644 index 000000000000..cf026c00c106 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/messaging_plan_operations.py @@ -0,0 +1,101 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class MessagingPlanOperations(object): + """MessagingPlanOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API Version. Constant value: "2017-04-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-04-01" + + self.config = config + + def get( + self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): + """Gets a description for the specified namespace. + + :param resource_group_name: Name of the resource group within the + azure subscription. + :type resource_group_name: str + :param namespace_name: The Namespace name + :type namespace_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: MessagingPlan or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.eventhub.models.MessagingPlan or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.get.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('MessagingPlan', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/messagingplan'} diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/namespaces_operations.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/namespaces_operations.py index df63d6d2901c..be6742c7e17a 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/namespaces_operations.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/namespaces_operations.py @@ -23,7 +23,7 @@ class NamespacesOperations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: Client API Version. Constant value: "2017-04-01". """ @@ -58,7 +58,7 @@ def check_name_availability( parameters = models.CheckNameAvailabilityParameter(name=name) # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/CheckNameAvailability' + url = self.check_name_availability.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -99,6 +99,7 @@ def check_name_availability( return client_raw_response return deserialized + check_name_availability.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/CheckNameAvailability'} def list( self, custom_headers=None, raw=False, **operation_config): @@ -120,7 +121,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/namespaces' + url = self.list.metadata['url'] path_format_arguments = { 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') } @@ -163,6 +164,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/namespaces'} def list_by_resource_group( self, resource_group_name, custom_headers=None, raw=False, **operation_config): @@ -186,7 +188,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces' + url = self.list_by_resource_group.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') @@ -230,12 +232,13 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_by_resource_group.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces'} def _create_or_update_initial( self, resource_group_name, namespace_name, parameters, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}' + url = self.create_or_update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -348,12 +351,13 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}'} def _delete_initial( self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}' + url = self.delete.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -445,6 +449,7 @@ def get_long_running_output(response): return AzureOperationPoller( long_running_send, get_long_running_output, get_long_running_status, long_running_operation_timeout) + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}'} def get( self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): @@ -467,7 +472,7 @@ def get( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}' + url = self.get.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -508,6 +513,7 @@ def get( return client_raw_response return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}'} def update( self, resource_group_name, namespace_name, parameters, custom_headers=None, raw=False, **operation_config): @@ -533,7 +539,7 @@ def update( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}' + url = self.update.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -578,6 +584,7 @@ def update( return client_raw_response return deserialized + update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}'} def list_authorization_rules( self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): @@ -603,7 +610,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules' + url = self.list_authorization_rules.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -648,6 +655,7 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list_authorization_rules.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules'} def create_or_update_authorization_rule( self, resource_group_name, namespace_name, authorization_rule_name, rights, custom_headers=None, raw=False, **operation_config): @@ -676,7 +684,7 @@ def create_or_update_authorization_rule( parameters = models.AuthorizationRule(rights=rights) # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}' + url = self.create_or_update_authorization_rule.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -720,6 +728,7 @@ def create_or_update_authorization_rule( return client_raw_response return deserialized + create_or_update_authorization_rule.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}'} def delete_authorization_rule( self, resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): @@ -743,7 +752,7 @@ def delete_authorization_rule( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}' + url = self.delete_authorization_rule.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -776,6 +785,7 @@ def delete_authorization_rule( if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response + delete_authorization_rule.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}'} def get_authorization_rule( self, resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): @@ -800,7 +810,7 @@ def get_authorization_rule( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}' + url = self.get_authorization_rule.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -840,6 +850,7 @@ def get_authorization_rule( return client_raw_response return deserialized + get_authorization_rule.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}'} def list_keys( self, resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): @@ -864,7 +875,7 @@ def list_keys( :class:`ErrorResponseException` """ # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys' + url = self.list_keys.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -904,6 +915,7 @@ def list_keys( return client_raw_response return deserialized + list_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys'} def regenerate_keys( self, resource_group_name, namespace_name, authorization_rule_name, key_type, key=None, custom_headers=None, raw=False, **operation_config): @@ -937,7 +949,7 @@ def regenerate_keys( parameters = models.RegenerateAccessKeyParameters(key_type=key_type, key=key) # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys' + url = self.regenerate_keys.metadata['url'] path_format_arguments = { 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), @@ -981,3 +993,4 @@ def regenerate_keys( return client_raw_response return deserialized + regenerate_keys.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys'} diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/operations.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/operations.py index 22bbf5d0d8be..432f14fe232e 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/operations.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/operations.py @@ -21,7 +21,7 @@ class Operations(object): :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. - :param deserializer: An objec model deserializer. + :param deserializer: An object model deserializer. :ivar api_version: Client API Version. Constant value: "2017-04-01". """ @@ -55,7 +55,7 @@ def internal_paging(next_link=None, raw=False): if not next_link: # Construct URL - url = '/providers/Microsoft.EventHub/operations' + url = self.list.metadata['url'] # Construct parameters query_parameters = {} @@ -94,3 +94,4 @@ def internal_paging(next_link=None, raw=False): return client_raw_response return deserialized + list.metadata = {'url': '/providers/Microsoft.EventHub/operations'} diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/regions_operations.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/regions_operations.py new file mode 100644 index 000000000000..3fb66301049a --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/regions_operations.py @@ -0,0 +1,104 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class RegionsOperations(object): + """RegionsOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An object model deserializer. + :ivar api_version: Client API Version. Constant value: "2017-04-01". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-04-01" + + self.config = config + + def list_by_sku( + self, sku, custom_headers=None, raw=False, **operation_config): + """Gets the available Regions for a given sku. + + :param sku: The sku type. + :type sku: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: An iterator like instance of MessagingRegions + :rtype: + ~azure.mgmt.eventhub.models.MessagingRegionsPaged[~azure.mgmt.eventhub.models.MessagingRegions] + :raises: + :class:`ErrorResponseException` + """ + def internal_paging(next_link=None, raw=False): + + if not next_link: + # Construct URL + url = self.list_by_sku.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'sku': self._serialize.url("sku", sku, 'str', max_length=50, min_length=1) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send( + request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + return response + + # Deserialize response + deserialized = models.MessagingRegionsPaged(internal_paging, self._deserialize.dependencies) + + if raw: + header_dict = {} + client_raw_response = models.MessagingRegionsPaged(internal_paging, self._deserialize.dependencies, header_dict) + return client_raw_response + + return deserialized + list_by_sku.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/sku/{sku}/regions'} diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/version.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/version.py index 9c644827672b..d24076f8d84b 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/version.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "1.2.0" +VERSION = "1.3.0" From 83f9aaba4405fa344d4aac16c6b744faf37603f7 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Wed, 4 Apr 2018 11:45:34 -0700 Subject: [PATCH 2/7] Generated from 241df480a79cc67f6971cceae92ac4a345219863 (#2349) remove messaging plan from namespace --- .../eventhub/event_hub_management_client.py | 5 - .../azure/mgmt/eventhub/models/__init__.py | 2 - .../mgmt/eventhub/models/messaging_plan.py | 65 ----------- .../mgmt/eventhub/operations/__init__.py | 2 - .../operations/messaging_plan_operations.py | 101 ------------------ 5 files changed, 175 deletions(-) delete mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py delete mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/operations/messaging_plan_operations.py diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py index 3956f8446e7e..1909c8e8ffc0 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py @@ -15,7 +15,6 @@ from .version import VERSION from .operations.operations import Operations from .operations.namespaces_operations import NamespacesOperations -from .operations.messaging_plan_operations import MessagingPlanOperations from .operations.disaster_recovery_configs_operations import DisasterRecoveryConfigsOperations from .operations.event_hubs_operations import EventHubsOperations from .operations.consumer_groups_operations import ConsumerGroupsOperations @@ -67,8 +66,6 @@ class EventHubManagementClient(object): :vartype operations: azure.mgmt.eventhub.operations.Operations :ivar namespaces: Namespaces operations :vartype namespaces: azure.mgmt.eventhub.operations.NamespacesOperations - :ivar messaging_plan: MessagingPlan operations - :vartype messaging_plan: azure.mgmt.eventhub.operations.MessagingPlanOperations :ivar disaster_recovery_configs: DisasterRecoveryConfigs operations :vartype disaster_recovery_configs: azure.mgmt.eventhub.operations.DisasterRecoveryConfigsOperations :ivar event_hubs: EventHubs operations @@ -103,8 +100,6 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.namespaces = NamespacesOperations( self._client, self.config, self._serialize, self._deserialize) - self.messaging_plan = MessagingPlanOperations( - self._client, self.config, self._serialize, self._deserialize) self.disaster_recovery_configs = DisasterRecoveryConfigsOperations( self._client, self.config, self._serialize, self._deserialize) self.event_hubs = EventHubsOperations( diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py index 36c7d006d528..9f22a6fe0b23 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py @@ -28,7 +28,6 @@ from .arm_disaster_recovery import ArmDisasterRecovery from .messaging_regions_properties import MessagingRegionsProperties from .messaging_regions import MessagingRegions -from .messaging_plan import MessagingPlan from .operation_paged import OperationPaged from .eh_namespace_paged import EHNamespacePaged from .authorization_rule_paged import AuthorizationRulePaged @@ -68,7 +67,6 @@ 'ArmDisasterRecovery', 'MessagingRegionsProperties', 'MessagingRegions', - 'MessagingPlan', 'OperationPaged', 'EHNamespacePaged', 'AuthorizationRulePaged', diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py deleted file mode 100644 index 04115687a696..000000000000 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource import TrackedResource - - -class MessagingPlan(TrackedResource): - """Messaging. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Resource Id - :vartype id: str - :ivar name: Resource name - :vartype name: str - :ivar type: Resource type - :vartype type: str - :param location: Resource location - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param sku: Sku type - :type sku: int - :param selected_event_hub_unit: Selected event hub unit - :type selected_event_hub_unit: int - :ivar updated_at: The exact time the messaging plan was updated. - :vartype updated_at: datetime - :param revision: revision number - :type revision: long - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'updated_at': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'location': {'key': 'location', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'sku': {'key': 'properties.sku', 'type': 'int'}, - 'selected_event_hub_unit': {'key': 'properties.selectedEventHubUnit', 'type': 'int'}, - 'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'}, - 'revision': {'key': 'properties.revision', 'type': 'long'}, - } - - def __init__(self, location=None, tags=None, sku=None, selected_event_hub_unit=None, revision=None): - super(MessagingPlan, self).__init__(location=location, tags=tags) - self.sku = sku - self.selected_event_hub_unit = selected_event_hub_unit - self.updated_at = None - self.revision = revision diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/__init__.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/__init__.py index a573bb6e8a0c..e3ff96276a8b 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/__init__.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/__init__.py @@ -11,7 +11,6 @@ from .operations import Operations from .namespaces_operations import NamespacesOperations -from .messaging_plan_operations import MessagingPlanOperations from .disaster_recovery_configs_operations import DisasterRecoveryConfigsOperations from .event_hubs_operations import EventHubsOperations from .consumer_groups_operations import ConsumerGroupsOperations @@ -20,7 +19,6 @@ __all__ = [ 'Operations', 'NamespacesOperations', - 'MessagingPlanOperations', 'DisasterRecoveryConfigsOperations', 'EventHubsOperations', 'ConsumerGroupsOperations', diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/messaging_plan_operations.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/messaging_plan_operations.py deleted file mode 100644 index cf026c00c106..000000000000 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/messaging_plan_operations.py +++ /dev/null @@ -1,101 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -import uuid -from msrest.pipeline import ClientRawResponse -from msrestazure.azure_exceptions import CloudError - -from .. import models - - -class MessagingPlanOperations(object): - """MessagingPlanOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An object model deserializer. - :ivar api_version: Client API Version. Constant value: "2017-04-01". - """ - - models = models - - def __init__(self, client, config, serializer, deserializer): - - self._client = client - self._serialize = serializer - self._deserialize = deserializer - self.api_version = "2017-04-01" - - self.config = config - - def get( - self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): - """Gets a description for the specified namespace. - - :param resource_group_name: Name of the resource group within the - azure subscription. - :type resource_group_name: str - :param namespace_name: The Namespace name - :type namespace_name: str - :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :param operation_config: :ref:`Operation configuration - overrides`. - :return: MessagingPlan or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.MessagingPlan or - ~msrest.pipeline.ClientRawResponse - :raises: :class:`CloudError` - """ - # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), - 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) - - # Construct parameters - query_parameters = {} - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') - - # Construct headers - header_parameters = {} - header_parameters['Content-Type'] = 'application/json; charset=utf-8' - if self.config.generate_client_request_id: - header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) - if custom_headers: - header_parameters.update(custom_headers) - if self.config.accept_language is not None: - header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') - - # Construct and send request - request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, stream=False, **operation_config) - - if response.status_code not in [200]: - exp = CloudError(response) - exp.request_id = response.headers.get('x-ms-request-id') - raise exp - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('MessagingPlan', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/messagingplan'} From ecb21e6938eacbd664b7f5c025f0710e66510581 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 10 Apr 2018 13:56:39 -0700 Subject: [PATCH 3/7] Generated from 205ad0c0c15836ab4ffee29fe9c90b0b845cfe97 (#2377) Updated MessagingPlan, Regions, examples. --- .../azure/mgmt/eventhub/models/__init__.py | 2 + .../mgmt/eventhub/models/messaging_plan.py | 68 +++++++++++++++++++ .../operations/namespaces_operations.py | 62 +++++++++++++++++ 3 files changed, 132 insertions(+) create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py index 9f22a6fe0b23..36c7d006d528 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py @@ -28,6 +28,7 @@ from .arm_disaster_recovery import ArmDisasterRecovery from .messaging_regions_properties import MessagingRegionsProperties from .messaging_regions import MessagingRegions +from .messaging_plan import MessagingPlan from .operation_paged import OperationPaged from .eh_namespace_paged import EHNamespacePaged from .authorization_rule_paged import AuthorizationRulePaged @@ -67,6 +68,7 @@ 'ArmDisasterRecovery', 'MessagingRegionsProperties', 'MessagingRegions', + 'MessagingPlan', 'OperationPaged', 'EHNamespacePaged', 'AuthorizationRulePaged', diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py new file mode 100644 index 000000000000..180b16e6abc0 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .tracked_resource import TrackedResource + + +class MessagingPlan(TrackedResource): + """Messaging Plan for the namespace. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :ivar sku: Sku type + :vartype sku: int + :ivar selected_event_hub_unit: Selected event hub unit + :vartype selected_event_hub_unit: int + :ivar updated_at: The exact time the messaging plan was updated. + :vartype updated_at: datetime + :ivar revision: revision number + :vartype revision: long + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'sku': {'readonly': True}, + 'selected_event_hub_unit': {'readonly': True}, + 'updated_at': {'readonly': True}, + 'revision': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'properties.sku', 'type': 'int'}, + 'selected_event_hub_unit': {'key': 'properties.selectedEventHubUnit', 'type': 'int'}, + 'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'}, + 'revision': {'key': 'properties.revision', 'type': 'long'}, + } + + def __init__(self, location=None, tags=None): + super(MessagingPlan, self).__init__(location=location, tags=tags) + self.sku = None + self.selected_event_hub_unit = None + self.updated_at = None + self.revision = None diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/namespaces_operations.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/namespaces_operations.py index be6742c7e17a..33b38bb342f3 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/namespaces_operations.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/namespaces_operations.py @@ -586,6 +586,68 @@ def update( return deserialized update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}'} + def get_messaging_plan( + self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): + """Gets messaging plan for specified namespace. + + :param resource_group_name: Name of the resource group within the + azure subscription. + :type resource_group_name: str + :param namespace_name: The Namespace name + :type namespace_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: MessagingPlan or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.eventhub.models.MessagingPlan or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = self.get_messaging_plan.metadata['url'] + path_format_arguments = { + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1), + 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6), + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('MessagingPlan', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get_messaging_plan.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/messagingplan'} + def list_authorization_rules( self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): """Gets a list of authorization rules for a Namespace. From 795a277b3f58fa29dc038d3b88bf6449f23a212d Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Tue, 1 May 2018 12:22:40 -0700 Subject: [PATCH 4/7] Generated from 26a9c146cff50888e466171902e3513e1fb3fee7 (#2478) added $skip and $top to list calls --- .../operations/consumer_groups_operations.py | 14 +++++++++++++- .../eventhub/operations/event_hubs_operations.py | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/consumer_groups_operations.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/consumer_groups_operations.py index ab068cf11968..03c4bc31bd36 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/consumer_groups_operations.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/consumer_groups_operations.py @@ -246,7 +246,7 @@ def get( get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}'} def list_by_event_hub( - self, resource_group_name, namespace_name, event_hub_name, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, namespace_name, event_hub_name, skip=None, top=None, custom_headers=None, raw=False, **operation_config): """Gets all the consumer groups in a Namespace. An empty feed is returned if no consumer group exists in the Namespace. @@ -257,6 +257,14 @@ def list_by_event_hub( :type namespace_name: str :param event_hub_name: The Event Hub name :type event_hub_name: str + :param skip: Skip is only used if a previous operation returned a + partial result. If a previous response contains a nextLink element, + the value of the nextLink element will include a skip parameter that + specifies a starting point to use for subsequent calls. + :type skip: int + :param top: May be used to limit the number of results to the most + recent N usageDetails. + :type top: int :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -284,6 +292,10 @@ def internal_paging(next_link=None, raw=False): # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if skip is not None: + query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', maximum=1000, minimum=0) + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int', maximum=1000, minimum=1) else: url = next_link diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/event_hubs_operations.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/event_hubs_operations.py index 8f404c400ac9..c2d509c2bbd6 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/event_hubs_operations.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/event_hubs_operations.py @@ -37,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self.config = config def list_by_namespace( - self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, namespace_name, skip=None, top=None, custom_headers=None, raw=False, **operation_config): """Gets all the Event Hubs in a Namespace. :param resource_group_name: Name of the resource group within the @@ -45,6 +45,14 @@ def list_by_namespace( :type resource_group_name: str :param namespace_name: The Namespace name :type namespace_name: str + :param skip: Skip is only used if a previous operation returned a + partial result. If a previous response contains a nextLink element, + the value of the nextLink element will include a skip parameter that + specifies a starting point to use for subsequent calls. + :type skip: int + :param top: May be used to limit the number of results to the most + recent N usageDetails. + :type top: int :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -71,6 +79,10 @@ def internal_paging(next_link=None, raw=False): # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if skip is not None: + query_parameters['$skip'] = self._serialize.query("skip", skip, 'int', maximum=1000, minimum=0) + if top is not None: + query_parameters['$top'] = self._serialize.query("top", top, 'int', maximum=1000, minimum=1) else: url = next_link From 8025d8797d7ec708d41453ab4ae3415501230a69 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Fri, 4 May 2018 11:02:47 -0700 Subject: [PATCH 5/7] EventHub with Autorest.Python 3.0.50 --- .../eventhub/event_hub_management_client.py | 6 +- .../azure/mgmt/eventhub/models/__init__.py | 62 +++++++++---- .../azure/mgmt/eventhub/models/access_keys.py | 4 +- .../mgmt/eventhub/models/access_keys_py3.py | 71 +++++++++++++++ .../eventhub/models/arm_disaster_recovery.py | 8 +- .../models/arm_disaster_recovery_py3.py | 68 ++++++++++++++ .../eventhub/models/authorization_rule.py | 10 +- .../eventhub/models/authorization_rule_py3.py | 49 ++++++++++ .../eventhub/models/capture_description.py | 14 +-- .../models/capture_description_py3.py | 58 ++++++++++++ .../check_name_availability_parameter.py | 10 +- .../check_name_availability_parameter_py3.py | 34 +++++++ .../models/check_name_availability_result.py | 8 +- .../check_name_availability_result_py3.py | 47 ++++++++++ .../mgmt/eventhub/models/consumer_group.py | 6 +- .../eventhub/models/consumer_group_py3.py | 59 ++++++++++++ .../azure/mgmt/eventhub/models/destination.py | 12 +-- .../mgmt/eventhub/models/destination_py3.py | 44 +++++++++ .../mgmt/eventhub/models/eh_namespace.py | 10 +- .../mgmt/eventhub/models/eh_namespace_py3.py | 90 ++++++++++++++++++ .../mgmt/eventhub/models/error_response.py | 8 +- .../eventhub/models/error_response_py3.py | 46 ++++++++++ .../event_hub_management_client_enums.py | 18 ++-- .../azure/mgmt/eventhub/models/eventhub.py | 12 +-- .../mgmt/eventhub/models/eventhub_py3.py | 80 ++++++++++++++++ .../mgmt/eventhub/models/messaging_plan.py | 4 +- .../eventhub/models/messaging_plan_py3.py | 68 ++++++++++++++ .../mgmt/eventhub/models/messaging_regions.py | 6 +- .../models/messaging_regions_properties.py | 4 +- .../messaging_regions_properties_py3.py | 40 ++++++++ .../eventhub/models/messaging_regions_py3.py | 52 +++++++++++ .../azure/mgmt/eventhub/models/operation.py | 6 +- .../mgmt/eventhub/models/operation_display.py | 4 +- .../eventhub/models/operation_display_py3.py | 46 ++++++++++ .../mgmt/eventhub/models/operation_py3.py | 39 ++++++++ .../regenerate_access_key_parameters.py | 14 +-- .../regenerate_access_key_parameters_py3.py | 41 +++++++++ .../azure/mgmt/eventhub/models/resource.py | 4 +- .../mgmt/eventhub/models/resource_py3.py | 45 +++++++++ .../azure/mgmt/eventhub/models/sku.py | 14 +-- .../azure/mgmt/eventhub/models/sku_py3.py | 46 ++++++++++ .../mgmt/eventhub/models/tracked_resource.py | 8 +- .../eventhub/models/tracked_resource_py3.py | 50 ++++++++++ .../operations/namespaces_operations.py | 91 ++++++------------- 44 files changed, 1243 insertions(+), 173 deletions(-) create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/access_keys_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/arm_disaster_recovery_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/authorization_rule_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/capture_description_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_parameter_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_result_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/consumer_group_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/destination_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/eh_namespace_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/error_response_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/eventhub_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_properties_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation_display_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/regenerate_access_key_parameters_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/resource_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/sku_py3.py create mode 100644 azure-mgmt-eventhub/azure/mgmt/eventhub/models/tracked_resource_py3.py diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py index 1909c8e8ffc0..1eb6ff1708ef 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/event_hub_management_client.py @@ -9,7 +9,7 @@ # regenerated. # -------------------------------------------------------------------------- -from msrest.service_client import ServiceClient +from msrest.service_client import SDKClient from msrest import Serializer, Deserializer from msrestazure import AzureConfiguration from .version import VERSION @@ -56,7 +56,7 @@ def __init__( self.subscription_id = subscription_id -class EventHubManagementClient(object): +class EventHubManagementClient(SDKClient): """Azure Event Hubs client :ivar config: Configuration for client. @@ -89,7 +89,7 @@ def __init__( self, credentials, subscription_id, base_url=None): self.config = EventHubManagementClientConfiguration(credentials, subscription_id, base_url) - self._client = ServiceClient(self.config.credentials, self.config) + super(EventHubManagementClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} self.api_version = '2017-04-01' diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py index 36c7d006d528..48ae001b3e1d 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/__init__.py @@ -9,26 +9,48 @@ # regenerated. # -------------------------------------------------------------------------- -from .tracked_resource import TrackedResource -from .resource import Resource -from .sku import Sku -from .eh_namespace import EHNamespace -from .authorization_rule import AuthorizationRule -from .access_keys import AccessKeys -from .regenerate_access_key_parameters import RegenerateAccessKeyParameters -from .destination import Destination -from .capture_description import CaptureDescription -from .eventhub import Eventhub -from .consumer_group import ConsumerGroup -from .check_name_availability_parameter import CheckNameAvailabilityParameter -from .check_name_availability_result import CheckNameAvailabilityResult -from .operation_display import OperationDisplay -from .operation import Operation -from .error_response import ErrorResponse, ErrorResponseException -from .arm_disaster_recovery import ArmDisasterRecovery -from .messaging_regions_properties import MessagingRegionsProperties -from .messaging_regions import MessagingRegions -from .messaging_plan import MessagingPlan +try: + from .tracked_resource_py3 import TrackedResource + from .resource_py3 import Resource + from .sku_py3 import Sku + from .eh_namespace_py3 import EHNamespace + from .authorization_rule_py3 import AuthorizationRule + from .access_keys_py3 import AccessKeys + from .regenerate_access_key_parameters_py3 import RegenerateAccessKeyParameters + from .destination_py3 import Destination + from .capture_description_py3 import CaptureDescription + from .eventhub_py3 import Eventhub + from .consumer_group_py3 import ConsumerGroup + from .check_name_availability_parameter_py3 import CheckNameAvailabilityParameter + from .check_name_availability_result_py3 import CheckNameAvailabilityResult + from .operation_display_py3 import OperationDisplay + from .operation_py3 import Operation + from .error_response_py3 import ErrorResponse, ErrorResponseException + from .arm_disaster_recovery_py3 import ArmDisasterRecovery + from .messaging_regions_properties_py3 import MessagingRegionsProperties + from .messaging_regions_py3 import MessagingRegions + from .messaging_plan_py3 import MessagingPlan +except (SyntaxError, ImportError): + from .tracked_resource import TrackedResource + from .resource import Resource + from .sku import Sku + from .eh_namespace import EHNamespace + from .authorization_rule import AuthorizationRule + from .access_keys import AccessKeys + from .regenerate_access_key_parameters import RegenerateAccessKeyParameters + from .destination import Destination + from .capture_description import CaptureDescription + from .eventhub import Eventhub + from .consumer_group import ConsumerGroup + from .check_name_availability_parameter import CheckNameAvailabilityParameter + from .check_name_availability_result import CheckNameAvailabilityResult + from .operation_display import OperationDisplay + from .operation import Operation + from .error_response import ErrorResponse, ErrorResponseException + from .arm_disaster_recovery import ArmDisasterRecovery + from .messaging_regions_properties import MessagingRegionsProperties + from .messaging_regions import MessagingRegions + from .messaging_plan import MessagingPlan from .operation_paged import OperationPaged from .eh_namespace_paged import EHNamespacePaged from .authorization_rule_paged import AuthorizationRulePaged diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/access_keys.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/access_keys.py index 0fdd0e5a26d8..453f9a5c40d8 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/access_keys.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/access_keys.py @@ -60,8 +60,8 @@ class AccessKeys(Model): 'key_name': {'key': 'keyName', 'type': 'str'}, } - def __init__(self): - super(AccessKeys, self).__init__() + def __init__(self, **kwargs): + super(AccessKeys, self).__init__(**kwargs) self.primary_connection_string = None self.secondary_connection_string = None self.alias_primary_connection_string = None diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/access_keys_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/access_keys_py3.py new file mode 100644 index 000000000000..18ff2bd660b8 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/access_keys_py3.py @@ -0,0 +1,71 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class AccessKeys(Model): + """Namespace/EventHub Connection String. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar primary_connection_string: Primary connection string of the created + namespace AuthorizationRule. + :vartype primary_connection_string: str + :ivar secondary_connection_string: Secondary connection string of the + created namespace AuthorizationRule. + :vartype secondary_connection_string: str + :ivar alias_primary_connection_string: Primary connection string of the + alias if GEO DR is enabled + :vartype alias_primary_connection_string: str + :ivar alias_secondary_connection_string: Secondary connection string of + the alias if GEO DR is enabled + :vartype alias_secondary_connection_string: str + :ivar primary_key: A base64-encoded 256-bit primary key for signing and + validating the SAS token. + :vartype primary_key: str + :ivar secondary_key: A base64-encoded 256-bit primary key for signing and + validating the SAS token. + :vartype secondary_key: str + :ivar key_name: A string that describes the AuthorizationRule. + :vartype key_name: str + """ + + _validation = { + 'primary_connection_string': {'readonly': True}, + 'secondary_connection_string': {'readonly': True}, + 'alias_primary_connection_string': {'readonly': True}, + 'alias_secondary_connection_string': {'readonly': True}, + 'primary_key': {'readonly': True}, + 'secondary_key': {'readonly': True}, + 'key_name': {'readonly': True}, + } + + _attribute_map = { + 'primary_connection_string': {'key': 'primaryConnectionString', 'type': 'str'}, + 'secondary_connection_string': {'key': 'secondaryConnectionString', 'type': 'str'}, + 'alias_primary_connection_string': {'key': 'aliasPrimaryConnectionString', 'type': 'str'}, + 'alias_secondary_connection_string': {'key': 'aliasSecondaryConnectionString', 'type': 'str'}, + 'primary_key': {'key': 'primaryKey', 'type': 'str'}, + 'secondary_key': {'key': 'secondaryKey', 'type': 'str'}, + 'key_name': {'key': 'keyName', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(AccessKeys, self).__init__(**kwargs) + self.primary_connection_string = None + self.secondary_connection_string = None + self.alias_primary_connection_string = None + self.alias_secondary_connection_string = None + self.primary_key = None + self.secondary_key = None + self.key_name = None diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/arm_disaster_recovery.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/arm_disaster_recovery.py index 116320fdf735..85004b863855 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/arm_disaster_recovery.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/arm_disaster_recovery.py @@ -60,9 +60,9 @@ class ArmDisasterRecovery(Resource): 'role': {'key': 'properties.role', 'type': 'RoleDisasterRecovery'}, } - def __init__(self, partner_namespace=None, alternate_name=None): - super(ArmDisasterRecovery, self).__init__() + def __init__(self, **kwargs): + super(ArmDisasterRecovery, self).__init__(**kwargs) self.provisioning_state = None - self.partner_namespace = partner_namespace - self.alternate_name = alternate_name + self.partner_namespace = kwargs.get('partner_namespace', None) + self.alternate_name = kwargs.get('alternate_name', None) self.role = None diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/arm_disaster_recovery_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/arm_disaster_recovery_py3.py new file mode 100644 index 000000000000..21fe8f02e5f0 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/arm_disaster_recovery_py3.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ArmDisasterRecovery(Resource): + """Single item in List or Get Alias(Disaster Recovery configuration) + operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :ivar provisioning_state: Provisioning state of the Alias(Disaster + Recovery configuration) - possible values 'Accepted' or 'Succeeded' or + 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed' + :vartype provisioning_state: str or + ~azure.mgmt.eventhub.models.ProvisioningStateDR + :param partner_namespace: ARM Id of the Primary/Secondary eventhub + namespace name, which is part of GEO DR pairning + :type partner_namespace: str + :param alternate_name: Alternate name specified when alias and namespace + names are same. + :type alternate_name: str + :ivar role: role of namespace in GEO DR - possible values 'Primary' or + 'PrimaryNotReplicating' or 'Secondary'. Possible values include: + 'Primary', 'PrimaryNotReplicating', 'Secondary' + :vartype role: str or ~azure.mgmt.eventhub.models.RoleDisasterRecovery + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'role': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'ProvisioningStateDR'}, + 'partner_namespace': {'key': 'properties.partnerNamespace', 'type': 'str'}, + 'alternate_name': {'key': 'properties.alternateName', 'type': 'str'}, + 'role': {'key': 'properties.role', 'type': 'RoleDisasterRecovery'}, + } + + def __init__(self, *, partner_namespace: str=None, alternate_name: str=None, **kwargs) -> None: + super(ArmDisasterRecovery, self).__init__(**kwargs) + self.provisioning_state = None + self.partner_namespace = partner_namespace + self.alternate_name = alternate_name + self.role = None diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/authorization_rule.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/authorization_rule.py index 9df5d358d982..2ab69c3f8876 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/authorization_rule.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/authorization_rule.py @@ -18,13 +18,15 @@ class AuthorizationRule(Resource): Variables are only populated by the server, and will be ignored when sending a request. + All required parameters must be populated in order to send to Azure. + :ivar id: Resource Id :vartype id: str :ivar name: Resource name :vartype name: str :ivar type: Resource type :vartype type: str - :param rights: The rights associated with the rule. + :param rights: Required. The rights associated with the rule. :type rights: list[str or ~azure.mgmt.eventhub.models.AccessRights] """ @@ -42,6 +44,6 @@ class AuthorizationRule(Resource): 'rights': {'key': 'properties.rights', 'type': '[str]'}, } - def __init__(self, rights): - super(AuthorizationRule, self).__init__() - self.rights = rights + def __init__(self, **kwargs): + super(AuthorizationRule, self).__init__(**kwargs) + self.rights = kwargs.get('rights', None) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/authorization_rule_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/authorization_rule_py3.py new file mode 100644 index 000000000000..8204b0fce74f --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/authorization_rule_py3.py @@ -0,0 +1,49 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class AuthorizationRule(Resource): + """Single item in a List or Get AuthorizationRule operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param rights: Required. The rights associated with the rule. + :type rights: list[str or ~azure.mgmt.eventhub.models.AccessRights] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'rights': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'rights': {'key': 'properties.rights', 'type': '[str]'}, + } + + def __init__(self, *, rights, **kwargs) -> None: + super(AuthorizationRule, self).__init__(**kwargs) + self.rights = rights diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/capture_description.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/capture_description.py index da1785789d13..ef9a3305bb43 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/capture_description.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/capture_description.py @@ -49,10 +49,10 @@ class CaptureDescription(Model): 'destination': {'key': 'destination', 'type': 'Destination'}, } - def __init__(self, enabled=None, encoding=None, interval_in_seconds=None, size_limit_in_bytes=None, destination=None): - super(CaptureDescription, self).__init__() - self.enabled = enabled - self.encoding = encoding - self.interval_in_seconds = interval_in_seconds - self.size_limit_in_bytes = size_limit_in_bytes - self.destination = destination + def __init__(self, **kwargs): + super(CaptureDescription, self).__init__(**kwargs) + self.enabled = kwargs.get('enabled', None) + self.encoding = kwargs.get('encoding', None) + self.interval_in_seconds = kwargs.get('interval_in_seconds', None) + self.size_limit_in_bytes = kwargs.get('size_limit_in_bytes', None) + self.destination = kwargs.get('destination', None) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/capture_description_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/capture_description_py3.py new file mode 100644 index 000000000000..76bce1ca9218 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/capture_description_py3.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CaptureDescription(Model): + """Properties to configure capture description for eventhub. + + :param enabled: A value that indicates whether capture description is + enabled. + :type enabled: bool + :param encoding: Enumerates the possible values for the encoding format of + capture description. Note: 'AvroDeflate' will be deprecated in New API + Version. Possible values include: 'Avro', 'AvroDeflate' + :type encoding: str or + ~azure.mgmt.eventhub.models.EncodingCaptureDescription + :param interval_in_seconds: The time window allows you to set the + frequency with which the capture to Azure Blobs will happen, value should + between 60 to 900 seconds + :type interval_in_seconds: int + :param size_limit_in_bytes: The size window defines the amount of data + built up in your Event Hub before an capture operation, value should be + between 10485760 to 524288000 bytes + :type size_limit_in_bytes: int + :param destination: Properties of Destination where capture will be + stored. (Storage Account, Blob Names) + :type destination: ~azure.mgmt.eventhub.models.Destination + """ + + _validation = { + 'interval_in_seconds': {'maximum': 900, 'minimum': 60}, + 'size_limit_in_bytes': {'maximum': 524288000, 'minimum': 10485760}, + } + + _attribute_map = { + 'enabled': {'key': 'enabled', 'type': 'bool'}, + 'encoding': {'key': 'encoding', 'type': 'EncodingCaptureDescription'}, + 'interval_in_seconds': {'key': 'intervalInSeconds', 'type': 'int'}, + 'size_limit_in_bytes': {'key': 'sizeLimitInBytes', 'type': 'int'}, + 'destination': {'key': 'destination', 'type': 'Destination'}, + } + + def __init__(self, *, enabled: bool=None, encoding=None, interval_in_seconds: int=None, size_limit_in_bytes: int=None, destination=None, **kwargs) -> None: + super(CaptureDescription, self).__init__(**kwargs) + self.enabled = enabled + self.encoding = encoding + self.interval_in_seconds = interval_in_seconds + self.size_limit_in_bytes = size_limit_in_bytes + self.destination = destination diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_parameter.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_parameter.py index 6124cebbe87a..62e76ba21799 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_parameter.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_parameter.py @@ -15,7 +15,9 @@ class CheckNameAvailabilityParameter(Model): """Parameter supplied to check Namespace name availability operation . - :param name: Name to check the namespace name availability + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name to check the namespace name availability :type name: str """ @@ -27,6 +29,6 @@ class CheckNameAvailabilityParameter(Model): 'name': {'key': 'name', 'type': 'str'}, } - def __init__(self, name): - super(CheckNameAvailabilityParameter, self).__init__() - self.name = name + def __init__(self, **kwargs): + super(CheckNameAvailabilityParameter, self).__init__(**kwargs) + self.name = kwargs.get('name', None) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_parameter_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_parameter_py3.py new file mode 100644 index 000000000000..af3337c6ca5d --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_parameter_py3.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CheckNameAvailabilityParameter(Model): + """Parameter supplied to check Namespace name availability operation . + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name to check the namespace name availability + :type name: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, name: str, **kwargs) -> None: + super(CheckNameAvailabilityParameter, self).__init__(**kwargs) + self.name = name diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_result.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_result.py index 260054c6c0de..170be18ac154 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_result.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_result.py @@ -40,8 +40,8 @@ class CheckNameAvailabilityResult(Model): 'reason': {'key': 'reason', 'type': 'UnavailableReason'}, } - def __init__(self, name_available=None, reason=None): - super(CheckNameAvailabilityResult, self).__init__() + def __init__(self, **kwargs): + super(CheckNameAvailabilityResult, self).__init__(**kwargs) self.message = None - self.name_available = name_available - self.reason = reason + self.name_available = kwargs.get('name_available', None) + self.reason = kwargs.get('reason', None) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_result_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_result_py3.py new file mode 100644 index 000000000000..86005e6e3d0a --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/check_name_availability_result_py3.py @@ -0,0 +1,47 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class CheckNameAvailabilityResult(Model): + """The Result of the CheckNameAvailability operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar message: The detailed info regarding the reason associated with the + Namespace. + :vartype message: str + :param name_available: Value indicating Namespace is availability, true if + the Namespace is available; otherwise, false. + :type name_available: bool + :param reason: The reason for unavailability of a Namespace. Possible + values include: 'None', 'InvalidName', 'SubscriptionIsDisabled', + 'NameInUse', 'NameInLockdown', 'TooManyNamespaceInCurrentSubscription' + :type reason: str or ~azure.mgmt.eventhub.models.UnavailableReason + """ + + _validation = { + 'message': {'readonly': True}, + } + + _attribute_map = { + 'message': {'key': 'message', 'type': 'str'}, + 'name_available': {'key': 'nameAvailable', 'type': 'bool'}, + 'reason': {'key': 'reason', 'type': 'UnavailableReason'}, + } + + def __init__(self, *, name_available: bool=None, reason=None, **kwargs) -> None: + super(CheckNameAvailabilityResult, self).__init__(**kwargs) + self.message = None + self.name_available = name_available + self.reason = reason diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/consumer_group.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/consumer_group.py index 54f44f7b3ce2..b26c980d265b 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/consumer_group.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/consumer_group.py @@ -52,8 +52,8 @@ class ConsumerGroup(Resource): 'user_metadata': {'key': 'properties.userMetadata', 'type': 'str'}, } - def __init__(self, user_metadata=None): - super(ConsumerGroup, self).__init__() + def __init__(self, **kwargs): + super(ConsumerGroup, self).__init__(**kwargs) self.created_at = None self.updated_at = None - self.user_metadata = user_metadata + self.user_metadata = kwargs.get('user_metadata', None) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/consumer_group_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/consumer_group_py3.py new file mode 100644 index 000000000000..f31c5b31a280 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/consumer_group_py3.py @@ -0,0 +1,59 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ConsumerGroup(Resource): + """Single item in List or Get Consumer group operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :ivar created_at: Exact time the message was created. + :vartype created_at: datetime + :ivar updated_at: The exact time the message was updated. + :vartype updated_at: datetime + :param user_metadata: Usermetadata is a placeholder to store user-defined + string data with maximum length 1024. e.g. it can be used to store + descriptive data, such as list of teams and their contact information also + user-defined configuration settings can be stored. + :type user_metadata: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'created_at': {'readonly': True}, + 'updated_at': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'}, + 'user_metadata': {'key': 'properties.userMetadata', 'type': 'str'}, + } + + def __init__(self, *, user_metadata: str=None, **kwargs) -> None: + super(ConsumerGroup, self).__init__(**kwargs) + self.created_at = None + self.updated_at = None + self.user_metadata = user_metadata diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/destination.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/destination.py index c8a56130103d..78eec889d171 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/destination.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/destination.py @@ -36,9 +36,9 @@ class Destination(Model): 'archive_name_format': {'key': 'properties.archiveNameFormat', 'type': 'str'}, } - def __init__(self, name=None, storage_account_resource_id=None, blob_container=None, archive_name_format=None): - super(Destination, self).__init__() - self.name = name - self.storage_account_resource_id = storage_account_resource_id - self.blob_container = blob_container - self.archive_name_format = archive_name_format + def __init__(self, **kwargs): + super(Destination, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.storage_account_resource_id = kwargs.get('storage_account_resource_id', None) + self.blob_container = kwargs.get('blob_container', None) + self.archive_name_format = kwargs.get('archive_name_format', None) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/destination_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/destination_py3.py new file mode 100644 index 000000000000..c2e3445cbf40 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/destination_py3.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Destination(Model): + """Capture storage details for capture description. + + :param name: Name for capture destination + :type name: str + :param storage_account_resource_id: Resource id of the storage account to + be used to create the blobs + :type storage_account_resource_id: str + :param blob_container: Blob container Name + :type blob_container: str + :param archive_name_format: Blob naming convention for archive, e.g. + {Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}. + Here all the parameters (Namespace,EventHub .. etc) are mandatory + irrespective of order + :type archive_name_format: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'storage_account_resource_id': {'key': 'properties.storageAccountResourceId', 'type': 'str'}, + 'blob_container': {'key': 'properties.blobContainer', 'type': 'str'}, + 'archive_name_format': {'key': 'properties.archiveNameFormat', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, storage_account_resource_id: str=None, blob_container: str=None, archive_name_format: str=None, **kwargs) -> None: + super(Destination, self).__init__(**kwargs) + self.name = name + self.storage_account_resource_id = storage_account_resource_id + self.blob_container = blob_container + self.archive_name_format = archive_name_format diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/eh_namespace.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/eh_namespace.py index 7b05c4d6d484..8fdc61e63eb1 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/eh_namespace.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/eh_namespace.py @@ -78,13 +78,13 @@ class EHNamespace(TrackedResource): 'maximum_throughput_units': {'key': 'properties.maximumThroughputUnits', 'type': 'int'}, } - def __init__(self, location=None, tags=None, sku=None, is_auto_inflate_enabled=None, maximum_throughput_units=None): - super(EHNamespace, self).__init__(location=location, tags=tags) - self.sku = sku + def __init__(self, **kwargs): + super(EHNamespace, self).__init__(**kwargs) + self.sku = kwargs.get('sku', None) self.provisioning_state = None self.created_at = None self.updated_at = None self.service_bus_endpoint = None self.metric_id = None - self.is_auto_inflate_enabled = is_auto_inflate_enabled - self.maximum_throughput_units = maximum_throughput_units + self.is_auto_inflate_enabled = kwargs.get('is_auto_inflate_enabled', None) + self.maximum_throughput_units = kwargs.get('maximum_throughput_units', None) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/eh_namespace_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/eh_namespace_py3.py new file mode 100644 index 000000000000..7363aa26afc7 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/eh_namespace_py3.py @@ -0,0 +1,90 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .tracked_resource import TrackedResource + + +class EHNamespace(TrackedResource): + """Single Namespace item in List or Get Operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param sku: Properties of sku resource + :type sku: ~azure.mgmt.eventhub.models.Sku + :ivar provisioning_state: Provisioning state of the Namespace. + :vartype provisioning_state: str + :ivar created_at: The time the Namespace was created. + :vartype created_at: datetime + :ivar updated_at: The time the Namespace was updated. + :vartype updated_at: datetime + :ivar service_bus_endpoint: Endpoint you can use to perform Service Bus + operations. + :vartype service_bus_endpoint: str + :ivar metric_id: Identifier for Azure Insights metrics. + :vartype metric_id: str + :param is_auto_inflate_enabled: Value that indicates whether AutoInflate + is enabled for eventhub namespace. + :type is_auto_inflate_enabled: bool + :param maximum_throughput_units: Upper limit of throughput units when + AutoInflate is enabled, vaule should be within 0 to 20 throughput units. ( + '0' if AutoInflateEnabled = true) + :type maximum_throughput_units: int + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'created_at': {'readonly': True}, + 'updated_at': {'readonly': True}, + 'service_bus_endpoint': {'readonly': True}, + 'metric_id': {'readonly': True}, + 'maximum_throughput_units': {'maximum': 20, 'minimum': 0}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, + 'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'}, + 'service_bus_endpoint': {'key': 'properties.serviceBusEndpoint', 'type': 'str'}, + 'metric_id': {'key': 'properties.metricId', 'type': 'str'}, + 'is_auto_inflate_enabled': {'key': 'properties.isAutoInflateEnabled', 'type': 'bool'}, + 'maximum_throughput_units': {'key': 'properties.maximumThroughputUnits', 'type': 'int'}, + } + + def __init__(self, *, location: str=None, tags=None, sku=None, is_auto_inflate_enabled: bool=None, maximum_throughput_units: int=None, **kwargs) -> None: + super(EHNamespace, self).__init__(location=location, tags=tags, **kwargs) + self.sku = sku + self.provisioning_state = None + self.created_at = None + self.updated_at = None + self.service_bus_endpoint = None + self.metric_id = None + self.is_auto_inflate_enabled = is_auto_inflate_enabled + self.maximum_throughput_units = maximum_throughput_units diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/error_response.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/error_response.py index 9ef9abe0298e..040706337efb 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/error_response.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/error_response.py @@ -28,10 +28,10 @@ class ErrorResponse(Model): 'message': {'key': 'message', 'type': 'str'}, } - def __init__(self, code=None, message=None): - super(ErrorResponse, self).__init__() - self.code = code - self.message = message + def __init__(self, **kwargs): + super(ErrorResponse, self).__init__(**kwargs) + self.code = kwargs.get('code', None) + self.message = kwargs.get('message', None) class ErrorResponseException(HttpOperationError): diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/error_response_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/error_response_py3.py new file mode 100644 index 000000000000..94df585d4569 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/error_response_py3.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class ErrorResponse(Model): + """Error reponse indicates EventHub service is not able to process the + incoming request. The reason is provided in the error message. + + :param code: Error code. + :type code: str + :param message: Error message indicating why the operation failed. + :type message: str + """ + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: + super(ErrorResponse, self).__init__(**kwargs) + self.code = code + self.message = message + + +class ErrorResponseException(HttpOperationError): + """Server responsed with exception of type: 'ErrorResponse'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/event_hub_management_client_enums.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/event_hub_management_client_enums.py index ac7264c6e77c..8d281a4fc7f2 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/event_hub_management_client_enums.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/event_hub_management_client_enums.py @@ -12,32 +12,32 @@ from enum import Enum -class SkuName(Enum): +class SkuName(str, Enum): basic = "Basic" standard = "Standard" -class SkuTier(Enum): +class SkuTier(str, Enum): basic = "Basic" standard = "Standard" -class AccessRights(Enum): +class AccessRights(str, Enum): manage = "Manage" send = "Send" listen = "Listen" -class KeyType(Enum): +class KeyType(str, Enum): primary_key = "PrimaryKey" secondary_key = "SecondaryKey" -class EntityStatus(Enum): +class EntityStatus(str, Enum): active = "Active" disabled = "Disabled" @@ -50,13 +50,13 @@ class EntityStatus(Enum): unknown = "Unknown" -class EncodingCaptureDescription(Enum): +class EncodingCaptureDescription(str, Enum): avro = "Avro" avro_deflate = "AvroDeflate" -class UnavailableReason(Enum): +class UnavailableReason(str, Enum): none = "None" invalid_name = "InvalidName" @@ -66,14 +66,14 @@ class UnavailableReason(Enum): too_many_namespace_in_current_subscription = "TooManyNamespaceInCurrentSubscription" -class ProvisioningStateDR(Enum): +class ProvisioningStateDR(str, Enum): accepted = "Accepted" succeeded = "Succeeded" failed = "Failed" -class RoleDisasterRecovery(Enum): +class RoleDisasterRecovery(str, Enum): primary = "Primary" primary_not_replicating = "PrimaryNotReplicating" diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/eventhub.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/eventhub.py index 5e9aff617d40..c0ca413028d5 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/eventhub.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/eventhub.py @@ -69,12 +69,12 @@ class Eventhub(Resource): 'capture_description': {'key': 'properties.captureDescription', 'type': 'CaptureDescription'}, } - def __init__(self, message_retention_in_days=None, partition_count=None, status=None, capture_description=None): - super(Eventhub, self).__init__() + def __init__(self, **kwargs): + super(Eventhub, self).__init__(**kwargs) self.partition_ids = None self.created_at = None self.updated_at = None - self.message_retention_in_days = message_retention_in_days - self.partition_count = partition_count - self.status = status - self.capture_description = capture_description + self.message_retention_in_days = kwargs.get('message_retention_in_days', None) + self.partition_count = kwargs.get('partition_count', None) + self.status = kwargs.get('status', None) + self.capture_description = kwargs.get('capture_description', None) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/eventhub_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/eventhub_py3.py new file mode 100644 index 000000000000..434dc98b71d6 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/eventhub_py3.py @@ -0,0 +1,80 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class Eventhub(Resource): + """Single item in List or Get Event Hub operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :ivar partition_ids: Current number of shards on the Event Hub. + :vartype partition_ids: list[str] + :ivar created_at: Exact time the Event Hub was created. + :vartype created_at: datetime + :ivar updated_at: The exact time the message was updated. + :vartype updated_at: datetime + :param message_retention_in_days: Number of days to retain the events for + this Event Hub, value should be 1 to 7 days + :type message_retention_in_days: long + :param partition_count: Number of partitions created for the Event Hub, + allowed values are from 1 to 32 partitions. + :type partition_count: long + :param status: Enumerates the possible values for the status of the Event + Hub. Possible values include: 'Active', 'Disabled', 'Restoring', + 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', 'Renaming', + 'Unknown' + :type status: str or ~azure.mgmt.eventhub.models.EntityStatus + :param capture_description: Properties of capture description + :type capture_description: ~azure.mgmt.eventhub.models.CaptureDescription + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'partition_ids': {'readonly': True}, + 'created_at': {'readonly': True}, + 'updated_at': {'readonly': True}, + 'message_retention_in_days': {'minimum': 1}, + 'partition_count': {'minimum': 1}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'partition_ids': {'key': 'properties.partitionIds', 'type': '[str]'}, + 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, + 'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'}, + 'message_retention_in_days': {'key': 'properties.messageRetentionInDays', 'type': 'long'}, + 'partition_count': {'key': 'properties.partitionCount', 'type': 'long'}, + 'status': {'key': 'properties.status', 'type': 'EntityStatus'}, + 'capture_description': {'key': 'properties.captureDescription', 'type': 'CaptureDescription'}, + } + + def __init__(self, *, message_retention_in_days: int=None, partition_count: int=None, status=None, capture_description=None, **kwargs) -> None: + super(Eventhub, self).__init__(**kwargs) + self.partition_ids = None + self.created_at = None + self.updated_at = None + self.message_retention_in_days = message_retention_in_days + self.partition_count = partition_count + self.status = status + self.capture_description = capture_description diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py index 180b16e6abc0..823075ee83c0 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan.py @@ -60,8 +60,8 @@ class MessagingPlan(TrackedResource): 'revision': {'key': 'properties.revision', 'type': 'long'}, } - def __init__(self, location=None, tags=None): - super(MessagingPlan, self).__init__(location=location, tags=tags) + def __init__(self, **kwargs): + super(MessagingPlan, self).__init__(**kwargs) self.sku = None self.selected_event_hub_unit = None self.updated_at = None diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan_py3.py new file mode 100644 index 000000000000..10e0d5c05233 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_plan_py3.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .tracked_resource import TrackedResource + + +class MessagingPlan(TrackedResource): + """Messaging Plan for the namespace. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :ivar sku: Sku type + :vartype sku: int + :ivar selected_event_hub_unit: Selected event hub unit + :vartype selected_event_hub_unit: int + :ivar updated_at: The exact time the messaging plan was updated. + :vartype updated_at: datetime + :ivar revision: revision number + :vartype revision: long + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'sku': {'readonly': True}, + 'selected_event_hub_unit': {'readonly': True}, + 'updated_at': {'readonly': True}, + 'revision': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'sku': {'key': 'properties.sku', 'type': 'int'}, + 'selected_event_hub_unit': {'key': 'properties.selectedEventHubUnit', 'type': 'int'}, + 'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'}, + 'revision': {'key': 'properties.revision', 'type': 'long'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(MessagingPlan, self).__init__(location=location, tags=tags, **kwargs) + self.sku = None + self.selected_event_hub_unit = None + self.updated_at = None + self.revision = None diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions.py index 6d4a810d53e2..6d185dda769a 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions.py @@ -47,6 +47,6 @@ class MessagingRegions(TrackedResource): 'properties': {'key': 'properties', 'type': 'MessagingRegionsProperties'}, } - def __init__(self, location=None, tags=None, properties=None): - super(MessagingRegions, self).__init__(location=location, tags=tags) - self.properties = properties + def __init__(self, **kwargs): + super(MessagingRegions, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_properties.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_properties.py index cf7269d6b8f1..cae0051fd4cc 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_properties.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_properties.py @@ -34,7 +34,7 @@ class MessagingRegionsProperties(Model): 'full_name': {'key': 'fullName', 'type': 'str'}, } - def __init__(self): - super(MessagingRegionsProperties, self).__init__() + def __init__(self, **kwargs): + super(MessagingRegionsProperties, self).__init__(**kwargs) self.code = None self.full_name = None diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_properties_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_properties_py3.py new file mode 100644 index 000000000000..e10cda8131ea --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_properties_py3.py @@ -0,0 +1,40 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class MessagingRegionsProperties(Model): + """MessagingRegionsProperties. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Region code + :vartype code: str + :ivar full_name: Full name of the region + :vartype full_name: str + """ + + _validation = { + 'code': {'readonly': True}, + 'full_name': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'full_name': {'key': 'fullName', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(MessagingRegionsProperties, self).__init__(**kwargs) + self.code = None + self.full_name = None diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_py3.py new file mode 100644 index 000000000000..50c8c28651aa --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/messaging_regions_py3.py @@ -0,0 +1,52 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .tracked_resource import TrackedResource + + +class MessagingRegions(TrackedResource): + """Messaging Region. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + :param properties: + :type properties: ~azure.mgmt.eventhub.models.MessagingRegionsProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'properties': {'key': 'properties', 'type': 'MessagingRegionsProperties'}, + } + + def __init__(self, *, location: str=None, tags=None, properties=None, **kwargs) -> None: + super(MessagingRegions, self).__init__(location=location, tags=tags, **kwargs) + self.properties = properties diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation.py index 510a144fb91f..6baa1d033cca 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation.py @@ -33,7 +33,7 @@ class Operation(Model): 'display': {'key': 'display', 'type': 'OperationDisplay'}, } - def __init__(self, display=None): - super(Operation, self).__init__() + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) self.name = None - self.display = display + self.display = kwargs.get('display', None) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation_display.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation_display.py index a4883d9d7e29..74249d183645 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation_display.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation_display.py @@ -39,8 +39,8 @@ class OperationDisplay(Model): 'operation': {'key': 'operation', 'type': 'str'}, } - def __init__(self): - super(OperationDisplay, self).__init__() + def __init__(self, **kwargs): + super(OperationDisplay, self).__init__(**kwargs) self.provider = None self.resource = None self.operation = None diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation_display_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation_display_py3.py new file mode 100644 index 000000000000..846e73610af1 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation_display_py3.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class OperationDisplay(Model): + """The object that represents the operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar provider: Service provider: Microsoft.EventHub + :vartype provider: str + :ivar resource: Resource on which the operation is performed: Invoice, + etc. + :vartype resource: str + :ivar operation: Operation type: Read, write, delete, etc. + :vartype operation: str + """ + + _validation = { + 'provider': {'readonly': True}, + 'resource': {'readonly': True}, + 'operation': {'readonly': True}, + } + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(OperationDisplay, self).__init__(**kwargs) + self.provider = None + self.resource = None + self.operation = None diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation_py3.py new file mode 100644 index 000000000000..c5a1b82a6eb0 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/operation_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Operation(Model): + """A Event Hub REST API operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar name: Operation name: {provider}/{resource}/{operation} + :vartype name: str + :param display: The object that represents the operation. + :type display: ~azure.mgmt.eventhub.models.OperationDisplay + """ + + _validation = { + 'name': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDisplay'}, + } + + def __init__(self, *, display=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = None + self.display = display diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/regenerate_access_key_parameters.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/regenerate_access_key_parameters.py index 1107c999c8ff..f0b2b1ecb0f0 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/regenerate_access_key_parameters.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/regenerate_access_key_parameters.py @@ -16,8 +16,10 @@ class RegenerateAccessKeyParameters(Model): """Parameters supplied to the Regenerate Authorization Rule operation, specifies which key neeeds to be reset. - :param key_type: The access key to regenerate. Possible values include: - 'PrimaryKey', 'SecondaryKey' + All required parameters must be populated in order to send to Azure. + + :param key_type: Required. The access key to regenerate. Possible values + include: 'PrimaryKey', 'SecondaryKey' :type key_type: str or ~azure.mgmt.eventhub.models.KeyType :param key: Optional, if the key value provided, is set for KeyType or autogenerated Key value set for keyType @@ -33,7 +35,7 @@ class RegenerateAccessKeyParameters(Model): 'key': {'key': 'key', 'type': 'str'}, } - def __init__(self, key_type, key=None): - super(RegenerateAccessKeyParameters, self).__init__() - self.key_type = key_type - self.key = key + def __init__(self, **kwargs): + super(RegenerateAccessKeyParameters, self).__init__(**kwargs) + self.key_type = kwargs.get('key_type', None) + self.key = kwargs.get('key', None) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/regenerate_access_key_parameters_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/regenerate_access_key_parameters_py3.py new file mode 100644 index 000000000000..f99be3a71cbb --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/regenerate_access_key_parameters_py3.py @@ -0,0 +1,41 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RegenerateAccessKeyParameters(Model): + """Parameters supplied to the Regenerate Authorization Rule operation, + specifies which key neeeds to be reset. + + All required parameters must be populated in order to send to Azure. + + :param key_type: Required. The access key to regenerate. Possible values + include: 'PrimaryKey', 'SecondaryKey' + :type key_type: str or ~azure.mgmt.eventhub.models.KeyType + :param key: Optional, if the key value provided, is set for KeyType or + autogenerated Key value set for keyType + :type key: str + """ + + _validation = { + 'key_type': {'required': True}, + } + + _attribute_map = { + 'key_type': {'key': 'keyType', 'type': 'KeyType'}, + 'key': {'key': 'key', 'type': 'str'}, + } + + def __init__(self, *, key_type, key: str=None, **kwargs) -> None: + super(RegenerateAccessKeyParameters, self).__init__(**kwargs) + self.key_type = key_type + self.key = key diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/resource.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/resource.py index 97e166307743..bd010f91657e 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/resource.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/resource.py @@ -38,8 +38,8 @@ class Resource(Model): 'type': {'key': 'type', 'type': 'str'}, } - def __init__(self): - super(Resource, self).__init__() + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) self.id = None self.name = None self.type = None diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/resource_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/resource_py3.py new file mode 100644 index 000000000000..3c059f3d0847 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/resource_py3.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Resource(Model): + """The Resource definition. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/sku.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/sku.py index 834a51597044..7f7a52bfc7f8 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/sku.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/sku.py @@ -15,7 +15,9 @@ class Sku(Model): """SKU parameters supplied to the create namespace operation. - :param name: Name of this SKU. Possible values include: 'Basic', + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of this SKU. Possible values include: 'Basic', 'Standard' :type name: str or ~azure.mgmt.eventhub.models.SkuName :param tier: The billing tier of this particular SKU. Possible values @@ -37,8 +39,8 @@ class Sku(Model): 'capacity': {'key': 'capacity', 'type': 'int'}, } - def __init__(self, name, tier=None, capacity=None): - super(Sku, self).__init__() - self.name = name - self.tier = tier - self.capacity = capacity + def __init__(self, **kwargs): + super(Sku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.capacity = kwargs.get('capacity', None) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/sku_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/sku_py3.py new file mode 100644 index 000000000000..db9fe2bf8b85 --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/sku_py3.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class Sku(Model): + """SKU parameters supplied to the create namespace operation. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of this SKU. Possible values include: 'Basic', + 'Standard' + :type name: str or ~azure.mgmt.eventhub.models.SkuName + :param tier: The billing tier of this particular SKU. Possible values + include: 'Basic', 'Standard' + :type tier: str or ~azure.mgmt.eventhub.models.SkuTier + :param capacity: The Event Hubs throughput units, vaule should be 0 to 20 + throughput units. + :type capacity: int + """ + + _validation = { + 'name': {'required': True}, + 'capacity': {'maximum': 20, 'minimum': 0}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, *, name, tier=None, capacity: int=None, **kwargs) -> None: + super(Sku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.capacity = capacity diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/tracked_resource.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/tracked_resource.py index 1de5cd2d21bc..d25cee6d658b 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/tracked_resource.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/tracked_resource.py @@ -44,7 +44,7 @@ class TrackedResource(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, } - def __init__(self, location=None, tags=None): - super(TrackedResource, self).__init__() - self.location = location - self.tags = tags + def __init__(self, **kwargs): + super(TrackedResource, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.tags = kwargs.get('tags', None) diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/models/tracked_resource_py3.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/tracked_resource_py3.py new file mode 100644 index 000000000000..755602b9f9ad --- /dev/null +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/models/tracked_resource_py3.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class TrackedResource(Resource): + """Definition of Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :param location: Resource location + :type location: str + :param tags: Resource tags + :type tags: dict[str, str] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'location': {'key': 'location', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + } + + def __init__(self, *, location: str=None, tags=None, **kwargs) -> None: + super(TrackedResource, self).__init__(**kwargs) + self.location = location + self.tags = tags diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/namespaces_operations.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/namespaces_operations.py index 33b38bb342f3..61a4b3159122 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/namespaces_operations.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/operations/namespaces_operations.py @@ -11,8 +11,8 @@ import uuid from msrest.pipeline import ClientRawResponse -from msrest.exceptions import DeserializationError -from msrestazure.azure_operation import AzureOperationPoller +from msrest.polling import LROPoller, NoPolling +from msrestazure.polling.arm_polling import ARMPolling from .. import models @@ -285,7 +285,7 @@ def _create_or_update_initial( return deserialized def create_or_update( - self, resource_group_name, namespace_name, parameters, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, namespace_name, parameters, custom_headers=None, raw=False, polling=True, **operation_config): """Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent. @@ -297,13 +297,16 @@ def create_or_update( :param parameters: Parameters for creating a namespace resource. :type parameters: ~azure.mgmt.eventhub.models.EHNamespace :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :return: An instance of AzureOperationPoller that returns EHNamespace - or ClientRawResponse if raw=true + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns EHNamespace or + ClientRawResponse if raw==True :rtype: ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.eventhub.models.EHNamespace] - or ~msrest.pipeline.ClientRawResponse + or + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[~azure.mgmt.eventhub.models.EHNamespace]] :raises: :class:`ErrorResponseException` """ @@ -315,28 +318,8 @@ def create_or_update( raw=True, **operation_config ) - if raw: - return raw_result - - # Construct and send request - def long_running_send(): - return raw_result.response - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - header_parameters = {} - header_parameters['x-ms-client-request-id'] = raw_result.response.request.headers['x-ms-client-request-id'] - return self._client.send( - request, header_parameters, stream=False, **operation_config) def get_long_running_output(response): - - if response.status_code not in [200, 201, 202]: - raise models.ErrorResponseException(self._deserialize, response) - deserialized = self._deserialize('EHNamespace', response) if raw: @@ -345,12 +328,13 @@ def get_long_running_output(response): return deserialized - long_running_operation_timeout = operation_config.get( + lro_delay = operation_config.get( 'long_running_operation_timeout', self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}'} @@ -391,7 +375,7 @@ def _delete_initial( return client_raw_response def delete( - self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, namespace_name, custom_headers=None, raw=False, polling=True, **operation_config): """Deletes an existing namespace. This operation also removes all associated resources under the namespace. @@ -401,12 +385,14 @@ def delete( :param namespace_name: The Namespace name :type namespace_name: str :param dict custom_headers: headers that will be added to the request - :param bool raw: returns the direct response alongside the - deserialized response - :return: An instance of AzureOperationPoller that returns None or - ClientRawResponse if raw=true + :param bool raw: The poller return type is ClientRawResponse, the + direct response alongside the deserialized response + :param polling: True for ARMPolling, False for no polling, or a + polling object for personal polling strategy + :return: An instance of LROPoller that returns None or + ClientRawResponse if raw==True :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrest.pipeline.ClientRawResponse + ~msrestazure.azure_operation.AzureOperationPoller[~msrest.pipeline.ClientRawResponse[None]] :raises: :class:`ErrorResponseException` """ @@ -417,38 +403,19 @@ def delete( raw=True, **operation_config ) - if raw: - return raw_result - - # Construct and send request - def long_running_send(): - return raw_result.response - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - header_parameters = {} - header_parameters['x-ms-client-request-id'] = raw_result.response.request.headers['x-ms-client-request-id'] - return self._client.send( - request, header_parameters, stream=False, **operation_config) def get_long_running_output(response): - - if response.status_code not in [200, 202, 204]: - raise models.ErrorResponseException(self._deserialize, response) - if raw: client_raw_response = ClientRawResponse(None, response) return client_raw_response - long_running_operation_timeout = operation_config.get( + lro_delay = operation_config.get( 'long_running_operation_timeout', self.config.long_running_operation_timeout) - return AzureOperationPoller( - long_running_send, get_long_running_output, - get_long_running_status, long_running_operation_timeout) + if polling is True: polling_method = ARMPolling(lro_delay, **operation_config) + elif polling is False: polling_method = NoPolling() + else: polling_method = polling + return LROPoller(self._client, raw_result, get_long_running_output, polling_method) delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}'} def get( From fb8f58331da9ed5c4c92df6200431266ea6bd8f3 Mon Sep 17 00:00:00 2001 From: Ajit Navasare Date: Fri, 4 May 2018 15:34:26 -0700 Subject: [PATCH 6/7] updated Tests (#2536) --- ...e_mgmt_eventhub.test_eh_eventhub_curd.yaml | 576 +++++------------- ...ilability.test_eh_namespace_available.yaml | 13 +- ...sumergroup.test_eh_consumergroup_curd.yaml | 383 ++++-------- ...thub_namespace.test_eh_namespace_curd.yaml | 469 +++++++------- .../tests/test_azure_mgmt_eventhub.py | 4 +- .../test_azure_mgmt_eventhub_consumergroup.py | 2 +- .../test_azure_mgmt_eventhub_namespace.py | 4 +- 7 files changed, 486 insertions(+), 965 deletions(-) diff --git a/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub.test_eh_eventhub_curd.yaml b/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub.test_eh_eventhub_curd.yaml index 16da451c1c6f..39aded820173 100644 --- a/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub.test_eh_eventhub_curd.yaml +++ b/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub.test_eh_eventhub_curd.yaml @@ -8,26 +8,27 @@ interactions: Connection: [keep-alive] Content-Length: ['97'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2017-11-07T20:04:52.21Z","updatedAt":"2017-11-07T20:04:52.21Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/"}}'} + body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub","name":"pythontestcaseeventhubnamespaceEventhub","type":"Microsoft.EventHub/Namespaces","location":"West + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:pythontestcaseeventhubnamespaceeventhub","createdAt":"2018-05-04T21:47:30.653Z","updatedAt":"2018-05-04T21:47:30.653Z","serviceBusEndpoint":"https://pythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['811'] + content-length: ['807'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:04:52 GMT'] + date: ['Fri, 04 May 2018 21:47:30 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -36,167 +37,26 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2017-11-07T20:04:52.21Z","updatedAt":"2017-11-07T20:04:52.21Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/"}}'} - headers: - cache-control: [no-cache] - content-length: ['811'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:05:24 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2017-11-07T20:04:52.21Z","updatedAt":"2017-11-07T20:04:52.21Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/"}}'} - headers: - cache-control: [no-cache] - content-length: ['811'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:05:54 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2017-11-07T20:04:52.21Z","updatedAt":"2017-11-07T20:04:52.21Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/"}}'} - headers: - cache-control: [no-cache] - content-length: ['811'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:06:25 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2017-11-07T20:04:52.21Z","updatedAt":"2017-11-07T20:04:52.21Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/"}}'} - headers: - cache-control: [no-cache] - content-length: ['811'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:06:56 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2017-11-07T20:04:52.21Z","updatedAt":"2017-11-07T20:04:52.21Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/"}}'} - headers: - cache-control: [no-cache] - content-length: ['811'] - content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:07:26 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2017-11-07T20:04:52.21Z","updatedAt":"2017-11-07T20:07:56.93Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/"}}'} + body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub","name":"pythontestcaseeventhubnamespaceEventhub","type":"Microsoft.EventHub/Namespaces","location":"West + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:pythontestcaseeventhubnamespaceeventhub","createdAt":"2018-05-04T21:47:30.653Z","updatedAt":"2018-05-04T21:47:56.883Z","serviceBusEndpoint":"https://pythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['813'] + content-length: ['805'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:07:57 GMT'] + date: ['Fri, 04 May 2018 21:48:01 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: null @@ -205,26 +65,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub","name":"testingpythontestcaseeventhubnamespaceEventhub","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcaseeventhubnamespaceeventhub","createdAt":"2017-11-07T20:04:52.21Z","updatedAt":"2017-11-07T20:07:56.93Z","serviceBusEndpoint":"https://testingpythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/"}}'} + body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub","name":"pythontestcaseeventhubnamespaceEventhub","type":"Microsoft.EventHub/Namespaces","location":"West + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:pythontestcaseeventhubnamespaceeventhub","createdAt":"2018-05-04T21:47:30.653Z","updatedAt":"2018-05-04T21:47:56.883Z","serviceBusEndpoint":"https://pythontestcaseeventhubnamespaceEventhub.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['813'] + content-length: ['805'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:07:59 GMT'] + date: ['Fri, 04 May 2018 21:48:01 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: 'b''b\''b\\\''{"properties": {"messageRetentionInDays": 4, "partitionCount": @@ -238,26 +99,27 @@ interactions: Connection: [keep-alive] Content-Length: ['592'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub?api-version=2017-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub","name":"testingpythontestcaseeventhub","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US","properties":{"messageRetentionInDays":4,"partitionCount":4,"status":"Active","createdAt":"2017-11-07T20:08:05.64Z","updatedAt":"2017-11-07T20:08:09.373Z","partitionIds":["0","1","2","3"],"captureDescription":{"enabled":true,"encoding":"Avro","destination":{"name":"EventHubArchive.AzureBlockBlob","properties":{"storageAccountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage","blobContainer":"container","archiveNameFormat":"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"}},"intervalInSeconds":120,"sizeLimitInBytes":10485763}}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub","name":"testingpythontestcaseeventhub","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West + US","properties":{"messageRetentionInDays":4,"partitionCount":4,"status":"Active","createdAt":"2018-05-04T21:48:05.603Z","updatedAt":"2018-05-04T21:48:14.853Z","partitionIds":["0","1","2","3"],"captureDescription":{"enabled":true,"encoding":"Avro","destination":{"name":"EventHubArchive.AzureBlockBlob","properties":{"storageAccountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage","blobContainer":"container","archiveNameFormat":"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"}},"intervalInSeconds":120,"sizeLimitInBytes":10485763}}}'} headers: cache-control: [no-cache] - content-length: ['1062'] + content-length: ['1056'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:08:07 GMT'] + date: ['Fri, 04 May 2018 21:48:15 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -267,26 +129,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub?api-version=2017-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub","name":"testingpythontestcaseeventhub","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US","properties":{"messageRetentionInDays":4,"partitionCount":4,"status":"Active","createdAt":"2017-11-07T20:08:05.64","updatedAt":"2017-11-07T20:08:09.373","partitionIds":["0","1","2","3"],"captureDescription":{"enabled":true,"encoding":"Avro","destination":{"name":"EventHubArchive.AzureBlockBlob","properties":{"storageAccountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage","blobContainer":"container","archiveNameFormat":"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"}},"intervalInSeconds":120,"sizeLimitInBytes":10485763}}}'} + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub","name":"testingpythontestcaseeventhub","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West + US","properties":{"messageRetentionInDays":4,"partitionCount":4,"status":"Active","createdAt":"2018-05-04T21:48:05.603","updatedAt":"2018-05-04T21:48:14.853","partitionIds":["0","1","2","3"],"captureDescription":{"enabled":true,"encoding":"Avro","destination":{"name":"EventHubArchive.AzureBlockBlob","properties":{"storageAccountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage","blobContainer":"container","archiveNameFormat":"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"}},"intervalInSeconds":120,"sizeLimitInBytes":10485763}}}'} headers: cache-control: [no-cache] - content-length: ['1060'] + content-length: ['1054'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:08:08 GMT'] + date: ['Fri, 04 May 2018 21:48:15 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: null @@ -295,26 +158,28 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs?api-version=2017-04-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub","name":"testingpythontestcaseeventhub","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US","properties":{"messageRetentionInDays":4,"partitionCount":4,"status":"Active","createdAt":"2017-11-07T20:08:05.64","updatedAt":"2017-11-07T20:08:09.373","partitionIds":["0","1","2","3"],"captureDescription":{"enabled":true,"encoding":"Avro","destination":{"name":"EventHubArchive.AzureBlockBlob","properties":{"storageAccountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage","blobContainer":"container","archiveNameFormat":"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"}},"intervalInSeconds":120,"sizeLimitInBytes":10485763}}}]}'} + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub","name":"testingpythontestcaseeventhub","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West + US","properties":{"messageRetentionInDays":4,"partitionCount":4,"status":"Active","createdAt":"2018-05-04T21:48:05.603","updatedAt":"2018-05-04T21:48:14.853","partitionIds":["0","1","2","3"],"captureDescription":{"enabled":true,"encoding":"Avro","destination":{"name":"EventHubArchive.AzureBlockBlob","properties":{"storageAccountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage","blobContainer":"container","archiveNameFormat":"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"}},"intervalInSeconds":120,"sizeLimitInBytes":10485763}}}]}'} headers: cache-control: [no-cache] - content-length: ['1072'] + content-length: ['1066'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:08:10 GMT'] + date: ['Fri, 04 May 2018 21:48:16 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-inline-count: [''] status: {code: 200, message: OK} - request: body: 'b''b\''b\\\''{"properties": {"messageRetentionInDays": 6, "partitionCount": @@ -328,26 +193,27 @@ interactions: Connection: [keep-alive] Content-Length: ['592'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub?api-version=2017-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub","name":"testingpythontestcaseeventhub","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub","name":"testingpythontestcaseeventhub","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West US","properties":{"messageRetentionInDays":6,"partitionCount":4,"status":"Active","createdAt":"0001-01-01T00:00:00","updatedAt":"0001-01-01T00:00:00","partitionIds":[],"captureDescription":{"enabled":true,"encoding":"Avro","destination":{"name":"EventHubArchive.AzureBlockBlob","properties":{"storageAccountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage","blobContainer":"container","archiveNameFormat":"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"}},"intervalInSeconds":130,"sizeLimitInBytes":10485900}}}'} headers: cache-control: [no-cache] - content-length: ['1038'] + content-length: ['1031'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:08:12 GMT'] + date: ['Fri, 04 May 2018 21:48:22 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -358,26 +224,27 @@ interactions: Connection: [keep-alive] Content-Length: ['46'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules","location":"West + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules","location":"West US","properties":{"rights":["Send","Listen"]}}'} headers: cache-control: [no-cache] - content-length: ['452'] + content-length: ['445'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:08:18 GMT'] + date: ['Fri, 04 May 2018 21:48:25 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -387,26 +254,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules","location":"West + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules","location":"West US","properties":{"rights":["Send","Listen"]}}'} headers: cache-control: [no-cache] - content-length: ['452'] + content-length: ['445'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:08:19 GMT'] + date: ['Fri, 04 May 2018 21:48:25 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: '{"properties": {"rights": ["Send", "Listen", "Manage"]}}' @@ -416,27 +284,28 @@ interactions: Connection: [keep-alive] Content-Length: ['56'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules","location":"West + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules","location":"West US","properties":{"rights":["Send","Listen","Manage"]}}'} headers: cache-control: [no-cache] - content-length: ['461'] + content-length: ['454'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:08:24 GMT'] + date: ['Fri, 04 May 2018 21:48:26 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -445,26 +314,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules?api-version=2017-04-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules","location":"West + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules","location":"West US","properties":{"rights":["Send","Listen","Manage"]}}]}'} headers: cache-control: [no-cache] - content-length: ['473'] + content-length: ['466'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:08:25 GMT'] + date: ['Fri, 04 May 2018 21:48:26 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: null @@ -474,25 +344,26 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy/ListKeys?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy/ListKeys?api-version=2017-04-01 response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=NkSHT6x4kjmtkSNijGUZhwa5TC9zxUvOZIqYRn7teTE=;EntityPath=testingpythontestcaseeventhub","secondaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=o1Ih3FqxcCw2OW8vF5P5F+ifGyhFIPy4Hmc99UUsCuA=;EntityPath=testingpythontestcaseeventhub","primaryKey":"NkSHT6x4kjmtkSNijGUZhwa5TC9zxUvOZIqYRn7teTE=","secondaryKey":"o1Ih3FqxcCw2OW8vF5P5F+ifGyhFIPy4Hmc99UUsCuA=","keyName":"testingauthrulepy"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://pythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=i4pVRNPfOYS9kBNPcTcgVsdRxnljXU3WZbkIOK5V8nA=;EntityPath=testingpythontestcaseeventhub","secondaryConnectionString":"Endpoint=sb://pythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=moso6tuISITA1OUNxnIkM5oJe499dGqkD7+bjkQjMdo=;EntityPath=testingpythontestcaseeventhub","primaryKey":"i4pVRNPfOYS9kBNPcTcgVsdRxnljXU3WZbkIOK5V8nA=","secondaryKey":"moso6tuISITA1OUNxnIkM5oJe499dGqkD7+bjkQjMdo=","keyName":"testingauthrulepy"}'} headers: cache-control: [no-cache] - content-length: ['661'] + content-length: ['647'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:08:26 GMT'] + date: ['Fri, 04 May 2018 21:48:27 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -503,25 +374,26 @@ interactions: Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=fkzQsQKgAbsK3rIA56j/CoFPEToqOJg562FMFvbfbVs=;EntityPath=testingpythontestcaseeventhub","secondaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=o1Ih3FqxcCw2OW8vF5P5F+ifGyhFIPy4Hmc99UUsCuA=;EntityPath=testingpythontestcaseeventhub","primaryKey":"fkzQsQKgAbsK3rIA56j/CoFPEToqOJg562FMFvbfbVs=","secondaryKey":"o1Ih3FqxcCw2OW8vF5P5F+ifGyhFIPy4Hmc99UUsCuA=","keyName":"testingauthrulepy"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://pythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=qmmj4yYCgseu6kuxB1B1y8YNhy/YK9Su7fwQFtgRMsc=;EntityPath=testingpythontestcaseeventhub","secondaryConnectionString":"Endpoint=sb://pythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=moso6tuISITA1OUNxnIkM5oJe499dGqkD7+bjkQjMdo=;EntityPath=testingpythontestcaseeventhub","primaryKey":"qmmj4yYCgseu6kuxB1B1y8YNhy/YK9Su7fwQFtgRMsc=","secondaryKey":"moso6tuISITA1OUNxnIkM5oJe499dGqkD7+bjkQjMdo=","keyName":"testingauthrulepy"}'} headers: cache-control: [no-cache] - content-length: ['661'] + content-length: ['647'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:08:31 GMT'] + date: ['Fri, 04 May 2018 21:48:32 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -532,25 +404,26 @@ interactions: Connection: [keep-alive] Content-Length: ['27'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=fkzQsQKgAbsK3rIA56j/CoFPEToqOJg562FMFvbfbVs=;EntityPath=testingpythontestcaseeventhub","secondaryConnectionString":"Endpoint=sb://testingpythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=NJELyU5p3RF7Wng3l4EA2WO2JVk+mF6k7KpJ9JicN10=;EntityPath=testingpythontestcaseeventhub","primaryKey":"fkzQsQKgAbsK3rIA56j/CoFPEToqOJg562FMFvbfbVs=","secondaryKey":"NJELyU5p3RF7Wng3l4EA2WO2JVk+mF6k7KpJ9JicN10=","keyName":"testingauthrulepy"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://pythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=qmmj4yYCgseu6kuxB1B1y8YNhy/YK9Su7fwQFtgRMsc=;EntityPath=testingpythontestcaseeventhub","secondaryConnectionString":"Endpoint=sb://pythontestcaseeventhubnamespaceeventhub.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=yg0oQAEz6L/nk8J8eUm2jwTlevBtI7/EIuWP82qifNo=;EntityPath=testingpythontestcaseeventhub","primaryKey":"qmmj4yYCgseu6kuxB1B1y8YNhy/YK9Su7fwQFtgRMsc=","secondaryKey":"yg0oQAEz6L/nk8J8eUm2jwTlevBtI7/EIuWP82qifNo=","keyName":"testingauthrulepy"}'} headers: cache-control: [no-cache] - content-length: ['661'] + content-length: ['647'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 20:08:37 GMT'] + date: ['Fri, 04 May 2018 21:48:38 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -561,22 +434,23 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub/authorizationRules/testingauthrulepy?api-version=2017-04-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 07 Nov 2017 20:08:39 GMT'] + date: ['Fri, 04 May 2018 21:48:40 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -587,22 +461,23 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/eventhubs/testingpythontestcaseeventhub?api-version=2017-04-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 07 Nov 2017 20:08:40 GMT'] + date: ['Fri, 04 May 2018 21:48:41 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -613,23 +488,24 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 07 Nov 2017 20:08:42 GMT'] + date: ['Fri, 04 May 2018 21:48:42 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/operationresults/pythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: @@ -638,147 +514,21 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Tue, 07 Nov 2017 20:09:13 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Tue, 07 Nov 2017 20:09:43 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Tue, 07 Nov 2017 20:10:14 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Tue, 07 Nov 2017 20:10:45 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Tue, 07 Nov 2017 20:11:16 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/testingpythontestcaseeventhubnamespaceEventhub/operationresults/testingpythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_test_eh_eventhub_curdc14f1302/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceEventhub/operationresults/pythontestcaseeventhubnamespaceEventhub?api-version=2017-04-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Tue, 07 Nov 2017 20:11:46 GMT'] + date: ['Fri, 04 May 2018 21:49:13 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] status: {code: 200, message: OK} version: 1 diff --git a/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub_check_name_availability.test_eh_namespace_available.yaml b/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub_check_name_availability.test_eh_namespace_available.yaml index 29cd1b9db79f..4266e026673d 100644 --- a/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub_check_name_availability.test_eh_namespace_available.yaml +++ b/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub_check_name_availability.test_eh_namespace_available.yaml @@ -7,8 +7,8 @@ interactions: Connection: [keep-alive] Content-Length: ['51'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventHub/CheckNameAvailability?api-version=2017-04-01 @@ -18,14 +18,15 @@ interactions: cache-control: [no-cache] content-length: ['53'] content-type: [application/json; charset=utf-8] - date: ['Tue, 07 Nov 2017 18:25:40 GMT'] + date: ['Fri, 04 May 2018 21:55:53 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} version: 1 diff --git a/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub_consumergroup.test_eh_consumergroup_curd.yaml b/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub_consumergroup.test_eh_consumergroup_curd.yaml index 2448948eb5c6..323e306bf169 100644 --- a/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub_consumergroup.test_eh_consumergroup_curd.yaml +++ b/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub_consumergroup.test_eh_consumergroup_curd.yaml @@ -8,26 +8,27 @@ interactions: Connection: [keep-alive] Content-Length: ['97'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01 response: body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup","name":"pythontestcaseeventhubnamespaceConsumerGroup","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:pythontestcaseeventhubnamespaceconsumergroup","createdAt":"2017-11-08T03:30:55.64Z","updatedAt":"2017-11-08T03:30:55.64Z","serviceBusEndpoint":"https://pythontestcaseeventhubnamespaceConsumerGroup.servicebus.windows.net:443/"}}'} + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:pythontestcaseeventhubnamespaceconsumergroup","createdAt":"2018-05-04T21:53:30.45Z","updatedAt":"2018-05-04T21:53:30.45Z","serviceBusEndpoint":"https://pythontestcaseeventhubnamespaceConsumerGroup.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['822'] + content-length: ['844'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 03:30:57 GMT'] + date: ['Fri, 04 May 2018 21:53:30 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -36,55 +37,26 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup","name":"pythontestcaseeventhubnamespaceConsumerGroup","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:pythontestcaseeventhubnamespaceconsumergroup","createdAt":"2017-11-08T03:30:55.64Z","updatedAt":"2017-11-08T03:30:55.64Z","serviceBusEndpoint":"https://pythontestcaseeventhubnamespaceConsumerGroup.servicebus.windows.net:443/"}}'} - headers: - cache-control: [no-cache] - content-length: ['822'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 03:31:27 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01 response: body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup","name":"pythontestcaseeventhubnamespaceConsumerGroup","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:pythontestcaseeventhubnamespaceconsumergroup","createdAt":"2017-11-08T03:30:55.64Z","updatedAt":"2017-11-08T03:30:55.64Z","serviceBusEndpoint":"https://pythontestcaseeventhubnamespaceConsumerGroup.servicebus.windows.net:443/"}}'} + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:pythontestcaseeventhubnamespaceconsumergroup","createdAt":"2018-05-04T21:53:30.45Z","updatedAt":"2018-05-04T21:53:55.873Z","serviceBusEndpoint":"https://pythontestcaseeventhubnamespaceConsumerGroup.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['822'] + content-length: ['843'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 03:31:57 GMT'] + date: ['Fri, 04 May 2018 21:54:01 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: null @@ -93,82 +65,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01 response: body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup","name":"pythontestcaseeventhubnamespaceConsumerGroup","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:pythontestcaseeventhubnamespaceconsumergroup","createdAt":"2017-11-08T03:30:55.64Z","updatedAt":"2017-11-08T03:30:55.64Z","serviceBusEndpoint":"https://pythontestcaseeventhubnamespaceConsumerGroup.servicebus.windows.net:443/"}}'} + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:pythontestcaseeventhubnamespaceconsumergroup","createdAt":"2018-05-04T21:53:30.45Z","updatedAt":"2018-05-04T21:53:55.873Z","serviceBusEndpoint":"https://pythontestcaseeventhubnamespaceConsumerGroup.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['822'] + content-length: ['843'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 03:32:28 GMT'] + date: ['Fri, 04 May 2018 21:54:00 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup","name":"pythontestcaseeventhubnamespaceConsumerGroup","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:pythontestcaseeventhubnamespaceconsumergroup","createdAt":"2017-11-08T03:30:55.64Z","updatedAt":"2017-11-08T03:32:52.027Z","serviceBusEndpoint":"https://pythontestcaseeventhubnamespaceConsumerGroup.servicebus.windows.net:443/"}}'} - headers: - cache-control: [no-cache] - content-length: ['825'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 03:32:59 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup","name":"pythontestcaseeventhubnamespaceConsumerGroup","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:pythontestcaseeventhubnamespaceconsumergroup","createdAt":"2017-11-08T03:30:55.64Z","updatedAt":"2017-11-08T03:32:52.027Z","serviceBusEndpoint":"https://pythontestcaseeventhubnamespaceConsumerGroup.servicebus.windows.net:443/"}}'} - headers: - cache-control: [no-cache] - content-length: ['825'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 03:32:59 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: 'b''b\''b\\\''{"properties": {"messageRetentionInDays": 4, "partitionCount": @@ -182,27 +99,28 @@ interactions: Connection: [keep-alive] Content-Length: ['592'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs/testingpythontestcaseeventhubConsumerGroup?api-version=2017-04-01 response: body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs/testingpythontestcaseeventhubConsumerGroup","name":"testingpythontestcaseeventhubConsumerGroup","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US","properties":{"messageRetentionInDays":4,"partitionCount":4,"status":"Active","createdAt":"2017-11-08T03:33:05.647Z","updatedAt":"2017-11-08T03:33:11.337Z","partitionIds":["0","1","2","3"],"captureDescription":{"enabled":true,"encoding":"Avro","destination":{"name":"EventHubArchive.AzureBlockBlob","properties":{"storageAccountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage","blobContainer":"container","archiveNameFormat":"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"}},"intervalInSeconds":120,"sizeLimitInBytes":10485763}}}'} + US","properties":{"messageRetentionInDays":4,"partitionCount":4,"status":"Active","createdAt":"2018-05-04T21:54:04.71Z","updatedAt":"2018-05-04T21:54:14.587Z","partitionIds":["0","1","2","3"],"captureDescription":{"enabled":true,"encoding":"Avro","destination":{"name":"EventHubArchive.AzureBlockBlob","properties":{"storageAccountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage","blobContainer":"container","archiveNameFormat":"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"}},"intervalInSeconds":120,"sizeLimitInBytes":10485763}}}'} headers: cache-control: [no-cache] - content-length: ['1106'] + content-length: ['1105'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 03:33:09 GMT'] + date: ['Fri, 04 May 2018 21:54:15 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -211,26 +129,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs/testingpythontestcaseeventhubConsumerGroup?api-version=2017-04-01 response: body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs/testingpythontestcaseeventhubConsumerGroup","name":"testingpythontestcaseeventhubConsumerGroup","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US","properties":{"messageRetentionInDays":4,"partitionCount":4,"status":"Active","createdAt":"2017-11-08T03:33:05.647","updatedAt":"2017-11-08T03:33:11.337","partitionIds":["0","1","2","3"],"captureDescription":{"enabled":true,"encoding":"Avro","destination":{"name":"EventHubArchive.AzureBlockBlob","properties":{"storageAccountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage","blobContainer":"container","archiveNameFormat":"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"}},"intervalInSeconds":120,"sizeLimitInBytes":10485763}}}'} + US","properties":{"messageRetentionInDays":4,"partitionCount":4,"status":"Active","createdAt":"2018-05-04T21:54:04.71","updatedAt":"2018-05-04T21:54:14.587","partitionIds":["0","1","2","3"],"captureDescription":{"enabled":true,"encoding":"Avro","destination":{"name":"EventHubArchive.AzureBlockBlob","properties":{"storageAccountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage","blobContainer":"container","archiveNameFormat":"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"}},"intervalInSeconds":120,"sizeLimitInBytes":10485763}}}'} headers: cache-control: [no-cache] - content-length: ['1104'] + content-length: ['1103'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 03:33:11 GMT'] + date: ['Fri, 04 May 2018 21:54:15 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: null @@ -239,26 +158,28 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs?api-version=2017-04-01 response: body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs/testingpythontestcaseeventhubconsumergroup","name":"testingpythontestcaseeventhubconsumergroup","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US","properties":{"messageRetentionInDays":4,"partitionCount":4,"status":"Active","createdAt":"2017-11-08T03:33:05.647","updatedAt":"2017-11-08T03:33:11.337","partitionIds":["0","1","2","3"],"captureDescription":{"enabled":true,"encoding":"Avro","destination":{"name":"EventHubArchive.AzureBlockBlob","properties":{"storageAccountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage","blobContainer":"container","archiveNameFormat":"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"}},"intervalInSeconds":120,"sizeLimitInBytes":10485763}}}]}'} + US","properties":{"messageRetentionInDays":4,"partitionCount":4,"status":"Active","createdAt":"2018-05-04T21:54:04.71","updatedAt":"2018-05-04T21:54:14.587","partitionIds":["0","1","2","3"],"captureDescription":{"enabled":true,"encoding":"Avro","destination":{"name":"EventHubArchive.AzureBlockBlob","properties":{"storageAccountResourceId":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-SouthCentralUS/providers/Microsoft.ClassicStorage/storageAccounts/arjunteststorage","blobContainer":"container","archiveNameFormat":"{Namespace}/{EventHub}/{PartitionId}/{Year}/{Month}/{Day}/{Hour}/{Minute}/{Second}"}},"intervalInSeconds":120,"sizeLimitInBytes":10485763}}}]}'} headers: cache-control: [no-cache] - content-length: ['1116'] + content-length: ['1115'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 03:33:11 GMT'] + date: ['Fri, 04 May 2018 21:54:16 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] + x-ms-inline-count: [''] status: {code: 200, message: OK} - request: body: 'b''b\''b\\\''{"properties": {"messageRetentionInDays": 6, "partitionCount": @@ -272,8 +193,8 @@ interactions: Connection: [keep-alive] Content-Length: ['592'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs/testingpythontestcaseeventhubConsumerGroup?api-version=2017-04-01 @@ -284,14 +205,15 @@ interactions: cache-control: [no-cache] content-length: ['1081'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 03:33:15 GMT'] + date: ['Fri, 04 May 2018 21:54:19 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -302,27 +224,28 @@ interactions: Connection: [keep-alive] Content-Length: ['61'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs/testingpythontestcaseeventhubConsumerGroup/consumergroups/testingpythontestcaseconsumergroup?api-version=2017-04-01 response: body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs/testingpythontestcaseeventhubConsumerGroup/consumergroups/testingpythontestcaseconsumergroup","name":"testingpythontestcaseconsumergroup","type":"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups","location":"West - US","properties":{"createdAt":"2017-11-08T03:33:20.9964781Z","updatedAt":"2017-11-08T03:33:20.9964781Z","userMetadata":"Testing + US","properties":{"createdAt":"2018-05-04T21:54:21.6020096Z","updatedAt":"2018-05-04T21:54:21.6020096Z","userMetadata":"Testing the User Metadata"}}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 03:33:21 GMT'] + date: ['Fri, 04 May 2018 21:54:24 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -332,27 +255,28 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs/testingpythontestcaseeventhubConsumerGroup/consumergroups/testingpythontestcaseconsumergroup?api-version=2017-04-01 response: body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs/testingpythontestcaseeventhubConsumerGroup/consumergroups/testingpythontestcaseconsumergroup","name":"testingpythontestcaseconsumergroup","type":"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups","location":"West - US","properties":{"createdAt":"2017-11-08T03:33:21.4956375Z","updatedAt":"2017-11-08T03:33:21.4956375Z","userMetadata":"Testing + US","properties":{"createdAt":"2018-05-04T21:54:21.6255675Z","updatedAt":"2018-05-04T21:54:21.6255675Z","userMetadata":"Testing the User Metadata"}}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 03:33:22 GMT'] + date: ['Fri, 04 May 2018 21:54:24 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: '{"properties": {"userMetadata": "update user matadata for testing"}}' @@ -362,27 +286,28 @@ interactions: Connection: [keep-alive] Content-Length: ['68'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs/testingpythontestcaseeventhubConsumerGroup/consumergroups/testingpythontestcaseconsumergroup?api-version=2017-04-01 response: body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs/testingpythontestcaseeventhubConsumerGroup/consumergroups/testingpythontestcaseconsumergroup","name":"testingpythontestcaseconsumergroup","type":"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups","location":"West - US","properties":{"createdAt":"2017-11-08T03:33:23.2152284Z","updatedAt":"2017-11-08T03:33:23.2152284Z","userMetadata":"update + US","properties":{"createdAt":"2018-05-04T21:54:26.5873452Z","updatedAt":"2018-05-04T21:54:26.5873452Z","userMetadata":"update user matadata for testing"}}'} headers: cache-control: [no-cache] content-length: ['617'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 03:33:23 GMT'] + date: ['Fri, 04 May 2018 21:54:27 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -393,8 +318,8 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs/testingpythontestcaseeventhubConsumerGroup/consumergroups/testingpythontestcaseconsumergroup?api-version=2017-04-01 @@ -403,13 +328,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 08 Nov 2017 03:33:27 GMT'] + date: ['Fri, 04 May 2018 21:54:31 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -419,8 +345,8 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/eventhubs/testingpythontestcaseeventhubConsumerGroup?api-version=2017-04-01 @@ -429,13 +355,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 08 Nov 2017 03:33:30 GMT'] + date: ['Fri, 04 May 2018 21:54:32 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -445,8 +372,8 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01 @@ -455,13 +382,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 08 Nov 2017 03:33:29 GMT'] + date: ['Fri, 04 May 2018 21:54:32 GMT'] expires: ['-1'] location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/operationresults/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: @@ -470,60 +398,8 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/operationresults/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Wed, 08 Nov 2017 03:34:01 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/operationresults/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/operationresults/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Wed, 08 Nov 2017 03:34:32 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/operationresults/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/operationresults/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01 response: @@ -531,63 +407,12 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 08 Nov 2017 03:35:03 GMT'] + date: ['Fri, 04 May 2018 21:55:03 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/operationresults/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/operationresults/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Wed, 08 Nov 2017 03:35:33 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/operationresults/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32/providers/Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup/operationresults/pythontestcaseeventhubnamespaceConsumerGroup?api-version=2017-04-01 - response: - body: {string: '{"error":{"code":"ResourceNotFound","message":"The Resource ''Microsoft.EventHub/namespaces/pythontestcaseeventhubnamespaceConsumerGroup'' - under resource group ''test_azure_mgmt_eventhub_consumergroup_test_eh_consumergroup_curd82b51b32'' - was not found."}}'} - headers: - cache-control: [no-cache] - content-length: ['251'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 03:36:03 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-failure-cause: [gateway] - status: {code: 404, message: Not Found} + x-content-type-options: [nosniff] + status: {code: 200, message: OK} version: 1 diff --git a/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub_namespace.test_eh_namespace_curd.yaml b/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub_namespace.test_eh_namespace_curd.yaml index 01e132f90b9c..02749375a38a 100644 --- a/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub_namespace.test_eh_namespace_curd.yaml +++ b/azure-mgmt-eventhub/tests/recordings/test_azure_mgmt_eventhub_namespace.test_eh_namespace_curd.yaml @@ -8,26 +8,27 @@ interactions: Connection: [keep-alive] Content-Length: ['97'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace?api-version=2017-04-01 response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2017-11-08T04:10:28.293Z","updatedAt":"2017-11-08T04:10:28.293Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/"}}'} + body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace","name":"pythontestcasenamespace","type":"Microsoft.EventHub/Namespaces","location":"West + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:pythontestcasenamespace","createdAt":"2018-05-04T21:49:48.737Z","updatedAt":"2018-05-04T21:49:48.737Z","serviceBusEndpoint":"https://pythontestcasenamespace.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['760'] + content-length: ['754'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:10:29 GMT'] + date: ['Fri, 04 May 2018 21:49:49 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -36,83 +37,26 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2017-11-08T04:10:28.293Z","updatedAt":"2017-11-08T04:10:28.293Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/"}}'} - headers: - cache-control: [no-cache] - content-length: ['760'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:10:59 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2017-11-08T04:10:28.293Z","updatedAt":"2017-11-08T04:10:28.293Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/"}}'} - headers: - cache-control: [no-cache] - content-length: ['760'] - content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:11:30 GMT'] - expires: ['-1'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - transfer-encoding: [chunked] - vary: [Accept-Encoding] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace?api-version=2017-04-01 response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2017-11-08T04:10:28.293Z","updatedAt":"2017-11-08T04:11:51.103Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/"}}'} + body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace","name":"pythontestcasenamespace","type":"Microsoft.EventHub/Namespaces","location":"West + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:pythontestcasenamespace","createdAt":"2018-05-04T21:49:48.737Z","updatedAt":"2018-05-04T21:50:14.2Z","serviceBusEndpoint":"https://pythontestcasenamespace.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['762'] + content-length: ['750'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:12:01 GMT'] + date: ['Fri, 04 May 2018 21:50:18 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: null @@ -121,26 +65,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace?api-version=2017-04-01 response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2017-11-08T04:10:28.293Z","updatedAt":"2017-11-08T04:11:51.103Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/"}}'} + body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace","name":"pythontestcasenamespace","type":"Microsoft.EventHub/Namespaces","location":"West + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:pythontestcasenamespace","createdAt":"2018-05-04T21:49:48.737Z","updatedAt":"2018-05-04T21:50:14.2Z","serviceBusEndpoint":"https://pythontestcasenamespace.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['762'] + content-length: ['750'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:12:01 GMT'] + date: ['Fri, 04 May 2018 21:50:19 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: null @@ -149,26 +94,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces?api-version=2017-04-01 response: - body: {string: '{"value":[{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2017-11-08T04:10:28.293Z","updatedAt":"2017-11-08T04:11:51.103Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/"}}]}'} + body: {string: '{"value":[{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace","name":"pythontestcasenamespace","type":"Microsoft.EventHub/Namespaces","location":"West + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:pythontestcasenamespace","createdAt":"2018-05-04T21:49:48.737Z","updatedAt":"2018-05-04T21:50:14.2Z","serviceBusEndpoint":"https://pythontestcasenamespace.servicebus.windows.net:443/","status":"Active"}}]}'} headers: cache-control: [no-cache] - content-length: ['774'] + content-length: ['762'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:12:02 GMT'] + date: ['Fri, 04 May 2018 21:50:20 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: null @@ -177,40 +123,79 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.EventHub/namespaces?api-version=2017-04-01 response: - body: {string: '{"value":[{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace","name":"testingpythontestcasenamespace","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingpythontestcasenamespace","createdAt":"2017-11-08T04:10:28.293Z","updatedAt":"2017-11-08T04:11:51.103Z","serviceBusEndpoint":"https://testingpythontestcasenamespace.servicebus.windows.net:443/"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-onesdk3155/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-onesdk8381","name":"Eventhub-Namespace-onesdk8381","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-onesdk8381","createdAt":"2017-10-18T02:06:56.057Z","updatedAt":"2017-10-18T02:07:21.06Z","serviceBusEndpoint":"https://Eventhub-Namespace-onesdk8381.servicebus.windows.net:443/"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-SouthCentralUS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-onesdk929","name":"Eventhub-Namespace-onesdk929","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-onesdk929","createdAt":"2017-10-07T02:11:58.29Z","updatedAt":"2017-10-07T02:15:24.823Z","serviceBusEndpoint":"https://Eventhub-Namespace-onesdk929.servicebus.windows.net:443/"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-SouthCentralUS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-onesdk4887","name":"Eventhub-Namespace-onesdk4887","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-onesdk4887","createdAt":"2017-10-07T02:12:26.163Z","updatedAt":"2017-10-07T02:15:25.323Z","serviceBusEndpoint":"https://Eventhub-Namespace-onesdk4887.servicebus.windows.net:443/"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-onesdk658/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-onesdk4785","name":"Eventhub-Namespace-onesdk4785","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-onesdk4785","createdAt":"2017-10-18T01:56:22.52Z","updatedAt":"2017-10-18T01:56:44.963Z","serviceBusEndpoint":"https://Eventhub-Namespace-onesdk4785.servicebus.windows.net:443/"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-SouthCentralUS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-onesdk5828","name":"Eventhub-Namespace-onesdk5828","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-onesdk5828","createdAt":"2017-10-17T01:47:53.763Z","updatedAt":"2017-10-17T02:14:29.937Z","serviceBusEndpoint":"https://Eventhub-Namespace-onesdk5828.servicebus.windows.net:443/"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-onesdk670/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-onesdk4966","name":"Eventhub-Namespace-onesdk4966","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-onesdk4966","createdAt":"2017-10-18T01:09:55.153Z","updatedAt":"2017-10-18T01:10:19.363Z","serviceBusEndpoint":"https://Eventhub-Namespace-onesdk4966.servicebus.windows.net:443/"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-onesdk9848/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-onesdk2517","name":"Eventhub-Namespace-onesdk2517","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-onesdk2517","createdAt":"2017-10-18T02:04:09.79Z","updatedAt":"2017-10-18T02:04:31.9Z","serviceBusEndpoint":"https://Eventhub-Namespace-onesdk2517.servicebus.windows.net:443/"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-NotificationHubs-AustraliaEast/providers/Microsoft.EventHub/namespaces/sdk-Namespace-2042","name":"sdk-Namespace-2042","type":"Microsoft.EventHub/Namespaces","location":"Australia - East","tags":{"tag3":"value3","tag4":"value4"},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":10,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:sdk-namespace-2042","createdAt":"2017-11-06T22:59:59.64Z","updatedAt":"2017-11-06T23:02:45.873Z","serviceBusEndpoint":"https://sdk-Namespace-2042.servicebus.windows.net:443/"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-SouthCentralUS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-onesdk822","name":"Eventhub-Namespace-onesdk822","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-onesdk822","createdAt":"2017-10-07T01:18:17.847Z","updatedAt":"2017-10-07T01:30:57.26Z","serviceBusEndpoint":"https://Eventhub-Namespace-onesdk822.servicebus.windows.net:443/"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-SouthCentralUS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-onesdk7718","name":"Eventhub-Namespace-onesdk7718","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-onesdk7718","createdAt":"2017-10-07T01:42:07.79Z","updatedAt":"2017-10-07T01:45:37.443Z","serviceBusEndpoint":"https://Eventhub-Namespace-onesdk7718.servicebus.windows.net:443/"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-SouthCentralUS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-onesdk4561","name":"Eventhub-Namespace-onesdk4561","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-onesdk4561","createdAt":"2017-10-07T01:18:53.11Z","updatedAt":"2017-10-07T01:30:57.633Z","serviceBusEndpoint":"https://Eventhub-Namespace-onesdk4561.servicebus.windows.net:443/"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-SouthCentralUS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-onesdk2535","name":"Eventhub-Namespace-onesdk2535","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-onesdk2535","createdAt":"2017-10-07T01:42:46.85Z","updatedAt":"2017-10-07T01:45:41.037Z","serviceBusEndpoint":"https://Eventhub-Namespace-onesdk2535.servicebus.windows.net:443/"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-SouthCentralUS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-onesdk1637","name":"Eventhub-Namespace-onesdk1637","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-onesdk1637","createdAt":"2017-10-17T01:47:17.403Z","updatedAt":"2017-10-17T02:13:12.71Z","serviceBusEndpoint":"https://Eventhub-Namespace-onesdk1637.servicebus.windows.net:443/"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-SouthCentralUS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-onesdk3973","name":"Eventhub-Namespace-onesdk3973","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-onesdk3973","createdAt":"2017-10-07T02:03:31.273Z","updatedAt":"2017-10-07T02:07:36.343Z","serviceBusEndpoint":"https://Eventhub-Namespace-onesdk3973.servicebus.windows.net:443/"}}]}'} + body: {string: '{"value":[{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps9296/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-6727","name":"Eventhub-Namespace-6727","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-6727","createdAt":"2018-01-23T00:22:18.057Z","updatedAt":"2018-01-23T00:31:56.097Z","serviceBusEndpoint":"https://Eventhub-Namespace-6727.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps1426/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-8314","name":"Eventhub-Namespace-8314","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-8314","createdAt":"2018-04-03T21:23:38.057Z","updatedAt":"2018-04-03T21:24:00.197Z","serviceBusEndpoint":"https://Eventhub-Namespace-8314.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps9724/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-6475","name":"Eventhub-Namespace-6475","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-6475","createdAt":"2018-01-23T03:18:09.46Z","updatedAt":"2018-01-23T03:33:51.053Z","serviceBusEndpoint":"https://Eventhub-Namespace-6475.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestingGeoDRPS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-3004","name":"Eventhub-Namespace-3004","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-3004","createdAt":"2018-01-24T04:58:54.21Z","updatedAt":"2018-01-24T04:59:18.573Z","serviceBusEndpoint":"https://Eventhub-Namespace-3004.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/TestingGeoDRPS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-3003","name":"Eventhub-Namespace-3003","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-3003","createdAt":"2018-01-24T04:58:16.053Z","updatedAt":"2018-01-24T04:58:39.347Z","serviceBusEndpoint":"https://Eventhub-Namespace-3003.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps7707/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-8164","name":"Eventhub-Namespace-8164","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-8164","createdAt":"2018-01-23T02:38:25.37Z","updatedAt":"2018-01-23T02:54:31.35Z","serviceBusEndpoint":"https://Eventhub-Namespace-8164.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps1600/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-8301","name":"Eventhub-Namespace-8301","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-8301","createdAt":"2018-04-03T22:10:43.833Z","updatedAt":"2018-04-03T22:11:05.037Z","serviceBusEndpoint":"https://Eventhub-Namespace-8301.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps1600/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-2098","name":"Eventhub-Namespace-2098","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-2098","createdAt":"2018-04-03T22:11:15.757Z","updatedAt":"2018-04-03T22:11:39.417Z","serviceBusEndpoint":"https://Eventhub-Namespace-2098.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps7707/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-9328","name":"Eventhub-Namespace-9328","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-9328","createdAt":"2018-01-23T02:38:56.527Z","updatedAt":"2018-01-23T02:54:37.457Z","serviceBusEndpoint":"https://Eventhub-Namespace-9328.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps9296/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-4988","name":"Eventhub-Namespace-4988","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-4988","createdAt":"2018-01-23T00:22:50.337Z","updatedAt":"2018-01-23T00:31:58.627Z","serviceBusEndpoint":"https://Eventhub-Namespace-4988.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps9196/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-3207","name":"Eventhub-Namespace-3207","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-3207","createdAt":"2017-12-22T03:47:05.99Z","updatedAt":"2017-12-22T04:23:38.957Z","serviceBusEndpoint":"https://Eventhub-Namespace-3207.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps1868/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-6081","name":"Eventhub-Namespace-6081","type":"Microsoft.EventHub/Namespaces","location":"West + US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-6081","createdAt":"2018-01-28T00:11:29.58Z","updatedAt":"2018-01-28T00:11:53.253Z","serviceBusEndpoint":"https://Eventhub-Namespace-6081.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps9969/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-3885","name":"Eventhub-Namespace-3885","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-3885","createdAt":"2017-12-28T00:55:34.217Z","updatedAt":"2017-12-28T01:38:40.973Z","serviceBusEndpoint":"https://Eventhub-Namespace-3885.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-SouthCentralUS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-ps9080","name":"Eventhub-Namespace-ps9080","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-ps9080","createdAt":"2017-12-15T00:27:56.527Z","updatedAt":"2017-12-15T00:32:00.73Z","serviceBusEndpoint":"https://Eventhub-Namespace-ps9080.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps63/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-885","name":"Eventhub-Namespace-885","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-885","createdAt":"2018-01-23T01:19:24.41Z","updatedAt":"2018-01-23T01:27:07.61Z","serviceBusEndpoint":"https://Eventhub-Namespace-885.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps639/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-4778","name":"Eventhub-Namespace-4778","type":"Microsoft.EventHub/Namespaces","location":"West + US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-4778","createdAt":"2017-12-22T02:42:22.057Z","updatedAt":"2017-12-22T02:42:46.417Z","serviceBusEndpoint":"https://Eventhub-Namespace-4778.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps8091/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-8809","name":"Eventhub-Namespace-8809","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-8809","createdAt":"2017-12-28T01:56:31.937Z","updatedAt":"2017-12-28T02:25:54.407Z","serviceBusEndpoint":"https://Eventhub-Namespace-8809.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace","name":"pythontestcasenamespace","type":"Microsoft.EventHub/Namespaces","location":"West + US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:pythontestcasenamespace","createdAt":"2018-05-04T21:49:48.737Z","updatedAt":"2018-05-04T21:50:14.2Z","serviceBusEndpoint":"https://pythontestcasenamespace.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-SouthCentralUS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-ps9391","name":"Eventhub-Namespace-ps9391","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-ps9391","createdAt":"2017-12-15T00:18:50.163Z","updatedAt":"2017-12-15T00:19:13.433Z","serviceBusEndpoint":"https://Eventhub-Namespace-ps9391.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps8865/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-4232","name":"Eventhub-Namespace-4232","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-4232","createdAt":"2018-01-22T00:35:51.627Z","updatedAt":"2018-01-22T00:49:49.547Z","serviceBusEndpoint":"https://Eventhub-Namespace-4232.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps9079/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-3606","name":"Eventhub-Namespace-3606","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-3606","createdAt":"2018-04-03T21:58:20.73Z","updatedAt":"2018-04-03T22:02:36.927Z","serviceBusEndpoint":"https://Eventhub-Namespace-3606.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps53/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-4765","name":"Eventhub-Namespace-4765","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-4765","createdAt":"2018-04-03T22:04:29.523Z","updatedAt":"2018-04-03T22:04:51.563Z","serviceBusEndpoint":"https://Eventhub-Namespace-4765.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps1426/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-8446","name":"Eventhub-Namespace-8446","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-8446","createdAt":"2018-04-03T21:24:12.137Z","updatedAt":"2018-04-03T21:24:36.187Z","serviceBusEndpoint":"https://Eventhub-Namespace-8446.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps6596/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-4415","name":"Eventhub-Namespace-4415","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-4415","createdAt":"2018-01-23T03:46:11Z","updatedAt":"2018-01-23T04:04:31.317Z","serviceBusEndpoint":"https://Eventhub-Namespace-4415.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps1868/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-3539","name":"Eventhub-Namespace-3539","type":"Microsoft.EventHub/Namespaces","location":"West + US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-3539","createdAt":"2018-01-28T00:12:00.49Z","updatedAt":"2018-01-28T00:12:23.367Z","serviceBusEndpoint":"https://Eventhub-Namespace-3539.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps8592/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-7231","name":"Eventhub-Namespace-7231","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-7231","createdAt":"2018-01-28T00:17:55.377Z","updatedAt":"2018-01-28T00:21:21.72Z","serviceBusEndpoint":"https://Eventhub-Namespace-7231.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps9084/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-9861","name":"Eventhub-Namespace-9861","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-9861","createdAt":"2018-04-03T22:50:35.233Z","updatedAt":"2018-04-03T22:59:50.39Z","serviceBusEndpoint":"https://Eventhub-Namespace-9861.servicebus.windows.net:443/","status":"Active","alternateName":"AlternateName2023"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps3560/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-2957","name":"Eventhub-Namespace-2957","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-2957","createdAt":"2018-04-03T22:23:34.933Z","updatedAt":"2018-04-03T22:36:20.983Z","serviceBusEndpoint":"https://Eventhub-Namespace-2957.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps9196/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-3328","name":"Eventhub-Namespace-3328","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-3328","createdAt":"2017-12-22T03:47:43.21Z","updatedAt":"2017-12-22T04:23:39.067Z","serviceBusEndpoint":"https://Eventhub-Namespace-3328.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps840/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-3849","name":"Eventhub-Namespace-3849","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-3849","createdAt":"2018-01-19T01:02:30.29Z","updatedAt":"2018-01-19T01:06:27.943Z","serviceBusEndpoint":"https://Eventhub-Namespace-3849.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps8239/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-6031","name":"Eventhub-Namespace-6031","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-6031","createdAt":"2018-01-23T21:09:05.16Z","updatedAt":"2018-01-23T21:13:09.053Z","serviceBusEndpoint":"https://Eventhub-Namespace-6031.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps9084/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-702","name":"Eventhub-Namespace-702","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-702","createdAt":"2018-04-03T22:51:06.827Z","updatedAt":"2018-04-03T22:59:53.643Z","serviceBusEndpoint":"https://Eventhub-Namespace-702.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps8091/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-3878","name":"Eventhub-Namespace-3878","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-3878","createdAt":"2017-12-28T01:56:04.95Z","updatedAt":"2017-12-28T02:24:08.267Z","serviceBusEndpoint":"https://Eventhub-Namespace-3878.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps63/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-3644","name":"Eventhub-Namespace-3644","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-3644","createdAt":"2018-01-23T01:19:55.533Z","updatedAt":"2018-01-23T01:27:10.687Z","serviceBusEndpoint":"https://Eventhub-Namespace-3644.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps8239/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-9827","name":"Eventhub-Namespace-9827","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-9827","createdAt":"2018-01-23T21:09:36.757Z","updatedAt":"2018-01-23T21:13:07.37Z","serviceBusEndpoint":"https://Eventhub-Namespace-9827.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps53/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-1561","name":"Eventhub-Namespace-1561","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-1561","createdAt":"2018-04-03T22:05:01.37Z","updatedAt":"2018-04-03T22:05:23.863Z","serviceBusEndpoint":"https://Eventhub-Namespace-1561.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RSG1577/providers/Microsoft.EventHub/namespaces/Namespace-9111","name":"Namespace-9111","type":"Microsoft.EventHub/Namespaces","location":"West + US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:namespace-9111","createdAt":"2018-05-03T21:46:52.04Z","updatedAt":"2018-05-03T21:47:14.833Z","serviceBusEndpoint":"https://Namespace-9111.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-NotificationHubs-AustraliaEast/providers/Microsoft.EventHub/namespaces/sdk-Namespace-4237","name":"sdk-Namespace-4237","type":"Microsoft.EventHub/Namespaces","location":"Australia + East","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":10,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:sdk-namespace-4237","createdAt":"2018-04-10T17:29:26.44Z","updatedAt":"2018-04-10T17:29:51.917Z","serviceBusEndpoint":"https://sdk-Namespace-4237.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-NotificationHubs-AustraliaEast/providers/Microsoft.EventHub/namespaces/sdk-Namespace-3219","name":"sdk-Namespace-3219","type":"Microsoft.EventHub/Namespaces","location":"Australia + East","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":10,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:sdk-namespace-3219","createdAt":"2018-04-10T17:55:52.167Z","updatedAt":"2018-04-10T17:56:20.043Z","serviceBusEndpoint":"https://sdk-Namespace-3219.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps8132/providers/Microsoft.EventHub/namespaces/ps2614","name":"ps2614","type":"Microsoft.EventHub/Namespaces","location":"West + US","tags":{},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":10,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:ps2614","createdAt":"2017-12-29T03:33:11.7Z","updatedAt":"2017-12-29T03:33:35.497Z","serviceBusEndpoint":"https://ps2614.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-SouthCentralUS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-ps5593","name":"Eventhub-Namespace-ps5593","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-ps5593","createdAt":"2017-12-15T00:40:14.137Z","updatedAt":"2017-12-15T00:49:34.183Z","serviceBusEndpoint":"https://Eventhub-Namespace-ps5593.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps6596/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-1378","name":"Eventhub-Namespace-1378","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-1378","createdAt":"2018-01-23T03:46:42.86Z","updatedAt":"2018-01-23T04:03:14.313Z","serviceBusEndpoint":"https://Eventhub-Namespace-1378.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.EventHub/namespaces/TestingEventhubNamespace001","name":"TestingEventhubNamespace001","type":"Microsoft.EventHub/Namespaces","location":"West + US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:testingeventhubnamespace001","createdAt":"2018-05-01T19:24:09.287Z","updatedAt":"2018-05-01T19:24:32.44Z","serviceBusEndpoint":"https://TestingEventhubNamespace001.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps9120/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-7029","name":"Eventhub-Namespace-7029","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-7029","createdAt":"2018-01-23T21:29:03.85Z","updatedAt":"2018-01-23T21:29:28.423Z","serviceBusEndpoint":"https://Eventhub-Namespace-7029.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-SouthCentralUS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-ps8652","name":"Eventhub-Namespace-ps8652","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-ps8652","createdAt":"2017-12-15T00:39:09.807Z","updatedAt":"2017-12-15T00:49:34.403Z","serviceBusEndpoint":"https://Eventhub-Namespace-ps8652.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps9079/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-6254","name":"Eventhub-Namespace-6254","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-6254","createdAt":"2018-04-03T21:57:48.997Z","updatedAt":"2018-04-03T22:02:36.95Z","serviceBusEndpoint":"https://Eventhub-Namespace-6254.servicebus.windows.net:443/","status":"Active","alternateName":"TestingAlterName"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps3560/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-4298","name":"Eventhub-Namespace-4298","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-4298","createdAt":"2018-04-03T22:23:03.357Z","updatedAt":"2018-04-03T22:36:20.963Z","serviceBusEndpoint":"https://Eventhub-Namespace-4298.servicebus.windows.net:443/","status":"Active","alternateName":"AlternateName6109"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps8400/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-225","name":"Eventhub-Namespace-225","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-225","createdAt":"2017-12-29T03:44:29.45Z","updatedAt":"2017-12-29T04:14:59.32Z","serviceBusEndpoint":"https://Eventhub-Namespace-225.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps9969/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-1064","name":"Eventhub-Namespace-1064","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-1064","createdAt":"2017-12-28T00:55:03.15Z","updatedAt":"2017-12-28T01:37:28.007Z","serviceBusEndpoint":"https://Eventhub-Namespace-1064.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps8592/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-8335","name":"Eventhub-Namespace-8335","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-8335","createdAt":"2018-01-28T00:17:24.28Z","updatedAt":"2018-01-28T00:21:24.807Z","serviceBusEndpoint":"https://Eventhub-Namespace-8335.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps840/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-8336","name":"Eventhub-Namespace-8336","type":"Microsoft.EventHub/Namespaces","location":"North + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-8336","createdAt":"2018-01-19T01:02:54.883Z","updatedAt":"2018-01-19T01:06:30.553Z","serviceBusEndpoint":"https://Eventhub-Namespace-8336.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ps9724/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-1232","name":"Eventhub-Namespace-1232","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-1232","createdAt":"2018-01-23T03:17:38.413Z","updatedAt":"2018-01-23T03:33:49.31Z","serviceBusEndpoint":"https://Eventhub-Namespace-1232.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-EventHub-SouthCentralUS/providers/Microsoft.EventHub/namespaces/Eventhub-Namespace-ps3907","name":"Eventhub-Namespace-ps3907","type":"Microsoft.EventHub/Namespaces","location":"South + Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"00000000-0000-0000-0000-000000000000:eventhub-namespace-ps3907","createdAt":"2017-12-15T00:27:29.323Z","updatedAt":"2017-12-15T00:32:03.53Z","serviceBusEndpoint":"https://Eventhub-Namespace-ps3907.servicebus.windows.net:443/","status":"Active"}}]}'} headers: cache-control: [no-cache] - content-length: ['10494'] + content-length: ['35898'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:12:02 GMT'] + date: ['Fri, 04 May 2018 21:50:21 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: null @@ -219,26 +204,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/RootManageSharedAccessKey?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/RootManageSharedAccessKey?api-version=2017-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"West + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"","location":"West US","properties":{"rights":["Listen","Manage","Send"]}}'} headers: cache-control: [no-cache] - content-length: ['422'] + content-length: ['367'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:12:19 GMT'] + date: ['Fri, 04 May 2018 21:50:38 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: '{"properties": {"rights": ["Send", "Listen"]}}' @@ -248,27 +234,28 @@ interactions: Connection: [keep-alive] Content-Length: ['46'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/testingauthrulepy?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/testingauthrulepy?api-version=2017-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"West + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"","location":"West US","properties":{"rights":["Send","Listen"]}}'} headers: cache-control: [no-cache] - content-length: ['397'] + content-length: ['342'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:12:36 GMT'] + date: ['Fri, 04 May 2018 21:50:55 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -277,26 +264,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/testingauthrulepy?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/testingauthrulepy?api-version=2017-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"West + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"","location":"West US","properties":{"rights":["Send","Listen"]}}'} headers: cache-control: [no-cache] - content-length: ['397'] + content-length: ['342'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:12:37 GMT'] + date: ['Fri, 04 May 2018 21:50:57 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: '{"properties": {"rights": ["Send", "Listen", "Manage"]}}' @@ -306,26 +294,27 @@ interactions: Connection: [keep-alive] Content-Length: ['56'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/testingauthrulepy?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/testingauthrulepy?api-version=2017-04-01 response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"West + body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"","location":"West US","properties":{"rights":["Send","Listen","Manage"]}}'} headers: cache-control: [no-cache] - content-length: ['406'] + content-length: ['351'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:12:54 GMT'] + date: ['Fri, 04 May 2018 21:51:13 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -335,27 +324,28 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules?api-version=2017-04-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"West - US","properties":{"rights":["Listen","Manage","Send"]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"West + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"","location":"West + US","properties":{"rights":["Listen","Manage","Send"]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/testingauthrulepy","name":"testingauthrulepy","type":"","location":"West US","properties":{"rights":["Send","Listen","Manage"]}}]}'} headers: cache-control: [no-cache] - content-length: ['841'] + content-length: ['731'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:12:55 GMT'] + date: ['Fri, 04 May 2018 21:51:26 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: null @@ -365,25 +355,26 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/testingauthrulepy/listKeys?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/testingauthrulepy/listKeys?api-version=2017-04-01 response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=cwXJHcdTNVNbZljgPWLy+VJqzcp63IUwH3LSpJkqDVw=","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=cqlPy/c2+/tC1OVP1Jt4g76JDOi5/a0Fe5kGWI41lfk=","primaryKey":"cwXJHcdTNVNbZljgPWLy+VJqzcp63IUwH3LSpJkqDVw=","secondaryKey":"cqlPy/c2+/tC1OVP1Jt4g76JDOi5/a0Fe5kGWI41lfk=","keyName":"testingauthrulepy"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://pythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=piInIZWDzcRw+xGSfSRvOL0pxBtv8w+CIjw6N4kb5ks=","secondaryConnectionString":"Endpoint=sb://pythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=cdUpv2efQKf/FbHJKJOvOz6IQTGKDXxZBItINI1/hVI=","primaryKey":"piInIZWDzcRw+xGSfSRvOL0pxBtv8w+CIjw6N4kb5ks=","secondaryKey":"cdUpv2efQKf/FbHJKJOvOz6IQTGKDXxZBItINI1/hVI=","keyName":"testingauthrulepy"}'} headers: cache-control: [no-cache] - content-length: ['547'] + content-length: ['533'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:12:56 GMT'] + date: ['Fri, 04 May 2018 21:51:28 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -394,25 +385,26 @@ interactions: Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=KGUueUAGiZoxtSmNsUOVlE7nPsK2xvos6WLnsljtNzk=","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=cqlPy/c2+/tC1OVP1Jt4g76JDOi5/a0Fe5kGWI41lfk=","primaryKey":"KGUueUAGiZoxtSmNsUOVlE7nPsK2xvos6WLnsljtNzk=","secondaryKey":"cqlPy/c2+/tC1OVP1Jt4g76JDOi5/a0Fe5kGWI41lfk=","keyName":"testingauthrulepy"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://pythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=9d+4GSWvZ1Kv3ggoPXtYHKzWC7CEYbHm9K3QvcndqHE=","secondaryConnectionString":"Endpoint=sb://pythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=cdUpv2efQKf/FbHJKJOvOz6IQTGKDXxZBItINI1/hVI=","primaryKey":"9d+4GSWvZ1Kv3ggoPXtYHKzWC7CEYbHm9K3QvcndqHE=","secondaryKey":"cdUpv2efQKf/FbHJKJOvOz6IQTGKDXxZBItINI1/hVI=","keyName":"testingauthrulepy"}'} headers: cache-control: [no-cache] - content-length: ['547'] + content-length: ['533'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:13:12 GMT'] + date: ['Fri, 04 May 2018 21:51:48 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: @@ -423,26 +415,27 @@ interactions: Connection: [keep-alive] Content-Length: ['27'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/testingauthrulepy/regenerateKeys?api-version=2017-04-01 response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=KGUueUAGiZoxtSmNsUOVlE7nPsK2xvos6WLnsljtNzk=","secondaryConnectionString":"Endpoint=sb://testingpythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=s43zA8SzfuNnOgN/V4mf8G/zsMXsMIrvLO0U+spdWbU=","primaryKey":"KGUueUAGiZoxtSmNsUOVlE7nPsK2xvos6WLnsljtNzk=","secondaryKey":"s43zA8SzfuNnOgN/V4mf8G/zsMXsMIrvLO0U+spdWbU=","keyName":"testingauthrulepy"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://pythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=9d+4GSWvZ1Kv3ggoPXtYHKzWC7CEYbHm9K3QvcndqHE=","secondaryConnectionString":"Endpoint=sb://pythontestcasenamespace.servicebus.windows.net/;SharedAccessKeyName=testingauthrulepy;SharedAccessKey=GmfxxzH8fcrJ/IR8lXOTzny8cP2QENLYgyKcehjy0gY=","primaryKey":"9d+4GSWvZ1Kv3ggoPXtYHKzWC7CEYbHm9K3QvcndqHE=","secondaryKey":"GmfxxzH8fcrJ/IR8lXOTzny8cP2QENLYgyKcehjy0gY=","keyName":"testingauthrulepy"}'} headers: cache-control: [no-cache] - content-length: ['547'] + content-length: ['533'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:13:29 GMT'] + date: ['Fri, 04 May 2018 21:52:04 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -452,23 +445,24 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/testingauthrulepy?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/testingauthrulepy?api-version=2017-04-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 08 Nov 2017 04:13:46 GMT'] + date: ['Fri, 04 May 2018 21:52:21 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-content-type-options: [nosniff] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -477,26 +471,27 @@ interactions: Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules?api-version=2017-04-01 response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/AuthorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"West + body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/AuthorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"","location":"West US","properties":{"rights":["Listen","Manage","Send"]}}]}'} headers: cache-control: [no-cache] - content-length: ['434'] + content-length: ['379'] content-type: [application/json; charset=utf-8] - date: ['Wed, 08 Nov 2017 04:13:47 GMT'] + date: ['Fri, 04 May 2018 21:52:22 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] + x-content-type-options: [nosniff] status: {code: 200, message: OK} - request: body: null @@ -506,23 +501,24 @@ interactions: Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] accept-language: [en-US] method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace?api-version=2017-04-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 08 Nov 2017 04:13:48 GMT'] + date: ['Fri, 04 May 2018 21:52:24 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/operationresults/testingpythontestcasenamespace?api-version=2017-04-01'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/operationresults/pythontestcasenamespace?api-version=2017-04-01'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: @@ -531,72 +527,21 @@ interactions: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/operationresults/testingpythontestcasenamespace?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Wed, 08 Nov 2017 04:14:19 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/operationresults/testingpythontestcasenamespace?api-version=2017-04-01'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/operationresults/testingpythontestcasenamespace?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Wed, 08 Nov 2017 04:14:52 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/operationresults/testingpythontestcasenamespace?api-version=2017-04-01'] - pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] - strict-transport-security: [max-age=31536000; includeSubDomains] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.15063-SP0) requests/2.18.4 msrest/0.4.17 - msrest_azure/0.4.15 eventhubmanagementclient/1.1.0 Azure-SDK-For-Python] - accept-language: [en-US] + User-Agent: [python/3.6.4 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.29 + msrest_azure/0.4.29 azure-mgmt-eventhub/1.3.0 Azure-SDK-For-Python] method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/testingpythontestcasenamespace/operationresults/testingpythontestcasenamespace?api-version=2017-04-01 + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_azure_mgmt_eventhub_namespace_test_eh_namespace_curdac24175a/providers/Microsoft.EventHub/namespaces/pythontestcasenamespace/operationresults/pythontestcasenamespace?api-version=2017-04-01 response: body: {string: ''} headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 08 Nov 2017 04:15:23 GMT'] + date: ['Fri, 04 May 2018 21:52:54 GMT'] expires: ['-1'] pragma: [no-cache] - server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] - server-sb: [Service-Bus-Resource-Provider/SN1] + server: [Service-Bus-Resource-Provider/CH3, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/CH3] strict-transport-security: [max-age=31536000; includeSubDomains] + x-content-type-options: [nosniff] status: {code: 200, message: OK} version: 1 diff --git a/azure-mgmt-eventhub/tests/test_azure_mgmt_eventhub.py b/azure-mgmt-eventhub/tests/test_azure_mgmt_eventhub.py index 94fdd2331e3c..45a028262143 100644 --- a/azure-mgmt-eventhub/tests/test_azure_mgmt_eventhub.py +++ b/azure-mgmt-eventhub/tests/test_azure_mgmt_eventhub.py @@ -32,9 +32,9 @@ def test_eh_eventhub_curd(self, resource_group, location): resource_group_name = resource_group.name #Create a Namespace - namespace_name = "testingpythontestcaseeventhubnamespaceEventhub" + namespace_name = "pythontestcaseeventhubnamespaceEventhub" - namespaceparameter = EHNamespace(location, {'tag1': 'value1', 'tag2': 'value2'}, Sku(SkuName.standard)) + namespaceparameter = EHNamespace(location=location,tags={'tag1': 'value1', 'tag2': 'value2'},sku=Sku(name=SkuName.standard)) poller = self.eventhub_client.namespaces.create_or_update(resource_group_name, namespace_name, namespaceparameter) creatednamespace = poller.result() diff --git a/azure-mgmt-eventhub/tests/test_azure_mgmt_eventhub_consumergroup.py b/azure-mgmt-eventhub/tests/test_azure_mgmt_eventhub_consumergroup.py index 7a9ef9e2a7a3..7ef7c5e377cb 100644 --- a/azure-mgmt-eventhub/tests/test_azure_mgmt_eventhub_consumergroup.py +++ b/azure-mgmt-eventhub/tests/test_azure_mgmt_eventhub_consumergroup.py @@ -33,7 +33,7 @@ def test_eh_consumergroup_curd(self, resource_group, location): # Create a Namespace namespace_name = "pythontestcaseeventhubnamespaceConsumerGroup" - namespaceparameter = EHNamespace(location, {'tag1': 'value1', 'tag2': 'value2'}, Sku(SkuName.standard)) + namespaceparameter = EHNamespace(location=location, tags={'tag1': 'value1', 'tag2': 'value2'}, sku=Sku(name=SkuName.standard)) poller = self.eventhub_client.namespaces.create_or_update(resource_group_name, namespace_name, namespaceparameter) creatednamespace = poller.result() diff --git a/azure-mgmt-eventhub/tests/test_azure_mgmt_eventhub_namespace.py b/azure-mgmt-eventhub/tests/test_azure_mgmt_eventhub_namespace.py index 8cf1e0395ef3..abaed0dd2821 100644 --- a/azure-mgmt-eventhub/tests/test_azure_mgmt_eventhub_namespace.py +++ b/azure-mgmt-eventhub/tests/test_azure_mgmt_eventhub_namespace.py @@ -32,9 +32,9 @@ def test_eh_namespace_curd(self, resource_group, location): resource_group_name = resource_group.name # Create a Namespace - namespace_name = "testingpythontestcasenamespace" + namespace_name = "pythontestcasenamespace" - namespaceparameter=EHNamespace(location,{'tag1':'value1', 'tag2':'value2'}, Sku(SkuName.standard)) + namespaceparameter=EHNamespace(location=location, tags={'tag1' : 'value1', 'tag2' : 'value2'}, sku=Sku(name=SkuName.standard)) poller = self.eventhub_client.namespaces.create_or_update(resource_group_name, namespace_name, namespaceparameter) creatednamespace = poller.result() self.assertEqual(creatednamespace.name, namespace_name) From 74cd6fdb8a126e95dc4fda587cd0a5678f3582f9 Mon Sep 17 00:00:00 2001 From: Laurent Mazuel Date: Fri, 4 May 2018 16:03:17 -0700 Subject: [PATCH 7/7] EventHub Mgmt 2.0.0 packaging --- azure-mgmt-eventhub/HISTORY.rst | 39 ++ azure-mgmt-eventhub/README.rst | 4 +- .../azure/mgmt/eventhub/version.py | 2 +- azure-mgmt-eventhub/build.json | 424 ------------------ azure-mgmt-eventhub/setup.py | 2 +- 5 files changed, 43 insertions(+), 428 deletions(-) delete mode 100644 azure-mgmt-eventhub/build.json diff --git a/azure-mgmt-eventhub/HISTORY.rst b/azure-mgmt-eventhub/HISTORY.rst index 1ab713faaf7b..1fcc76ecf482 100644 --- a/azure-mgmt-eventhub/HISTORY.rst +++ b/azure-mgmt-eventhub/HISTORY.rst @@ -3,6 +3,45 @@ Release History =============== +2.0.0 (2018-05-04) +++++++++++++++++++ + +**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. + +**Features** + +- Client class can be used as a context manager to keep the underlying HTTP session open for performance +- Add region operations group +- Add skip/top to relevant operations +- Add get_messaging_plan operation + +**Bugfixes** + +- Compatibility of the sdist with wheel 0.31.0 + 1.2.0 (2017-12-12) ++++++++++++++++++ diff --git a/azure-mgmt-eventhub/README.rst b/azure-mgmt-eventhub/README.rst index ae2d66917852..6bdcb30dac3d 100644 --- a/azure-mgmt-eventhub/README.rst +++ b/azure-mgmt-eventhub/README.rst @@ -37,8 +37,8 @@ Usage ===== For code examples, see `EventHub Management -`__ -on readthedocs.org. +`__ +on docs.microsoft.com. Provide Feedback diff --git a/azure-mgmt-eventhub/azure/mgmt/eventhub/version.py b/azure-mgmt-eventhub/azure/mgmt/eventhub/version.py index d24076f8d84b..53c4c7ea05e8 100644 --- a/azure-mgmt-eventhub/azure/mgmt/eventhub/version.py +++ b/azure-mgmt-eventhub/azure/mgmt/eventhub/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "1.3.0" +VERSION = "2.0.0" diff --git a/azure-mgmt-eventhub/build.json b/azure-mgmt-eventhub/build.json deleted file mode 100644 index 0358099599f7..000000000000 --- a/azure-mgmt-eventhub/build.json +++ /dev/null @@ -1,424 +0,0 @@ -{ - "autorest": [ - { - "resolvedInfo": null, - "packageMetadata": { - "name": "@microsoft.azure/autorest-core", - "version": "2.0.4216", - "engines": { - "node": ">=7.10.0" - }, - "dependencies": {}, - "optionalDependencies": {}, - "devDependencies": { - "@types/commonmark": "^0.27.0", - "@types/js-yaml": "^3.10.0", - "@types/jsonpath": "^0.1.29", - "@types/node": "^8.0.53", - "@types/source-map": "^0.5.0", - "@types/yargs": "^8.0.2", - "dts-generator": "^2.1.0", - "mocha": "^4.0.1", - "mocha-typescript": "^1.1.7", - "shx": "0.2.2", - "static-link": "^0.2.3", - "vscode-jsonrpc": "^3.3.1" - }, - "bundleDependencies": false, - "peerDependencies": {}, - "deprecated": false, - "_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/node_modules/@microsoft.azure/autorest-core", - "_shasum": "f6b97454df552dfa54bd0df23f8309665be5fd4c", - "_shrinkwrap": null, - "bin": { - "autorest-core": "./dist/app.js", - "autorest-language-service": "dist/language-service/language-service.js" - }, - "_id": "@microsoft.azure/autorest-core@2.0.4216", - "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/node_modules/@microsoft.azure/autorest-core", - "_requested": { - "type": "directory", - "where": "/git-restapi", - "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/node_modules/@microsoft.azure/autorest-core", - "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/node_modules/@microsoft.azure/autorest-core", - "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/node_modules/@microsoft.azure/autorest-core", - "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/node_modules/@microsoft.azure/autorest-core" - }, - "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/node_modules/@microsoft.azure/autorest-core", - "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4216/node_modules/@microsoft.azure/autorest-core" - }, - "extensionManager": { - "installationPath": "/root/.autorest", - "sharedLock": { - "name": "/root/.autorest", - "exclusiveLock": { - "name": "_root_.autorest.exclusive-lock", - "options": { - "port": 45234, - "host": "2130706813", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" - }, - "busyLock": { - "name": "_root_.autorest.busy-lock", - "options": { - "port": 37199, - "host": "2130756895", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" - }, - "personalLock": { - "name": "_root_.autorest.1468.46273881714.personal-lock", - "options": { - "port": 29628, - "host": "2130764499", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.1468.46273881714.personal-lock:29628" - }, - "file": "/tmp/_root_.autorest.lock" - }, - "dotnetPath": "/root/.dotnet" - }, - "installationPath": "/root/.autorest" - }, - { - "resolvedInfo": null, - "packageMetadata": { - "name": "@microsoft.azure/autorest-core", - "version": "2.0.4224", - "engines": { - "node": ">=7.10.0" - }, - "dependencies": {}, - "optionalDependencies": {}, - "devDependencies": { - "@types/commonmark": "^0.27.0", - "@types/js-yaml": "^3.10.0", - "@types/jsonpath": "^0.1.29", - "@types/node": "^8.0.53", - "@types/source-map": "^0.5.0", - "@types/yargs": "^8.0.2", - "@types/z-schema": "^3.16.31", - "dts-generator": "^2.1.0", - "mocha": "^4.0.1", - "mocha-typescript": "^1.1.7", - "shx": "0.2.2", - "static-link": "^0.2.3", - "vscode-jsonrpc": "^3.3.1" - }, - "bundleDependencies": false, - "peerDependencies": {}, - "deprecated": false, - "_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4224/node_modules/@microsoft.azure/autorest-core", - "_shasum": "cd2a0774d4207e79462b6624243e4cffec4ab1b6", - "_shrinkwrap": null, - "bin": { - "autorest-core": "./dist/app.js", - "autorest-language-service": "dist/language-service/language-service.js" - }, - "_id": "@microsoft.azure/autorest-core@2.0.4224", - "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4224/node_modules/@microsoft.azure/autorest-core", - "_requested": { - "type": "directory", - "where": "/git-restapi", - "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4224/node_modules/@microsoft.azure/autorest-core", - "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4224/node_modules/@microsoft.azure/autorest-core", - "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4224/node_modules/@microsoft.azure/autorest-core", - "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4224/node_modules/@microsoft.azure/autorest-core" - }, - "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4224/node_modules/@microsoft.azure/autorest-core", - "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4224/node_modules/@microsoft.azure/autorest-core" - }, - "extensionManager": { - "installationPath": "/root/.autorest", - "sharedLock": { - "name": "/root/.autorest", - "exclusiveLock": { - "name": "_root_.autorest.exclusive-lock", - "options": { - "port": 45234, - "host": "2130706813", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" - }, - "busyLock": { - "name": "_root_.autorest.busy-lock", - "options": { - "port": 37199, - "host": "2130756895", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" - }, - "personalLock": { - "name": "_root_.autorest.1468.46273881714.personal-lock", - "options": { - "port": 29628, - "host": "2130764499", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.1468.46273881714.personal-lock:29628" - }, - "file": "/tmp/_root_.autorest.lock" - }, - "dotnetPath": "/root/.dotnet" - }, - "installationPath": "/root/.autorest" - }, - { - "resolvedInfo": null, - "packageMetadata": { - "name": "@microsoft.azure/autorest.modeler", - "version": "2.0.21", - "dependencies": { - "dotnet-2.0.0": "^1.3.2" - }, - "optionalDependencies": {}, - "devDependencies": { - "coffee-script": "^1.11.1", - "dotnet-sdk-2.0.0": "^1.1.1", - "gulp": "^3.9.1", - "gulp-filter": "^5.0.0", - "gulp-line-ending-corrector": "^1.0.1", - "iced-coffee-script": "^108.0.11", - "marked": "^0.3.6", - "marked-terminal": "^2.0.0", - "moment": "^2.17.1", - "run-sequence": "*", - "shx": "^0.2.2", - "through2-parallel": "^0.1.3", - "yargs": "^8.0.2", - "yarn": "^1.0.2" - }, - "bundleDependencies": false, - "peerDependencies": {}, - "deprecated": false, - "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "_shasum": "3ce7d3939124b31830be15e5de99b9b7768afb90", - "_shrinkwrap": null, - "bin": null, - "_id": "@microsoft.azure/autorest.modeler@2.0.21", - "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "_requested": { - "type": "directory", - "where": "/git-restapi", - "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" - }, - "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", - "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" - }, - "extensionManager": { - "installationPath": "/root/.autorest", - "sharedLock": { - "name": "/root/.autorest", - "exclusiveLock": { - "name": "_root_.autorest.exclusive-lock", - "options": { - "port": 45234, - "host": "2130706813", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" - }, - "busyLock": { - "name": "_root_.autorest.busy-lock", - "options": { - "port": 37199, - "host": "2130756895", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" - }, - "personalLock": { - "name": "_root_.autorest.1468.46273881714.personal-lock", - "options": { - "port": 29628, - "host": "2130764499", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.1468.46273881714.personal-lock:29628" - }, - "file": "/tmp/_root_.autorest.lock" - }, - "dotnetPath": "/root/.dotnet" - }, - "installationPath": "/root/.autorest" - }, - { - "resolvedInfo": null, - "packageMetadata": { - "name": "@microsoft.azure/autorest.modeler", - "version": "2.3.38", - "dependencies": { - "dotnet-2.0.0": "^1.4.4" - }, - "optionalDependencies": {}, - "devDependencies": { - "@microsoft.azure/autorest.testserver": "2.3.1", - "autorest": "^2.0.4201", - "coffee-script": "^1.11.1", - "dotnet-sdk-2.0.0": "^1.4.4", - "gulp": "^3.9.1", - "gulp-filter": "^5.0.0", - "gulp-line-ending-corrector": "^1.0.1", - "iced-coffee-script": "^108.0.11", - "marked": "^0.3.6", - "marked-terminal": "^2.0.0", - "moment": "^2.17.1", - "run-sequence": "*", - "shx": "^0.2.2", - "through2-parallel": "^0.1.3", - "yargs": "^8.0.2", - "yarn": "^1.0.2" - }, - "bundleDependencies": false, - "peerDependencies": {}, - "deprecated": false, - "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", - "_shasum": "903bb77932e4ed1b8bc3b25cc39b167143494f6c", - "_shrinkwrap": null, - "bin": null, - "_id": "@microsoft.azure/autorest.modeler@2.3.38", - "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", - "_requested": { - "type": "directory", - "where": "/git-restapi", - "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", - "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", - "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", - "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler" - }, - "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", - "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler" - }, - "extensionManager": { - "installationPath": "/root/.autorest", - "sharedLock": { - "name": "/root/.autorest", - "exclusiveLock": { - "name": "_root_.autorest.exclusive-lock", - "options": { - "port": 45234, - "host": "2130706813", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" - }, - "busyLock": { - "name": "_root_.autorest.busy-lock", - "options": { - "port": 37199, - "host": "2130756895", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" - }, - "personalLock": { - "name": "_root_.autorest.1468.46273881714.personal-lock", - "options": { - "port": 29628, - "host": "2130764499", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.1468.46273881714.personal-lock:29628" - }, - "file": "/tmp/_root_.autorest.lock" - }, - "dotnetPath": "/root/.dotnet" - }, - "installationPath": "/root/.autorest" - }, - { - "resolvedInfo": null, - "packageMetadata": { - "name": "@microsoft.azure/autorest.python", - "version": "2.1.26", - "dependencies": { - "dotnet-2.0.0": "^1.4.4" - }, - "optionalDependencies": {}, - "devDependencies": { - "@microsoft.azure/autorest.testserver": "2.3.12", - "autorest": "^2.0.4203", - "coffee-script": "^1.11.1", - "dotnet-sdk-2.0.0": "^1.4.4", - "gulp": "^3.9.1", - "gulp-filter": "^5.0.0", - "gulp-line-ending-corrector": "^1.0.1", - "iced-coffee-script": "^108.0.11", - "marked": "^0.3.6", - "marked-terminal": "^2.0.0", - "moment": "^2.17.1", - "run-sequence": "*", - "shx": "^0.2.2", - "through2-parallel": "^0.1.3", - "yargs": "^8.0.2", - "yarn": "^1.0.2" - }, - "bundleDependencies": false, - "peerDependencies": {}, - "deprecated": false, - "_resolved": "/root/.autorest/@microsoft.azure_autorest.python@2.1.26/node_modules/@microsoft.azure/autorest.python", - "_shasum": "fce552a203c4b359b3f21a194a6deacc8f40ae80", - "_shrinkwrap": null, - "bin": null, - "_id": "@microsoft.azure/autorest.python@2.1.26", - "_from": "file:/root/.autorest/@microsoft.azure_autorest.python@2.1.26/node_modules/@microsoft.azure/autorest.python", - "_requested": { - "type": "directory", - "where": "/git-restapi", - "raw": "/root/.autorest/@microsoft.azure_autorest.python@2.1.26/node_modules/@microsoft.azure/autorest.python", - "rawSpec": "/root/.autorest/@microsoft.azure_autorest.python@2.1.26/node_modules/@microsoft.azure/autorest.python", - "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.python@2.1.26/node_modules/@microsoft.azure/autorest.python", - "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.python@2.1.26/node_modules/@microsoft.azure/autorest.python" - }, - "_spec": "/root/.autorest/@microsoft.azure_autorest.python@2.1.26/node_modules/@microsoft.azure/autorest.python", - "_where": "/root/.autorest/@microsoft.azure_autorest.python@2.1.26/node_modules/@microsoft.azure/autorest.python" - }, - "extensionManager": { - "installationPath": "/root/.autorest", - "sharedLock": { - "name": "/root/.autorest", - "exclusiveLock": { - "name": "_root_.autorest.exclusive-lock", - "options": { - "port": 45234, - "host": "2130706813", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" - }, - "busyLock": { - "name": "_root_.autorest.busy-lock", - "options": { - "port": 37199, - "host": "2130756895", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" - }, - "personalLock": { - "name": "_root_.autorest.1468.46273881714.personal-lock", - "options": { - "port": 29628, - "host": "2130764499", - "exclusive": true - }, - "pipe": "/tmp/pipe__root_.autorest.1468.46273881714.personal-lock:29628" - }, - "file": "/tmp/_root_.autorest.lock" - }, - "dotnetPath": "/root/.dotnet" - }, - "installationPath": "/root/.autorest" - } - ], - "autorest_bootstrap": {} -} \ No newline at end of file diff --git a/azure-mgmt-eventhub/setup.py b/azure-mgmt-eventhub/setup.py index 10cff0c35771..e48ccd31a98a 100644 --- a/azure-mgmt-eventhub/setup.py +++ b/azure-mgmt-eventhub/setup.py @@ -77,7 +77,7 @@ zip_safe=False, packages=find_packages(exclude=["tests"]), install_requires=[ - 'msrestazure~=0.4.11', + 'msrestazure>=0.4.27,<2.0.0', 'azure-common~=1.1', ], cmdclass=cmdclass