From 5852ed37226ea93e4d2ff286c5b4363d63ed9b22 Mon Sep 17 00:00:00 2001 From: Derek Bekoe Date: Thu, 15 Mar 2018 10:30:12 -0700 Subject: [PATCH] Remove Service bus and Event hub extensions as now in CLI --- .github/CODEOWNERS | 4 - src/eventhubs/azext_eventhub/__init__.py | 34 - .../azext_eventhub/_client_factory.py | 26 - src/eventhubs/azext_eventhub/_help.py | 339 ---- src/eventhubs/azext_eventhub/_params.py | 103 -- src/eventhubs/azext_eventhub/_utils.py | 18 - .../azext_eventhub/azext_metadata.json | 3 - src/eventhubs/azext_eventhub/commands.py | 93 -- src/eventhubs/azext_eventhub/custom.py | 82 - .../azext_eventhub/eventhub/__init__.py | 17 - .../eventhub/event_hub_management_client.py | 105 -- .../eventhub/models/__init__.py | 80 - .../eventhub/models/access_keys.py | 70 - .../eventhub/models/arm_disaster_recovery.py | 68 - .../models/arm_disaster_recovery_paged.py | 27 - .../eventhub/models/authorization_rule.py | 47 - .../models/authorization_rule_paged.py | 27 - .../eventhub/models/capture_description.py | 56 - .../check_name_availability_parameter.py | 31 - .../models/check_name_availability_result.py | 46 - .../eventhub/models/consumer_group.py | 59 - .../eventhub/models/consumer_group_paged.py | 27 - .../eventhub/models/destination.py | 43 - .../eventhub/models/eh_namespace.py | 90 -- .../eventhub/models/eh_namespace_paged.py | 27 - .../eventhub/models/error_response.py | 45 - .../event_hub_management_client_enums.py | 80 - .../eventhub/models/eventhub.py | 80 - .../eventhub/models/eventhub_paged.py | 27 - .../eventhub/models/operation.py | 38 - .../eventhub/models/operation_display.py | 45 - .../eventhub/models/operation_paged.py | 27 - .../regenerate_access_key_parameters.py | 38 - .../eventhub/models/resource.py | 44 - .../azext_eventhub/eventhub/models/sku.py | 43 - .../eventhub/models/tracked_resource.py | 50 - .../eventhub/operations/__init__.py | 24 - .../operations/consumer_groups_operations.py | 317 ---- .../disaster_recovery_configs_operations.py | 694 -------- .../operations/event_hubs_operations.py | 719 --------- .../operations/namespaces_operations.py | 937 ----------- .../eventhub/operations/operations.py | 96 -- .../azext_eventhub/eventhub/version.py | 12 - .../azext_eventhub/tests/__init__.py | 4 - .../recordings/latest/test_eh_alias.yaml | 1250 --------------- .../latest/test_eh_consumergroup.yaml | 436 ----- .../recordings/latest/test_eh_eventhub.yaml | 494 ------ .../recordings/latest/test_eh_namespace.yaml | 550 ------- .../tests/recordings/test_eh_alias.yaml | 1222 -------------- .../recordings/test_eh_consumergroup.yaml | 436 ----- .../tests/recordings/test_eh_eventhub.yaml | 494 ------ .../tests/recordings/test_eh_namespace.yaml | 559 ------- .../tests/test_eventhub_commands.py | 316 ---- src/eventhubs/setup.cfg | 2 - src/eventhubs/setup.py | 41 - src/index.json | 90 -- src/servicebus/azext_servicebus/__init__.py | 36 - .../azext_servicebus/_client_factory.py | 50 - src/servicebus/azext_servicebus/_help.py | 495 ------ src/servicebus/azext_servicebus/_params.py | 177 --- src/servicebus/azext_servicebus/_utils.py | 18 - .../azext_servicebus/_validators.py | 39 - .../azext_servicebus/azext_metadata.json | 3 - src/servicebus/azext_servicebus/commands.py | 131 -- src/servicebus/azext_servicebus/custom.py | 167 -- .../azext_servicebus/servicebus/__init__.py | 17 - .../servicebus/models/__init__.py | 116 -- .../servicebus/models/access_keys.py | 70 - .../servicebus/models/action.py | 38 - .../models/arm_disaster_recovery.py | 68 - .../models/arm_disaster_recovery_paged.py | 27 - .../models/authorization_rule_properties.py | 31 - .../servicebus/models/capture_description.py | 56 - .../models/check_name_availability.py | 34 - .../models/check_name_availability_result.py | 46 - .../servicebus/models/correlation_filter.py | 60 - .../servicebus/models/destination.py | 43 - .../servicebus/models/error_response.py | 45 - .../servicebus/models/eventhub.py | 81 - .../servicebus/models/eventhub_paged.py | 27 - .../models/message_count_details.py | 58 - .../servicebus/models/operation.py | 38 - .../servicebus/models/operation_display.py | 45 - .../servicebus/models/operation_paged.py | 27 - .../models/premium_messaging_regions.py | 53 - .../models/premium_messaging_regions_paged.py | 27 - .../premium_messaging_regions_properties.py | 39 - .../regenerate_access_key_parameters.py | 38 - .../servicebus/models/resource.py | 44 - .../models/resource_namespace_patch.py | 50 - .../servicebus/models/rule.py | 60 - .../servicebus/models/rule_paged.py | 27 - .../models/sb_authorization_rule.py | 47 - .../models/sb_authorization_rule_paged.py | 27 - .../servicebus/models/sb_namespace.py | 79 - .../servicebus/models/sb_namespace_paged.py | 27 - .../models/sb_namespace_update_parameters.py | 78 - .../servicebus/models/sb_queue.py | 151 -- .../servicebus/models/sb_queue_paged.py | 27 - .../servicebus/models/sb_sku.py | 42 - .../servicebus/models/sb_subscription.py | 126 -- .../models/sb_subscription_paged.py | 27 - .../servicebus/models/sb_topic.py | 129 -- .../servicebus/models/sb_topic_paged.py | 27 - .../service_bus_management_client_enums.py | 88 - .../servicebus/models/sql_filter.py | 46 - .../servicebus/models/sql_rule_action.py | 30 - .../servicebus/models/tracked_resource.py | 51 - .../servicebus/operations/__init__.py | 34 - .../disaster_recovery_configs_operations.py | 697 -------- .../operations/event_hubs_operations.py | 107 -- .../operations/namespaces_operations.py | 939 ----------- .../servicebus/operations/operations.py | 96 -- .../premium_messaging_regions_operations.py | 100 -- .../operations/queues_operations.py | 718 --------- .../operations/regions_operations.py | 103 -- .../servicebus/operations/rules_operations.py | 321 ---- .../operations/subscriptions_operations.py | 310 ---- .../operations/topics_operations.py | 717 --------- .../service_bus_management_client.py | 130 -- .../azext_servicebus/servicebus/version.py | 12 - .../azext_servicebus/tests/__init__.py | 4 - .../recordings/latest/test_sb_alias.yaml | 1414 ----------------- .../recordings/latest/test_sb_namespace.yaml | 511 ------ .../recordings/latest/test_sb_queue.yaml | 493 ------ .../recordings/latest/test_sb_rules.yaml | 491 ------ .../latest/test_sb_subscription.yaml | 403 ----- .../recordings/latest/test_sb_topic.yaml | 440 ----- .../tests/recordings/test_sb_alias.yaml | 1414 ----------------- .../tests/recordings/test_sb_namespace.yaml | 511 ------ .../tests/recordings/test_sb_queue.yaml | 493 ------ .../tests/recordings/test_sb_rules.yaml | 491 ------ .../recordings/test_sb_subscription.yaml | 403 ----- .../tests/recordings/test_sb_topic.yaml | 440 ----- .../tests/test_servicebus_commands.py | 451 ------ src/servicebus/setup.cfg | 2 - src/servicebus/setup.py | 41 - 137 files changed, 26401 deletions(-) delete mode 100644 src/eventhubs/azext_eventhub/__init__.py delete mode 100644 src/eventhubs/azext_eventhub/_client_factory.py delete mode 100644 src/eventhubs/azext_eventhub/_help.py delete mode 100644 src/eventhubs/azext_eventhub/_params.py delete mode 100644 src/eventhubs/azext_eventhub/_utils.py delete mode 100644 src/eventhubs/azext_eventhub/azext_metadata.json delete mode 100644 src/eventhubs/azext_eventhub/commands.py delete mode 100644 src/eventhubs/azext_eventhub/custom.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/__init__.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/event_hub_management_client.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/__init__.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/access_keys.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/arm_disaster_recovery.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/arm_disaster_recovery_paged.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/authorization_rule.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/authorization_rule_paged.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/capture_description.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/check_name_availability_parameter.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/check_name_availability_result.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/consumer_group.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/consumer_group_paged.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/destination.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/eh_namespace.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/eh_namespace_paged.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/error_response.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/event_hub_management_client_enums.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/eventhub.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/eventhub_paged.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/operation.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/operation_display.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/operation_paged.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/regenerate_access_key_parameters.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/resource.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/sku.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/models/tracked_resource.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/operations/__init__.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/operations/consumer_groups_operations.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/operations/disaster_recovery_configs_operations.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/operations/event_hubs_operations.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/operations/namespaces_operations.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/operations/operations.py delete mode 100644 src/eventhubs/azext_eventhub/eventhub/version.py delete mode 100644 src/eventhubs/azext_eventhub/tests/__init__.py delete mode 100644 src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_alias.yaml delete mode 100644 src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_consumergroup.yaml delete mode 100644 src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_eventhub.yaml delete mode 100644 src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_namespace.yaml delete mode 100644 src/eventhubs/azext_eventhub/tests/recordings/test_eh_alias.yaml delete mode 100644 src/eventhubs/azext_eventhub/tests/recordings/test_eh_consumergroup.yaml delete mode 100644 src/eventhubs/azext_eventhub/tests/recordings/test_eh_eventhub.yaml delete mode 100644 src/eventhubs/azext_eventhub/tests/recordings/test_eh_namespace.yaml delete mode 100644 src/eventhubs/azext_eventhub/tests/test_eventhub_commands.py delete mode 100644 src/eventhubs/setup.cfg delete mode 100644 src/eventhubs/setup.py delete mode 100644 src/servicebus/azext_servicebus/__init__.py delete mode 100644 src/servicebus/azext_servicebus/_client_factory.py delete mode 100644 src/servicebus/azext_servicebus/_help.py delete mode 100644 src/servicebus/azext_servicebus/_params.py delete mode 100644 src/servicebus/azext_servicebus/_utils.py delete mode 100644 src/servicebus/azext_servicebus/_validators.py delete mode 100644 src/servicebus/azext_servicebus/azext_metadata.json delete mode 100644 src/servicebus/azext_servicebus/commands.py delete mode 100644 src/servicebus/azext_servicebus/custom.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/__init__.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/__init__.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/access_keys.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/action.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/arm_disaster_recovery.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/arm_disaster_recovery_paged.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/authorization_rule_properties.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/capture_description.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/check_name_availability.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/check_name_availability_result.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/correlation_filter.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/destination.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/error_response.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/eventhub.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/eventhub_paged.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/message_count_details.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/operation.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/operation_display.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/operation_paged.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions_paged.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions_properties.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/regenerate_access_key_parameters.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/resource.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/resource_namespace_patch.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/rule.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/rule_paged.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_authorization_rule.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_authorization_rule_paged.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_namespace.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_namespace_paged.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_namespace_update_parameters.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_queue.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_queue_paged.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_sku.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_subscription.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_subscription_paged.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_topic.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_topic_paged.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/service_bus_management_client_enums.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/sql_filter.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/sql_rule_action.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/models/tracked_resource.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/operations/__init__.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/operations/disaster_recovery_configs_operations.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/operations/event_hubs_operations.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/operations/namespaces_operations.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/operations/operations.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/operations/premium_messaging_regions_operations.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/operations/queues_operations.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/operations/regions_operations.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/operations/rules_operations.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/operations/subscriptions_operations.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/operations/topics_operations.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/service_bus_management_client.py delete mode 100644 src/servicebus/azext_servicebus/servicebus/version.py delete mode 100644 src/servicebus/azext_servicebus/tests/__init__.py delete mode 100644 src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml delete mode 100644 src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml delete mode 100644 src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml delete mode 100644 src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml delete mode 100644 src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml delete mode 100644 src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml delete mode 100644 src/servicebus/azext_servicebus/tests/recordings/test_sb_alias.yaml delete mode 100644 src/servicebus/azext_servicebus/tests/recordings/test_sb_namespace.yaml delete mode 100644 src/servicebus/azext_servicebus/tests/recordings/test_sb_queue.yaml delete mode 100644 src/servicebus/azext_servicebus/tests/recordings/test_sb_rules.yaml delete mode 100644 src/servicebus/azext_servicebus/tests/recordings/test_sb_subscription.yaml delete mode 100644 src/servicebus/azext_servicebus/tests/recordings/test_sb_topic.yaml delete mode 100644 src/servicebus/azext_servicebus/tests/test_servicebus_commands.py delete mode 100644 src/servicebus/setup.cfg delete mode 100644 src/servicebus/setup.py diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index dcac48ffb9d..4c8b82de7a2 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -4,10 +4,6 @@ /src/image-copy/ @tamirkamara -/src/servicebus/ @v-ajnava - -/src/eventhubs/ @v-ajnava - /src/webapp/ @panchagnula /src/aem/ @yugangw-msft diff --git a/src/eventhubs/azext_eventhub/__init__.py b/src/eventhubs/azext_eventhub/__init__.py deleted file mode 100644 index 3e520159a5d..00000000000 --- a/src/eventhubs/azext_eventhub/__init__.py +++ /dev/null @@ -1,34 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from azure.cli.core import AzCommandsLoader - -# pylint: disable=unused-import -# pylint: disable=line-too-long - -from ._help import helps - - -class EventhubCommandsLoader(AzCommandsLoader): - - def __init__(self, cli_ctx=None): - from azure.cli.core.commands import CliCommandType - eventhub_custom = CliCommandType(operations_tmpl='azext_eventhub.custom#{}') - super(EventhubCommandsLoader, self).__init__(cli_ctx=cli_ctx, custom_command_type=eventhub_custom, min_profile="2017-03-10-profile") - - def load_command_table(self, args): - from azext_eventhub.commands import load_command_table - load_command_table(self, args) - return self.command_table - - def load_arguments(self, command): - from azext_eventhub._params import load_arguments_namespace, load_arguments_eventhub, load_arguments_consumergroup, load_arguments_geodr - load_arguments_namespace(self, command) - load_arguments_eventhub(self, command) - load_arguments_consumergroup(self, command) - load_arguments_geodr(self, command) - - -COMMAND_LOADER_CLS = EventhubCommandsLoader diff --git a/src/eventhubs/azext_eventhub/_client_factory.py b/src/eventhubs/azext_eventhub/_client_factory.py deleted file mode 100644 index 02c5c6c97e8..00000000000 --- a/src/eventhubs/azext_eventhub/_client_factory.py +++ /dev/null @@ -1,26 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - - -def cf_eventhub(cli_ctx, **_): - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from azext_eventhub.eventhub import EventHubManagementClient - return get_mgmt_service_client(cli_ctx, EventHubManagementClient) - - -def namespaces_mgmt_client_factory(cli_ctx, _): - return cf_eventhub(cli_ctx).namespaces - - -def event_hub_mgmt_client_factory(cli_ctx, _): - return cf_eventhub(cli_ctx).event_hubs - - -def consumer_groups_mgmt_client_factory(cli_ctx, _): - return cf_eventhub(cli_ctx).consumer_groups - - -def disaster_recovery_mgmt_client_factory(cli_ctx, _): - return cf_eventhub(cli_ctx).disaster_recovery_configs diff --git a/src/eventhubs/azext_eventhub/_help.py b/src/eventhubs/azext_eventhub/_help.py deleted file mode 100644 index ece1ccad04e..00000000000 --- a/src/eventhubs/azext_eventhub/_help.py +++ /dev/null @@ -1,339 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from knack.help_files import helps - -helps['eventhubs'] = """ - type: group - short-summary: Manage Azure Event Hubs namespace, eventhub, consumergroup and Geo Recovery configuration - Alias -""" - -helps['eventhubs namespace'] = """ - type: group - short-summary: Manage Azure Event Hubs namespace and authorizationrule -""" - -helps['eventhubs namespace authorizationrule'] = """ - type: group - short-summary: Manage Azure Event Hubs AuthorizationRule for Namespace -""" - -helps['eventhubs namespace authorizationrule keys'] = """ - type: group - short-summary: Manage Azure Event Hubs AuthorizationRule connection strings for Namespace -""" - -helps['eventhubs eventhub'] = """ - type: group - short-summary: Manage Azure Event Hubs eventhub and authorization-rule -""" - -helps['eventhubs eventhub authorizationrule'] = """ - type: group - short-summary: Manage Azure Service Bus AuthorizationRule for Eventhub -""" - -helps['eventhubs eventhub authorizationrule keys'] = """ - type: group - short-summary: Manage Azure AuthorizationRule connection strings for Eventhub -""" - -helps['eventhubs consumergroup'] = """ - type: group - short-summary: Manage Azure Event Hubs consumergroup -""" - -helps['eventhubs georecovery-alias'] = """ - type: group - short-summary: Manage Azure Event Hubs Geo Recovery configuration Alias -""" - -helps['eventhubs georecovery-alias authorizationrule'] = """ - type: group - short-summary: Manage Azure Event Hubs AuthorizationRule for Geo Recovery configuration Alias -""" - -helps['eventhubs georecovery-alias authorizationrule keys'] = """ - type: group - short-summary: Manage Azure Event Hubs AuthorizationRule connection strings for Geo Recovery configuration Alias -""" - -helps['eventhubs namespace exists'] = """ - type: command - short-summary: check for the availability of the given name for the Namespace - examples: - - name: Create a new topic. - text: az eventhubs namespace exists --name mynamespace -""" - -helps['eventhubs namespace create'] = """ - type: command - short-summary: Creates the Event Hubs Namespace - examples: - - name: Create a new namespace. - text: az eventhubs namespace create --resource-group myresourcegroup --name mynamespace --location westus - --tags tag1=value1 tag2=value2 --sku-name Standard --sku-tier Standard --is-auto-inflate-enabled False --maximum-throughput-units 30 -""" - -helps['eventhubs namespace show'] = """ - type: command - short-summary: shows the Event Hubs Namespace Details - examples: - - name: shows the Namespace details. - text: az eventhubs namespace show --resource-group myresourcegroup --name mynamespace -""" - -helps['eventhubs namespace list'] = """ - type: command - short-summary: Lists the Event Hubs Namespaces - examples: - - name: List the Event Hubs Namespaces by resource group. - text: az eventhubs namespace list --resource-group myresourcegroup - - name: Get the Namespaces by Subscription. - text: az eventhubs namespace list -""" - -helps['eventhubs namespace delete'] = """ - type: command - short-summary: Deletes the Namespaces - examples: - - name: Deletes the Namespace - text: az eventhubs namespace delete --resource-group myresourcegroup --name mynamespace -""" - -helps['eventhubs namespace authorizationrule create'] = """ - type: command - short-summary: Creates AuthorizationRule for the given Namespace - examples: - - name: Creates Authorization rules - text: az eventhubs namespace authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule --access-rights Send Listen -""" - -helps['eventhubs namespace authorizationrule show'] = """ - type: command - short-summary: Shows the details of AuthorizationRule - examples: - - name: Shows the details of AuthorizationRule - text: az eventhubs namespace authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule -""" - -helps['eventhubs namespace authorizationrule list'] = """ - type: command - short-summary: Shows the list of AuthorizationRule by Namespace - examples: - - name: Shows the list of AuthorizationRule by Namespace - text: az eventhubs namespace authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace -""" - -helps['eventhubs namespace authorizationrule keys list'] = """ - type: command - short-summary: Shows the connection strings for namespace - examples: - - name: Shows the connectionstrings of AuthorizationRule for the namespace. - text: az eventhubs namespace authorizationrule list-keys --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule -""" - -helps['eventhubs namespace authorizationrule keys renew'] = """ - type: command - short-summary: Regenerate the connectionstrings of AuthorizationRule for the namespace. - examples: - - name: Regenerate the connectionstrings of AuthorizationRule for the namespace. - text: az eventhubs namespace authorizationrule regenerate-keys --resource-group myresourcegroup - --namespace-name mynamespace --name myauthorule --key PrimaryKey -""" - -helps['eventhubs namespace authorizationrule delete'] = """ - type: command - short-summary: Deletes the AuthorizationRule of the namespace. - examples: - - name: Deletes the AuthorizationRule of the namespace. - text: az eventhubs namespace authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule -""" - -helps['eventhubs eventhub create'] = """ - type: command - short-summary: Creates the Event Hubs Eventhub - examples: - - name: Create a new Eventhub. - text: az eventhubs eventhub create --resource-group myresourcegroup --namespace-name mynamespace --name myeventhub --message-retention-in-days 4 ---partition-count 15 -""" - -helps['eventhubs eventhub show'] = """ - type: command - short-summary: shows the Eventhub Details - examples: - - name: Shows the Eventhub details. - text: az eventhubs eventhub show --resource-group myresourcegroup --namespace-name mynamespace --name myeventhub -""" - -helps['eventhubs eventhub list'] = """ - type: command - short-summary: List the EventHub by Namepsace - examples: - - name: Get the Eventhubs by Namespace. - text: az eventhubs eventhub list --resource-group myresourcegroup --namespace-name mynamespace -""" - -helps['eventhubs eventhub delete'] = """ - type: command - short-summary: Deletes the Eventhub - examples: - - name: Deletes the Eventhub - text: az eventhubs eventhub delete --resource-group myresourcegroup --namespace-name mynamespace --name myeventhub -""" - -helps['eventhubs eventhub authorizationrule create'] = """ - type: command - short-summary: Creates Authorization rule for the given Eventhub - examples: - - name: Creates Authorization rules - text: az eventhubs eventhub authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace --event-hub-name myeventhub --name myauthorule --access-rights Listen -""" - -helps['eventhubs eventhub authorizationrule show'] = """ - type: command - short-summary: shows the details of AuthorizationRule - examples: - - name: shows the details of AuthorizationRule - text: az eventhubs eventhub authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace --event-hub-name myeventhub --name myauthorule -""" - -helps['eventhubs eventhub authorizationrule list'] = """ - type: command - short-summary: shows the list of AuthorizationRule by Eventhub - examples: - - name: shows the list of AuthorizationRule by Eventhub - text: az eventhubs eventhub authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace --event-hub-name myeventhub -""" - -helps['eventhubs eventhub authorizationrule keys list'] = """ - type: command - short-summary: Shows the connectionstrings of AuthorizationRule for the Eventhub. - examples: - - name: Shows the connectionstrings of AuthorizationRule for the eventhub. - text: az eventhubs eventhub authorizationrule list-keys --resource-group myresourcegroup --namespace-name mynamespace --event-hub-name myeventhub --name myauthorule -""" - -helps['eventhubs eventhub authorizationrule keys renew'] = """ - type: command - short-summary: Regenerate the connectionstrings of AuthorizationRule for the namespace. - examples: - - name: Regenerate the connectionstrings of AuthorizationRule for the namespace. - text: az eventhubs eventhub authorizationrule regenerate-keys --resource-group myresourcegroup --namespace-name mynamespace --event-hub-name myeventhub --name myauthorule --key PrimaryKey -""" - -helps['eventhubs eventhub authorizationrule delete'] = """ - type: command - short-summary: Deletes the AuthorizationRule of the Eventhub. - examples: - - name: Deletes the AuthorizationRule of the Eventhub. - text: az eventhubs eventhub authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace --event-hub-name myeventhub --name myauthorule -""" - -helps['eventhubs consumergroup create'] = """ - type: command - short-summary: Creates the EventHub ConsumerGroup - examples: - - name: Create a new ConsumerGroup. - text: az eventhubs consumergroup create --resource-group myresourcegroup --namespace-name mynamespace --event-hub-name myeventhub --name myconsumergroup -""" - -helps['eventhubs consumergroup show'] = """ - type: command - short-summary: Shows the ConsumerGroup Details - examples: - - name: Shows the ConsumerGroup details. - text: az eventhubs consumergroup show --resource-group myresourcegroup --namespace-name mynamespace --event-hub-name myeventhub --name myconsumergroup -""" - -helps['eventhubs consumergroup list'] = """ - type: command - short-summary: List the ConsumerGroup by Eventhub - examples: - - name: Shows the ConsumerGroup by Eventhub. - text: az eventhubs consumergroup get --resource-group myresourcegroup --namespace-name mynamespace --event-hub-name myeventhub -""" - -helps['eventhubs consumergroup delete'] = """ - type: command - short-summary: Deletes the ConsumerGroup - examples: - - name: Deletes the ConsumerGroup - text: az eventhubs consumergroup delete --resource-group myresourcegroup --namespace-name mynamespace --event-hub-name myeventhub --name myconsumergroup -""" - -helps['eventhubs georecovery-alias exists'] = """ - type: command - short-summary: Check the availability of the Geo Recovery - Alias Name - examples: - - name: Check the availability of the Geo Recovery configuration - Alias Name - text: az eventhubs georecovery-alias check-name-availability --resource-group myresourcegroup --namespace-name primarynamespace --alias myaliasname -""" - -helps['eventhubs georecovery-alias create'] = """ - type: command - short-summary: Creates a Geo Recovery - Alias for the give Namespace - examples: - - name: Creats Geo Recovery configuration - Alias for the give Namespace - text: az eventhubs georecovery-alias create --resource-group myresourcegroup --namespace-name primarynamespace --alias myaliasname --partner-namespace resourcearmid -""" - -helps['eventhubs georecovery-alias show'] = """ - type: command - short-summary: shows details of Geo Recovery configuration - Alias for Primay or Secondary Namespace - examples: - - name: Shows details of Geo Recovery configuration - Alias of the Primary Namespace - text: az eventhubs georecovery-alias show --resource-group myresourcegroup --namespace-name primarynamespace --alias myaliasname - - name: Shows details of Geo Recovery configuration - Alias of the Secondary Namespace - text: az eventhubs georecovery-alias show --resource-group myresourcegroup --namespace-name secondarynamespace --alias myaliasname -""" - -helps['eventhubs georecovery-alias authorizationrule show'] = """ - type: command - short-summary: Shows the details of Event Hubs Geo Recovery Alias and Namespace AuthorizationRule - examples: - - name: Shows the details AuthorizationRule by Event Hubs Namespace - text: az eventhubs georecovery-alias authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace -""" - -helps['eventhubs georecovery-alias authorizationrule list'] = """ - type: command - short-summary: Shows the list of AuthorizationRule by Event Hubs Namespace - examples: - - name: Shows the list of AuthorizationRule by Event Hubs Namespace - text: az eventhubs georecovery-alias authorizationrule list --resource-group myresourcegroup --namespace-name mynamespace -""" - -helps['eventhubs georecovery-alias authorizationrule keys list'] = """ - type: command - short-summary: Shows the connection strings of AuthorizationRule for the Event Hubs Namespace - examples: - - name: Shows the connection strings of AuthorizationRule for the namespace. - text: az eventhubs georecovery-alias authorizationrule keys list --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule -""" - -helps['eventhubs georecovery-alias break-pair'] = """ - type: command - short-summary: Disables the Geo Recovery and stops replicating changes from primary to secondary namespaces - examples: - - name: Disables the Geo Recovery and stops replicating changes from primary to secondary namespaces - text: az eventhubs georecovery-alias break-pair --resource-group myresourcegroup --namespace-name primarynamespace --alias myaliasname -""" - -helps['eventhubs georecovery-alias fail-over'] = """ - type: command - short-summary: Invokes Geo Recovery configuration - Alias to point to the secondary namespace - examples: - - name: Invokes GEO DR failover and reconfigure the alias to point to the secondary namespace - text: az eventhubs georecovery-alias fail-over --resource-group myresourcegroup --namespace-name secondarynamespace --alias myaliasname -""" - -helps['eventhubs georecovery-alias delete'] = """ - type: command - short-summary: Delete Geo Recovery - Alias - examples: - - name: Delete Geo Recovery configuration - Alias - text: az eventhubs georecovery-alias delete --resource-group myresourcegroup --namespace-name secondarynamespace --alias myaliasname -""" diff --git a/src/eventhubs/azext_eventhub/_params.py b/src/eventhubs/azext_eventhub/_params.py deleted file mode 100644 index 77d236b94c8..00000000000 --- a/src/eventhubs/azext_eventhub/_params.py +++ /dev/null @@ -1,103 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from azure.cli.core.commands.parameters import (tags_type, get_enum_type, resource_group_name_type) - - -# pylint: disable=line-too-long -def load_arguments_namespace(self, _): - with self.argument_context('eventhubs') as c: - c.argument('resource_group_name', arg_type=resource_group_name_type) - c.argument('namespace_name', options_list=['--namespace-name'], help='name of the Namespace') - - with self.argument_context('eventhubs namespace exists') as c: - c.argument('namespace_name', options_list=['--name', '-n'], help='name of the Namespace') - - with self.argument_context('eventhubs namespace create') as c: - c.argument('namespace_name', options_list=['--name', '-n'], help='name of the Namespace') - c.argument('tags', options_list=['--tags', '-t'], arg_type=tags_type, help='tags for the namespace in Key value pair format') - c.argument('sku', options_list=['--sku-name'], arg_type=get_enum_type(['Basic', 'Standard'])) - c.argument('location', options_list=['--location', '-l'], help='Location') - c.argument('skutier', options_list=['--sku-tier'], arg_type=get_enum_type(['Basic', 'Standard'])) - c.argument('capacity', options_list=['--capacity'], type=int, help='Capacity for Sku') - c.argument('is_auto_inflate_enabled', options_list=['--is-auto-inflate-enabled'], type=bool, help='Value that indicates whether AutoInflate is enabled for eventhub namespace.') - c.argument('maximum_throughput_units', options_list=['--maximum-throughput-units'], type=int, help='Upper limit of throughput units when AutoInflate is enabled, vaule should be within 0 to 20 throughput units. ( 0 if AutoInflateEnabled = true)') - - # region Namespace Get - for scope in ['eventhubs namespace show', 'eventhubs namespace delete']: - with self.argument_context(scope) as c: - c.argument('namespace_name', options_list=['--name', '-n'], help='name of the Namespace') - - # region Namespace Authorizationrule - for scope in ['eventhubs namespace authorizationrule', 'eventhubs namespace authorizationrule keys list', 'eventhubs namespace authorizationrule keys renew']: - with self.argument_context(scope) as c: - c.argument('authorization_rule_name', options_list=['--name', '-n'], help='name of the Namespace AuthorizationRule') - - with self.argument_context('eventhubs namespace authorizationrule create') as c: - c.argument('accessrights', options_list=['--access-rights'], arg_type=get_enum_type(['Send', 'Listen', 'Manage']), help='Authorization rule rights of type list') - - with self.argument_context('eventhubs namespace authorizationrule keys renew') as c: - c.argument('key_type', options_list=['--key-name'], arg_type=get_enum_type(['PrimaryKey', 'SecondaryKey']), help='specifies Primary or Secondary key needs to be reset') - - -# region - Eventhub Create -def load_arguments_eventhub(self, _): - with self.argument_context('eventhubs eventhub') as c: - c.argument('event_hub_name', options_list=['--name', '-n'], help='Name of Eventhub') - - with self.argument_context('eventhubs eventhub create') as c: - c.argument('message_retention_in_days', options_list=['--message-retention-in-days'], type=int, help='Number of days to retain the events for this Event Hub, value should be 1 to 7 days') - c.argument('partition_count', options_list=['--partition-count'], type=int, help='Number of partitions created for the Event Hub, allowed values are from 1 to 32 partitions.') - c.argument('status', options_list=['--status'], arg_type=get_enum_type(['Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', 'Renaming', 'Unknown']), help='Status of Eventhub') - c.argument('enabled', options_list=['--enabled'], type=bool, help='A value that indicates whether capture description is enabled.') - c.argument('encoding', options_list=['--encoding'], arg_type=get_enum_type(['Avro']), help='Enumerates the possible values for the encoding format of capture description.') - c.argument('capture_interval_seconds', type=int, options_list=['--capture-interval-seconds'], help='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') - c.argument('capture_size_limit_bytes', options_list=['--capture-size-limit-bytes'], type=int, help='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') - c.argument('destination_name', options_list=['--destination-name'], help='Name for capture destination') - c.argument('storage_account_resource_id', options_list=['--storage-account-resource-id'], help='Resource id of the storage account to be used to create the blobs') - c.argument('blob_container', options_list=['--blob-container'], help='Blob container Name') - c.argument('archive_name_format', options_list=['--archive-name-format'], help='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') - - # region EventHub Authorizationrule - for scope in ['eventhubs eventhub authorizationrule', 'eventhubs eventhub authorizationrule keys list', 'eventhubs eventhub authorizationrule keys renew']: - with self.argument_context(scope) as c: - c.argument('authorization_rule_name', options_list=['--name', '-n'], help='name of the EventHub AuthorizationRule') - c.argument('event_hub_name', options_list=['--event-hub-name'], help='name of the EventHub') - - with self.argument_context('eventhubs eventhub authorizationrule create') as c: - c.argument('accessrights', options_list=['--access-rights'], arg_type=get_enum_type(['Send', 'Listen', 'Manage']), help='AuthorizationRule rights of type list') - - with self.argument_context('eventhubs eventhub authorizationrule keys renew') as c: - c.argument('key_type', options_list=['--key-name'], arg_type=get_enum_type(['PrimaryKey', 'SecondaryKey'])) - - -# - ConsumerGroup Region -def load_arguments_consumergroup(self, _): - with self.argument_context('eventhubs consumergroup') as c: - c.argument('event_hub_name', options_list=['--event-hub-name'], help='name of the Eventhub') - c.argument('consumer_group_name', options_list=['--name', '-n'], help='Name of ConsumerGroup') - - with self.argument_context('eventhubs consumergroup create') as c: - c.argument('user_metadata', options_list=['--user-metadata'], help='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.') - - with self.argument_context('eventhubs consumergroup list') as c: - c.argument('event_hub_name', options_list=['--event-hub-name'], help='name of the EventHub') - - -# : Region -def load_arguments_geodr(self, _): - with self.argument_context('eventhubs georecovery-alias') as c: - c.argument('alias', options_list=['--alias'], help='Name of the Alias (Disaster Recovery)') - - with self.argument_context('eventhubs georecovery-alias exists') as c: - c.argument('name', options_list=['--name', '-n'], help='Name of the Geo Recovery Configs - Alias to check availability') - - with self.argument_context('eventhubs georecovery-alias create') as c: - c.argument('partner_namespace', options_list=['--partner-namespace'], help='ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing') - c.argument('alternate_name', options_list=['--alternate-name'], help='Alternate Name for the Alias, when the Namespace name and Alias name are same') - - for scope in ['eventhubs georecovery-alias authorizationrule show', 'eventhubs georecovery-alias authorizationrule keys lists']: - with self.argument_context(scope)as c: - c.argument('authorization_rule_name', options_list=['--name', '-n'], help='name of the Namespace AuthorizationRule') diff --git a/src/eventhubs/azext_eventhub/_utils.py b/src/eventhubs/azext_eventhub/_utils.py deleted file mode 100644 index 9f85ade7392..00000000000 --- a/src/eventhubs/azext_eventhub/_utils.py +++ /dev/null @@ -1,18 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from azext_eventhub.eventhub.models.event_hub_management_client_enums import AccessRights - - -def accessrights_converter(accessrights): - accessrights_new = [] - if accessrights == 'Send': - accessrights_new.append(AccessRights.send) - if accessrights == 'Manage': - accessrights_new.append(AccessRights.manage) - if accessrights == 'Listen': - accessrights_new.append(AccessRights.listen) - - return accessrights_new diff --git a/src/eventhubs/azext_eventhub/azext_metadata.json b/src/eventhubs/azext_eventhub/azext_metadata.json deleted file mode 100644 index bbe67260f34..00000000000 --- a/src/eventhubs/azext_eventhub/azext_metadata.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "azext.minCliCoreVersion": "2.0.24" -} \ No newline at end of file diff --git a/src/eventhubs/azext_eventhub/commands.py b/src/eventhubs/azext_eventhub/commands.py deleted file mode 100644 index e63c1e4f40c..00000000000 --- a/src/eventhubs/azext_eventhub/commands.py +++ /dev/null @@ -1,93 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -# pylint: disable=line-too-long -# pylint: disable=too-many-statements - -from azure.cli.core.commands import CliCommandType -from azext_eventhub._client_factory import (namespaces_mgmt_client_factory, event_hub_mgmt_client_factory, - consumer_groups_mgmt_client_factory, - disaster_recovery_mgmt_client_factory) -from .custom import empty_on_404 - - -def load_command_table(self, _): - - eh_namespace_util = CliCommandType( - operations_tmpl='azext_eventhub.eventhub.operations.namespaces_operations#NamespacesOperations.{}', - client_factory=namespaces_mgmt_client_factory, - client_arg_name='self' - ) - - eh_event_hub_util = CliCommandType( - operations_tmpl='azext_eventhub.eventhub.operations.event_hubs_operations#EventHubsOperations.{}', - client_factory=event_hub_mgmt_client_factory, - client_arg_name='self' - ) - - eh_consumer_groups_util = CliCommandType( - operations_tmpl='azext_eventhub.eventhub.operations.consumer_groups_operations#ConsumerGroupsOperations.{}', - client_factory=consumer_groups_mgmt_client_factory, - client_arg_name='self' - ) - - eh_geodr_util = CliCommandType( - operations_tmpl='azext_eventhub.eventhub.operations.disaster_recovery_configs_operations#DisasterRecoveryConfigsOperations.{}', - client_factory=disaster_recovery_mgmt_client_factory, - client_arg_name='self' - ) - -# Namespace Region - with self.command_group('eventhubs namespace', eh_namespace_util, client_factory=namespaces_mgmt_client_factory) as g: - g.custom_command('create', 'cli_namespace_create') - g.command('show', 'get', exception_handler=empty_on_404) - g.custom_command('list', 'cli_namespace_list', exception_handler=empty_on_404) - g.command('delete', 'delete') - g.command('exists', 'check_name_availability') - - with self.command_group('eventhubs namespace authorizationrule', eh_namespace_util, client_factory=namespaces_mgmt_client_factory) as g: - g.custom_command('create', 'cli_namespaceautho_create') - g.command('show', 'get_authorization_rule', exception_handler=empty_on_404) - g.command('list', 'list_authorization_rules', exception_handler=empty_on_404) - g.command('keys list', 'list_keys') - g.command('keys renew', 'regenerate_keys') - g.command('delete', 'delete_authorization_rule') - -# EventHub Region - with self.command_group('eventhubs eventhub', eh_event_hub_util, client_factory=event_hub_mgmt_client_factory) as g: - g.custom_command('create', 'cli_eheventhub_create') - g.command('show', 'get', exception_handler=empty_on_404) - g.command('list', 'list_by_namespace', exception_handler=empty_on_404) - g.command('delete', 'delete') - - with self.command_group('eventhubs eventhub authorizationrule', eh_event_hub_util, client_factory=event_hub_mgmt_client_factory) as g: - g.custom_command('create', 'cli_eheventhubautho_create') - g.command('show', 'get_authorization_rule', exception_handler=empty_on_404) - g.command('list', 'list_authorization_rules', exception_handler=empty_on_404) - g.command('keys list', 'list_keys') - g.command('keys renew', 'regenerate_keys') - g.command('delete', 'delete_authorization_rule') - -# ConsumerGroup Region - with self.command_group('eventhubs consumergroup', eh_consumer_groups_util, client_factory=consumer_groups_mgmt_client_factory) as g: - g.command('create', 'create_or_update') - g.command('show', 'get', exception_handler=empty_on_404) - g.command('list', 'list_by_event_hub', exception_handler=empty_on_404) - g.command('delete', 'delete') - -# DisasterRecoveryConfigs Region - with self.command_group('eventhubs georecovery-alias', eh_geodr_util, client_factory=disaster_recovery_mgmt_client_factory) as g: - g.command('create', 'create_or_update') - g.command('show', 'get', exception_handler=empty_on_404) - g.command('list', 'list', exception_handler=empty_on_404) - g.command('break-pair', 'break_pairing') - g.command('fail-over', 'fail_over') - g.command('exists', 'check_name_availability') - g.command('delete', 'delete') - - with self.command_group('eventhubs georecovery-alias authorizationrule', eh_geodr_util, client_factory=disaster_recovery_mgmt_client_factory) as g: - g.command('list', 'list_authorization_rules') - g.command('show', 'get_authorization_rule') - g.command('keys list', 'list_keys') diff --git a/src/eventhubs/azext_eventhub/custom.py b/src/eventhubs/azext_eventhub/custom.py deleted file mode 100644 index 489d4f166a2..00000000000 --- a/src/eventhubs/azext_eventhub/custom.py +++ /dev/null @@ -1,82 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -# pylint: disable=line-too-long -# pylint: disable=too-many-lines - -from azext_eventhub._utils import accessrights_converter - -from azext_eventhub.eventhub.models import (EHNamespace, Sku, Eventhub, CaptureDescription, Destination) - - -# Namespace Region -def cli_namespace_create(client, resource_group_name, namespace_name, location, tags=None, sku='Standard', skutier=None, capacity=None, is_auto_inflate_enabled=None, maximum_throughput_units=None): - return client.create_or_update(resource_group_name, namespace_name, EHNamespace(location, tags, - Sku(sku, - skutier, - capacity), is_auto_inflate_enabled, maximum_throughput_units)) - - -def cli_namespace_list(client, resource_group_name=None): - cmd_result = None - - if resource_group_name: - cmd_result = client.list_by_resource_group(resource_group_name) - - if not resource_group_name: - cmd_result = client.list() - - return cmd_result - - -# Namespace Authorization rule: -def cli_namespaceautho_create(client, resource_group_name, namespace_name, name, accessrights=None): - return client.create_or_update_authorization_rule(resource_group_name, namespace_name, name, - accessrights_converter(accessrights)) - - -# Eventhub Region -def cli_eheventhub_create(client, resource_group_name, namespace_name, name, message_retention_in_days=None, partition_count=None, status=None, - enabled=None, encoding=None, capture_interval_seconds=None, capture_size_limit_bytes=None, destination_name=None, storage_account_resource_id=None, blob_container=None, archive_name_format=None): - eventhubparameter1 = Eventhub() - if message_retention_in_days: - eventhubparameter1.message_retention_in_days = message_retention_in_days - - if partition_count: - eventhubparameter1.partition_count = partition_count - - if status: - eventhubparameter1.status = status - - if enabled and enabled is True: - eventhubparameter1.capture_description = CaptureDescription( - enabled=enabled, - encoding=encoding, - interval_in_seconds=capture_interval_seconds, - size_limit_in_bytes=capture_size_limit_bytes, - destination=Destination( - name=destination_name, - storage_account_resource_id=storage_account_resource_id, - blob_container=blob_container, - archive_name_format=archive_name_format) - ) - return client.create_or_update(resource_group_name, namespace_name, name, eventhubparameter1) - - -def cli_eheventhubautho_create(client, resource_group_name, namespace_name, event_hub_name, name, accessrights=None): - return client.create_or_update_authorization_rule(resource_group_name, namespace_name, event_hub_name, name, - accessrights_converter(accessrights)) - - -def cli_ehconsumergroup_create(client, resource_group_name, namespace_name, event_hub_name, name, user_metadata): - return client.create_or_update(resource_group_name, namespace_name, event_hub_name, name, user_metadata) - - -# pylint: disable=inconsistent-return-statements -def empty_on_404(ex): - from azext_eventhub.eventhub.models import ErrorResponseException - if isinstance(ex, ErrorResponseException) and ex.response.status_code == 404: - return None - raise ex diff --git a/src/eventhubs/azext_eventhub/eventhub/__init__.py b/src/eventhubs/azext_eventhub/eventhub/__init__.py deleted file mode 100644 index ba4a2e57961..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/__init__.py +++ /dev/null @@ -1,17 +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 .event_hub_management_client import EventHubManagementClient -from .version import VERSION - -__all__ = ['EventHubManagementClient'] - -__version__ = VERSION diff --git a/src/eventhubs/azext_eventhub/eventhub/event_hub_management_client.py b/src/eventhubs/azext_eventhub/eventhub/event_hub_management_client.py deleted file mode 100644 index 71a30fe7027..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/event_hub_management_client.py +++ /dev/null @@ -1,105 +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 msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.operations import Operations -from .operations.namespaces_operations import NamespacesOperations -from .operations.disaster_recovery_configs_operations import DisasterRecoveryConfigsOperations -from .operations.event_hubs_operations import EventHubsOperations -from .operations.consumer_groups_operations import ConsumerGroupsOperations -from . import models - - -class EventHubManagementClientConfiguration(AzureConfiguration): - """Configuration for EventHubManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: Subscription credentials that uniquely identify a - Microsoft Azure subscription. The subscription ID forms part of the URI - for every service call. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(EventHubManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-eventhub/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - - -class EventHubManagementClient(object): - """Azure Event Hubs client - - :ivar config: Configuration for client. - :vartype config: EventHubManagementClientConfiguration - - :ivar operations: Operations operations - :vartype operations: azure.mgmt.eventhub.operations.Operations - :ivar namespaces: Namespaces operations - :vartype namespaces: azure.mgmt.eventhub.operations.NamespacesOperations - :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 - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: Subscription credentials that uniquely identify a - Microsoft Azure subscription. The subscription ID forms part of the URI - for every service call. - :type subscription_id: str - :param str base_url: Service URL - """ - - 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) - - client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2017-04-01' - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.operations = Operations( - self._client, self.config, self._serialize, self._deserialize) - self.namespaces = NamespacesOperations( - 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) diff --git a/src/eventhubs/azext_eventhub/eventhub/models/__init__.py b/src/eventhubs/azext_eventhub/eventhub/models/__init__.py deleted file mode 100644 index 4b11427822c..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/__init__.py +++ /dev/null @@ -1,80 +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 -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 .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 .event_hub_management_client_enums import ( - SkuName, - SkuTier, - AccessRights, - KeyType, - EntityStatus, - EncodingCaptureDescription, - UnavailableReason, - ProvisioningStateDR, - RoleDisasterRecovery, -) - -__all__ = [ - 'TrackedResource', - 'Resource', - 'Sku', - 'EHNamespace', - 'AuthorizationRule', - 'AccessKeys', - 'RegenerateAccessKeyParameters', - 'Destination', - 'CaptureDescription', - 'Eventhub', - 'ConsumerGroup', - 'CheckNameAvailabilityParameter', - 'CheckNameAvailabilityResult', - 'OperationDisplay', - 'Operation', - 'ErrorResponse', 'ErrorResponseException', - 'ArmDisasterRecovery', - 'OperationPaged', - 'EHNamespacePaged', - 'AuthorizationRulePaged', - 'ArmDisasterRecoveryPaged', - 'EventhubPaged', - 'ConsumerGroupPaged', - 'SkuName', - 'SkuTier', - 'AccessRights', - 'KeyType', - 'EntityStatus', - 'EncodingCaptureDescription', - 'UnavailableReason', - 'ProvisioningStateDR', - 'RoleDisasterRecovery', -] diff --git a/src/eventhubs/azext_eventhub/eventhub/models/access_keys.py b/src/eventhubs/azext_eventhub/eventhub/models/access_keys.py deleted file mode 100644 index 3cd0e415dde..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/access_keys.py +++ /dev/null @@ -1,70 +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 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): - 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/src/eventhubs/azext_eventhub/eventhub/models/arm_disaster_recovery.py b/src/eventhubs/azext_eventhub/eventhub/models/arm_disaster_recovery.py deleted file mode 100644 index 116320fdf73..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/arm_disaster_recovery.py +++ /dev/null @@ -1,68 +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 .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=None, alternate_name=None): - super(ArmDisasterRecovery, self).__init__() - self.provisioning_state = None - self.partner_namespace = partner_namespace - self.alternate_name = alternate_name - self.role = None diff --git a/src/eventhubs/azext_eventhub/eventhub/models/arm_disaster_recovery_paged.py b/src/eventhubs/azext_eventhub/eventhub/models/arm_disaster_recovery_paged.py deleted file mode 100644 index bdd10227b64..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/arm_disaster_recovery_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class ArmDisasterRecoveryPaged(Paged): - """ - A paging container for iterating over a list of :class:`ArmDisasterRecovery ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ArmDisasterRecovery]'} - } - - def __init__(self, *args, **kwargs): - - super(ArmDisasterRecoveryPaged, self).__init__(*args, **kwargs) diff --git a/src/eventhubs/azext_eventhub/eventhub/models/authorization_rule.py b/src/eventhubs/azext_eventhub/eventhub/models/authorization_rule.py deleted file mode 100644 index 9df5d358d98..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/authorization_rule.py +++ /dev/null @@ -1,47 +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 .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. - - :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. - :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): - super(AuthorizationRule, self).__init__() - self.rights = rights diff --git a/src/eventhubs/azext_eventhub/eventhub/models/authorization_rule_paged.py b/src/eventhubs/azext_eventhub/eventhub/models/authorization_rule_paged.py deleted file mode 100644 index 584b91a033a..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/authorization_rule_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class AuthorizationRulePaged(Paged): - """ - A paging container for iterating over a list of :class:`AuthorizationRule ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[AuthorizationRule]'} - } - - def __init__(self, *args, **kwargs): - - super(AuthorizationRulePaged, self).__init__(*args, **kwargs) diff --git a/src/eventhubs/azext_eventhub/eventhub/models/capture_description.py b/src/eventhubs/azext_eventhub/eventhub/models/capture_description.py deleted file mode 100644 index 6d629cdde79..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/capture_description.py +++ /dev/null @@ -1,56 +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 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. 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=None, encoding=None, interval_in_seconds=None, size_limit_in_bytes=None, destination=None): - 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/src/eventhubs/azext_eventhub/eventhub/models/check_name_availability_parameter.py b/src/eventhubs/azext_eventhub/eventhub/models/check_name_availability_parameter.py deleted file mode 100644 index e633b101641..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/check_name_availability_parameter.py +++ /dev/null @@ -1,31 +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 msrest.serialization import Model - - -class CheckNameAvailabilityParameter(Model): - """Parameter supplied to check Namespace name availability operation . - - :param name: 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): - self.name = name diff --git a/src/eventhubs/azext_eventhub/eventhub/models/check_name_availability_result.py b/src/eventhubs/azext_eventhub/eventhub/models/check_name_availability_result.py deleted file mode 100644 index 9dd4bb1f109..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/check_name_availability_result.py +++ /dev/null @@ -1,46 +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 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=None, reason=None): - self.message = None - self.name_available = name_available - self.reason = reason diff --git a/src/eventhubs/azext_eventhub/eventhub/models/consumer_group.py b/src/eventhubs/azext_eventhub/eventhub/models/consumer_group.py deleted file mode 100644 index 54f44f7b3ce..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/consumer_group.py +++ /dev/null @@ -1,59 +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 .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=None): - super(ConsumerGroup, self).__init__() - self.created_at = None - self.updated_at = None - self.user_metadata = user_metadata diff --git a/src/eventhubs/azext_eventhub/eventhub/models/consumer_group_paged.py b/src/eventhubs/azext_eventhub/eventhub/models/consumer_group_paged.py deleted file mode 100644 index 9284a0f4163..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/consumer_group_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class ConsumerGroupPaged(Paged): - """ - A paging container for iterating over a list of :class:`ConsumerGroup ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ConsumerGroup]'} - } - - def __init__(self, *args, **kwargs): - - super(ConsumerGroupPaged, self).__init__(*args, **kwargs) diff --git a/src/eventhubs/azext_eventhub/eventhub/models/destination.py b/src/eventhubs/azext_eventhub/eventhub/models/destination.py deleted file mode 100644 index 7bdacd2cb1a..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/destination.py +++ /dev/null @@ -1,43 +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 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=None, storage_account_resource_id=None, blob_container=None, archive_name_format=None): - 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/src/eventhubs/azext_eventhub/eventhub/models/eh_namespace.py b/src/eventhubs/azext_eventhub/eventhub/models/eh_namespace.py deleted file mode 100644 index 7b05c4d6d48..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/eh_namespace.py +++ /dev/null @@ -1,90 +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 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=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 - 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/src/eventhubs/azext_eventhub/eventhub/models/eh_namespace_paged.py b/src/eventhubs/azext_eventhub/eventhub/models/eh_namespace_paged.py deleted file mode 100644 index b4e66e5f7e9..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/eh_namespace_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class EHNamespacePaged(Paged): - """ - A paging container for iterating over a list of :class:`EHNamespace ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[EHNamespace]'} - } - - def __init__(self, *args, **kwargs): - - super(EHNamespacePaged, self).__init__(*args, **kwargs) diff --git a/src/eventhubs/azext_eventhub/eventhub/models/error_response.py b/src/eventhubs/azext_eventhub/eventhub/models/error_response.py deleted file mode 100644 index 5d51f399861..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/error_response.py +++ /dev/null @@ -1,45 +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 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=None, message=None): - 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/src/eventhubs/azext_eventhub/eventhub/models/event_hub_management_client_enums.py b/src/eventhubs/azext_eventhub/eventhub/models/event_hub_management_client_enums.py deleted file mode 100644 index ac7264c6e77..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/event_hub_management_client_enums.py +++ /dev/null @@ -1,80 +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 enum import Enum - - -class SkuName(Enum): - - basic = "Basic" - standard = "Standard" - - -class SkuTier(Enum): - - basic = "Basic" - standard = "Standard" - - -class AccessRights(Enum): - - manage = "Manage" - send = "Send" - listen = "Listen" - - -class KeyType(Enum): - - primary_key = "PrimaryKey" - secondary_key = "SecondaryKey" - - -class EntityStatus(Enum): - - active = "Active" - disabled = "Disabled" - restoring = "Restoring" - send_disabled = "SendDisabled" - receive_disabled = "ReceiveDisabled" - creating = "Creating" - deleting = "Deleting" - renaming = "Renaming" - unknown = "Unknown" - - -class EncodingCaptureDescription(Enum): - - avro = "Avro" - avro_deflate = "AvroDeflate" - - -class UnavailableReason(Enum): - - none = "None" - invalid_name = "InvalidName" - subscription_is_disabled = "SubscriptionIsDisabled" - name_in_use = "NameInUse" - name_in_lockdown = "NameInLockdown" - too_many_namespace_in_current_subscription = "TooManyNamespaceInCurrentSubscription" - - -class ProvisioningStateDR(Enum): - - accepted = "Accepted" - succeeded = "Succeeded" - failed = "Failed" - - -class RoleDisasterRecovery(Enum): - - primary = "Primary" - primary_not_replicating = "PrimaryNotReplicating" - secondary = "Secondary" diff --git a/src/eventhubs/azext_eventhub/eventhub/models/eventhub.py b/src/eventhubs/azext_eventhub/eventhub/models/eventhub.py deleted file mode 100644 index 5e9aff617d4..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/eventhub.py +++ /dev/null @@ -1,80 +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 .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=None, partition_count=None, status=None, capture_description=None): - super(Eventhub, self).__init__() - 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/src/eventhubs/azext_eventhub/eventhub/models/eventhub_paged.py b/src/eventhubs/azext_eventhub/eventhub/models/eventhub_paged.py deleted file mode 100644 index c3627a7bab1..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/eventhub_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class EventhubPaged(Paged): - """ - A paging container for iterating over a list of :class:`Eventhub ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Eventhub]'} - } - - def __init__(self, *args, **kwargs): - - super(EventhubPaged, self).__init__(*args, **kwargs) diff --git a/src/eventhubs/azext_eventhub/eventhub/models/operation.py b/src/eventhubs/azext_eventhub/eventhub/models/operation.py deleted file mode 100644 index c625335b114..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/operation.py +++ /dev/null @@ -1,38 +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 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): - self.name = None - self.display = display diff --git a/src/eventhubs/azext_eventhub/eventhub/models/operation_display.py b/src/eventhubs/azext_eventhub/eventhub/models/operation_display.py deleted file mode 100644 index 6d2846dc981..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/operation_display.py +++ /dev/null @@ -1,45 +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 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): - self.provider = None - self.resource = None - self.operation = None diff --git a/src/eventhubs/azext_eventhub/eventhub/models/operation_paged.py b/src/eventhubs/azext_eventhub/eventhub/models/operation_paged.py deleted file mode 100644 index 3fbb5521d2e..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/operation_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/src/eventhubs/azext_eventhub/eventhub/models/regenerate_access_key_parameters.py b/src/eventhubs/azext_eventhub/eventhub/models/regenerate_access_key_parameters.py deleted file mode 100644 index 3e526ab736f..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/regenerate_access_key_parameters.py +++ /dev/null @@ -1,38 +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 msrest.serialization import Model - - -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' - :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=None): - self.key_type = key_type - self.key = key diff --git a/src/eventhubs/azext_eventhub/eventhub/models/resource.py b/src/eventhubs/azext_eventhub/eventhub/models/resource.py deleted file mode 100644 index 74f2f6956a5..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/resource.py +++ /dev/null @@ -1,44 +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 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): - self.id = None - self.name = None - self.type = None diff --git a/src/eventhubs/azext_eventhub/eventhub/models/sku.py b/src/eventhubs/azext_eventhub/eventhub/models/sku.py deleted file mode 100644 index 250a2b2ed06..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/sku.py +++ /dev/null @@ -1,43 +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 msrest.serialization import Model - - -class Sku(Model): - """SKU parameters supplied to the create namespace operation. - - :param name: 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=None): - self.name = name - self.tier = tier - self.capacity = capacity diff --git a/src/eventhubs/azext_eventhub/eventhub/models/tracked_resource.py b/src/eventhubs/azext_eventhub/eventhub/models/tracked_resource.py deleted file mode 100644 index 1de5cd2d21b..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/models/tracked_resource.py +++ /dev/null @@ -1,50 +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 .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=None, tags=None): - super(TrackedResource, self).__init__() - self.location = location - self.tags = tags diff --git a/src/eventhubs/azext_eventhub/eventhub/operations/__init__.py b/src/eventhubs/azext_eventhub/eventhub/operations/__init__.py deleted file mode 100644 index 754191f262b..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/operations/__init__.py +++ /dev/null @@ -1,24 +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 .operations import Operations -from .namespaces_operations import NamespacesOperations -from .disaster_recovery_configs_operations import DisasterRecoveryConfigsOperations -from .event_hubs_operations import EventHubsOperations -from .consumer_groups_operations import ConsumerGroupsOperations - -__all__ = [ - 'Operations', - 'NamespacesOperations', - 'DisasterRecoveryConfigsOperations', - 'EventHubsOperations', - 'ConsumerGroupsOperations', -] diff --git a/src/eventhubs/azext_eventhub/eventhub/operations/consumer_groups_operations.py b/src/eventhubs/azext_eventhub/eventhub/operations/consumer_groups_operations.py deleted file mode 100644 index 396c9144be0..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/operations/consumer_groups_operations.py +++ /dev/null @@ -1,317 +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 .. import models - - -class ConsumerGroupsOperations(object): - """ConsumerGroupsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec 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 create_or_update( - self, resource_group_name, namespace_name, event_hub_name, consumer_group_name, user_metadata=None, custom_headers=None, raw=False, **operation_config): - """Creates or updates an Event Hubs consumer group as a nested resource - within a 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 event_hub_name: The Event Hub name - :type event_hub_name: str - :param consumer_group_name: The consumer group name - :type consumer_group_name: str - :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 - :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: ConsumerGroup or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.ConsumerGroup or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.ConsumerGroup(user_metadata=user_metadata) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}' - 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), - 'eventHubName': self._serialize.url("event_hub_name", event_hub_name, 'str', min_length=1), - 'consumerGroupName': self._serialize.url("consumer_group_name", consumer_group_name, 'str', max_length=50, min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'ConsumerGroup') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('ConsumerGroup', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete( - self, resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers=None, raw=False, **operation_config): - """Deletes a consumer group from the specified Event Hub and resource - group. - - :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 event_hub_name: The Event Hub name - :type event_hub_name: str - :param consumer_group_name: The consumer group name - :type consumer_group_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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}' - 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), - 'eventHubName': self._serialize.url("event_hub_name", event_hub_name, 'str', min_length=1), - 'consumerGroupName': self._serialize.url("consumer_group_name", consumer_group_name, 'str', max_length=50, min_length=1), - '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.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get( - self, resource_group_name, namespace_name, event_hub_name, consumer_group_name, custom_headers=None, raw=False, **operation_config): - """Gets a description for the specified consumer group. - - :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 event_hub_name: The Event Hub name - :type event_hub_name: str - :param consumer_group_name: The consumer group name - :type consumer_group_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: ConsumerGroup or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.ConsumerGroup or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}' - 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), - 'eventHubName': self._serialize.url("event_hub_name", event_hub_name, 'str', min_length=1), - 'consumerGroupName': self._serialize.url("consumer_group_name", consumer_group_name, 'str', max_length=50, min_length=1), - '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, **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('ConsumerGroup', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_by_event_hub( - self, resource_group_name, namespace_name, event_hub_name, 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. - - :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 event_hub_name: The Event Hub name - :type event_hub_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: An iterator like instance of ConsumerGroup - :rtype: - ~azure.mgmt.eventhub.models.ConsumerGroupPaged[~azure.mgmt.eventhub.models.ConsumerGroup] - :raises: - :class:`ErrorResponseException` - """ - 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' - 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), - 'eventHubName': self._serialize.url("event_hub_name", event_hub_name, 'str', min_length=1), - '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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.ConsumerGroupPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ConsumerGroupPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized diff --git a/src/eventhubs/azext_eventhub/eventhub/operations/disaster_recovery_configs_operations.py b/src/eventhubs/azext_eventhub/eventhub/operations/disaster_recovery_configs_operations.py deleted file mode 100644 index 0c84a6938c8..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/operations/disaster_recovery_configs_operations.py +++ /dev/null @@ -1,694 +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 .. import models - - -class DisasterRecoveryConfigsOperations(object): - """DisasterRecoveryConfigsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec 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 check_name_availability( - self, resource_group_name, namespace_name, name, custom_headers=None, raw=False, **operation_config): - """Check the give Namespace name availability. - - :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 name: Name to check the namespace name availability - :type 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: CheckNameAvailabilityResult or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.CheckNameAvailabilityResult or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.CheckNameAvailabilityParameter(name=name) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/CheckNameAvailability' - 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), - 'namespaceName': self._serialize.url("namespace_name", namespace_name, 'str', max_length=50, min_length=6) - } - 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 body - body_content = self._serialize.body(parameters, 'CheckNameAvailabilityParameter') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('CheckNameAvailabilityResult', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list( - self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): - """Gets all Alias(Disaster Recovery configurations). - - :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: An iterator like instance of ArmDisasterRecovery - :rtype: - ~azure.mgmt.eventhub.models.ArmDisasterRecoveryPaged[~azure.mgmt.eventhub.models.ArmDisasterRecovery] - :raises: - :class:`ErrorResponseException` - """ - 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' - 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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.ArmDisasterRecoveryPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ArmDisasterRecoveryPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, namespace_name, alias, partner_namespace=None, alternate_name=None, custom_headers=None, raw=False, **operation_config): - """Creates or updates a new Alias(Disaster Recovery configuration). - - :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 alias: The Disaster Recovery configuration name - :type alias: str - :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 - :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: ArmDisasterRecovery or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.ArmDisasterRecovery or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - 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}' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'ArmDisasterRecovery') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ArmDisasterRecovery', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete( - self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): - """Deletes an Alias(Disaster Recovery configuration). - - :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 alias: The Disaster Recovery configuration name - :type alias: 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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - '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.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get( - self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): - """Retrieves Alias(Disaster Recovery configuration) for primary or - secondary 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 alias: The Disaster Recovery configuration name - :type alias: 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: ArmDisasterRecovery or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.ArmDisasterRecovery or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - '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, **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('ArmDisasterRecovery', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def break_pairing( - self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): - """This operation disables the Disaster Recovery and stops replicating - changes from primary to secondary namespaces. - - :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 alias: The Disaster Recovery configuration name - :type alias: 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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/breakPairing' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - '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.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def fail_over( - self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): - """envokes GEO DR failover and reconfigure the alias to point to the - secondary 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 alias: The Disaster Recovery configuration name - :type alias: 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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/failover' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - '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.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def list_authorization_rules( - self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): - """Gets a list of authorization rules for a 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 alias: The Disaster Recovery configuration name - :type alias: 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 AuthorizationRule - :rtype: - ~azure.mgmt.eventhub.models.AuthorizationRulePaged[~azure.mgmt.eventhub.models.AuthorizationRule] - :raises: - :class:`ErrorResponseException` - """ - 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' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - '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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.AuthorizationRulePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.AuthorizationRulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get_authorization_rule( - self, resource_group_name, namespace_name, alias, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Gets an AuthorizationRule for a Namespace by rule name. - - :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 alias: The Disaster Recovery configuration name - :type alias: str - :param authorization_rule_name: The authorization rule name. - :type authorization_rule_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: AuthorizationRule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.AuthorizationRule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules/{authorizationRuleName}' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', min_length=1), - '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, **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('AuthorizationRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_keys( - self, resource_group_name, namespace_name, alias, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Gets the primary and secondary connection strings for the 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 alias: The Disaster Recovery configuration name - :type alias: str - :param authorization_rule_name: The authorization rule name. - :type authorization_rule_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: AccessKeys or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.AccessKeys or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules/{authorizationRuleName}/listKeys' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', min_length=1), - '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.post(url, query_parameters) - response = self._client.send(request, header_parameters, **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('AccessKeys', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized diff --git a/src/eventhubs/azext_eventhub/eventhub/operations/event_hubs_operations.py b/src/eventhubs/azext_eventhub/eventhub/operations/event_hubs_operations.py deleted file mode 100644 index af6bdfa3cdd..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/operations/event_hubs_operations.py +++ /dev/null @@ -1,719 +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 .. import models - - -class EventHubsOperations(object): - """EventHubsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec 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_namespace( - self, resource_group_name, namespace_name, 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 - 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: An iterator like instance of Eventhub - :rtype: - ~azure.mgmt.eventhub.models.EventhubPaged[~azure.mgmt.eventhub.models.Eventhub] - :raises: - :class:`ErrorResponseException` - """ - 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' - 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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.EventhubPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.EventhubPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, namespace_name, event_hub_name, parameters, custom_headers=None, raw=False, **operation_config): - """Creates or updates a new Event Hub as a nested resource within a - 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 event_hub_name: The Event Hub name - :type event_hub_name: str - :param parameters: Parameters supplied to create an Event Hub - resource. - :type parameters: ~azure.mgmt.eventhub.models.Eventhub - :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: Eventhub or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.Eventhub or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}' - 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), - 'eventHubName': self._serialize.url("event_hub_name", event_hub_name, 'str', min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'Eventhub') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('Eventhub', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete( - self, resource_group_name, namespace_name, event_hub_name, custom_headers=None, raw=False, **operation_config): - """Deletes an Event Hub from the specified Namespace and resource group. - - :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 event_hub_name: The Event Hub name - :type event_hub_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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}' - 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), - 'eventHubName': self._serialize.url("event_hub_name", event_hub_name, 'str', min_length=1), - '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.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get( - self, resource_group_name, namespace_name, event_hub_name, custom_headers=None, raw=False, **operation_config): - """Gets an Event Hubs description for the specified Event Hub. - - :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 event_hub_name: The Event Hub name - :type event_hub_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: Eventhub or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.Eventhub or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}' - 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), - 'eventHubName': self._serialize.url("event_hub_name", event_hub_name, 'str', min_length=1), - '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, **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('Eventhub', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_authorization_rules( - self, resource_group_name, namespace_name, event_hub_name, custom_headers=None, raw=False, **operation_config): - """Gets the authorization rules for an Event Hub. - - :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 event_hub_name: The Event Hub name - :type event_hub_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: An iterator like instance of AuthorizationRule - :rtype: - ~azure.mgmt.eventhub.models.AuthorizationRulePaged[~azure.mgmt.eventhub.models.AuthorizationRule] - :raises: - :class:`ErrorResponseException` - """ - 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' - 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), - 'eventHubName': self._serialize.url("event_hub_name", event_hub_name, 'str', min_length=1), - '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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.AuthorizationRulePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.AuthorizationRulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - 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): - """Creates or updates an AuthorizationRule for the specified Event Hub. - - :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 event_hub_name: The Event Hub name - :type event_hub_name: str - :param authorization_rule_name: The authorization rule name. - :type authorization_rule_name: str - :param rights: The rights associated with the rule. - :type rights: list[str or ~azure.mgmt.eventhub.models.AccessRights] - :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: AuthorizationRule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.AuthorizationRule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.AuthorizationRule(rights=rights) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}' - 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), - 'eventHubName': self._serialize.url("event_hub_name", event_hub_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'AuthorizationRule') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('AuthorizationRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_authorization_rule( - self, resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Gets an AuthorizationRule for an Event Hub by rule name. - - :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 event_hub_name: The Event Hub name - :type event_hub_name: str - :param authorization_rule_name: The authorization rule name. - :type authorization_rule_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: AuthorizationRule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.AuthorizationRule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}' - 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), - 'eventHubName': self._serialize.url("event_hub_name", event_hub_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', min_length=1), - '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, **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('AuthorizationRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete_authorization_rule( - self, resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Deletes an Event Hub AuthorizationRule. - - :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 event_hub_name: The Event Hub name - :type event_hub_name: str - :param authorization_rule_name: The authorization rule name. - :type authorization_rule_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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}' - 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), - 'eventHubName': self._serialize.url("event_hub_name", event_hub_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', min_length=1), - '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.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def list_keys( - self, resource_group_name, namespace_name, event_hub_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Gets the ACS and SAS connection strings for the Event Hub. - - :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 event_hub_name: The Event Hub name - :type event_hub_name: str - :param authorization_rule_name: The authorization rule name. - :type authorization_rule_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: AccessKeys or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.AccessKeys or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/ListKeys' - 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), - 'eventHubName': self._serialize.url("event_hub_name", event_hub_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', min_length=1), - '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.post(url, query_parameters) - response = self._client.send(request, header_parameters, **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('AccessKeys', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - 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): - """Regenerates the ACS and SAS connection strings for the Event Hub. - - :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 event_hub_name: The Event Hub name - :type event_hub_name: str - :param authorization_rule_name: The authorization rule name. - :type authorization_rule_name: str - :param key_type: 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 - :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: AccessKeys or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.AccessKeys or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - 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' - 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), - 'eventHubName': self._serialize.url("event_hub_name", event_hub_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'RegenerateAccessKeyParameters') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('AccessKeys', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized diff --git a/src/eventhubs/azext_eventhub/eventhub/operations/namespaces_operations.py b/src/eventhubs/azext_eventhub/eventhub/operations/namespaces_operations.py deleted file mode 100644 index d5e64af2acb..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/operations/namespaces_operations.py +++ /dev/null @@ -1,937 +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_operation import AzureOperationPoller - -from .. import models - - -class NamespacesOperations(object): - """NamespacesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec 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 check_name_availability( - self, name, custom_headers=None, raw=False, **operation_config): - """Check the give Namespace name availability. - - :param name: Name to check the namespace name availability - :type 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: CheckNameAvailabilityResult or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.CheckNameAvailabilityResult or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.CheckNameAvailabilityParameter(name=name) - - # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/CheckNameAvailability' - path_format_arguments = { - '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 body - body_content = self._serialize.body(parameters, 'CheckNameAvailabilityParameter') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('CheckNameAvailabilityResult', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Lists all the available Namespaces within a subscription, irrespective - of the resource groups. - - :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 EHNamespace - :rtype: - ~azure.mgmt.eventhub.models.EHNamespacePaged[~azure.mgmt.eventhub.models.EHNamespace] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/namespaces' - path_format_arguments = { - '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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.EHNamespacePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.EHNamespacePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Lists the available Namespaces within a resource group. - - :param resource_group_name: Name of the resource group within the - azure subscription. - :type resource_group_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: An iterator like instance of EHNamespace - :rtype: - ~azure.mgmt.eventhub.models.EHNamespacePaged[~azure.mgmt.eventhub.models.EHNamespace] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces' - 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') - } - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.EHNamespacePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.EHNamespacePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, namespace_name, parameters, custom_headers=None, raw=False, **operation_config): - """Creates or updates a namespace. Once created, this namespace's resource - manifest is immutable. This operation is idempotent. - - :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 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 - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.eventhub.models.EHNamespace] - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}' - 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 body - body_content = self._serialize.body(parameters, 'EHNamespace') - - # Construct and send request - def long_running_send(): - - request = self._client.put(url, query_parameters) - return self._client.send( - request, header_parameters, body_content, **operation_config) - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - return self._client.send( - request, header_parameters, **operation_config) - - def get_long_running_output(response): - - if response.status_code not in [200, 201, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('EHNamespace', response) - if response.status_code == 201: - deserialized = self._deserialize('EHNamespace', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - if raw: - response = long_running_send() - return get_long_running_output(response) - - long_running_operation_timeout = 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) - - def delete( - self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): - """Deletes an existing namespace. This operation also removes all - associated resources under the 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 - :return: An instance of AzureOperationPoller that returns None or - ClientRawResponse if raw=true - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}' - 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 - def long_running_send(): - - request = self._client.delete(url, query_parameters) - return self._client.send(request, header_parameters, **operation_config) - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - return self._client.send( - request, header_parameters, **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 - - if raw: - response = long_running_send() - return get_long_running_output(response) - - long_running_operation_timeout = 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) - - def get( - self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): - """Gets the description of 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: EHNamespace or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.EHNamespace or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}' - 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, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('EHNamespace', response) - if response.status_code == 201: - deserialized = self._deserialize('EHNamespace', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def update( - self, resource_group_name, namespace_name, parameters, custom_headers=None, raw=False, **operation_config): - """Creates or updates a namespace. Once created, this namespace's resource - manifest is immutable. This operation is idempotent. - - :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 parameters: Parameters for updating 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 - :param operation_config: :ref:`Operation configuration - overrides`. - :return: EHNamespace or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.EHNamespace or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}' - 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 body - body_content = self._serialize.body(parameters, 'EHNamespace') - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200, 201, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('EHNamespace', response) - if response.status_code == 201: - deserialized = self._deserialize('EHNamespace', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - 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. - - :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: An iterator like instance of AuthorizationRule - :rtype: - ~azure.mgmt.eventhub.models.AuthorizationRulePaged[~azure.mgmt.eventhub.models.AuthorizationRule] - :raises: - :class:`ErrorResponseException` - """ - 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' - 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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.AuthorizationRulePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.AuthorizationRulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def create_or_update_authorization_rule( - self, resource_group_name, namespace_name, authorization_rule_name, rights, custom_headers=None, raw=False, **operation_config): - """Creates or updates an AuthorizationRule for a 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 authorization_rule_name: The authorization rule name. - :type authorization_rule_name: str - :param rights: The rights associated with the rule. - :type rights: list[str or ~azure.mgmt.eventhub.models.AccessRights] - :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: AuthorizationRule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.AuthorizationRule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.AuthorizationRule(rights=rights) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}' - 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), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'AuthorizationRule') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('AuthorizationRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete_authorization_rule( - self, resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Deletes an AuthorizationRule for a 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 authorization_rule_name: The authorization rule name. - :type authorization_rule_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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}' - 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), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', min_length=1), - '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.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_authorization_rule( - self, resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Gets an AuthorizationRule for a Namespace by rule name. - - :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 authorization_rule_name: The authorization rule name. - :type authorization_rule_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: AuthorizationRule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.AuthorizationRule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}' - 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), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', min_length=1), - '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, **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('AuthorizationRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_keys( - self, resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Gets the primary and secondary connection strings for the 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 authorization_rule_name: The authorization rule name. - :type authorization_rule_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: AccessKeys or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.AccessKeys or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys' - 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), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', min_length=1), - '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.post(url, query_parameters) - response = self._client.send(request, header_parameters, **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('AccessKeys', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def regenerate_keys( - self, resource_group_name, namespace_name, authorization_rule_name, key_type, key=None, custom_headers=None, raw=False, **operation_config): - """Regenerates the primary or secondary connection strings 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 authorization_rule_name: The authorization rule name. - :type authorization_rule_name: str - :param key_type: 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 - :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: AccessKeys or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.eventhub.models.AccessKeys or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.RegenerateAccessKeyParameters(key_type=key_type, key=key) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys' - 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), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'RegenerateAccessKeyParameters') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('AccessKeys', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized diff --git a/src/eventhubs/azext_eventhub/eventhub/operations/operations.py b/src/eventhubs/azext_eventhub/eventhub/operations/operations.py deleted file mode 100644 index 67c1bec87af..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/operations/operations.py +++ /dev/null @@ -1,96 +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 .. import models - - -class Operations(object): - """Operations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec 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( - self, custom_headers=None, raw=False, **operation_config): - """Lists all of the available Event Hub REST API operations. - - :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 Operation - :rtype: - ~azure.mgmt.eventhub.models.OperationPaged[~azure.mgmt.eventhub.models.Operation] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/providers/Microsoft.EventHub/operations' - - # 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized diff --git a/src/eventhubs/azext_eventhub/eventhub/version.py b/src/eventhubs/azext_eventhub/eventhub/version.py deleted file mode 100644 index 36d453c9494..00000000000 --- a/src/eventhubs/azext_eventhub/eventhub/version.py +++ /dev/null @@ -1,12 +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. -# -------------------------------------------------------------------------- - -VERSION = "1.2.0" diff --git a/src/eventhubs/azext_eventhub/tests/__init__.py b/src/eventhubs/azext_eventhub/tests/__init__.py deleted file mode 100644 index 34913fb394d..00000000000 --- a/src/eventhubs/azext_eventhub/tests/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- diff --git a/src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_alias.yaml b/src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_alias.yaml deleted file mode 100644 index b24d1858fdb..00000000000 --- a/src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_alias.yaml +++ /dev/null @@ -1,1250 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_alias000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001","name":"cli_test_eh_alias000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:18:38 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} -- request: - body: 'b''{"name": "eh-nscli000002"}''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace exists] - Connection: [keep-alive] - Content-Length: ['32'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - 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 - response: - body: {string: '{"nameAvailable":true,"reason":"None","message":null}'} - headers: - cache-control: [no-cache] - content-length: ['53'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:18:39 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"location": "SouthCentralUS", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Length: ['132'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","name":"eh-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli000002","createdAt":"2018-01-19T02:18:40.05Z","updatedAt":"2018-01-19T02:18:40.05Z","serviceBusEndpoint":"https://eh-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['766'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:18:41 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","name":"eh-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli000002","createdAt":"2018-01-19T02:18:40.05Z","updatedAt":"2018-01-19T02:19:06.437Z","serviceBusEndpoint":"https://eh-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['765'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:19:11 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'] - CommandName: [eventhubs namespace show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","name":"eh-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli000002","createdAt":"2018-01-19T02:18:40.05Z","updatedAt":"2018-01-19T02:19:06.437Z","serviceBusEndpoint":"https://eh-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['765'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:19:20 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: '{"location": "NorthCentralUS", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Length: ['132'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","name":"eh-nscli000003","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli000003","createdAt":"2018-01-19T02:19:21.513Z","updatedAt":"2018-01-19T02:19:21.513Z","serviceBusEndpoint":"https://eh-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['768'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:19:23 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","name":"eh-nscli000003","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli000003","createdAt":"2018-01-19T02:19:21.513Z","updatedAt":"2018-01-19T02:19:48.693Z","serviceBusEndpoint":"https://eh-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['766'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:19:53 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'] - CommandName: [eventhubs namespace show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","name":"eh-nscli000003","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli000003","createdAt":"2018-01-19T02:19:21.513Z","updatedAt":"2018-01-19T02:19:48.693Z","serviceBusEndpoint":"https://eh-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['766'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:19: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: '{"properties": {"rights": ["Send"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace authorizationrule create] - Connection: [keep-alive] - Content-Length: ['36'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/AuthorizationRules/cliAutho000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['403'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:20: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace authorizationrule show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/AuthorizationRules/cliAutho000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['403'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:20:29 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: 'b''{"name": "cliAlias000005"}''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs georecovery-alias exists] - Connection: [keep-alive] - Content-Length: ['32'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/CheckNameAvailability?api-version=2017-04-01 - response: - body: {string: '{"nameAvailable":true,"reason":"None"}'} - headers: - cache-control: [no-cache] - content-length: ['38'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:20:31 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: 'b''b\''{"properties": {"partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003"}}\''''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs georecovery-alias create] - Connection: [keep-alive] - Content-Length: ['243'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:21:04 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:21:05 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['669'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:21:06 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:21:08 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'] - CommandName: [eventhubs georecovery-alias authorizationrule show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/cliAutho000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['448'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:21:09 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'] - CommandName: [eventhubs georecovery-alias authorizationrule list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Listen","Manage","Send"]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}]}'} - headers: - cache-control: [no-cache] - content-length: ['937'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:21:10 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:21:42 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:22:13 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:22:44 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['668'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:23:16 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'] - CommandName: [eventhubs georecovery-alias break-pair] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005/breakPairing?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:23:18 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:23:19 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:23:50 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:24:21 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"","role":"PrimaryNotReplicating","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['479'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:24:53 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: 'b''b\''{"properties": {"partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003"}}\''''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs georecovery-alias create] - Connection: [keep-alive] - Content-Length: ['243'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:25:11 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:25:12 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:25:43 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:26:14 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:26:46 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['668'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:27:18 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'] - CommandName: [eventhubs georecovery-alias fail-over] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005/failover?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:27:18 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['669'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:27:20 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['669'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:27:51 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['669'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:28:23 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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['669'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:28: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'] - CommandName: [eventhubs georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"","role":"PrimaryNotReplicating","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['479'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:29: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'] - CommandName: [eventhubs georecovery-alias delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:29:28 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:29:59 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/operationresults/eh-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/operationresults/eh-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:30:29 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:30:32 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/operationresults/eh-nscli000003?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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/operationresults/eh-nscli000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:31:02 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_alias000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:31:04 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGRUg6NUZBTElBU1hXQjJKNUs2UjNZSENWV1BSNUgyMlVYVnxGNzU4MEVENjJFNjIxQzkyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_consumergroup.yaml b/src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_consumergroup.yaml deleted file mode 100644 index d4bf281e8f0..00000000000 --- a/src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_consumergroup.yaml +++ /dev/null @@ -1,436 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_consumergroup000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001","name":"cli_test_eh_consumergroup000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:31:06 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}, "properties": {"isAutoInflateEnabled": - true, "maximumThroughputUnits": 4}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Length: ['200'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-19T02:31:07.807Z","updatedAt":"2018-01-19T02:31:07.807Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['760'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:31:08 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-19T02:31:07.807Z","updatedAt":"2018-01-19T02:31:37.13Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['757'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:31:39 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'] - CommandName: [eventhubs namespace show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-19T02:31:07.807Z","updatedAt":"2018-01-19T02:31:37.13Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['757'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:31:41 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: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub create] - Connection: [keep-alive] - Content-Length: ['2'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003","name":"eventhubs-eventhubcli000003","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US 2","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2018-01-19T02:31:43.76Z","updatedAt":"2018-01-19T02:31:49.997Z","partitionIds":["0","1","2","3"]}}'} - headers: - cache-control: [no-cache] - content-length: ['544'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:31:51 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003","name":"eventhubs-eventhubcli000003","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US 2","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2018-01-19T02:31:43.76","updatedAt":"2018-01-19T02:31:49.997","partitionIds":["0","1","2","3"]}}'} - headers: - cache-control: [no-cache] - content-length: ['542'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:31:53 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: '{"properties": {"userMetadata": "usermetadata"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs consumergroup create] - Connection: [keep-alive] - Content-Length: ['48'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups","location":"West - US 2","properties":{"createdAt":"2018-01-19T02:31:56.2617495Z","updatedAt":"2018-01-19T02:31:56.2617495Z","userMetadata":"usermetadata"}}'} - headers: - cache-control: [no-cache] - content-length: ['532'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:31: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs consumergroup show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups","location":"West - US 2","properties":{"createdAt":"2018-01-19T02:31:56.1815281","updatedAt":"2018-01-19T02:31:56.1815281","userMetadata":"usermetadata"}}'} - headers: - cache-control: [no-cache] - content-length: ['530'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:31: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: '{"properties": {"userMetadata": "usermetadata-updated"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs consumergroup create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups","location":"West - US 2","properties":{"createdAt":"2018-01-19T02:31:59.5788525Z","updatedAt":"2018-01-19T02:31:59.5788525Z","userMetadata":"usermetadata-updated"}}'} - headers: - cache-control: [no-cache] - content-length: ['540'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:31:58 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs consumergroup list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/$Default","name":"$Default","type":"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups","location":"West - US 2","properties":{"createdAt":"2018-01-19T02:31:51.1184591","updatedAt":"2018-01-19T02:31:51.1184591"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups","location":"West - US 2","properties":{"createdAt":"2018-01-19T02:31:56.1815281","updatedAt":"2018-01-19T02:31:59.4948398","userMetadata":"usermetadata-updated"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['1027'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:32:01 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] - x-ms-inline-count: [''] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs consumergroup delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:32:02 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:32:05 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:32:06 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/operationresults/eventhubs-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/operationresults/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:32:36 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_consumergroup000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:32:39 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGRUg6NUZDT05TVU1FUkdST1VQTUZNS1pGR05USUFXT1lUNHw4MjVDMkZFNUMxMEI5QkZFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_eventhub.yaml b/src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_eventhub.yaml deleted file mode 100644 index c5225698267..00000000000 --- a/src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_eventhub.yaml +++ /dev/null @@ -1,494 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_eventnhub000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001","name":"cli_test_eh_eventnhub000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:32:41 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}, "properties": {"isAutoInflateEnabled": - true, "maximumThroughputUnits": 4}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Length: ['200'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-19T02:32:42.333Z","updatedAt":"2018-01-19T02:32:42.333Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['760'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:32:43 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-19T02:32:42.333Z","updatedAt":"2018-01-19T02:33:09Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['754'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:33:13 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'] - CommandName: [eventhubs namespace show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-19T02:32:42.333Z","updatedAt":"2018-01-19T02:33:09Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['754'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:33:15 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: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub create] - Connection: [keep-alive] - Content-Length: ['2'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004","name":"eventhubs-eventhubcli000004","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US 2","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2018-01-19T02:33:18.927Z","updatedAt":"2018-01-19T02:33:21.003Z","partitionIds":["0","1","2","3"]}}'} - headers: - cache-control: [no-cache] - content-length: ['545'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:33:23 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004","name":"eventhubs-eventhubcli000004","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US 2","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2018-01-19T02:33:18.927","updatedAt":"2018-01-19T02:33:21.003","partitionIds":["0","1","2","3"]}}'} - headers: - cache-control: [no-cache] - content-length: ['543'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:33: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'] - CommandName: [eventhubs eventhub list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004","name":"eventhubs-eventhubcli000004","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US 2","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2018-01-19T02:33:18.927","updatedAt":"2018-01-19T02:33:21.003","partitionIds":["0","1","2","3"]}}]}'} - headers: - cache-control: [no-cache] - content-length: ['555'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:33: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] - x-ms-inline-count: [''] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"rights": ["Listen"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub authorizationrule create] - Connection: [keep-alive] - Content-Length: ['38'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules","location":"West - US 2","properties":{"rights":["Listen"]}}'} - headers: - cache-control: [no-cache] - content-length: ['444'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:33: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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub authorizationrule show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules","location":"West - US 2","properties":{"rights":["Listen"]}}'} - headers: - cache-control: [no-cache] - content-length: ['444'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:33:28 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'] - CommandName: [eventhubs eventhub authorizationrule keys list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003/ListKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=RkluROGAVdRHNk+iv+rXMJYtN5qZB40szy4ykJBU+1Q=;EntityPath=eventhubs-eventhubcli000004","secondaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ngyW3ZAagX77IP0CsyvWRIhkm20LElJDPOwTQrqxnOw=;EntityPath=eventhubs-eventhubcli000004","primaryKey":"RkluROGAVdRHNk+iv+rXMJYtN5qZB40szy4ykJBU+1Q=","secondaryKey":"ngyW3ZAagX77IP0CsyvWRIhkm20LElJDPOwTQrqxnOw=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:33:29 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "PrimaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub authorizationrule keys renew] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=mvqoPBnnPTa0BSyRCQXqBLxMSwtFtAkEYzCuP6qmC+0=;EntityPath=eventhubs-eventhubcli000004","secondaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ngyW3ZAagX77IP0CsyvWRIhkm20LElJDPOwTQrqxnOw=;EntityPath=eventhubs-eventhubcli000004","primaryKey":"mvqoPBnnPTa0BSyRCQXqBLxMSwtFtAkEYzCuP6qmC+0=","secondaryKey":"ngyW3ZAagX77IP0CsyvWRIhkm20LElJDPOwTQrqxnOw=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:33:31 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "SecondaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub authorizationrule keys renew] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=mvqoPBnnPTa0BSyRCQXqBLxMSwtFtAkEYzCuP6qmC+0=;EntityPath=eventhubs-eventhubcli000004","secondaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=/ek9d06VTviCLkY2XO4C2gDeUpxVF67drsxBiExeku4=;EntityPath=eventhubs-eventhubcli000004","primaryKey":"mvqoPBnnPTa0BSyRCQXqBLxMSwtFtAkEYzCuP6qmC+0=","secondaryKey":"/ek9d06VTviCLkY2XO4C2gDeUpxVF67drsxBiExeku4=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:33:36 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub authorizationrule delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:33:40 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:33:43 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:33:44 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/operationresults/eventhubs-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/operationresults/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:34:14 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_eventnhub000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:34:17 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGRUg6NUZFVkVOVE5IVUJOVVNSSkYzSTVUR0pYQ01CQVJCMnw0NjQ5QkQyQTY5NTZCRDBGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_namespace.yaml b/src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_namespace.yaml deleted file mode 100644 index f479e055eab..00000000000 --- a/src/eventhubs/azext_eventhub/tests/recordings/latest/test_eh_namespace.yaml +++ /dev/null @@ -1,550 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_namespace000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001","name":"cli_test_eh_namespace000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:34:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} -- request: - body: 'b''{"name": "eventhubs-nscli000002"}''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace exists] - Connection: [keep-alive] - Content-Length: ['32'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - 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 - response: - body: {string: '{"nameAvailable":true,"reason":"None","message":null}'} - headers: - cache-control: [no-cache] - content-length: ['53'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:34:20 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"location": "westus2", "tags": {"{tag1: value1}": ""}, "sku": {"name": - "Standard", "tier": "Standard"}, "properties": {"isAutoInflateEnabled": true, - "maximumThroughputUnits": 4}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Length: ['179'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-19T02:34:21.437Z","updatedAt":"2018-01-19T02:34:21.437Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['741'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:34:22 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-19T02:34:21.437Z","updatedAt":"2018-01-19T02:34:45.413Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['739'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:34:53 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'] - CommandName: [eventhubs namespace show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-19T02:34:21.437Z","updatedAt":"2018-01-19T02:34:45.413Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['739'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:34:55 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'] - CommandName: [eventhubs namespace list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - 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/cli_test_eh_alias2mv7ov6fsgikow24xobpownip4z7mijgbqjghkrz5zav4njw5lcf6lf7px/providers/Microsoft.EventHub/namespaces/eh-nscli5r7wvmsetxqr","name":"eh-nscli5r7wvmsetxqr","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli5r7wvmsetxqr","createdAt":"2018-01-16T22:12:56.463Z","updatedAt":"2018-01-16T22:17:00.823Z","serviceBusEndpoint":"https://eh-nscli5r7wvmsetxqr.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias2ent77voy7rwbiswwiop34bey35mxim3qb5qvzpligs53ynxgg7m6ukfx4/providers/Microsoft.EventHub/namespaces/eh-nscliu5bm3r5iisqx","name":"eh-nscliu5bm3r5iisqx","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscliu5bm3r5iisqx","createdAt":"2018-01-17T00:14:20.873Z","updatedAt":"2018-01-17T00:18:46.907Z","serviceBusEndpoint":"https://eh-nscliu5bm3r5iisqx.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgrid-monitoring/providers/Microsoft.EventHub/namespaces/eventgrid-monitoring","name":"eventgrid-monitoring","type":"Microsoft.EventHub/Namespaces","location":"Central - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventgrid-monitoring","createdAt":"2017-05-19T19:13:03.853Z","updatedAt":"2017-08-17T17:27:13.863Z","serviceBusEndpoint":"https://eventgrid-monitoring.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventHub/namespaces/kalstest2","name":"kalstest2","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:kalstest2","createdAt":"2017-09-23T00:57:11.983Z","updatedAt":"2017-09-23T00:58:39.957Z","serviceBusEndpoint":"https://kalstest2.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eg-rgr1-uswc/providers/Microsoft.EventHub/namespaces/rgr1-eventhub1","name":"rgr1-eventhub1","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:rgr1-eventhub1","createdAt":"2017-11-22T23:42:33.113Z","updatedAt":"2017-11-22T23:47:39.017Z","serviceBusEndpoint":"https://rgr1-eventhub1.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-ps5157/providers/Microsoft.EventHub/namespaces/PSTestEH-ps5102","name":"PSTestEH-ps5102","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:pstesteh-ps5102","createdAt":"2017-11-30T01:29:20.62Z","updatedAt":"2017-11-30T01:30:04.59Z","serviceBusEndpoint":"https://PSTestEH-ps5102.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliascky7msnikdvg7monugngsco6s44dsylbg6ubkzabkjg3pq457pyq7kmcqu/providers/Microsoft.EventHub/namespaces/eh-nsclidjlkdqwkxyp2","name":"eh-nsclidjlkdqwkxyp2","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclidjlkdqwkxyp2","createdAt":"2018-01-16T03:25:23.523Z","updatedAt":"2018-01-16T03:29:33.037Z","serviceBusEndpoint":"https://eh-nsclidjlkdqwkxyp2.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":20},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridResourceGroup/providers/Microsoft.EventHub/namespaces/eventgrid-eventhub","name":"eventgrid-eventhub","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventgrid-eventhub","createdAt":"2017-04-26T16:51:02.323Z","updatedAt":"2017-08-18T02:12:27.463Z","serviceBusEndpoint":"https://eventgrid-eventhub.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-ps9059/providers/Microsoft.EventHub/namespaces/PSTestEH-ps4460","name":"PSTestEH-ps4460","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:pstesteh-ps4460","createdAt":"2017-11-30T00:38:29.223Z","updatedAt":"2017-11-30T00:39:48.487Z","serviceBusEndpoint":"https://PSTestEH-ps4460.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasg4iqo576d2twd4qc2lh7nicaqrbiop577a6ay6jdmyf6ttnncvwttfraa5/providers/Microsoft.EventHub/namespaces/eh-nscli2f64ppr4ehks","name":"eh-nscli2f64ppr4ehks","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli2f64ppr4ehks","createdAt":"2018-01-09T21:42:36.447Z","updatedAt":"2018-01-09T23:46:03.63Z","serviceBusEndpoint":"https://eh-nscli2f64ppr4ehks.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-ps3277/providers/Microsoft.EventHub/namespaces/PSTestEH-ps460","name":"PSTestEH-ps460","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:pstesteh-ps460","createdAt":"2017-11-30T19:22:17.26Z","updatedAt":"2017-11-30T19:23:58.753Z","serviceBusEndpoint":"https://PSTestEH-ps460.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManagenortheurope/providers/Microsoft.EventHub/namespaces/azureeventgridneu","name":"azureeventgridneu","type":"Microsoft.EventHub/Namespaces","location":"North - Europe","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgridneu","createdAt":"2017-06-14T20:54:18.227Z","updatedAt":"2017-06-14T21:45:04.64Z","serviceBusEndpoint":"https://azureeventgridneu.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasrdwk3qo25uvmozoy46edwk5dxzoyevdhfg6dknv2qmsgo47phzgttwpaky/providers/Microsoft.EventHub/namespaces/eh-nscli6oipmplfhbzp","name":"eh-nscli6oipmplfhbzp","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli6oipmplfhbzp","createdAt":"2018-01-17T03:16:11.223Z","updatedAt":"2018-01-17T03:20:19.61Z","serviceBusEndpoint":"https://eh-nscli6oipmplfhbzp.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasapj44zuqfujsl26kgqs5brvhhfc5zofi2uyqsp6knwtlucxftxaxmif6a2/providers/Microsoft.EventHub/namespaces/eh-nsclimnbbm4rpn473","name":"eh-nsclimnbbm4rpn473","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclimnbbm4rpn473","createdAt":"2018-01-18T23:03:27.803Z","updatedAt":"2018-01-19T00:07:06.647Z","serviceBusEndpoint":"https://eh-nsclimnbbm4rpn473.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManagesouthcentralus/providers/Microsoft.EventHub/namespaces/azureeventgridussc","name":"azureeventgridussc","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgridussc","createdAt":"2017-06-14T20:51:43.227Z","updatedAt":"2017-06-14T21:43:18.967Z","serviceBusEndpoint":"https://azureeventgridussc.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasuabxoisqt5ghyuwgudrymd4wwztlqyh6poga4g3w54qnzu3z7robkl6t5q/providers/Microsoft.EventHub/namespaces/eh-nsclibiuej5yxtkd2","name":"eh-nsclibiuej5yxtkd2","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclibiuej5yxtkd2","createdAt":"2018-01-16T02:44:18.997Z","updatedAt":"2018-01-16T02:47:50.287Z","serviceBusEndpoint":"https://eh-nsclibiuej5yxtkd2.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-onesdk5504/providers/Microsoft.EventHub/namespaces/PSTestEH-onesdk6034","name":"PSTestEH-onesdk6034","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:pstesteh-onesdk6034","createdAt":"2017-09-18T23:59:58.2Z","updatedAt":"2017-09-19T00:00:23.943Z","serviceBusEndpoint":"https://PSTestEH-onesdk6034.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManageaustraliasoutheast/providers/Microsoft.EventHub/namespaces/azureeventgridause","name":"azureeventgridause","type":"Microsoft.EventHub/Namespaces","location":"Australia - Southeast","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgridause","createdAt":"2017-06-14T20:55:24.083Z","updatedAt":"2017-08-15T23:04:54.537Z","serviceBusEndpoint":"https://azureeventgridause.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliaskpunb5qmw2gwu5h7snjaqdtkq2pn3hxfwodkt3krnjo23u7qvuwbnkp7m6/providers/Microsoft.EventHub/namespaces/eh-nscliv6m3lpg5t5yj","name":"eh-nscliv6m3lpg5t5yj","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscliv6m3lpg5t5yj","createdAt":"2018-01-11T01:16:44.9Z","updatedAt":"2018-01-11T01:30:32.89Z","serviceBusEndpoint":"https://eh-nscliv6m3lpg5t5yj.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasluiavtblxmux2kd6hennir4fqnbacd5gopkeuj6imcogpn5nfhvfx7bpkl/providers/Microsoft.EventHub/namespaces/eh-nscli45rm5qzdbmin","name":"eh-nscli45rm5qzdbmin","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli45rm5qzdbmin","createdAt":"2018-01-09T03:33:05.463Z","updatedAt":"2018-01-09T03:42:13.513Z","serviceBusEndpoint":"https://eh-nscli45rm5qzdbmin.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasfbbatpr2evcnfafcvf4ss7zyy6qdqbhc5mbsalcb63gfwbjhukcicv6b3q/providers/Microsoft.EventHub/namespaces/eh-nsclin6wxggktaxhn","name":"eh-nsclin6wxggktaxhn","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclin6wxggktaxhn","createdAt":"2018-01-16T23:36:27.027Z","updatedAt":"2018-01-16T23:41:09.587Z","serviceBusEndpoint":"https://eh-nsclin6wxggktaxhn.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasu6lcs66vwhtxj4d62fqcdlkqt3yotasky4m7lybezc63e43c4kxu6ppp3h/providers/Microsoft.EventHub/namespaces/eh-nscliz2kdrglpwnre","name":"eh-nscliz2kdrglpwnre","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscliz2kdrglpwnre","createdAt":"2018-01-17T03:32:34.083Z","updatedAt":"2018-01-17T03:46:17.77Z","serviceBusEndpoint":"https://eh-nscliz2kdrglpwnre.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasapj44zuqfujsl26kgqs5brvhhfc5zofi2uyqsp6knwtlucxftxaxmif6a2/providers/Microsoft.EventHub/namespaces/eh-nscli7kkxif26b5y7","name":"eh-nscli7kkxif26b5y7","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli7kkxif26b5y7","createdAt":"2018-01-19T00:03:23.573Z","updatedAt":"2018-01-19T00:07:06.383Z","serviceBusEndpoint":"https://eh-nscli7kkxif26b5y7.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManageeastus/providers/Microsoft.EventHub/namespaces/azureeventgriduse","name":"azureeventgriduse","type":"Microsoft.EventHub/Namespaces","location":"East - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgriduse","createdAt":"2017-06-14T18:15:46.113Z","updatedAt":"2017-06-14T22:06:10.537Z","serviceBusEndpoint":"https://azureeventgriduse.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManagecentralus/providers/Microsoft.EventHub/namespaces/azureeventgridusc","name":"azureeventgridusc","type":"Microsoft.EventHub/Namespaces","location":"Central - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgridusc","createdAt":"2017-06-14T17:48:58.46Z","updatedAt":"2017-08-17T17:29:13.593Z","serviceBusEndpoint":"https://azureeventgridusc.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManagewestus/providers/Microsoft.EventHub/namespaces/azureeventgridusw","name":"azureeventgridusw","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgridusw","createdAt":"2017-06-14T20:50:37.913Z","updatedAt":"2017-08-18T02:02:25.713Z","serviceBusEndpoint":"https://azureeventgridusw.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eg-nok1-usw2/providers/Microsoft.EventHub/namespaces/eg-nok1-usw2-eh-001","name":"eg-nok1-usw2-eh-001","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":20,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eg-nok1-usw2-eh-001","createdAt":"2017-12-27T23:21:04.793Z","updatedAt":"2017-12-27T23:21:28.457Z","serviceBusEndpoint":"https://eg-nok1-usw2-eh-001.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventHub/namespaces/kalstest","name":"kalstest","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:kalstest","createdAt":"2017-09-23T00:51:45.243Z","updatedAt":"2017-09-23T00:53:04.39Z","serviceBusEndpoint":"https://kalstest.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasrdwk3qo25uvmozoy46edwk5dxzoyevdhfg6dknv2qmsgo47phzgttwpaky/providers/Microsoft.EventHub/namespaces/eh-nsclihlp7wulxevqi","name":"eh-nsclihlp7wulxevqi","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclihlp7wulxevqi","createdAt":"2018-01-17T03:16:45.66Z","updatedAt":"2018-01-17T03:20:19.66Z","serviceBusEndpoint":"https://eh-nsclihlp7wulxevqi.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SDKTests/providers/Microsoft.EventHub/namespaces/TestingIgnite","name":"TestingIgnite","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testingignite","createdAt":"2017-09-22T19:56:29.517Z","updatedAt":"2017-09-22T19:58:02.333Z","serviceBusEndpoint":"https://TestingIgnite.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasqntnpeizwqrb7tm33v2657das6z4nfis3cgc43vjowr65wjvip4z6vntjz/providers/Microsoft.EventHub/namespaces/eh-nsclidyruyxipfsqs","name":"eh-nsclidyruyxipfsqs","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclidyruyxipfsqs","createdAt":"2018-01-19T01:04:20.747Z","updatedAt":"2018-01-19T01:18:18.06Z","serviceBusEndpoint":"https://eh-nsclidyruyxipfsqs.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-19T02:34:21.437Z","updatedAt":"2018-01-19T02:34:45.413Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliash6srcvrszaufw5liurq6vjxjgylz2ehpxjmnpaujh2fievbmshaeckggfg/providers/Microsoft.EventHub/namespaces/eh-nsclisz7d4nkm5pm4","name":"eh-nsclisz7d4nkm5pm4","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclisz7d4nkm5pm4","createdAt":"2018-01-10T23:12:14.507Z","updatedAt":"2018-01-10T23:26:27.68Z","serviceBusEndpoint":"https://eh-nsclisz7d4nkm5pm4.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasf5s5nkcheqjmc2mzn75m4snwj2wigrjvsqzse5ppwzn7si5ect3tsrravj/providers/Microsoft.EventHub/namespaces/eh-nsclinv3fa4okkwwm","name":"eh-nsclinv3fa4okkwwm","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclinv3fa4okkwwm","createdAt":"2018-01-17T00:57:49.527Z","updatedAt":"2018-01-17T01:01:34.373Z","serviceBusEndpoint":"https://eh-nsclinv3fa4okkwwm.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasfbbatpr2evcnfafcvf4ss7zyy6qdqbhc5mbsalcb63gfwbjhukcicv6b3q/providers/Microsoft.EventHub/namespaces/eh-nsclixl2fuhach6d3","name":"eh-nsclixl2fuhach6d3","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclixl2fuhach6d3","createdAt":"2018-01-16T23:37:31.573Z","updatedAt":"2018-01-16T23:41:10.95Z","serviceBusEndpoint":"https://eh-nsclixl2fuhach6d3.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace3q5lltod3bkd7vplj7dt6leygj2i4mqw4ajikdjjamsds7na2eu4od/providers/Microsoft.EventHub/namespaces/eventhubs-nsclidtnue","name":"eventhubs-nsclidtnue","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nsclidtnue","createdAt":"2018-01-19T01:25:48.83Z","updatedAt":"2018-01-19T01:26:17.03Z","serviceBusEndpoint":"https://eventhubs-nsclidtnue.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias2ent77voy7rwbiswwiop34bey35mxim3qb5qvzpligs53ynxgg7m6ukfx4/providers/Microsoft.EventHub/namespaces/eh-nscli5zoh2t65mkrw","name":"eh-nscli5zoh2t65mkrw","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli5zoh2t65mkrw","createdAt":"2018-01-17T00:13:15.48Z","updatedAt":"2018-01-17T00:18:46.563Z","serviceBusEndpoint":"https://eh-nscli5zoh2t65mkrw.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasuabxoisqt5ghyuwgudrymd4wwztlqyh6poga4g3w54qnzu3z7robkl6t5q/providers/Microsoft.EventHub/namespaces/eh-nsclivwtrpelsn2fo","name":"eh-nsclivwtrpelsn2fo","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclivwtrpelsn2fo","createdAt":"2018-01-16T02:43:45.98Z","updatedAt":"2018-01-16T02:47:51.253Z","serviceBusEndpoint":"https://eh-nsclivwtrpelsn2fo.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasnjnzdt2jvteq55ydkxnizbptzi46kbxpu5n4xr7ax3wadiiqaow4xcziwa/providers/Microsoft.EventHub/namespaces/eh-nscliy4ku454f37xv","name":"eh-nscliy4ku454f37xv","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscliy4ku454f37xv","createdAt":"2018-01-09T23:06:02.247Z","updatedAt":"2018-01-09T23:14:28.787Z","serviceBusEndpoint":"https://eh-nscliy4ku454f37xv.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-ps2924/providers/Microsoft.EventHub/namespaces/PSTestEH-ps4898","name":"PSTestEH-ps4898","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:pstesteh-ps4898","createdAt":"2017-11-30T18:27:57.223Z","updatedAt":"2017-11-30T18:28:19.807Z","serviceBusEndpoint":"https://PSTestEH-ps4898.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-ps5541/providers/Microsoft.EventHub/namespaces/PSTestEH-ps2672","name":"PSTestEH-ps2672","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:pstesteh-ps2672","createdAt":"2017-11-30T00:23:13.857Z","updatedAt":"2017-11-30T00:24:53.06Z","serviceBusEndpoint":"https://PSTestEH-ps2672.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridmonitoring/providers/Microsoft.EventHub/namespaces/eventgridmonitoring","name":"eventgridmonitoring","type":"Microsoft.EventHub/Namespaces","location":"Central - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventgridmonitoring","createdAt":"2017-05-19T19:10:45.52Z","updatedAt":"2017-08-17T17:27:41.813Z","serviceBusEndpoint":"https://eventgridmonitoring.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasnjnzdt2jvteq55ydkxnizbptzi46kbxpu5n4xr7ax3wadiiqaow4xcziwa/providers/Microsoft.EventHub/namespaces/eh-nscliyvopwjqx7kwg","name":"eh-nscliyvopwjqx7kwg","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscliyvopwjqx7kwg","createdAt":"2018-01-09T23:04:29.22Z","updatedAt":"2018-01-09T23:14:28.147Z","serviceBusEndpoint":"https://eh-nscliyvopwjqx7kwg.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias2mv7ov6fsgikow24xobpownip4z7mijgbqjghkrz5zav4njw5lcf6lf7px/providers/Microsoft.EventHub/namespaces/eh-nscli32h5uu2ipxcj","name":"eh-nscli32h5uu2ipxcj","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli32h5uu2ipxcj","createdAt":"2018-01-16T22:11:53.21Z","updatedAt":"2018-01-16T22:17:04.39Z","serviceBusEndpoint":"https://eh-nscli32h5uu2ipxcj.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManageeastus/providers/Microsoft.EventHub/namespaces/azureeventgrid01use","name":"azureeventgrid01use","type":"Microsoft.EventHub/Namespaces","location":"East - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgrid01use","createdAt":"2017-06-14T17:59:32.16Z","updatedAt":"2017-06-14T17:59:55.023Z","serviceBusEndpoint":"https://azureeventgrid01use.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasxdyxbx75xbfdhtkchxrdnk7drdb7lusuik742vmrirdnr5x5durtbrgvno/providers/Microsoft.EventHub/namespaces/eh-nscli46glcvwydevl","name":"eh-nscli46glcvwydevl","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli46glcvwydevl","createdAt":"2018-01-09T04:38:46.01Z","updatedAt":"2018-01-09T04:52:27.417Z","serviceBusEndpoint":"https://eh-nscli46glcvwydevl.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.EventHub/namespaces/testnamespace099","name":"testnamespace099","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testnamespace099","createdAt":"2017-05-15T23:10:02.34Z","updatedAt":"2017-08-18T01:50:43.933Z","serviceBusEndpoint":"https://testnamespace099.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.EventHub/namespaces/testnamespace098","name":"testnamespace098","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testnamespace098","createdAt":"2017-05-15T22:21:57.81Z","updatedAt":"2017-08-18T02:04:18.8Z","serviceBusEndpoint":"https://testnamespace098.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-ps3336/providers/Microsoft.EventHub/namespaces/PSTestEH-ps2442","name":"PSTestEH-ps2442","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:pstesteh-ps2442","createdAt":"2017-11-29T19:38:12.597Z","updatedAt":"2017-11-29T19:38:39.907Z","serviceBusEndpoint":"https://PSTestEH-ps2442.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.EventHub/namespaces/Testinginflate","name":"Testinginflate","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":10,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testinginflate","createdAt":"2017-06-27T23:39:41.647Z","updatedAt":"2017-08-18T01:54:42.67Z","serviceBusEndpoint":"https://Testinginflate.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManagewesteurope/providers/Microsoft.EventHub/namespaces/azureeventgridweu","name":"azureeventgridweu","type":"Microsoft.EventHub/Namespaces","location":"West - Europe","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgridweu","createdAt":"2017-06-14T20:52:52.023Z","updatedAt":"2017-08-10T01:30:49.39Z","serviceBusEndpoint":"https://azureeventgridweu.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasf5s5nkcheqjmc2mzn75m4snwj2wigrjvsqzse5ppwzn7si5ect3tsrravj/providers/Microsoft.EventHub/namespaces/eh-nsclihjhv5jcmrabz","name":"eh-nsclihjhv5jcmrabz","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclihjhv5jcmrabz","createdAt":"2018-01-17T00:57:15.01Z","updatedAt":"2018-01-17T01:01:34.577Z","serviceBusEndpoint":"https://eh-nsclihjhv5jcmrabz.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliascky7msnikdvg7monugngsco6s44dsylbg6ubkzabkjg3pq457pyq7kmcqu/providers/Microsoft.EventHub/namespaces/eh-nsclidyhusj34vxzm","name":"eh-nsclidyhusj34vxzm","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclidyhusj34vxzm","createdAt":"2018-01-16T03:25:56.76Z","updatedAt":"2018-01-16T03:29:32.193Z","serviceBusEndpoint":"https://eh-nsclidyhusj34vxzm.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Basic","tier":"Basic","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GridToHubResourceGroup/providers/Microsoft.EventHub/namespaces/GridToHubTest","name":"GridToHubTest","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:gridtohubtest","createdAt":"2017-07-05T18:59:46.357Z","updatedAt":"2017-08-18T02:03:04.213Z","serviceBusEndpoint":"https://GridToHubTest.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasidgr3hilhuj2666kgpjl7s2hxqafg54ykpee3s6tjnl7qdna2rdh5uzzzf/providers/Microsoft.EventHub/namespaces/eh-nscliymtueoq7yw5b","name":"eh-nscliymtueoq7yw5b","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscliymtueoq7yw5b","createdAt":"2018-01-19T00:09:20.84Z","updatedAt":"2018-01-19T00:23:19.863Z","serviceBusEndpoint":"https://eh-nscliymtueoq7yw5b.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":0},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eg-hitesh-perf/providers/Microsoft.EventHub/namespaces/eventgrid-eventhub-ussc","name":"eventgrid-eventhub-ussc","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventgrid-eventhub-ussc","createdAt":"2017-05-25T20:36:13.997Z","updatedAt":"2017-05-25T20:36:37.893Z","serviceBusEndpoint":"https://eventgrid-eventhub-ussc.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManageeastasia/providers/Microsoft.EventHub/namespaces/azureeventgridae","name":"azureeventgridae","type":"Microsoft.EventHub/Namespaces","location":"East - Asia","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgridae","createdAt":"2017-06-14T20:56:44.477Z","updatedAt":"2017-08-02T01:08:31.437Z","serviceBusEndpoint":"https://azureeventgridae.servicebus.windows.net:443/","status":"Active"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['40305'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:35:11 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'] - CommandName: [eventhubs namespace list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/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/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-19T02:34:21.437Z","updatedAt":"2018-01-19T02:34:45.413Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['751'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:35:12 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: '{"properties": {"rights": ["Send"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace authorizationrule create] - Connection: [keep-alive] - Content-Length: ['36'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"West - US 2","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['396'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:35:46 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace authorizationrule show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"West - US 2","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['396'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:35:47 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'] - CommandName: [eventhubs namespace authorizationrule show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/RootManageSharedAccessKey?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"West - US 2","properties":{"rights":["Listen","Manage","Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['424'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:35:49 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'] - CommandName: [eventhubs namespace authorizationrule keys list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003/listKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ShOTva4uzK+VPi4B6WYji4o52jDimVTa91MS8IwtWsw=","secondaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=q/IUezswQZWFYbC3pkEHtncJynllVGYdaQjioJV+918=","primaryKey":"ShOTva4uzK+VPi4B6WYji4o52jDimVTa91MS8IwtWsw=","secondaryKey":"q/IUezswQZWFYbC3pkEHtncJynllVGYdaQjioJV+918=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['536'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:35:51 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "PrimaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace authorizationrule keys renew] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=nGZzx90/TxFRYKJTHxuKbj001jCsIvXlRdJb9j3+nU0=","secondaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=q/IUezswQZWFYbC3pkEHtncJynllVGYdaQjioJV+918=","primaryKey":"nGZzx90/TxFRYKJTHxuKbj001jCsIvXlRdJb9j3+nU0=","secondaryKey":"q/IUezswQZWFYbC3pkEHtncJynllVGYdaQjioJV+918=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['536'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:36:08 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "SecondaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace authorizationrule keys renew] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=nGZzx90/TxFRYKJTHxuKbj001jCsIvXlRdJb9j3+nU0=","secondaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=EhsflsRuxCaqmEbr3zYHSRrFboD0zitvl3aQ2EK9sI8=","primaryKey":"nGZzx90/TxFRYKJTHxuKbj001jCsIvXlRdJb9j3+nU0=","secondaryKey":"EhsflsRuxCaqmEbr3zYHSRrFboD0zitvl3aQ2EK9sI8=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['536'] - content-type: [application/json; charset=utf-8] - date: ['Fri, 19 Jan 2018 02:36: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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace authorizationrule delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:36:43 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:36:45 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/operationresults/eventhubs-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/operationresults/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:37:15 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_namespace000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Fri, 19 Jan 2018 02:37:18 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGRUg6NUZOQU1FU1BBQ0VLV09ITEJSVEM0UU1aVFBMQlhMSnxCNTZCQjY1NTEzQjc4NTlELVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/eventhubs/azext_eventhub/tests/recordings/test_eh_alias.yaml b/src/eventhubs/azext_eventhub/tests/recordings/test_eh_alias.yaml deleted file mode 100644 index d299de1ce78..00000000000 --- a/src/eventhubs/azext_eventhub/tests/recordings/test_eh_alias.yaml +++ /dev/null @@ -1,1222 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_alias000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001","name":"cli_test_eh_alias000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:13:22 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 201, message: Created} -- request: - body: 'b''{"name": "eh-nscli000002"}''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace exists] - Connection: [keep-alive] - Content-Length: ['32'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - 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 - response: - body: {string: '{"nameAvailable":true,"reason":"None","message":null}'} - headers: - cache-control: [no-cache] - content-length: ['53'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:13:23 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: '{"location": "SouthCentralUS", "tags": {"{tag2: value2,": "", "tag1: value1}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Length: ['132'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","name":"eh-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli000002","createdAt":"2018-01-27T01:13:25.9Z","updatedAt":"2018-01-27T01:13:25.9Z","serviceBusEndpoint":"https://eh-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['764'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:13: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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","name":"eh-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli000002","createdAt":"2018-01-27T01:13:25.9Z","updatedAt":"2018-01-27T01:13:49.737Z","serviceBusEndpoint":"https://eh-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['764'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:13:55 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'] - CommandName: [eventhubs namespace show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","name":"eh-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli000002","createdAt":"2018-01-27T01:13:25.9Z","updatedAt":"2018-01-27T01:13:49.737Z","serviceBusEndpoint":"https://eh-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['764'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:13:55 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: '{"location": "NorthCentralUS", "tags": {"{tag2: value2,": "", "tag1: value1}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Length: ['132'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","name":"eh-nscli000003","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli000003","createdAt":"2018-01-27T01:13:58.887Z","updatedAt":"2018-01-27T01:13:58.887Z","serviceBusEndpoint":"https://eh-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['768'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:13:58 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","name":"eh-nscli000003","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli000003","createdAt":"2018-01-27T01:13:58.887Z","updatedAt":"2018-01-27T01:14:22.97Z","serviceBusEndpoint":"https://eh-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['765'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:14:28 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'] - CommandName: [eventhubs namespace show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","name":"eh-nscli000003","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli000003","createdAt":"2018-01-27T01:13:58.887Z","updatedAt":"2018-01-27T01:14:22.97Z","serviceBusEndpoint":"https://eh-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['765'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:14: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: '{"properties": {"rights": ["Send"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace authorizationrule create] - Connection: [keep-alive] - Content-Length: ['36'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/AuthorizationRules/cliAutho000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['403'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:15:03 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace authorizationrule show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/AuthorizationRules/cliAutho000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['403'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:15:04 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: 'b''{"name": "cliAlias000005"}''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs georecovery-alias exists] - Connection: [keep-alive] - Content-Length: ['32'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/CheckNameAvailability?api-version=2017-04-01 - response: - body: {string: '{"nameAvailable":true,"reason":"None"}'} - headers: - cache-control: [no-cache] - content-length: ['38'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:15:03 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: 'b''b\''{"properties": {"partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003"}}\''''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs georecovery-alias create] - Connection: [keep-alive] - Content-Length: ['243'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:15:37 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:15:37 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['669'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:15:37 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:15:38 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'] - CommandName: [eventhubs georecovery-alias authorizationrule show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/cliAutho000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['448'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:15:39 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'] - CommandName: [eventhubs georecovery-alias authorizationrule list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Listen","Manage","Send"]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}]}'} - headers: - cache-control: [no-cache] - content-length: ['937'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:15:39 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:16:10 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:16:40 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:17:11 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['668'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:17:42 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'] - CommandName: [eventhubs georecovery-alias break-pair] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005/breakPairing?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:17:42 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:17:43 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:18:13 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:18:44 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"","role":"PrimaryNotReplicating","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['479'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:19:13 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: 'b''b\''{"properties": {"partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003"}}\''''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs georecovery-alias create] - Connection: [keep-alive] - Content-Length: ['243'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:19:31 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:19:32 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:20:02 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:20:32 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['667'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:21:03 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['668'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:21:33 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'] - CommandName: [eventhubs georecovery-alias fail-over] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005/failover?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:21:33 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['669'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:21:34 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['669'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:22:05 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['669'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:22:35 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'] - CommandName: [eventhubs georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.EventHub/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"","role":"PrimaryNotReplicating","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['479'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:23:06 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'] - CommandName: [eventhubs georecovery-alias delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:23:06 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:23:37 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/operationresults/eh-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000002/operationresults/eh-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:24:07 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:24:39 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/operationresults/eh-nscli000003?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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias000001/providers/Microsoft.EventHub/namespaces/eh-nscli000003/operationresults/eh-nscli000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:25:10 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_alias000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:25:11 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGRUg6NUZBTElBU0UyM0NVUUtCNVhEVVRZMzZQRElQS1VCU3w0MjYxNjA5RkY5RUQwQkQ2LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/eventhubs/azext_eventhub/tests/recordings/test_eh_consumergroup.yaml b/src/eventhubs/azext_eventhub/tests/recordings/test_eh_consumergroup.yaml deleted file mode 100644 index 2a2eb92bf10..00000000000 --- a/src/eventhubs/azext_eventhub/tests/recordings/test_eh_consumergroup.yaml +++ /dev/null @@ -1,436 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_consumergroup000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001","name":"cli_test_eh_consumergroup000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:25:12 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: '{"location": "westus2", "tags": {"{tag2: value2,": "", "tag1: value1}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}, "properties": {"isAutoInflateEnabled": - true, "maximumThroughputUnits": 4}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Length: ['200'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-27T01:25:15.22Z","updatedAt":"2018-01-27T01:25:15.22Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['758'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:25:13 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-27T01:25:15.22Z","updatedAt":"2018-01-27T01:25:43.743Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['757'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:25:44 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'] - CommandName: [eventhubs namespace show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-27T01:25:15.22Z","updatedAt":"2018-01-27T01:25:43.743Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['757'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:25:45 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: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub create] - Connection: [keep-alive] - Content-Length: ['2'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003","name":"eventhubs-eventhubcli000003","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US 2","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2018-01-27T01:25:46.903Z","updatedAt":"2018-01-27T01:25:50.59Z","partitionIds":["0","1","2","3"]}}'} - headers: - cache-control: [no-cache] - content-length: ['544'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:25:52 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003","name":"eventhubs-eventhubcli000003","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US 2","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2018-01-27T01:25:46.903","updatedAt":"2018-01-27T01:25:50.59","partitionIds":["0","1","2","3"]}}'} - headers: - cache-control: [no-cache] - content-length: ['542'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:25:53 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: '{"properties": {"userMetadata": "usermetadata"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs consumergroup create] - Connection: [keep-alive] - Content-Length: ['48'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups","location":"West - US 2","properties":{"createdAt":"2018-01-27T01:25:55.6087454Z","updatedAt":"2018-01-27T01:25:55.6087454Z","userMetadata":"usermetadata"}}'} - headers: - cache-control: [no-cache] - content-length: ['532'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:25:55 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs consumergroup show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups","location":"West - US 2","properties":{"createdAt":"2018-01-27T01:25:55.3944005","updatedAt":"2018-01-27T01:25:55.3944005","userMetadata":"usermetadata"}}'} - headers: - cache-control: [no-cache] - content-length: ['530'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:25:55 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: '{"properties": {"userMetadata": "usermetadata-updated"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs consumergroup create] - Connection: [keep-alive] - Content-Length: ['56'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups","location":"West - US 2","properties":{"createdAt":"2018-01-27T01:25:57.2961981Z","updatedAt":"2018-01-27T01:25:57.2961981Z","userMetadata":"usermetadata-updated"}}'} - headers: - cache-control: [no-cache] - content-length: ['540'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:25: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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs consumergroup list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/$Default","name":"$Default","type":"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups","location":"West - US 2","properties":{"createdAt":"2018-01-27T01:25:51.7284578","updatedAt":"2018-01-27T01:25:51.7284578"}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004","name":"clicg000004","type":"Microsoft.EventHub/Namespaces/EventHubs/ConsumerGroups","location":"West - US 2","properties":{"createdAt":"2018-01-27T01:25:55.3848329","updatedAt":"2018-01-27T01:25:57.2130212","userMetadata":"usermetadata-updated"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['1027'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:25:57 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] - x-ms-inline-count: [''] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs consumergroup delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003/consumergroups/clicg000004?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:25:58 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:26: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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:26:01 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/operationresults/eventhubs-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_consumergroup000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/operationresults/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:26:31 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_consumergroup000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:26:33 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGRUg6NUZDT05TVU1FUkdST1VQVU9MTkpEMkdZV0pKNDZOTXw2MTU4MjFDMjc1OEFGMjU0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/eventhubs/azext_eventhub/tests/recordings/test_eh_eventhub.yaml b/src/eventhubs/azext_eventhub/tests/recordings/test_eh_eventhub.yaml deleted file mode 100644 index e6b9c16f13b..00000000000 --- a/src/eventhubs/azext_eventhub/tests/recordings/test_eh_eventhub.yaml +++ /dev/null @@ -1,494 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_eventnhub000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001","name":"cli_test_eh_eventnhub000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:26:34 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: '{"location": "westus2", "tags": {"{tag2: value2,": "", "tag1: value1}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}, "properties": {"isAutoInflateEnabled": - true, "maximumThroughputUnits": 4}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Length: ['200'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-27T01:26:36.543Z","updatedAt":"2018-01-27T01:26:36.543Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['760'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:26:35 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-27T01:26:36.543Z","updatedAt":"2018-01-27T01:26:59.467Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['758'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:27:05 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'] - CommandName: [eventhubs namespace show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-27T01:26:36.543Z","updatedAt":"2018-01-27T01:26:59.467Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['758'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:27:07 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: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub create] - Connection: [keep-alive] - Content-Length: ['2'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004","name":"eventhubs-eventhubcli000004","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US 2","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2018-01-27T01:27:08.32Z","updatedAt":"2018-01-27T01:27:13.71Z","partitionIds":["0","1","2","3"]}}'} - headers: - cache-control: [no-cache] - content-length: ['543'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:27:15 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004","name":"eventhubs-eventhubcli000004","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US 2","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2018-01-27T01:27:08.32","updatedAt":"2018-01-27T01:27:13.71","partitionIds":["0","1","2","3"]}}'} - headers: - cache-control: [no-cache] - content-length: ['541'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:27:16 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'] - CommandName: [eventhubs eventhub list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004","name":"eventhubs-eventhubcli000004","type":"Microsoft.EventHub/Namespaces/EventHubs","location":"West - US 2","properties":{"messageRetentionInDays":7,"partitionCount":4,"status":"Active","createdAt":"2018-01-27T01:27:08.32","updatedAt":"2018-01-27T01:27:13.71","partitionIds":["0","1","2","3"]}}]}'} - headers: - cache-control: [no-cache] - content-length: ['553'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:27:18 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] - x-ms-inline-count: [''] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"rights": ["Listen"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub authorizationrule create] - Connection: [keep-alive] - Content-Length: ['38'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules","location":"West - US 2","properties":{"rights":["Listen"]}}'} - headers: - cache-control: [no-cache] - content-length: ['444'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:27:20 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub authorizationrule show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.EventHub/Namespaces/EventHubs/AuthorizationRules","location":"West - US 2","properties":{"rights":["Listen"]}}'} - headers: - cache-control: [no-cache] - content-length: ['444'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:27:21 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'] - CommandName: [eventhubs eventhub authorizationrule keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003/ListKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=/JTC1BUsXjs1Keg6NngOt5lQEMTTT4ehrjSlihwGd/g=;EntityPath=eventhubs-eventhubcli000004","secondaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=pRBEICsSltvwkRoVKfsL1XPjJqxNU87OO4x2k/qxXfo=;EntityPath=eventhubs-eventhubcli000004","primaryKey":"/JTC1BUsXjs1Keg6NngOt5lQEMTTT4ehrjSlihwGd/g=","secondaryKey":"pRBEICsSltvwkRoVKfsL1XPjJqxNU87OO4x2k/qxXfo=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:27:22 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "PrimaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub authorizationrule keys renew] - Connection: [keep-alive] - Content-Length: ['25'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=smOjb89BBrWrSX8kKYst/kPoa/5MCM0rT19souxob0g=;EntityPath=eventhubs-eventhubcli000004","secondaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=pRBEICsSltvwkRoVKfsL1XPjJqxNU87OO4x2k/qxXfo=;EntityPath=eventhubs-eventhubcli000004","primaryKey":"smOjb89BBrWrSX8kKYst/kPoa/5MCM0rT19souxob0g=","secondaryKey":"pRBEICsSltvwkRoVKfsL1XPjJqxNU87OO4x2k/qxXfo=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:27:22 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "SecondaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub authorizationrule keys renew] - Connection: [keep-alive] - Content-Length: ['27'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=smOjb89BBrWrSX8kKYst/kPoa/5MCM0rT19souxob0g=;EntityPath=eventhubs-eventhubcli000004","secondaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=7Hsf8oec1uFq++ZqU1Z24xojAzZeKTZ9WEfHpn220b4=;EntityPath=eventhubs-eventhubcli000004","primaryKey":"smOjb89BBrWrSX8kKYst/kPoa/5MCM0rT19souxob0g=","secondaryKey":"7Hsf8oec1uFq++ZqU1Z24xojAzZeKTZ9WEfHpn220b4=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:27:23 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub authorizationrule delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:27: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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs eventhub delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/eventhubs/eventhubs-eventhubcli000004?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:27: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:27:26 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/operationresults/eventhubs-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_eventnhub000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/operationresults/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:27:57 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_eventnhub000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:27:58 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGRUg6NUZFVkVOVE5IVUJMSFFCSU1OUU1FTko1TkxBSkhFUXwzMzYwQjFFMTkxRTZGNkIzLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/eventhubs/azext_eventhub/tests/recordings/test_eh_namespace.yaml b/src/eventhubs/azext_eventhub/tests/recordings/test_eh_namespace.yaml deleted file mode 100644 index 1337ebb7fff..00000000000 --- a/src/eventhubs/azext_eventhub/tests/recordings/test_eh_namespace.yaml +++ /dev/null @@ -1,559 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_namespace000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001","name":"cli_test_eh_namespace000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:28:00 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} -- request: - body: 'b''{"name": "eventhubs-nscli000002"}''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace exists] - Connection: [keep-alive] - Content-Length: ['32'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - 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 - response: - body: {string: '{"nameAvailable":true,"reason":"None","message":null}'} - headers: - cache-control: [no-cache] - content-length: ['53'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:28: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"location": "westus2", "tags": {"{tag1: value1}": ""}, "sku": {"name": - "Standard", "tier": "Standard"}, "properties": {"isAutoInflateEnabled": true, - "maximumThroughputUnits": 4}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Length: ['179'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-27T01:28:03.38Z","updatedAt":"2018-01-27T01:28:03.38Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['739'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:28:02 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-27T01:28:03.38Z","updatedAt":"2018-01-27T01:28:26.417Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['738'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:28:32 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'] - CommandName: [eventhubs namespace show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-27T01:28:03.38Z","updatedAt":"2018-01-27T01:28:26.417Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['738'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:28:34 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'] - CommandName: [eventhubs namespace list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - 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/cli_test_eh_aliasf5s5nkcheqjmc2mzn75m4snwj2wigrjvsqzse5ppwzn7si5ect3tsrravj/providers/Microsoft.EventHub/namespaces/eh-nsclihjhv5jcmrabz","name":"eh-nsclihjhv5jcmrabz","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclihjhv5jcmrabz","createdAt":"2018-01-17T00:57:15.01Z","updatedAt":"2018-01-17T01:01:34.577Z","serviceBusEndpoint":"https://eh-nsclihjhv5jcmrabz.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManagesouthcentralus/providers/Microsoft.EventHub/namespaces/azureeventgridussc","name":"azureeventgridussc","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgridussc","createdAt":"2017-06-14T20:51:43.227Z","updatedAt":"2017-06-14T21:43:18.967Z","serviceBusEndpoint":"https://azureeventgridussc.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasidgr3hilhuj2666kgpjl7s2hxqafg54ykpee3s6tjnl7qdna2rdh5uzzzf/providers/Microsoft.EventHub/namespaces/eh-nscliymtueoq7yw5b","name":"eh-nscliymtueoq7yw5b","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscliymtueoq7yw5b","createdAt":"2018-01-19T00:09:20.84Z","updatedAt":"2018-01-19T00:23:19.863Z","serviceBusEndpoint":"https://eh-nscliymtueoq7yw5b.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias2mv7ov6fsgikow24xobpownip4z7mijgbqjghkrz5zav4njw5lcf6lf7px/providers/Microsoft.EventHub/namespaces/eh-nscli32h5uu2ipxcj","name":"eh-nscli32h5uu2ipxcj","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli32h5uu2ipxcj","createdAt":"2018-01-16T22:11:53.21Z","updatedAt":"2018-01-16T22:17:04.39Z","serviceBusEndpoint":"https://eh-nscli32h5uu2ipxcj.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasxh4udftkei2q74xi4exyt6ybmabkv6usze4edptutozpf5gvtct5ebcbb7/providers/Microsoft.EventHub/namespaces/eh-nsclirefjkkmqwy4a","name":"eh-nsclirefjkkmqwy4a","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclirefjkkmqwy4a","createdAt":"2018-01-26T21:14:25.727Z","updatedAt":"2018-01-26T21:43:32.957Z","serviceBusEndpoint":"https://eh-nsclirefjkkmqwy4a.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.EventHub/namespaces/Testinginflate","name":"Testinginflate","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":10,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testinginflate","createdAt":"2017-06-27T23:39:41.647Z","updatedAt":"2017-08-18T01:54:42.67Z","serviceBusEndpoint":"https://Testinginflate.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManagewesteurope/providers/Microsoft.EventHub/namespaces/azureeventgridweu","name":"azureeventgridweu","type":"Microsoft.EventHub/Namespaces","location":"West - Europe","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgridweu","createdAt":"2017-06-14T20:52:52.023Z","updatedAt":"2017-08-10T01:30:49.39Z","serviceBusEndpoint":"https://azureeventgridweu.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-ps2924/providers/Microsoft.EventHub/namespaces/PSTestEH-ps4898","name":"PSTestEH-ps4898","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:pstesteh-ps4898","createdAt":"2017-11-30T18:27:57.223Z","updatedAt":"2017-11-30T18:28:19.807Z","serviceBusEndpoint":"https://PSTestEH-ps4898.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgrid-monitoring/providers/Microsoft.EventHub/namespaces/eventgrid-monitoring","name":"eventgrid-monitoring","type":"Microsoft.EventHub/Namespaces","location":"Central - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventgrid-monitoring","createdAt":"2017-05-19T19:13:03.853Z","updatedAt":"2017-08-17T17:27:13.863Z","serviceBusEndpoint":"https://eventgrid-monitoring.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasg4iqo576d2twd4qc2lh7nicaqrbiop577a6ay6jdmyf6ttnncvwttfraa5/providers/Microsoft.EventHub/namespaces/eh-nscli2f64ppr4ehks","name":"eh-nscli2f64ppr4ehks","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli2f64ppr4ehks","createdAt":"2018-01-09T21:42:36.447Z","updatedAt":"2018-01-09T23:46:03.63Z","serviceBusEndpoint":"https://eh-nscli2f64ppr4ehks.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasxdyxbx75xbfdhtkchxrdnk7drdb7lusuik742vmrirdnr5x5durtbrgvno/providers/Microsoft.EventHub/namespaces/eh-nscli46glcvwydevl","name":"eh-nscli46glcvwydevl","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli46glcvwydevl","createdAt":"2018-01-09T04:38:46.01Z","updatedAt":"2018-01-09T04:52:27.417Z","serviceBusEndpoint":"https://eh-nscli46glcvwydevl.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.EventHub/namespaces/TestingAuthoruleparameterset","name":"TestingAuthoruleparameterset","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testingauthoruleparameterset","createdAt":"2018-01-25T18:57:09.113Z","updatedAt":"2018-01-25T18:57:34.093Z","serviceBusEndpoint":"https://TestingAuthoruleparameterset.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliaskvxl3r7gta5a3xp5hh6arbwhcwxjqnvyaukvsik46wlomw2vy4hzbjxn3u/providers/Microsoft.EventHub/namespaces/eh-nsclir4kme27ytyj7","name":"eh-nsclir4kme27ytyj7","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclir4kme27ytyj7","createdAt":"2018-01-22T02:47:49.143Z","updatedAt":"2018-01-22T02:51:31.507Z","serviceBusEndpoint":"https://eh-nsclir4kme27ytyj7.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":20},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridResourceGroup/providers/Microsoft.EventHub/namespaces/eventgrid-eventhub","name":"eventgrid-eventhub","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventgrid-eventhub","createdAt":"2017-04-26T16:51:02.323Z","updatedAt":"2017-08-18T02:12:27.463Z","serviceBusEndpoint":"https://eventgrid-eventhub.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-27T01:28:03.38Z","updatedAt":"2018-01-27T01:28:26.417Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.EventHub/namespaces/testnamespace099","name":"testnamespace099","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testnamespace099","createdAt":"2017-05-15T23:10:02.34Z","updatedAt":"2017-08-18T01:50:43.933Z","serviceBusEndpoint":"https://testnamespace099.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.EventHub/namespaces/testnamespace098","name":"testnamespace098","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testnamespace098","createdAt":"2017-05-15T22:21:57.81Z","updatedAt":"2017-08-18T02:04:18.8Z","serviceBusEndpoint":"https://testnamespace098.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Basic","tier":"Basic","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GridToHubResourceGroup/providers/Microsoft.EventHub/namespaces/GridToHubTest","name":"GridToHubTest","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:gridtohubtest","createdAt":"2017-07-05T18:59:46.357Z","updatedAt":"2017-08-18T02:03:04.213Z","serviceBusEndpoint":"https://GridToHubTest.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eg-nok1-usw2/providers/Microsoft.EventHub/namespaces/eg-nok1-usw2-eh-001","name":"eg-nok1-usw2-eh-001","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":20,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eg-nok1-usw2-eh-001","createdAt":"2017-12-27T23:21:04.793Z","updatedAt":"2017-12-27T23:21:28.457Z","serviceBusEndpoint":"https://eg-nok1-usw2-eh-001.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-ps3277/providers/Microsoft.EventHub/namespaces/PSTestEH-ps460","name":"PSTestEH-ps460","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:pstesteh-ps460","createdAt":"2017-11-30T19:22:17.26Z","updatedAt":"2017-11-30T19:23:58.753Z","serviceBusEndpoint":"https://PSTestEH-ps460.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace3q5lltod3bkd7vplj7dt6leygj2i4mqw4ajikdjjamsds7na2eu4od/providers/Microsoft.EventHub/namespaces/eventhubs-nsclidtnue","name":"eventhubs-nsclidtnue","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nsclidtnue","createdAt":"2018-01-19T01:25:48.83Z","updatedAt":"2018-01-19T01:26:17.03Z","serviceBusEndpoint":"https://eventhubs-nsclidtnue.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eventgridmonitoring/providers/Microsoft.EventHub/namespaces/eventgridmonitoring","name":"eventgridmonitoring","type":"Microsoft.EventHub/Namespaces","location":"Central - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventgridmonitoring","createdAt":"2017-05-19T19:10:45.52Z","updatedAt":"2017-08-17T17:27:41.813Z","serviceBusEndpoint":"https://eventgridmonitoring.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventHub/namespaces/kalstest2","name":"kalstest2","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:kalstest2","createdAt":"2017-09-23T00:57:11.983Z","updatedAt":"2017-09-23T00:58:39.957Z","serviceBusEndpoint":"https://kalstest2.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-onesdk5504/providers/Microsoft.EventHub/namespaces/PSTestEH-onesdk6034","name":"PSTestEH-onesdk6034","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:pstesteh-onesdk6034","createdAt":"2017-09-18T23:59:58.2Z","updatedAt":"2017-09-19T00:00:23.943Z","serviceBusEndpoint":"https://PSTestEH-onesdk6034.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/westus","name":"westus","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:westus","createdAt":"2018-01-25T18:40:27.26Z","updatedAt":"2018-01-25T18:40:52.76Z","serviceBusEndpoint":"https://westus.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-ps9059/providers/Microsoft.EventHub/namespaces/PSTestEH-ps4460","name":"PSTestEH-ps4460","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:pstesteh-ps4460","createdAt":"2017-11-30T00:38:29.223Z","updatedAt":"2017-11-30T00:39:48.487Z","serviceBusEndpoint":"https://PSTestEH-ps4460.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eg-rgr1-uswc/providers/Microsoft.EventHub/namespaces/rgr1-eventhub1","name":"rgr1-eventhub1","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:rgr1-eventhub1","createdAt":"2017-11-22T23:42:33.113Z","updatedAt":"2017-11-22T23:47:39.017Z","serviceBusEndpoint":"https://rgr1-eventhub1.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliaskpunb5qmw2gwu5h7snjaqdtkq2pn3hxfwodkt3krnjo23u7qvuwbnkp7m6/providers/Microsoft.EventHub/namespaces/eh-nscliv6m3lpg5t5yj","name":"eh-nscliv6m3lpg5t5yj","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscliv6m3lpg5t5yj","createdAt":"2018-01-11T01:16:44.9Z","updatedAt":"2018-01-11T01:30:32.89Z","serviceBusEndpoint":"https://eh-nscliv6m3lpg5t5yj.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliash6srcvrszaufw5liurq6vjxjgylz2ehpxjmnpaujh2fievbmshaeckggfg/providers/Microsoft.EventHub/namespaces/eh-nsclisz7d4nkm5pm4","name":"eh-nsclisz7d4nkm5pm4","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclisz7d4nkm5pm4","createdAt":"2018-01-10T23:12:14.507Z","updatedAt":"2018-01-10T23:26:27.68Z","serviceBusEndpoint":"https://eh-nsclisz7d4nkm5pm4.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SDKTests/providers/Microsoft.EventHub/namespaces/TestingIgnite","name":"TestingIgnite","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testingignite","createdAt":"2017-09-22T19:56:29.517Z","updatedAt":"2017-09-22T19:58:02.333Z","serviceBusEndpoint":"https://TestingIgnite.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias2mv7ov6fsgikow24xobpownip4z7mijgbqjghkrz5zav4njw5lcf6lf7px/providers/Microsoft.EventHub/namespaces/eh-nscli5r7wvmsetxqr","name":"eh-nscli5r7wvmsetxqr","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli5r7wvmsetxqr","createdAt":"2018-01-16T22:12:56.463Z","updatedAt":"2018-01-16T22:17:00.823Z","serviceBusEndpoint":"https://eh-nscli5r7wvmsetxqr.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliascky7msnikdvg7monugngsco6s44dsylbg6ubkzabkjg3pq457pyq7kmcqu/providers/Microsoft.EventHub/namespaces/eh-nsclidyhusj34vxzm","name":"eh-nsclidyhusj34vxzm","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclidyhusj34vxzm","createdAt":"2018-01-16T03:25:56.76Z","updatedAt":"2018-01-16T03:29:32.193Z","serviceBusEndpoint":"https://eh-nsclidyhusj34vxzm.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasfbbatpr2evcnfafcvf4ss7zyy6qdqbhc5mbsalcb63gfwbjhukcicv6b3q/providers/Microsoft.EventHub/namespaces/eh-nsclin6wxggktaxhn","name":"eh-nsclin6wxggktaxhn","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclin6wxggktaxhn","createdAt":"2018-01-16T23:36:27.027Z","updatedAt":"2018-01-16T23:41:09.587Z","serviceBusEndpoint":"https://eh-nsclin6wxggktaxhn.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasfbbatpr2evcnfafcvf4ss7zyy6qdqbhc5mbsalcb63gfwbjhukcicv6b3q/providers/Microsoft.EventHub/namespaces/eh-nsclixl2fuhach6d3","name":"eh-nsclixl2fuhach6d3","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclixl2fuhach6d3","createdAt":"2018-01-16T23:37:31.573Z","updatedAt":"2018-01-16T23:41:10.95Z","serviceBusEndpoint":"https://eh-nsclixl2fuhach6d3.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasf5s5nkcheqjmc2mzn75m4snwj2wigrjvsqzse5ppwzn7si5ect3tsrravj/providers/Microsoft.EventHub/namespaces/eh-nsclinv3fa4okkwwm","name":"eh-nsclinv3fa4okkwwm","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclinv3fa4okkwwm","createdAt":"2018-01-17T00:57:49.527Z","updatedAt":"2018-01-17T01:01:34.373Z","serviceBusEndpoint":"https://eh-nsclinv3fa4okkwwm.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasrdwk3qo25uvmozoy46edwk5dxzoyevdhfg6dknv2qmsgo47phzgttwpaky/providers/Microsoft.EventHub/namespaces/eh-nsclihlp7wulxevqi","name":"eh-nsclihlp7wulxevqi","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclihlp7wulxevqi","createdAt":"2018-01-17T03:16:45.66Z","updatedAt":"2018-01-17T03:20:19.66Z","serviceBusEndpoint":"https://eh-nsclihlp7wulxevqi.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace3q5lltod3bkd7vplj7dt6leygj2i4mqw4ajikdjjamsds7na2eu4od/providers/Microsoft.EventHub/namespaces/mynamespacesecondary","name":"mynamespacesecondary","type":"Microsoft.EventHub/Namespaces","location":"East - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":19,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:mynamespacesecondary","createdAt":"2018-01-19T23:36:48.223Z","updatedAt":"2018-01-19T23:55:19.777Z","serviceBusEndpoint":"https://mynamespacesecondary.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasnjnzdt2jvteq55ydkxnizbptzi46kbxpu5n4xr7ax3wadiiqaow4xcziwa/providers/Microsoft.EventHub/namespaces/eh-nscliy4ku454f37xv","name":"eh-nscliy4ku454f37xv","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscliy4ku454f37xv","createdAt":"2018-01-09T23:06:02.247Z","updatedAt":"2018-01-09T23:14:28.787Z","serviceBusEndpoint":"https://eh-nscliy4ku454f37xv.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias7hu7sgo7urftiyxrlj3lgvj5ydon22elqoem6wm6dwfc737vydqwdk7sxh/providers/Microsoft.EventHub/namespaces/eh-nsclihctvzbzneiyc","name":"eh-nsclihctvzbzneiyc","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclihctvzbzneiyc","createdAt":"2018-01-26T22:13:43.42Z","updatedAt":"2018-01-26T22:42:45.56Z","serviceBusEndpoint":"https://eh-nsclihctvzbzneiyc.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasqntnpeizwqrb7tm33v2657das6z4nfis3cgc43vjowr65wjvip4z6vntjz/providers/Microsoft.EventHub/namespaces/eh-nsclidyruyxipfsqs","name":"eh-nsclidyruyxipfsqs","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclidyruyxipfsqs","createdAt":"2018-01-19T01:04:20.747Z","updatedAt":"2018-01-19T01:18:18.06Z","serviceBusEndpoint":"https://eh-nsclidyruyxipfsqs.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasincisbatr7gdt44xretopkgunmqv5vxsrtk3iq7d4wqporp2yxa3uu2sys/providers/Microsoft.EventHub/namespaces/eh-nsclipl555ygkgzlr","name":"eh-nsclipl555ygkgzlr","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclipl555ygkgzlr","createdAt":"2018-01-22T02:54:03.753Z","updatedAt":"2018-01-22T03:08:22.34Z","serviceBusEndpoint":"https://eh-nsclipl555ygkgzlr.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":0},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eg-hitesh-perf/providers/Microsoft.EventHub/namespaces/eventgrid-eventhub-ussc","name":"eventgrid-eventhub-ussc","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventgrid-eventhub-ussc","createdAt":"2017-05-25T20:36:13.997Z","updatedAt":"2017-05-25T20:36:37.893Z","serviceBusEndpoint":"https://eventgrid-eventhub-ussc.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManageeastasia/providers/Microsoft.EventHub/namespaces/azureeventgridae","name":"azureeventgridae","type":"Microsoft.EventHub/Namespaces","location":"East - Asia","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgridae","createdAt":"2017-06-14T20:56:44.477Z","updatedAt":"2017-08-02T01:08:31.437Z","serviceBusEndpoint":"https://azureeventgridae.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasuabxoisqt5ghyuwgudrymd4wwztlqyh6poga4g3w54qnzu3z7robkl6t5q/providers/Microsoft.EventHub/namespaces/eh-nsclivwtrpelsn2fo","name":"eh-nsclivwtrpelsn2fo","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclivwtrpelsn2fo","createdAt":"2018-01-16T02:43:45.98Z","updatedAt":"2018-01-16T02:47:51.253Z","serviceBusEndpoint":"https://eh-nsclivwtrpelsn2fo.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasrdwk3qo25uvmozoy46edwk5dxzoyevdhfg6dknv2qmsgo47phzgttwpaky/providers/Microsoft.EventHub/namespaces/eh-nscli6oipmplfhbzp","name":"eh-nscli6oipmplfhbzp","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli6oipmplfhbzp","createdAt":"2018-01-17T03:16:11.223Z","updatedAt":"2018-01-17T03:20:19.61Z","serviceBusEndpoint":"https://eh-nscli6oipmplfhbzp.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliaskvxl3r7gta5a3xp5hh6arbwhcwxjqnvyaukvsik46wlomw2vy4hzbjxn3u/providers/Microsoft.EventHub/namespaces/eh-nscliz7q6nui7ngjv","name":"eh-nscliz7q6nui7ngjv","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscliz7q6nui7ngjv","createdAt":"2018-01-22T02:47:13.563Z","updatedAt":"2018-01-22T02:51:30.11Z","serviceBusEndpoint":"https://eh-nscliz7q6nui7ngjv.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasluiavtblxmux2kd6hennir4fqnbacd5gopkeuj6imcogpn5nfhvfx7bpkl/providers/Microsoft.EventHub/namespaces/eh-nscli45rm5qzdbmin","name":"eh-nscli45rm5qzdbmin","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli45rm5qzdbmin","createdAt":"2018-01-09T03:33:05.463Z","updatedAt":"2018-01-09T03:42:13.513Z","serviceBusEndpoint":"https://eh-nscli45rm5qzdbmin.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias2ent77voy7rwbiswwiop34bey35mxim3qb5qvzpligs53ynxgg7m6ukfx4/providers/Microsoft.EventHub/namespaces/eh-nscli5zoh2t65mkrw","name":"eh-nscli5zoh2t65mkrw","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli5zoh2t65mkrw","createdAt":"2018-01-17T00:13:15.48Z","updatedAt":"2018-01-17T00:18:46.563Z","serviceBusEndpoint":"https://eh-nscli5zoh2t65mkrw.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-ps5541/providers/Microsoft.EventHub/namespaces/PSTestEH-ps2672","name":"PSTestEH-ps2672","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:pstesteh-ps2672","createdAt":"2017-11-30T00:23:13.857Z","updatedAt":"2017-11-30T00:24:53.06Z","serviceBusEndpoint":"https://PSTestEH-ps2672.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasapj44zuqfujsl26kgqs5brvhhfc5zofi2uyqsp6knwtlucxftxaxmif6a2/providers/Microsoft.EventHub/namespaces/eh-nsclimnbbm4rpn473","name":"eh-nsclimnbbm4rpn473","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclimnbbm4rpn473","createdAt":"2018-01-18T23:03:27.803Z","updatedAt":"2018-01-19T00:07:06.647Z","serviceBusEndpoint":"https://eh-nsclimnbbm4rpn473.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasuabxoisqt5ghyuwgudrymd4wwztlqyh6poga4g3w54qnzu3z7robkl6t5q/providers/Microsoft.EventHub/namespaces/eh-nsclibiuej5yxtkd2","name":"eh-nsclibiuej5yxtkd2","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclibiuej5yxtkd2","createdAt":"2018-01-16T02:44:18.997Z","updatedAt":"2018-01-16T02:47:50.287Z","serviceBusEndpoint":"https://eh-nsclibiuej5yxtkd2.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-ps3336/providers/Microsoft.EventHub/namespaces/PSTestEH-ps2442","name":"PSTestEH-ps2442","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:pstesteh-ps2442","createdAt":"2017-11-29T19:38:12.597Z","updatedAt":"2017-11-29T19:38:39.907Z","serviceBusEndpoint":"https://PSTestEH-ps2442.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManagenortheurope/providers/Microsoft.EventHub/namespaces/azureeventgridneu","name":"azureeventgridneu","type":"Microsoft.EventHub/Namespaces","location":"North - Europe","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgridneu","createdAt":"2017-06-14T20:54:18.227Z","updatedAt":"2017-06-14T21:45:04.64Z","serviceBusEndpoint":"https://azureeventgridneu.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/RGName-ps5157/providers/Microsoft.EventHub/namespaces/PSTestEH-ps5102","name":"PSTestEH-ps5102","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:pstesteh-ps5102","createdAt":"2017-11-30T01:29:20.62Z","updatedAt":"2017-11-30T01:30:04.59Z","serviceBusEndpoint":"https://PSTestEH-ps5102.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasu6lcs66vwhtxj4d62fqcdlkqt3yotasky4m7lybezc63e43c4kxu6ppp3h/providers/Microsoft.EventHub/namespaces/eh-nscliz2kdrglpwnre","name":"eh-nscliz2kdrglpwnre","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscliz2kdrglpwnre","createdAt":"2018-01-17T03:32:34.083Z","updatedAt":"2018-01-17T03:46:17.77Z","serviceBusEndpoint":"https://eh-nscliz2kdrglpwnre.servicebus.windows.net:443/","status":"Disabled"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace3q5lltod3bkd7vplj7dt6leygj2i4mqw4ajikdjjamsds7na2eu4od/providers/Microsoft.EventHub/namespaces/mynamespaceprimary12CLI","name":"mynamespaceprimary12CLI","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{"tag1":"value1","tag2":"value2"},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":19,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:mynamespaceprimary12cli","createdAt":"2018-01-19T23:35:29.33Z","updatedAt":"2018-01-19T23:53:12.267Z","serviceBusEndpoint":"https://mynamespaceprimary12CLI.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/kalstest/providers/Microsoft.EventHub/namespaces/kalstest","name":"kalstest","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:kalstest","createdAt":"2017-09-23T00:51:45.243Z","updatedAt":"2017-09-23T00:53:04.39Z","serviceBusEndpoint":"https://kalstest.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManageeastus/providers/Microsoft.EventHub/namespaces/azureeventgriduse","name":"azureeventgriduse","type":"Microsoft.EventHub/Namespaces","location":"East - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgriduse","createdAt":"2017-06-14T18:15:46.113Z","updatedAt":"2017-06-14T22:06:10.537Z","serviceBusEndpoint":"https://azureeventgriduse.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManagecentralus/providers/Microsoft.EventHub/namespaces/azureeventgridusc","name":"azureeventgridusc","type":"Microsoft.EventHub/Namespaces","location":"Central - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgridusc","createdAt":"2017-06-14T17:48:58.46Z","updatedAt":"2017-08-17T17:29:13.593Z","serviceBusEndpoint":"https://azureeventgridusc.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManagewestus/providers/Microsoft.EventHub/namespaces/azureeventgridusw","name":"azureeventgridusw","type":"Microsoft.EventHub/Namespaces","location":"West - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgridusw","createdAt":"2017-06-14T20:50:37.913Z","updatedAt":"2017-08-18T02:02:25.713Z","serviceBusEndpoint":"https://azureeventgridusw.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManageeastus/providers/Microsoft.EventHub/namespaces/azureeventgrid01use","name":"azureeventgrid01use","type":"Microsoft.EventHub/Namespaces","location":"East - US","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgrid01use","createdAt":"2017-06-14T17:59:32.16Z","updatedAt":"2017-06-14T17:59:55.023Z","serviceBusEndpoint":"https://azureeventgrid01use.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliascky7msnikdvg7monugngsco6s44dsylbg6ubkzabkjg3pq457pyq7kmcqu/providers/Microsoft.EventHub/namespaces/eh-nsclidjlkdqwkxyp2","name":"eh-nsclidjlkdqwkxyp2","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nsclidjlkdqwkxyp2","createdAt":"2018-01-16T03:25:23.523Z","updatedAt":"2018-01-16T03:29:33.037Z","serviceBusEndpoint":"https://eh-nsclidjlkdqwkxyp2.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_alias2ent77voy7rwbiswwiop34bey35mxim3qb5qvzpligs53ynxgg7m6ukfx4/providers/Microsoft.EventHub/namespaces/eh-nscliu5bm3r5iisqx","name":"eh-nscliu5bm3r5iisqx","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscliu5bm3r5iisqx","createdAt":"2018-01-17T00:14:20.873Z","updatedAt":"2018-01-17T00:18:46.907Z","serviceBusEndpoint":"https://eh-nscliu5bm3r5iisqx.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasnjnzdt2jvteq55ydkxnizbptzi46kbxpu5n4xr7ax3wadiiqaow4xcziwa/providers/Microsoft.EventHub/namespaces/eh-nscliyvopwjqx7kwg","name":"eh-nscliyvopwjqx7kwg","type":"Microsoft.EventHub/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscliyvopwjqx7kwg","createdAt":"2018-01-09T23:04:29.22Z","updatedAt":"2018-01-09T23:14:28.147Z","serviceBusEndpoint":"https://eh-nscliyvopwjqx7kwg.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GenevaWarmPathManageaustraliasoutheast/providers/Microsoft.EventHub/namespaces/azureeventgridause","name":"azureeventgridause","type":"Microsoft.EventHub/Namespaces","location":"Australia - Southeast","tags":{},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:azureeventgridause","createdAt":"2017-06-14T20:55:24.083Z","updatedAt":"2017-08-15T23:04:54.537Z","serviceBusEndpoint":"https://azureeventgridause.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_aliasapj44zuqfujsl26kgqs5brvhhfc5zofi2uyqsp6knwtlucxftxaxmif6a2/providers/Microsoft.EventHub/namespaces/eh-nscli7kkxif26b5y7","name":"eh-nscli7kkxif26b5y7","type":"Microsoft.EventHub/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"isAutoInflateEnabled":false,"maximumThroughputUnits":0,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eh-nscli7kkxif26b5y7","createdAt":"2018-01-19T00:03:23.573Z","updatedAt":"2018-01-19T00:07:06.383Z","serviceBusEndpoint":"https://eh-nscli7kkxif26b5y7.servicebus.windows.net:443/","status":"Active"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['46968'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:28:33 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'] - CommandName: [eventhubs namespace list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/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/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002","name":"eventhubs-nscli000002","type":"Microsoft.EventHub/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"isAutoInflateEnabled":true,"maximumThroughputUnits":4,"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventhubs-nscli000002","createdAt":"2018-01-27T01:28:03.38Z","updatedAt":"2018-01-27T01:28:26.417Z","serviceBusEndpoint":"https://eventhubs-nscli000002.servicebus.windows.net:443/","status":"Active"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['750'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:28:34 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: '{"properties": {"rights": ["Send"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace authorizationrule create] - Connection: [keep-alive] - Content-Length: ['36'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"West - US 2","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['396'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:29:06 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace authorizationrule show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"West - US 2","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['396'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:29:07 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'] - CommandName: [eventhubs namespace authorizationrule show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/RootManageSharedAccessKey?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"Microsoft.EventHub/Namespaces/AuthorizationRules","location":"West - US 2","properties":{"rights":["Listen","Manage","Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['424'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:29:08 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'] - CommandName: [eventhubs namespace authorizationrule keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003/listKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Akub/WtqbXRe95XXP++qS4YkZHu2tcCFrjf+We8ORm4=","secondaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=UXabEKareswrMdOXAskGupE9jDE3XfTewqqIVFCW/r4=","primaryKey":"Akub/WtqbXRe95XXP++qS4YkZHu2tcCFrjf+We8ORm4=","secondaryKey":"UXabEKareswrMdOXAskGupE9jDE3XfTewqqIVFCW/r4=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['536'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:29:09 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "PrimaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace authorizationrule keys renew] - Connection: [keep-alive] - Content-Length: ['25'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=0cArClhq1UsW4BPXBj2PzJ8kh+mBCm3U7P+J4Xmo5eo=","secondaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=UXabEKareswrMdOXAskGupE9jDE3XfTewqqIVFCW/r4=","primaryKey":"0cArClhq1UsW4BPXBj2PzJ8kh+mBCm3U7P+J4Xmo5eo=","secondaryKey":"UXabEKareswrMdOXAskGupE9jDE3XfTewqqIVFCW/r4=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['536'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:29: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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "SecondaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace authorizationrule keys renew] - Connection: [keep-alive] - Content-Length: ['27'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=0cArClhq1UsW4BPXBj2PzJ8kh+mBCm3U7P+J4Xmo5eo=","secondaryConnectionString":"Endpoint=sb://eventhubs-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=KlPfnHU2csay7EGllbDfPcv2jX1NSfmvwSgnv5bmZE4=","primaryKey":"0cArClhq1UsW4BPXBj2PzJ8kh+mBCm3U7P+J4Xmo5eo=","secondaryKey":"KlPfnHU2csay7EGllbDfPcv2jX1NSfmvwSgnv5bmZE4=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['536'] - content-type: [application/json; charset=utf-8] - date: ['Sat, 27 Jan 2018 01:29:43 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] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace authorizationrule delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/AuthorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:29: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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:29:59 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/operationresults/eventhubs-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [eventhubs namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-eventhub/1.2.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_eh_namespace000001/providers/Microsoft.EventHub/namespaces/eventhubs-nscli000002/operationresults/eventhubs-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:30: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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_eh_namespace000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Sat, 27 Jan 2018 01:30:31 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGRUg6NUZOQU1FU1BBQ0VVTlo2SEFIV1hQWFhPR1MzUktPTnw2RkEzQjNBMTU5MjJFM0M1LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/eventhubs/azext_eventhub/tests/test_eventhub_commands.py b/src/eventhubs/azext_eventhub/tests/test_eventhub_commands.py deleted file mode 100644 index 9ac186e1874..00000000000 --- a/src/eventhubs/azext_eventhub/tests/test_eventhub_commands.py +++ /dev/null @@ -1,316 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -# AZURE CLI EventHub - NAMESPACE TEST DEFINITIONS - -import time - -from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) - -from azext_eventhub.eventhub.models import ProvisioningStateDR - - -# pylint: disable=line-too-long -# pylint: disable=too-many-lines - - -class EHNamespaceCURDScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='cli_test_eh_namespace') - def test_eh_namespace(self, resource_group): - self.kwargs.update({ - 'loc': 'westus2', - 'rg': resource_group, - 'namespacename': self.create_random_name(prefix='eventhubs-nscli', length=20), - 'tags': {'tag1: value1'}, - 'sku': 'Standard', - 'tier': 'Standard', - 'authoname': self.create_random_name(prefix='cliAutho', length=20), - 'defaultauthorizationrule': 'RootManageSharedAccessKey', - 'accessrights': 'Send', - 'primary': 'PrimaryKey', - 'secondary': 'SecondaryKey', - 'isautoinflateenabled': 'True', - 'maximumthroughputunits': 4 - }) - - # Check for the NameSpace name Availability - - self.cmd('eventhubs namespace exists --name {namespacename}', - checks=[self.check('nameAvailable', True)]) - - # Create Namespace - self.cmd('eventhubs namespace create --resource-group {rg} --name {namespacename} --location {loc} --tags {tags} --sku-name {sku} --sku-tier {tier} --is-auto-inflate-enabled {isautoinflateenabled} --maximum-throughput-units {maximumthroughputunits}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Get Created Namespace - self.cmd('eventhubs namespace show --resource-group {rg} --name {namespacename}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Get Created Namespace list by subscription - listnamespaceresult = self.cmd('eventhubs namespace list').output - self.assertGreater(len(listnamespaceresult), 0) - - # Get Created Namespace list by ResourceGroup - listnamespacebyresourcegroupresult = self.cmd('eventhubs namespace list --resource-group {rg}').output - self.assertGreater(len(listnamespacebyresourcegroupresult), 0) - - # Create Authoriazation Rule - self.cmd('eventhubs namespace authorizationrule create --resource-group {rg} --namespace-name {namespacename} --name {authoname} --access-rights {accessrights}', - checks=[self.check('name', self.kwargs['authoname'])]) - - # Get Authorization Rule - self.cmd('eventhubs namespace authorizationrule show --resource-group {rg} --namespace-name {namespacename} --name {authoname}', checks=[self.check('name', self.kwargs['authoname'])]) - - # Get Default Authorization Rule - self.cmd('eventhubs namespace authorizationrule show --resource-group {rg} --namespace-name {namespacename} --name {defaultauthorizationrule}', - checks=[self.check('name', self.kwargs['defaultauthorizationrule'])]) - - # Get Authorization Rule Listkeys - self.cmd('eventhubs namespace authorizationrule keys list --resource-group {rg} --namespace-name {namespacename} --name {authoname}') - - # Regeneratekeys - Primary - self.cmd( - 'eventhubs namespace authorizationrule keys renew --resource-group {rg} --namespace-name {namespacename} --name {authoname} --key-name {primary}') - - # Regeneratekeys - Secondary - self.cmd('eventhubs namespace authorizationrule keys renew --resource-group {rg} --namespace-name {namespacename} --name {authoname} --key-name {secondary}') - - # Delete AuthorizationRule - self.cmd('eventhubs namespace authorizationrule delete --resource-group {rg} --namespace-name {namespacename} --name {authoname}') - - # Delete Namespace list by ResourceGroup - self.cmd('eventhubs namespace delete --resource-group {rg} --name {namespacename}') - - @ResourceGroupPreparer(name_prefix='cli_test_eh_eventnhub') - def test_eh_eventhub(self, resource_group): - self.kwargs.update({ - 'loc': 'westus2', - 'rg': resource_group, - 'namespacename': self.create_random_name(prefix='eventhubs-nscli', length=20), - 'tags': {'tag1: value1', 'tag2: value2'}, - 'sku': 'Standard', - 'tier': 'Standard', - 'authoname': self.create_random_name(prefix='cliAutho', length=20), - 'defaultauthorizationrule': 'RootManageSharedAccessKey', - 'accessrights': 'Listen', - 'primary': 'PrimaryKey', - 'secondary': 'SecondaryKey', - 'eventhubname': self.create_random_name(prefix='eventhubs-eventhubcli', length=25), - 'eventhubauthoname': self.create_random_name(prefix='cliEventAutho', length=25), - 'isautoinflateenabled': 'True', - 'maximumthroughputunits': 4, - 'messageretentionindays': 4, - 'partitioncount': 4 - }) - - # Create Namespace - self.cmd('eventhubs namespace create --resource-group {rg} --name {namespacename} --location {loc} --tags {tags} --sku-name {sku} --sku-tier {tier} --is-auto-inflate-enabled {isautoinflateenabled} --maximum-throughput-units {maximumthroughputunits}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Get Created Namespace - self.cmd('eventhubs namespace show --resource-group {rg} --name {namespacename}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Create Eventhub - self.cmd('eventhubs eventhub create --resource-group {rg} --namespace-name {namespacename} --name {eventhubname}', checks=[self.check('name', self.kwargs['eventhubname'])]) - - # Get Eventhub - self.cmd('eventhubs eventhub show --resource-group {rg} --namespace-name {namespacename} --name {eventhubname}', checks=[self.check('name', self.kwargs['eventhubname'])]) - - # Eventhub List - listeventhub = self.cmd('eventhubs eventhub list --resource-group {rg} --namespace-name {namespacename}').output - self.assertGreater(len(listeventhub), 0) - - # Create Authoriazation Rule - self.cmd('eventhubs eventhub authorizationrule create --resource-group {rg} --namespace-name {namespacename} --event-hub-name {eventhubname} --name {authoname} --access-rights {accessrights}', checks=[self.check('name', self.kwargs['authoname'])]) - - # Get Create Authorization Rule - self.cmd('eventhubs eventhub authorizationrule show --resource-group {rg} --namespace-name {namespacename} --event-hub-name {eventhubname} --name {authoname}', checks=[self.check('name', self.kwargs['authoname'])]) - - # Get Authorization Rule Listkeys - self.cmd('eventhubs eventhub authorizationrule keys list --resource-group {rg} --namespace-name {namespacename} --event-hub-name {eventhubname} --name {authoname}') - - # Regeneratekeys - Primary - regenrateprimarykeyresult = self.cmd('eventhubs eventhub authorizationrule keys renew --resource-group {rg} --namespace-name {namespacename} --event-hub-name {eventhubname} --name {authoname} --key-name {primary}') - self.assertIsNotNone(regenrateprimarykeyresult) - - # Regeneratekeys - Secondary - regenratesecondarykeyresult = self.cmd('eventhubs eventhub authorizationrule keys renew --resource-group {rg} --namespace-name {namespacename} --event-hub-name {eventhubname} --name {authoname} --key-name {secondary}') - self.assertIsNotNone(regenratesecondarykeyresult) - - # Delete Eventhub AuthorizationRule - self.cmd('eventhubs eventhub authorizationrule delete --resource-group {rg} --namespace-name {namespacename} --event-hub-name {eventhubname} --name {authoname}') - - # Delete Eventhub - self.cmd('eventhubs eventhub delete --resource-group {rg} --namespace-name {namespacename} --name {eventhubname}') - - # Delete Namespace - self.cmd('eventhubs namespace delete --resource-group {rg} --name {namespacename}') - - @ResourceGroupPreparer(name_prefix='cli_test_eh_consumergroup') - def test_eh_consumergroup(self, resource_group): - self.kwargs.update({ - 'loc': 'westus2', - 'rg': resource_group, - 'namespacename': self.create_random_name(prefix='eventhubs-nscli', length=20), - 'tags': {'tag1: value1', 'tag2: value2'}, - 'sku': 'Standard', - 'tier': 'Standard', - 'eventhubname': self.create_random_name(prefix='eventhubs-eventhubcli', length=25), - 'isautoinflateenabled': 'True', - 'maximumthroughputunits': 4, - 'consumergroupname': self.create_random_name(prefix='clicg', length=20), - 'usermetadata1': 'usermetadata', - 'usermetadata2': 'usermetadata-updated' - }) - - # Create Namespace - self.cmd('eventhubs namespace create --resource-group {rg} --name {namespacename} --location {loc} --tags {tags} --sku-name {sku} --sku-tier {tier} --is-auto-inflate-enabled {isautoinflateenabled} --maximum-throughput-units {maximumthroughputunits}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Get Created Namespace - self.cmd('eventhubs namespace show --resource-group {rg} --name {namespacename}', checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Create Eventhub - self.cmd('eventhubs eventhub create --resource-group {rg} --namespace-name {namespacename} --name {eventhubname}', checks=[self.check('name', self.kwargs['eventhubname'])]) - - # Get Eventhub - self.cmd('eventhubs eventhub show --resource-group {rg} --namespace-name {namespacename} --name {eventhubname}', checks=[self.check('name', self.kwargs['eventhubname'])]) - - # Create ConsumerGroup - self.cmd('eventhubs consumergroup create --resource-group {rg} --namespace-name {namespacename} --event-hub-name {eventhubname} --name {consumergroupname} --user-metadata {usermetadata1}', checks=[self.check('name', self.kwargs['consumergroupname'])]) - - # Get Consumer Group - self.cmd('eventhubs consumergroup show --resource-group {rg} --namespace-name {namespacename} --event-hub-name {eventhubname} --name {consumergroupname}', checks=[self.check('name', self.kwargs['consumergroupname'])]) - - # Create/Update ConsumerGroup - self.cmd('eventhubs consumergroup create --resource-group {rg} --namespace-name {namespacename} --event-hub-name {eventhubname} --name {consumergroupname} --user-metadata {usermetadata2}', checks=[self.check('userMetadata', self.kwargs['usermetadata2'])]) - - # Get ConsumerGroup List - listconsumergroup = self.cmd('eventhubs consumergroup list --resource-group {rg} --namespace-name {namespacename} --event-hub-name {eventhubname}').output - self.assertGreater(len(listconsumergroup), 0) - - # Delete ConsumerGroup - self.cmd('eventhubs consumergroup delete --resource-group {rg} --namespace-name {namespacename} --event-hub-name {eventhubname} --name {consumergroupname}') - - # Delete Eventhub - self.cmd('eventhubs eventhub delete --resource-group {rg} --namespace-name {namespacename} --name {eventhubname}') - - # Delete Namespace - self.cmd('eventhubs namespace delete --resource-group {rg} --name {namespacename}') - - @ResourceGroupPreparer(name_prefix='cli_test_eh_alias') - def test_eh_alias(self, resource_group): - self.kwargs.update({ - 'loc_south': 'SouthCentralUS', - 'loc_north': 'NorthCentralUS', - 'rg': resource_group, - 'namespacenameprimary': self.create_random_name(prefix='eh-nscli', length=20), - 'namespacenamesecondary': self.create_random_name(prefix='eh-nscli', length=20), - 'tags': {'tag1: value1', 'tag2: value2'}, - 'sku': 'Standard', - 'tier': 'Standard', - 'authoname': self.create_random_name(prefix='cliAutho', length=20), - 'defaultauthorizationrule': 'RootManageSharedAccessKey', - 'accessrights': 'Send', - 'primary': 'PrimaryKey', - 'secondary': 'SecondaryKey', - 'aliasname': self.create_random_name(prefix='cliAlias', length=20), - 'alternatename': self.create_random_name(prefix='cliAlter', length=20), - 'id': '', - 'test': '' - }) - - self.cmd('eventhubs namespace exists --name {namespacenameprimary}', - checks=[self.check('nameAvailable', True)]) - - # Create Namespace - Primary - self.cmd('eventhubs namespace create --resource-group {rg} --name {namespacenameprimary} --location {loc_south} --tags {tags} --sku-name {sku} --sku-tier {tier}', checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Get Created Namespace - Primary - self.cmd('eventhubs namespace show --resource-group {rg} --name {namespacenameprimary}', checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Create Namespace - Secondary - self.cmd('eventhubs namespace create --resource-group {rg} --name {namespacenamesecondary} --location {loc_north} --tags {tags} --sku-name {sku} --sku-tier {tier}', checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Get Created Namespace - Secondary - getnamespace2result = self.cmd('eventhubs namespace show --resource-group {rg} --name {namespacenamesecondary}', checks=[self.check('sku.name', self.kwargs['sku'])]).get_output_in_json() - - # Create Authoriazation Rule - self.cmd('eventhubs namespace authorizationrule create --resource-group {rg} --namespace-name {namespacenameprimary} --name {authoname} --access-rights {accessrights}', checks=[self.check('name', self.kwargs['authoname'])]) - - partnernamespaceid = getnamespace2result['id'] - self.kwargs.update({'id': partnernamespaceid}) - # Get Create Authorization Rule - self.cmd('eventhubs namespace authorizationrule show --resource-group {rg} --namespace-name {namespacenameprimary} --name {authoname}', checks=[self.check('name', self.kwargs['authoname'])]) - - # CheckNameAvailability - Alias - - self.cmd('eventhubs georecovery-alias exists --resource-group {rg} --namespace-name {namespacenameprimary} --name {aliasname}', checks=[self.check('nameAvailable', True)]) - - # Create alias - self.cmd('eventhubs georecovery-alias create --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname} --partner-namespace {id}') - - # get alias - Primary - self.cmd('eventhubs georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}') - - # get alias - Secondary - self.cmd('eventhubs georecovery-alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}') - - getaliasprimarynamespace = self.cmd('eventhubs georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').get_output_in_json() - - # Get Authorization Rule - self.cmd('eventhubs georecovery-alias authorizationrule show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname} --name {authoname}', checks=[self.check('name', self.kwargs['authoname'])]) - - # Get Default Authorization Rule - self.cmd('eventhubs georecovery-alias authorizationrule list --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}') - - # check for the Alias Provisioning succeeded - while getaliasprimarynamespace['provisioningState'] != ProvisioningStateDR.succeeded.value: - time.sleep(30) - getaliasprimarynamespace = self.cmd('eventhubs georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').get_output_in_json() - - # Break Pairing - self.cmd('eventhubs georecovery-alias break-pair --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}') - - getaliasafterbreak = self.cmd('eventhubs georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').get_output_in_json() - - # check for the Alias Provisioning succeeded - while getaliasafterbreak['provisioningState'] != ProvisioningStateDR.succeeded.value: - time.sleep(30) - getaliasafterbreak = self.cmd('eventhubs georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').get_output_in_json() - - # Create alias - self.cmd('eventhubs georecovery-alias create --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname} --partner-namespace {id}') - - getaliasaftercreate = self.cmd('eventhubs georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').get_output_in_json() - - # check for the Alias Provisioning succeeded - while getaliasaftercreate['provisioningState'] != ProvisioningStateDR.succeeded.value: - time.sleep(30) - getaliasaftercreate = self.cmd('eventhubs georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').get_output_in_json() - - # FailOver - self.cmd('eventhubs georecovery-alias fail-over --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}') - - getaliasafterfail = self.cmd('eventhubs georecovery-alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}').get_output_in_json() - - # check for the Alias Provisioning succeeded - while getaliasafterfail['provisioningState'] != ProvisioningStateDR.succeeded.value: - time.sleep(30) - getaliasafterfail = self.cmd('eventhubs georecovery-alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}').get_output_in_json() - - # Delete Alias - self.cmd('eventhubs georecovery-alias delete --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}') - - time.sleep(30) - - # Delete Namespace - primary - self.cmd('eventhubs namespace delete --resource-group {rg} --name {namespacenameprimary}') - - time.sleep(30) - - # Delete Namespace - secondary - self.cmd('eventhubs namespace delete --resource-group {rg} --name {namespacenamesecondary}') diff --git a/src/eventhubs/setup.cfg b/src/eventhubs/setup.cfg deleted file mode 100644 index 3c6e79cf31d..00000000000 --- a/src/eventhubs/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1 diff --git a/src/eventhubs/setup.py b/src/eventhubs/setup.py deleted file mode 100644 index 1837eca188e..00000000000 --- a/src/eventhubs/setup.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python - -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from codecs import open -from setuptools import setup, find_packages - -VERSION = "0.0.1" - -CLASSIFIERS = [ - 'Development Status :: 4 - Beta', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'License :: OSI Approved :: MIT License', -] - -DEPENDENCIES = [] - -setup( - name='eventhubs', - version=VERSION, - description='An Azure CLI Extension to manage Event Hubs resources', - long_description='An Azure CLI Extension to manage Event Hubs resources', - license='MIT', - author='Ajit Navasare', - author_email='v-ajnava@microsoft.com', - url='https://github.com/Azure/azure-cli-extensions', - classifiers=CLASSIFIERS, - packages=find_packages(exclude=["tests"]), - install_requires=DEPENDENCIES -) diff --git a/src/index.json b/src/index.json index a830f80d373..1310f2e781b 100644 --- a/src/index.json +++ b/src/index.json @@ -232,96 +232,6 @@ } } ], - "servicebus": [ - { - "filename": "servicebus-0.0.1-py2.py3-none-any.whl", - "sha256Digest": "c6bd2c440587a4f5327a58bf59a94638f14f6b6f7ed4885b7dd4fac6cf3654ba", - "downloadUrl": "https://prodsbclipackages.blob.core.windows.net/cliextensions/servicebus-0.0.1-py2.py3-none-any.whl", - "metadata": { - "classifiers": [ - "Development Status :: 4 - Beta", - "Intended Audience :: Developers", - "Intended Audience :: System Administrators", - "Programming Language :: Python", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "License :: OSI Approved :: MIT License" - ], - "extensions": { - "python.details": { - "contacts": [ - { - "email": "v-ajnava@microsoft.com", - "name": "Ajit Navasare", - "role": "author" - } - ], - "document_names": { - "description": "DESCRIPTION.rst" - }, - "project_urls": { - "Home": "https://github.com/Azure/azure-cli-extensions" - } - } - }, - "generator": "bdist_wheel (0.29.0)", - "license": "MIT", - "metadata_version": "2.0", - "name": "servicebus", - "summary": "An Azure CLI Extension to manage servicebus resources", - "version": "0.0.1" - } - } - ], - "eventhubs": [ - { - "filename": "eventhubs-0.0.1-py2.py3-none-any.whl", - "sha256Digest": "ec9bcfecdf4626d4beac301cf7c2fd86be139873b0d140989cfd623444522679", - "downloadUrl": "https://prodsbclipackages.blob.core.windows.net/cliextensions/eventhubs-0.0.1-py2.py3-none-any.whl", - "metadata": { - "classifiers": [ - "Development Status :: 4 - Beta", - "Intended Audience :: Developers", - "Intended Audience :: System Administrators", - "Programming Language :: Python", - "Programming Language :: Python :: 2", - "Programming Language :: Python :: 2.7", - "Programming Language :: Python :: 3", - "Programming Language :: Python :: 3.4", - "Programming Language :: Python :: 3.5", - "Programming Language :: Python :: 3.6", - "License :: OSI Approved :: MIT License" - ], - "extensions": { - "python.details": { - "contacts": [ - { - "email": "v-ajnava@microsoft.com", - "name": "Ajit Navasare", - "role": "author" - } - ], - "document_names": { - "description": "DESCRIPTION.rst" - }, - "project_urls": { - "Home": "https://github.com/Azure/azure-cli-extensions" - } - } - }, - "generator": "bdist_wheel (0.29.0)", - "license": "MIT", - "metadata_version": "2.0", - "name": "eventhubs", - "summary": "An Azure CLI Extension to manage Event Hubs resources", - "version": "0.0.1" - } - } - ], "aem": [ { "filename": "aem-0.1.0-py2.py3-none-any.whl", diff --git a/src/servicebus/azext_servicebus/__init__.py b/src/servicebus/azext_servicebus/__init__.py deleted file mode 100644 index 07162148bfb..00000000000 --- a/src/servicebus/azext_servicebus/__init__.py +++ /dev/null @@ -1,36 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -# pylint: disable=unused-import - -from azure.cli.core import AzCommandsLoader -from ._help import helps - - -class ServicebusCommandsLoader(AzCommandsLoader): - - def __init__(self, cli_ctx=None): - from azure.cli.core.commands import CliCommandType - servicebus_custom = CliCommandType(operations_tmpl='azext_servicebus.custom#{}') - super(ServicebusCommandsLoader, self).__init__(cli_ctx=cli_ctx, custom_command_type=servicebus_custom, - min_profile="2017-03-10-profile") - - def load_command_table(self, args): - from azext_servicebus.commands import load_command_table - load_command_table(self, args) - return self.command_table - - def load_arguments(self, command): - from azext_servicebus._params import load_arguments_namespace, load_arguments_queue, load_arguments_topic,\ - load_arguments_subscription, load_arguments_rule, load_arguments_geodr - load_arguments_namespace(self, command) - load_arguments_queue(self, command) - load_arguments_topic(self, command) - load_arguments_subscription(self, command) - load_arguments_rule(self, command) - load_arguments_geodr(self, command) - - -COMMAND_LOADER_CLS = ServicebusCommandsLoader diff --git a/src/servicebus/azext_servicebus/_client_factory.py b/src/servicebus/azext_servicebus/_client_factory.py deleted file mode 100644 index f6c7bc985f2..00000000000 --- a/src/servicebus/azext_servicebus/_client_factory.py +++ /dev/null @@ -1,50 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - - -def cf_servicebus(cli_ctx, **_): - from azure.cli.core.commands.client_factory import get_mgmt_service_client - from azext_servicebus.servicebus import ServiceBusManagementClient - return get_mgmt_service_client(cli_ctx, ServiceBusManagementClient) - - -def namespaces_mgmt_client_factory(cli_ctx, _): - return cf_servicebus(cli_ctx).namespaces - - -def queues_mgmt_client_factory(cli_ctx, _): - return cf_servicebus(cli_ctx).queues - - -def topics_mgmt_client_factory(cli_ctx, _): - return cf_servicebus(cli_ctx).topics - - -def subscriptions_mgmt_client_factory(cli_ctx, _): - return cf_servicebus(cli_ctx).subscriptions - - -def rules_mgmt_client_factory(cli_ctx, _): - return cf_servicebus(cli_ctx).rules - - -def regions_mgmt_client_factory(cli_ctx, _): - return cf_servicebus(cli_ctx).regions - - -def premium_messaging_mgmt_client_factory(cli_ctx, _): - return cf_servicebus(cli_ctx).premium_messaging - - -def event_subscriptions_mgmt_client_factory(cli_ctx, _): - return cf_servicebus(cli_ctx).event_subscriptions - - -def event_hubs_mgmt_client_factory(cli_ctx, _): - return cf_servicebus(cli_ctx).event_hubs - - -def disaster_recovery_mgmt_client_factory(cli_ctx, _): - return cf_servicebus(cli_ctx).disaster_recovery_configs diff --git a/src/servicebus/azext_servicebus/_help.py b/src/servicebus/azext_servicebus/_help.py deleted file mode 100644 index da44ead5f75..00000000000 --- a/src/servicebus/azext_servicebus/_help.py +++ /dev/null @@ -1,495 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from knack.help_files import helps - -helps['servicebus'] = """ - type: group - short-summary: Manage Azure Service Bus namespace, queue, topic, subscription, rule and geo disaster recovery configuration - alias -""" - -helps['servicebus namespace'] = """ - type: group - short-summary: Manage Azure Service Bus Namespace -""" - -helps['servicebus namespace authorizationrule'] = """ - type: group - short-summary: Manage Azure Service Bus Namespace AuthorizationRule -""" - -helps['servicebus namespace authorizationrule keys'] = """ - type: group - short-summary: Manage Azure AuthorizationRule connection strings for Namespace -""" - -helps['servicebus queue'] = """ - type: group - short-summary: Manage Azure Service Bus Queue and authorizationrule -""" - -helps['servicebus queue authorizationrule'] = """ - type: group - short-summary: Manage Azure Service Bus Queue AuthorizationRule -""" - -helps['servicebus queue authorizationrule keys'] = """ - type: group - short-summary: Manage Azure AuthorizationRule connection strings for Service Bus Queue -""" - -helps['servicebus topic'] = """ - type: group - short-summary: Manage Azure Service Bus Topic and authorizationrule -""" - -helps['servicebus topic authorizationrule'] = """ - type: group - short-summary: Manage Azure Service Bus Topic AuthorizationRule -""" - -helps['servicebus topic authorizationrule keys'] = """ - type: group - short-summary: Manage Azure AuthorizationRule connection strings for Service Bus Topic -""" - -helps['servicebus subscription'] = """ - type: group - short-summary: Manage Azure Service Bus Subscription -""" - -helps['servicebus rule'] = """ - type: group - short-summary: Manage Azure Service Bus Rule -""" - -helps['servicebus georecovery-alias'] = """ - type: group - short-summary: Manage Azure Service Bus Geo Disaster Recovery Configuration - Alias -""" - -helps['servicebus georecovery-alias authorizationrule'] = """ - type: group - short-summary: Manage Azure Service Bus AuthorizationRule for Namespace with GeoDRAlias -""" - -helps['servicebus georecovery-alias authorizationrule keys'] = """ - type: group - short-summary: Manage Azure AuthorizationRule connection strings for Service Bus Namespace -""" - -helps['servicebus namespace exists'] = """ - type: command - short-summary: check for the availability of the given name for the Namespace - examples: - - name: check for the availability of mynamespace for the Namespace - text: az servicebus namespace exists --name mynamespace -""" - -helps['servicebus namespace create'] = """ - type: command - short-summary: Creates a Service Bus Namespace - examples: - - name: Create a Service Bus Namespace. - text: az servicebus namespace create --resource-group myresourcegroup --name mynamespace --location westus - --tags tag1=value1 tag2=value2 --sku-name Standard --sku-tier Standard -""" - -helps['servicebus namespace show'] = """ - type: command - short-summary: Shows the Service Bus Namespace details - examples: - - name: shows the Namespace details. - text: az servicebus namespace show --resource-group myresourcegroup --name mynamespace -""" - -helps['servicebus namespace list'] = """ - type: command - short-summary: List the Service Bus Namespaces - examples: - - name: Get the Service Bus Namespaces by resource group - text: az servicebus namespace list --resource-group myresourcegroup - - name: Get the Service Bus Namespaces by Subscription. - text: az servicebus namespace list -""" - -helps['servicebus namespace delete'] = """ - type: command - short-summary: Deletes the Service Bus Namespace - examples: - - name: Deletes the Service Bus Namespace - text: az servicebus namespace delete --resource-group myresourcegroup --name mynamespace -""" - -helps['servicebus namespace authorizationrule create'] = """ - type: command - short-summary: Creates Authorizationrule for the given Service Bus Namespace - examples: - - name: Creates Authorizationrule 'myauthorule' for the given Service Bus Namespace 'mynamepsace' in resourcegroup - text: az servicebus namespace authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace - --name myauthorule --access-rights Send Listen -""" - -helps['servicebus namespace authorizationrule show'] = """ - type: command - short-summary: Shows the details of Service Bus Namespace AuthorizationRule - examples: - - name: Shows the details of Service Bus Namespace AuthorizationRule - text: az servicebus namespace authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace - --name myauthorule -""" - -helps['servicebus namespace authorizationrule list'] = """ - type: command - short-summary: Shows the list of AuthorizationRule by Service Bus Namespace - examples: - - name: Shows the list of AuthorizationRule by Service Bus Namespace - text: az servicebus namespace authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace -""" - -helps['servicebus namespace authorizationrule keys list'] = """ - type: command - short-summary: Shows the connection strings of AuthorizationRule for the Service Bus Namespace - examples: - - name: Shows the connection strings of AuthorizationRule for the namespace. - text: az servicebus namespace authorizationrule list-keys --resource-group myresourcegroup --namespace-name mynamespace - --name myauthorule -""" - -helps['servicebus namespace authorizationrule keys renew'] = """ - type: command - short-summary: Regenerate the connection strings of AuthorizationRule for the Service Bus Namespace. - examples: - - name: Regenerate the connection strings of AuthorizationRule for the Service Bus Namespace. - text: az servicebus namespace authorizationrule regenerate-keys --resource-group myresourcegroup - --namespace-name mynamespace --name myauthorule --key PrimaryKey -""" - -helps['servicebus namespace authorizationrule delete'] = """ - type: command - short-summary: Deletes the AuthorizationRule of the Service Bus Namespace. - examples: - - name: Deletes the AuthorizationRule of the Service Bus Namespace. - text: az servicebus namespace authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace - --name myauthorule -""" - -helps['servicebus queue create'] = """ - type: command - short-summary: Creates the Service Bus Queue - examples: - - name: Creates Service Bus Queue. - text: az servicebus queue create --resource-group myresourcegroup --namespace-name mynamespace --name myqueue -""" - -helps['servicebus queue show'] = """ - type: command - short-summary: shows the Service Bus Queue Details - examples: - - name: Shows the Service Bus Queue Details - text: az servicebus queue show --resource-group myresourcegroup --namespace-name mynamespace --name myqueue -""" - -helps['servicebus queue list'] = """ - type: command - short-summary: List the Queue by Service Bus Namepsace - examples: - - name: Get the Queues by Service Bus Namespace. - text: az servicebus queue list --resource-group myresourcegroup --namespace-name mynamespace -""" - -helps['servicebus queue delete'] = """ - type: command - short-summary: Deletes the Service Bus Queue - examples: - - name: Deletes the queue - text: az servicebus queue delete --resource-group myresourcegroup --namespace-name mynamespace --name myqueue -""" - -helps['servicebus queue authorizationrule create'] = """ - type: command - short-summary: Creates Authorization rule for the given Service Bus Queue - examples: - - name: Creates Authorization rules for Queue - text: az servicebus queue authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace - --queue-name myqueue --name myauthorule --access-rights Listen -""" - -helps['servicebus queue authorizationrule show'] = """ - type: command - short-summary: shows the details of AuthorizationRule - examples: - - name: shows the details of AuthorizationRule - text: az servicebus queue authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace - --queue-name myqueue --name myauthorule -""" - -helps['servicebus queue authorizationrule list'] = """ - type: command - short-summary: shows the list of AuthorizationRule by Queue - examples: - - name: shows the list of AuthorizationRule by Queue - text: az servicebus queue authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace - --queue-name myqueue -""" - -helps['servicebus queue authorizationrule keys list'] = """ - type: command - short-summary: Shows the connection strings of AuthorizationRule for the Queue. - examples: - - name: Shows the connection strings of AuthorizationRule for the queue. - text: az servicebus queue authorizationrule list-keys --resource-group myresourcegroup --namespace-name mynamespace - --queue-name myqueue --name myauthorule -""" - -helps['servicebus queue authorizationrule keys renew'] = """ - type: command - short-summary: Regenerate the connection strings of AuthorizationRule for the namespace. - examples: - - name: Regenerate the connection strings of AuthorizationRule for the namespace. - text: az servicebus queue authorizationrule regenerate-keys --resource-group myresourcegroup --namespace-name mynamespace - --queue-name myqueue --name myauthorule --key PrimaryKey -""" - -helps['servicebus queue authorizationrule delete'] = """ - type: command - short-summary: Deletes the AuthorizationRule of the Queue. - examples: - - name: Deletes the AuthorizationRule of the queue. - text: az servicebus queue authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace - --queue-name myqueue --name myauthorule -""" - -helps['servicebus topic create'] = """ - type: command - short-summary: Creates the Service Bus Topic - examples: - - name: Create a new queue. - text: az servicebus topic create --resource-group myresourcegroup --namespace-name mynamespace --name mytopic -""" - -helps['servicebus topic show'] = """ - type: command - short-summary: Shows the Service Bus Topic Details - examples: - - name: Shows the Topic details. - text: az servicebus topic show --resource-group myresourcegroup --namespace-name mynamespace --name mytopic -""" - -helps['servicebus topic list'] = """ - type: command - short-summary: List the Topic by Service Bus Namepsace - examples: - - name: Get the Topics by Namespace. - text: az servicebus topic list --resource-group myresourcegroup --namespace-name mynamespace -""" - -helps['servicebus topic delete'] = """ - type: command - short-summary: Deletes the Service Bus Topic - examples: - - name: Deletes the topic - text: az servicebus topic delete --resource-group myresourcegroup --namespace-name mynamespace --name mytopic -""" - -helps['servicebus topic authorizationrule create'] = """ - type: command - short-summary: Creates AuthorizationRule for the given Service Bus Topic - examples: - - name: Creates Authorization rules - text: az servicebus topic authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace - --topic-name mytopic --name myauthorule --access-rights Send Listen -""" - -helps['servicebus topic authorizationrule show'] = """ - type: command - short-summary: Shows the details of AuthorizationRule - examples: - - name: Shows the details of AuthorizationRule - text: az servicebus topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace - --topic-name mytopic --name myauthorule -""" - -helps['servicebus topic authorizationrule list'] = """ - type: command - short-summary: shows list of AuthorizationRule by Topic - examples: - - name: shows list of AuthorizationRule by Topic - text: az servicebus topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace - --topic-name mytopic -""" - -helps['servicebus topic authorizationrule keys list'] = """ - type: command - short-summary: shows connection strings of AuthorizationRule for the Topic. - examples: - - name: shows connection strings of AuthorizationRule for the topic. - text: az servicebus topic authorizationrule listkeys --resource-group myresourcegroup --namespace-name mynamespace - --topic-name mytopic --name myauthorule -""" - -helps['servicebus topic authorizationrule keys renew'] = """ - type: command - short-summary: Regenerate the connection strings of AuthorizationRule for the Topic. - examples: - - name: Regenerate Primary/Secondary key of connection string for the Topic. - text: az servicebus topic authorizationrule regenerate_keys --resource-group myresourcegroup --namespace-name mynamespace - --topic-name mytopic --name myauthorule --key PrimaryKey -""" - -helps['servicebus topic authorizationrule delete'] = """ - type: command - short-summary: Deletes the AuthorizationRule of the Topic. - examples: - - name: Deletes the AuthorizationRule of the topic - text: az servicebus topic authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace - --topic-name mytopic --name myauthorule -""" - -helps['servicebus subscription create'] = """ - type: command - short-summary: Creates the ServiceBus Subscription - examples: - - name: Create a new Subscription. - text: az servicebus subscription create --resource-group myresourcegroup --namespace-name mynamespace - --topic-name mytopic --name mysubscription - - """ - -helps['servicebus subscription show'] = """ - type: command - short-summary: Shows Service Bus Subscription Details - examples: - - name: Shows the Subscription details. - text: az servicebus subscription get --resource-group myresourcegroup --namespace-name mynamespace - --topic-name mytopic --name mysubscription -""" - -helps['servicebus subscription list'] = """ - type: command - short-summary: List the Subscription by Service Bus Topic - examples: - - name: Shows the Subscription by Service Bus Topic. - text: az servicebus subscription list --resource-group myresourcegroup --namespace-name mynamespace -""" - -helps['servicebus subscription delete'] = """ - type: command - short-summary: Deletes the Service Bus Subscription - examples: - - name: Deletes the Subscription - text: az servicebus subscription delete --resource-group myresourcegroup --namespace-name mynamespace - --topic-name mytopic --name mysubscription -""" - -helps['servicebus rule create'] = """ - type: command - short-summary: Creates the ServiceBus Rule for Subscription - examples: - - name: Creates Rule. - text: az servicebus rule create --resource-group myresourcegroup --namespace-name mynamespace --topic-name mytopic - --subscription-name mysubscription --name myrule --filter-sql-expression mysqlexpression -""" - -helps['servicebus rule show'] = """ - type: command - short-summary: Shows Rule Details - examples: - - name: Shows the Rule details. - text: az servicebus rule show --resource-group myresourcegroup --namespace-name mynamespace --topic-name mytopic - --subscription-name mysubscription --name myrule -""" - -helps['servicebus rule list'] = """ - type: command - short-summary: List the Rule by Subscription - examples: - - name: Shows the Rule by Subscription. - text: az servicebus rule list --resource-group myresourcegroup --namespace-name mynamespace - --subscription-name mysubscription -""" - -helps['servicebus rule delete'] = """ - type: command - short-summary: Deletes the Rule - examples: - - name: Deletes the Rule - text: az servicebus rule delete --resource-group myresourcegroup --namespace-name mynamespace --topic-name mytopic - --subscription-name mysubscription --name myrule -""" - -helps['servicebus georecovery-alias exists'] = """ - type: command - short-summary: Checks if Geo Recovery Alias Name is available - examples: - - name: Check the availability of the Geo Disaster Recovery configuration - Alias Name - text: az servicebus georecovery-alias exists --resource-group myresourcegroup --namespace-name primarynamespace - --alias myaliasname -""" - -helps['servicebus georecovery-alias create'] = """ - type: command - short-summary: Creates Service Bus Geo Recovery Alias for the give Namespace - examples: - - name: Creates Geo Disaster Recovery configuration - Alias for the give Namespace - text: az servicebus georecovery-alias create --resource-group myresourcegroup --namespace-name primarynamespace - --alias myaliasname --partner-namespace armresourceid -""" - -helps['servicebus georecovery-alias show'] = """ - type: command - short-summary: shows details of Service Bus Geo Recovery Alias for Primay/Secondary Namespace - examples: - - name: show details of Alias (Geo DR Configuration) of the Primary Namespace - text: az servicebus georecovery-alias show --resource-group myresourcegroup --namespace-name primarynamespace - --alias myaliasname - - name: Get details of Alias (Geo DR Configuration) of the Secondary Namespace - text: az servicebus georecovery-alias show --resource-group myresourcegroup --namespace-name secondarynamespace - --alias myaliasname -""" - -helps['servicebus georecovery-alias authorizationrule list'] = """ - type: command - short-summary: Shows the list of AuthorizationRule by Service Bus Namespace - examples: - - name: Shows the list of AuthorizationRule by Service Bus Namespace - text: az servicebus georecovery-alias authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace -""" - -helps['servicebus georecovery-alias authorizationrule keys list'] = """ - type: command - short-summary: Shows the connection strings of AuthorizationRule for the Service Bus Namespace - examples: - - name: Shows the connection strings of AuthorizationRule for the namespace. - text: az servicebus georecovery-alias authorizationrule keys list --resource-group myresourcegroup --namespace-name mynamespace - --name myauthorule -""" - -helps['servicebus georecovery-alias break-pairing'] = """ - type: command - short-summary: Disables Service Bus Geo Recovery Alias and stops replicating changes from primary to secondary namespaces - examples: - - name: Disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces - text: az servicebus georecovery-alias break-pairing --resource-group myresourcegroup --namespace-name primarynamespace - --alias myaliasname -""" - -helps['servicebus georecovery-alias fail-over'] = """ - type: command - short-summary: Invokes Service Bus Geo Recovery Alias failover and re-configure the alias to point to the secondary namespace - examples: - - name: Invokes Geo Disaster Recovery failover and reconfigure the alias to point to the secondary namespace - text: az servicebus georecovery-alias fail-over --resource-group myresourcegroup --namespace-name secondarynamespace - --alias myaliasname -""" - -helps['servicebus georecovery-alias delete'] = """ - type: command - short-summary: Delete Service Bus Geo Recovery Alias request accepted - examples: - - name: Delete Alias(Disaster Recovery configuration) request accepted - text: az servicebus georecovery-alias delete --resource-group myresourcegroup --namespace-name secondarynamespace - --alias myaliasname -""" diff --git a/src/servicebus/azext_servicebus/_params.py b/src/servicebus/azext_servicebus/_params.py deleted file mode 100644 index fe8e1a27709..00000000000 --- a/src/servicebus/azext_servicebus/_params.py +++ /dev/null @@ -1,177 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from azure.cli.core.commands.parameters import (tags_type, get_enum_type, resource_group_name_type, name_type) - -from azext_servicebus._validators import _validate_auto_delete_on_idle, \ - _validate_duplicate_detection_history_time_window, _validate_default_message_time_to_live, _validate_lock_duration - - -# pylint: disable=line-too-long -def load_arguments_namespace(self, _): - - with self.argument_context('servicebus') as c: - c.argument('resource_group_name', arg_type=resource_group_name_type) - c.argument('namespace_name', options_list=['--namespace-name'], help='name of the Namespace') - - with self.argument_context('servicebus namespace create') as c: - c.argument('namespace_name', options_list=['--name', '-n'], help='name of the Namespace') - c.argument('tags', options_list=['--tags', '-t'], arg_type=tags_type, help='tags for the namespace in ' - 'Key value pair format') - c.argument('sku', options_list=['--sku-name'], arg_type=get_enum_type(['Basic', 'Standard', 'Premium'])) - c.argument('location', options_list=['--location', '-l'], help='Location') - c.argument('skutier', options_list=['--sku-tier'], arg_type=get_enum_type(['Basic', 'Standard', 'Premium'])) - c.argument('capacity', options_list=['--capacity'], help='Capacity for Sku') - - # region Namespace Get - for scope in ['servicebus namespace show', 'servicebus namespace delete']: - with self.argument_context(scope) as c: - c.argument('namespace_name', options_list=['--name', '-n'], help='name of the Namespace') - - # region Namespace Authorizationrule - with self.argument_context('servicebus namespace authorizationrule') as c: - c.argument('authorization_rule_name', options_list=['--name', '-n'], help='name of the Namespace AuthorizationRule') - - with self.argument_context('servicebus namespace authorizationrule create') as c: - c.argument('accessrights', options_list=['--access-rights'], arg_type=get_enum_type(['Send', 'Listen', 'Manage']), - help='Authorization rule rights of type list, allowed values are Send, Listen or Manage') - - with self.argument_context('servicebus namespace authorizationrule keys renew') as c: - c.argument('key_type', options_list=['--key-name'], arg_type=get_enum_type(['PrimaryKey', 'SecondaryKey']), help='specifies Primary or Secondary key needs to be reset') - - -def load_arguments_queue(self, _): - # region Queue - with self.argument_context('servicebus queue') as c: - c.argument('queue_name', options_list=['--name', '-n'], help='Name of Queue') - - # region - Queue Create - with self.argument_context('servicebus queue create') as c: - c.argument('lock_duration', options_list=['--lock-duration'], validator=_validate_lock_duration, help='String ISO 8601 timespan duration of a peek-lock; that is, the amount of time that the message is locked for other receivers. The maximum value for LockDuration is 5 minutes; the default value is 1 minute.') - c.argument('max_size_in_megabytes', options_list=['--max-size-in-megabytes'], type=int, choices=[1024, 2048, 3072, 4096, 5120], help='The maximum size of the queue in megabytes, which is the size of memory allocated for the queue. Default is 1024.') - c.argument('requires_duplicate_detection', options_list=['--requires-duplicate-detection'], action='store_true', help='A boolean value indicating if this queue requires duplicate detection.') - c.argument('requires_session', options_list=['--requires-session'], action='store_true', help='A boolean value that indicates whether the queue supports the concept of sessions.') - c.argument('default_message_time_to_live', options_list=['--default-message-time-to-live'], validator=_validate_default_message_time_to_live, help='ISO 8601 default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.') - c.argument('dead_lettering_on_message_expiration', options_list=['--dead-lettering-on-message-expiration'], action='store_true', help='A boolean value that indicates whether this queue has dead letter support when a message expires.') - c.argument('duplicate_detection_history_time_window', options_list=['--duplicate-detection-history-time-window'], validator=_validate_duplicate_detection_history_time_window, help='ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.') - c.argument('max_delivery_count', options_list=['--max-delivery-count'], type=int, help='The maximum delivery count. A message is automatically deadlettered after this number of deliveries. default value is 10.') - c.argument('status', options_list=['--status'], arg_type=get_enum_type(['Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', 'Renaming', 'Unknown']), help='Enumerates the possible values for the status of a messaging entity.') - c.argument('auto_delete_on_idle', options_list=['--auto-delete-on-idle'], validator=_validate_auto_delete_on_idle, help='ISO 8601 timeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes.') - c.argument('enable_partitioning', options_list=['--enable-partitioning'], action='store_true', help='A boolean value that indicates whether the queue is to be partitioned across multiple message brokers.') - c.argument('enable_express', options_list=['--enable-express'], action='store_true', help='A boolean value that indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage.') - c.argument('forward_to', options_list=['--forward-to'], arg_type=name_type, help='Queue/Topic name to forward the messages') - c.argument('forward_dead_lettered_messages_to', arg_type=name_type, options_list=['--forward-dead-lettered-messages-to'], help='Queue/Topic name to forward the Dead Letter message') - - # region Queue Authorizationrule - with self.argument_context('servicebus queue authorizationrule') as c: - c.argument('authorization_rule_name', options_list=['--name', '-n'], help='name of the Queue AuthorizationRule') - c.argument('queue_name', options_list=['--queue-name'], help='name of the Queue') - - with self.argument_context('servicebus queue authorizationrule create') as c: - c.argument('accessrights', options_list=['--access-rights'], arg_type=get_enum_type(['Send', 'Listen', 'Manage']), help='Authorization rule rights of type list.') - - with self.argument_context('servicebus queue authorizationrule keys renew') as c: - c.argument('key_type', options_list=['--key-name'], arg_type=get_enum_type(['PrimaryKey', 'SecondaryKey']), help='specifies Primary or Secondary key needs to be reset') - - -# - Topic Region -def load_arguments_topic(self, _): - # region Topic Get - with self.argument_context('servicebus topic') as c: - c.argument('topic_name', options_list=['--name', '-n'], help='Topic Name') - - # region - Topic Create - with self.argument_context('servicebus topic create') as c: - c.argument('default_message_time_to_live', options_list=['--default-message-time-to-live'], validator=_validate_default_message_time_to_live, help='ISO 8601 Default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.') - c.argument('max_size_in_megabytes', options_list=['--max-size-in-megabytes'], choices=[1024, 2048, 3072, 4096, 5120], help='Maximum size of the topic in megabytes, which is the size of the memory allocated for the topic. Default is 1024.') - c.argument('requires_duplicate_detection', options_list=['--requires-duplicate-detection'], action='store_true', help='Value indicating if this topic requires duplicate detection.') - c.argument('duplicate_detection_history_time_window', options_list=['--duplicate-detection-history-time-window'], validator=_validate_duplicate_detection_history_time_window, help='ISO8601 timespan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.') - c.argument('enable_batched_operations', options_list=['--enable-batched-operations'], action='store_true', help='Value that indicates whether server-side batched operations are enabled.') - c.argument('status', options_list=['--status'], arg_type=get_enum_type(['Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', 'Renaming', 'Unknown']), help='Enumerates the possible values for the status of a messaging entity.') - c.argument('support_ordering', options_list=['--support-ordering'], action='store_true', help='Value that indicates whether the topic supports ordering.') - c.argument('auto_delete_on_idle', options_list=['--auto-delete-on-idle'], validator=_validate_auto_delete_on_idle, help='ISO 8601 timespan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.') - c.argument('enable_partitioning', options_list=['--enable-partitioning'], action='store_true', help='Value that indicates whether the topic to be partitioned across multiple message brokers is enabled.') - c.argument('enable_express', options_list=['--enable-express'], action='store_true', help='Value that indicates whether Express Entities are enabled. An express topic holds a message in memory temporarily before writing it to persistent storage.') - - # region Topic Authorizationrule - with self.argument_context('servicebus topic authorizationrule') as c: - c.argument('authorization_rule_name', options_list=['--name', '-n'], help='name of the Topic AuthorizationRule') - c.argument('topic_name', options_list=['--topic-name'], help='name of the Topic') - - with self.argument_context('servicebus topic authorizationrule create') as c: - c.argument('accessrights', options_list=['--access-rights'], arg_type=get_enum_type(['Send', 'Listen', 'Manage']), help='Authorization rule rights of type list.') - - with self.argument_context('servicebus topic authorizationrule keys renew') as c: - c.argument('key_type', options_list=['--key-name'], arg_type=get_enum_type(['PrimaryKey', 'SecondaryKey']), help='specifies Primary or Secondary key needs to be reset') - - -# Subscription Region -def load_arguments_subscription(self, _): - with self.argument_context('servicebus subscription') as c: - c.argument('subscription_name', options_list=['--name', '-n'], help='Subscription Name') - c.argument('topic_name', options_list=['--topic-name'], help='Topic Name') - - # region - Subscription Create - with self.argument_context('servicebus subscription create') as c: - c.argument('lock_duration', options_list=['--lock-duration'], validator=_validate_lock_duration, help='ISO 8601 lock duration timespan for the subscription. The default value is 1 minute.') - c.argument('requires_session', options_list=['--enable-express'], action='store_true', help='A boolean value that indicates whether Express Entities are enabled. An express queue holds a message in memory temporarily before writing it to persistent storage.') - c.argument('default_message_time_to_live', options_list=['--default-message-time-to-live'], validator=_validate_default_message_time_to_live, help='ISO 8601 Default message timespan to live value. This is the duration after which the message expires, starting from when the message is sent to Service Bus. This is the default value used when TimeToLive is not set on a message itself.') - c.argument('dead_lettering_on_message_expiration', options_list=['--dead-lettering-on-message-expiration'], action='store_true', help='A boolean Value that indicates whether a subscription has dead letter support when a message expires.') - c.argument('duplicate_detection_history_time_window', options_list=['--duplicate-detection-history-time-window'], validator=_validate_duplicate_detection_history_time_window, help='ISO 8601 timeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes.') - c.argument('max_delivery_count', options_list=['--max-delivery-count'], type=int, help='Number of maximum deliveries.') - c.argument('status', options_list=['--status'], arg_type=get_enum_type(['Active', 'Disabled', 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', 'Renaming', 'Unknown'])) - c.argument('enable_batched_operations', action='store_true', options_list=['--enable-batched-operations'], help='Value that indicates whether server-side batched operations are enabled.') - c.argument('auto_delete_on_idle', validator=_validate_auto_delete_on_idle, options_list=['--auto-delete-on-idle'], help='ISO 8601 timeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes.') - c.argument('forward_to', options_list=['--forward-to'], help='Queue/Topic name to forward the messages') - c.argument('forward_dead_lettered_messages_to', options_list=['--forward-dead-lettered-messages-to'], help='Queue/Topic name to forward the Dead Letter message') - -# ### Region Subscription Rules -# Rules Create - - -def load_arguments_rule(self, _): - with self.argument_context('servicebus rule') as c: - c.argument('topic_name', options_list=['--topic-name'], help='Topic Name') - c.argument('subscription_name', options_list=['--subscription-name'], help='Subscription Name') - c.argument('rule_name', options_list=['--name', '-n'], help='Rule Name') - - with self.argument_context('servicebus rule create') as c: - c.argument('action_sql_expression', options_list=['--action-sql-expression'], help='Action SQL expression.') - c.argument('action_compatibility_level', options_list=['--action-compatibility-level'], type=int, help='This property is reserved for future use. An integer value showing the compatibility level, currently hard-coded to 20.') - c.argument('action_requires_preprocessing', action='store_true', options_list=['--action-requires-preprocessing'], help='Value that indicates whether the rule action requires preprocessing.') - c.argument('filter_sql_expression', options_list=['--filter-sql-expression'], help='SQL expression. e.g.') - c.argument('filter_requires_preprocessing', action='store_true', options_list=['--sql-requires-preprocessing'], help='Value that indicates whether the rule action requires preprocessing.') - c.argument('correlation_id', options_list=['--correlation-id'], help='Identifier of the correlation.') - c.argument('message_id', options_list=['--message-id'], help='Identifier of the message.') - c.argument('to', options_list=['--to'], help='Address to send to.') - c.argument('reply_to', options_list=['--reply-to'], help='Address of the queue to reply to.') - c.argument('label', options_list=['--label'], help='Application specific label.') - c.argument('session_id', options_list=['--session-id'], help='Session identifier') - c.argument('reply_to_session_d', options_list=['--reply-to-session-id'], help='Session identifier to reply to.') - c.argument('content_type', options_list=['--content-type'], help='Content type of the message.') - c.argument('requires_preprocessing', action='store_true', options_list=['--requires-preprocessing'], help='Value that indicates whether the rule action requires preprocessing.') - - with self.argument_context('servicebus rules list') as c: - c.argument('topic_name', options_list=['--topic-name'], help='Topic Name') - c.argument('subscription_name', options_list=['--subscription-name'], help='Subscription Name') - - -# # # # Geo DR - Disaster Recovery Configs - Alias : Region - -def load_arguments_geodr(self, _): - with self.argument_context('servicebus georecovery-alias exists') as c: - c.argument('name', options_list=['--name', '-n'], help='Name of the Alias (Disaster Recovery) to check availability') - - with self.argument_context('servicebus georecovery-alias') as c: - c.argument('alias', options_list=['--alias'], help='Name of the Alias (Disaster Recovery)') - - with self.argument_context('servicebus georecovery-alias create') as c: - c.argument('alias', options_list=['--alias'], help='Name of the Alias (Disaster Recovery)') - c.argument('partner_namespace', options_list=['--partner-namespace'], help='ARM Id of the Primary/Secondary eventhub namespace name, which is part of GEO DR pairing') - c.argument('alternate_name', options_list=['--alternate-name'], help='Alternate Name for the Alias, when the Namespace name and Alias name are same') - - for scope in ['servicebus georecovery-alias authorizationrule show', 'servicebus georecovery-alias authorizationrule keys list']: - with self.argument_context(scope)as c: - c.argument('authorization_rule_name', options_list=['--name', '-n'], help='name of the Namespace AuthorizationRule') diff --git a/src/servicebus/azext_servicebus/_utils.py b/src/servicebus/azext_servicebus/_utils.py deleted file mode 100644 index f02f76bfa36..00000000000 --- a/src/servicebus/azext_servicebus/_utils.py +++ /dev/null @@ -1,18 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from azext_servicebus.servicebus.models.service_bus_management_client_enums import AccessRights - - -def accessrights_converter(accessrights): - accessrights_new = [] - if accessrights == 'Send': - accessrights_new.append(AccessRights.send) - if accessrights == 'Manage': - accessrights_new.append(AccessRights.manage) - if accessrights == 'Listen': - accessrights_new.append(AccessRights.listen) - - return accessrights_new diff --git a/src/servicebus/azext_servicebus/_validators.py b/src/servicebus/azext_servicebus/_validators.py deleted file mode 100644 index 9aa958d78b2..00000000000 --- a/src/servicebus/azext_servicebus/_validators.py +++ /dev/null @@ -1,39 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -import re - -from knack.util import CLIError - -# PARAMETER VALIDATORS -# Type ISO 8061 duration - -iso8601pattern = re.compile("^P(?!$)(\\d+Y)?(\\d+M)?(\\d+W)?(\\d+D)?(T(?=\\d)(\\d+H)?(\\d+M)?(\\d+.)?(\\d+S)?)?$") - - -def _validate_lock_duration(namespace): - if namespace.lock_duration and not iso8601pattern.match(namespace.lock_duration): - raise CLIError('--lock-duration Value Error : {0} value is not in ISO 8601 timespan/duration format. e.g.' - ' PT10M for duration of 10 min'.format(namespace.lock_duration)) - - -def _validate_default_message_time_to_live(namespace): - if namespace.default_message_time_to_live and not iso8601pattern.match(namespace.default_message_time_to_live): - raise CLIError('--default-message-time-to-live Value Error : {0} value is not in ISO 8601 timespan/duration' - ' format. e.g. PT10M for duration of 10 min'.format(namespace.default_message_time_to_live)) - - -def _validate_duplicate_detection_history_time_window(namespace): - if namespace.duplicate_detection_history_time_window and not \ - iso8601pattern.match(namespace.duplicate_detection_history_time_window): - raise CLIError('--duplicate-detection-history-time-window Value Error : {0} value is not in ISO 8601 ' - 'timespan/duration format. e.g. PT10M for duration of 10 min' - .format(namespace.duplicate_detection_history_time_window)) - - -def _validate_auto_delete_on_idle(namespace): - if namespace.auto_delete_on_idle and not iso8601pattern.match(namespace.auto_delete_on_idle): - raise CLIError('--auto-delete-on-idle Value Error : {0} value is not in ISO 8601 timespan/duration format.' - ' e.g. PT10M for duration of 10 min'.format(namespace.auto_delete_on_idle)) diff --git a/src/servicebus/azext_servicebus/azext_metadata.json b/src/servicebus/azext_servicebus/azext_metadata.json deleted file mode 100644 index bbe67260f34..00000000000 --- a/src/servicebus/azext_servicebus/azext_metadata.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "azext.minCliCoreVersion": "2.0.24" -} \ No newline at end of file diff --git a/src/servicebus/azext_servicebus/commands.py b/src/servicebus/azext_servicebus/commands.py deleted file mode 100644 index 1f59a9bc24f..00000000000 --- a/src/servicebus/azext_servicebus/commands.py +++ /dev/null @@ -1,131 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -# pylint: disable=line-too-long -# pylint: disable=too-many-statements - -from azure.cli.core.commands import CliCommandType -from azext_servicebus._client_factory import (namespaces_mgmt_client_factory, - queues_mgmt_client_factory, - topics_mgmt_client_factory, - subscriptions_mgmt_client_factory, - rules_mgmt_client_factory, - disaster_recovery_mgmt_client_factory,) -from .custom import empty_on_404 - - -def load_command_table(self, _): - - sb_namespace_util = CliCommandType( - operations_tmpl='azext_servicebus.servicebus.operations.namespaces_operations#NamespacesOperations.{}', - client_factory=namespaces_mgmt_client_factory, - client_arg_name='self' - ) - - sb_queue_util = CliCommandType( - operations_tmpl='azext_servicebus.servicebus.operations.queues_operations#QueuesOperations.{}', - client_factory=queues_mgmt_client_factory, - client_arg_name='self' - ) - - sb_topic_util = CliCommandType( - operations_tmpl='azext_servicebus.servicebus.operations.topics_operations#TopicsOperations.{}', - client_factory=topics_mgmt_client_factory, - client_arg_name='self' - ) - - sb_subscriptions_util = CliCommandType( - operations_tmpl='azext_servicebus.servicebus.operations.subscriptions_operations#SubscriptionsOperations.{}', - client_factory=subscriptions_mgmt_client_factory, - client_arg_name='self' - ) - - sb_rule_util = CliCommandType( - operations_tmpl='azext_servicebus.servicebus.operations.rules_operations#RulesOperations.{}', - client_factory=rules_mgmt_client_factory, - client_arg_name='self' - ) - - sb_geodr_util = CliCommandType( - operations_tmpl='azext_servicebus.servicebus.operations.disaster_recovery_configs_operations#DisasterRecoveryConfigsOperations.{}', - client_factory=disaster_recovery_mgmt_client_factory, - client_arg_name='self' - ) - -# Namespace Region - with self.command_group('servicebus namespace', sb_namespace_util, client_factory=namespaces_mgmt_client_factory) as g: - g.custom_command('create', 'cli_namespace_create') - g.command('show', 'get', exception_handler=empty_on_404) - g.custom_command('list', 'cli_namespace_list', exception_handler=empty_on_404) - g.command('delete', 'delete') - g.command('exists', 'check_name_availability_method') - - with self.command_group('servicebus namespace authorizationrule', sb_namespace_util, client_factory=namespaces_mgmt_client_factory) as g: - g.custom_command('create', 'cli_namespaceautho_create',) - g.command('show', 'get_authorization_rule', exception_handler=empty_on_404) - g.command('list', 'list_authorization_rules', exception_handler=empty_on_404) - g.command('keys list', 'list_keys') - g.command('keys renew', 'regenerate_keys') - g.command('delete', 'delete_authorization_rule') - -# Queue Region - with self.command_group('servicebus queue', sb_queue_util, client_factory=queues_mgmt_client_factory) as g: - g.custom_command('create', 'cli_sbqueue_create') - g.command('show', 'get', exception_handler=empty_on_404) - g.command('list', 'list_by_namespace', exception_handler=empty_on_404) - g.command('delete', 'delete') - - with self.command_group('servicebus queue authorizationrule', sb_queue_util, client_factory=queues_mgmt_client_factory) as g: - g.custom_command('create', 'cli_sbqueueautho_create',) - g.command('show', 'get_authorization_rule', exception_handler=empty_on_404) - g.command('list', 'list_authorization_rules', exception_handler=empty_on_404) - g.command('keys list', 'list_keys') - g.command('keys renew', 'regenerate_keys') - g.command('delete', 'delete_authorization_rule') - -# Topic Region - with self.command_group('servicebus topic', sb_topic_util, client_factory=topics_mgmt_client_factory) as g: - g.custom_command('create', 'cli_sbtopic_create') - g.command('show', 'get', exception_handler=empty_on_404) - g.command('list', 'list_by_namespace', exception_handler=empty_on_404) - g.command('delete', 'delete') - - with self.command_group('servicebus topic authorizationrule', sb_topic_util, client_factory=topics_mgmt_client_factory) as g: - g.custom_command('create', 'cli_sbtopicautho_create') - g.command('show', 'get_authorization_rule', exception_handler=empty_on_404) - g.command('list', 'list_authorization_rules', exception_handler=empty_on_404) - g.command('keys list', 'list_keys') - g.command('keys renew', 'regenerate_keys') - g.command('delete', 'delete_authorization_rule') - -# Subscription Region - with self.command_group('servicebus subscription', sb_subscriptions_util, client_factory=subscriptions_mgmt_client_factory) as g: - g.custom_command('create', 'cli_sbsubscription_create') - g.command('show', 'get', exception_handler=empty_on_404) - g.command('list', 'list_by_topic', exception_handler=empty_on_404) - g.command('delete', 'delete') - -# Rules Region - with self.command_group('servicebus rule', sb_rule_util, client_factory=rules_mgmt_client_factory) as g: - g.custom_command('create', 'cli_rules_create') - g.command('show', 'get', exception_handler=empty_on_404) - g.command('list', 'list_by_subscriptions', exception_handler=empty_on_404) - g.command('delete', 'delete') - -# DisasterRecoveryConfigs Region - with self.command_group('servicebus georecovery-alias', sb_geodr_util, client_factory=disaster_recovery_mgmt_client_factory) as g: - g.command('create', 'create_or_update') - g.command('show', 'get', exception_handler=empty_on_404) - g.command('list', 'list', exception_handler=empty_on_404) - g.command('break-pair', 'break_pairing') - g.command('fail-over', 'fail_over') - g.command('exists', 'check_name_availability_method') - g.command('delete', 'delete') - -# DisasterRecoveryConfigs Authorization Region - with self.command_group('servicebus georecovery-alias authorizationrule', sb_geodr_util, client_factory=disaster_recovery_mgmt_client_factory) as g: - g.command('list', 'list_authorization_rules') - g.command('show', 'get_authorization_rule') - g.command('keys list', 'list_keys') diff --git a/src/servicebus/azext_servicebus/custom.py b/src/servicebus/azext_servicebus/custom.py deleted file mode 100644 index 61616fd265c..00000000000 --- a/src/servicebus/azext_servicebus/custom.py +++ /dev/null @@ -1,167 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -# pylint: disable=line-too-long -# pylint: disable=too-many-lines - - -from azext_servicebus._utils import accessrights_converter - -from azext_servicebus.servicebus.models import (SBNamespace, SBSku, SBQueue, SBTopic, SBSubscription, Rule, Action, SqlFilter, CorrelationFilter, ArmDisasterRecovery) - - -# Namespace Region -def cli_namespace_create(client, resource_group_name, namespace_name, location, tags=None, sku='Standard', skutier=None, - capacity=None): - return client.create_or_update(resource_group_name, namespace_name, SBNamespace(location, tags, - SBSku(sku, - skutier, - capacity))) - - -def cli_namespace_list(client, resource_group_name=None): - cmd_result = None - if resource_group_name: - cmd_result = client.list_by_resource_group(resource_group_name) - - if not resource_group_name: - cmd_result = client.list() - - return cmd_result - - -# Namespace Authorization rule: -def cli_namespaceautho_create(client, resource_group_name, namespace_name, name, accessrights=None): - return client.create_or_update_authorization_rule(resource_group_name, namespace_name, name, - accessrights_converter(accessrights)) - - -# Queue Region -def cli_sbqueue_create(client, resource_group_name, namespace_name, name, lock_duration=None, - max_size_in_megabytes=None, requires_duplicate_detection=None, requires_session=None, - default_message_time_to_live=None, dead_lettering_on_message_expiration=None, - duplicate_detection_history_time_window=None, max_delivery_count=None, status=None, - auto_delete_on_idle=None, enable_partitioning=None, enable_express=None, - forward_to=None, forward_dead_lettered_messages_to=None): - - queue_params = SBQueue( - lock_duration=lock_duration, - max_size_in_megabytes=max_size_in_megabytes, - requires_duplicate_detection=requires_duplicate_detection, - requires_session=requires_session, - default_message_time_to_live=default_message_time_to_live, - dead_lettering_on_message_expiration=dead_lettering_on_message_expiration, - duplicate_detection_history_time_window=duplicate_detection_history_time_window, - max_delivery_count=max_delivery_count, - status=status, - auto_delete_on_idle=auto_delete_on_idle, - enable_partitioning=enable_partitioning, - enable_express=enable_express, - forward_to=forward_to, - forward_dead_lettered_messages_to=forward_dead_lettered_messages_to - ) - return client.create_or_update(resource_group_name, namespace_name, name, queue_params) - - -def cli_sbqueueautho_create(client, resource_group_name, namespace_name, queue_name, name, accessrights=None): - return client.create_or_update_authorization_rule(resource_group_name, namespace_name, queue_name, name, - accessrights_converter(accessrights)) - - -# Topic Region -def cli_sbtopic_create(client, resource_group_name, namespace_name, name, default_message_time_to_live=None, - max_size_in_megabytes=None, requires_duplicate_detection=None, - duplicate_detection_history_time_window=None, - enable_batched_operations=None, status=None, support_ordering=None, auto_delete_on_idle=None, - enable_partitioning=None, enable_express=None): - topic_params = SBTopic( - default_message_time_to_live=default_message_time_to_live, - max_size_in_megabytes=max_size_in_megabytes, - requires_duplicate_detection=requires_duplicate_detection, - duplicate_detection_history_time_window=duplicate_detection_history_time_window, - enable_batched_operations=enable_batched_operations, - status=status, - support_ordering=support_ordering, - auto_delete_on_idle=auto_delete_on_idle, - enable_partitioning=enable_partitioning, - enable_express=enable_express - ) - return client.create_or_update(resource_group_name, namespace_name, name, topic_params) - - -def cli_sbtopicautho_create(client, resource_group_name, namespace_name, topic_name, name, accessrights=None): - return client.create_or_update_authorization_rule(resource_group_name, namespace_name, topic_name, name, - accessrights_converter(accessrights)) - - -# Subscription Region -def cli_sbsubscription_create(client, resource_group_name, namespace_name, topic_name, name, lock_duration=None, - requires_session=None, default_message_time_to_live=None, - dead_lettering_on_message_expiration=None, duplicate_detection_history_time_window=None, - max_delivery_count=None, status=None, enable_batched_operations=None, - auto_delete_on_idle=None, forward_to=None, forward_dead_lettered_messages_to=None): - subscription_params = SBSubscription( - lock_duration=lock_duration, - requires_session=requires_session, - default_message_time_to_live=default_message_time_to_live, - dead_lettering_on_message_expiration=dead_lettering_on_message_expiration, - duplicate_detection_history_time_window=duplicate_detection_history_time_window, - max_delivery_count=max_delivery_count, - status=status, - enable_batched_operations=enable_batched_operations, - auto_delete_on_idle=auto_delete_on_idle, - forward_to=forward_to, - forward_dead_lettered_messages_to=forward_dead_lettered_messages_to - ) - - return client.create_or_update(resource_group_name, namespace_name, topic_name, name, subscription_params) - - -# Rule Region -def cli_rules_create(client, resource_group_name, namespace_name, topic_name, subscription_name, name, - action_sql_expression=None, action_compatibility_level=None, action_requires_preprocessing=None, - filter_sql_expression=None, filter_requires_preprocessing=None, correlation_id=None, - message_id=None, to=None, reply_to=None, label=None, session_id=None, reply_to_sessionid=None, - content_type=None, requires_preprocessing=None): - rules_params = Rule() - rules_params.action = Action( - sql_expression=action_sql_expression, - compatibility_level=action_compatibility_level, - requires_preprocessing=action_requires_preprocessing - ) - rules_params.sql_filter = SqlFilter( - sql_expression=filter_sql_expression, - requires_preprocessing=filter_requires_preprocessing - ) - rules_params.correlation_filter = CorrelationFilter( - correlation_id=correlation_id, - to=to, - message_id=message_id, - reply_to=reply_to, - label=label, - session_id=session_id, - reply_to_session_id=reply_to_sessionid, - content_type=content_type, - requires_preprocessing=requires_preprocessing - ) - return client.create_or_update(resource_group_name, namespace_name, topic_name, subscription_name, name, - rules_params) - - -# Geo DR - Disaster Recovery Configs - Alias Region -def cli_alias_create(client, resource_group_name, namespace_name, alias, partner_namespace, alternate_name): - dr_params = ArmDisasterRecovery( - partner_namespace=partner_namespace, - alternate_name=alternate_name - ) - return client.create_or_update(resource_group_name, namespace_name, alias, dr_params) - - -# pylint: disable=inconsistent-return-statements -def empty_on_404(ex): - from azext_servicebus.servicebus.models import ErrorResponseException - if isinstance(ex, ErrorResponseException) and ex.response.status_code == 404: - return None - raise ex diff --git a/src/servicebus/azext_servicebus/servicebus/__init__.py b/src/servicebus/azext_servicebus/servicebus/__init__.py deleted file mode 100644 index 7e81ffce33f..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/__init__.py +++ /dev/null @@ -1,17 +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 .service_bus_management_client import ServiceBusManagementClient -from .version import VERSION - -__all__ = ['ServiceBusManagementClient'] - -__version__ = VERSION diff --git a/src/servicebus/azext_servicebus/servicebus/models/__init__.py b/src/servicebus/azext_servicebus/servicebus/models/__init__.py deleted file mode 100644 index b769252f8a1..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/__init__.py +++ /dev/null @@ -1,116 +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 -from .resource import Resource -from .resource_namespace_patch import ResourceNamespacePatch -from .sb_sku import SBSku -from .sb_namespace import SBNamespace -from .sb_namespace_update_parameters import SBNamespaceUpdateParameters -from .sb_authorization_rule import SBAuthorizationRule -from .authorization_rule_properties import AuthorizationRuleProperties -from .access_keys import AccessKeys -from .regenerate_access_key_parameters import RegenerateAccessKeyParameters -from .message_count_details import MessageCountDetails -from .sb_queue import SBQueue -from .sb_topic import SBTopic -from .sb_subscription import SBSubscription -from .check_name_availability import CheckNameAvailability -from .check_name_availability_result import CheckNameAvailabilityResult -from .operation_display import OperationDisplay -from .operation import Operation -from .error_response import ErrorResponse, ErrorResponseException -from .action import Action -from .sql_filter import SqlFilter -from .correlation_filter import CorrelationFilter -from .rule import Rule -from .sql_rule_action import SqlRuleAction -from .premium_messaging_regions_properties import PremiumMessagingRegionsProperties -from .premium_messaging_regions import PremiumMessagingRegions -from .destination import Destination -from .capture_description import CaptureDescription -from .eventhub import Eventhub -from .arm_disaster_recovery import ArmDisasterRecovery -from .operation_paged import OperationPaged -from .sb_namespace_paged import SBNamespacePaged -from .sb_authorization_rule_paged import SBAuthorizationRulePaged -from .arm_disaster_recovery_paged import ArmDisasterRecoveryPaged -from .sb_queue_paged import SBQueuePaged -from .sb_topic_paged import SBTopicPaged -from .sb_subscription_paged import SBSubscriptionPaged -from .rule_paged import RulePaged -from .premium_messaging_regions_paged import PremiumMessagingRegionsPaged -from .eventhub_paged import EventhubPaged -from .service_bus_management_client_enums import ( - SkuName, - SkuTier, - AccessRights, - KeyType, - EntityStatus, - UnavailableReason, - FilterType, - EncodingCaptureDescription, - ProvisioningStateDR, - RoleDisasterRecovery, -) - -__all__ = [ - 'TrackedResource', - 'Resource', - 'ResourceNamespacePatch', - 'SBSku', - 'SBNamespace', - 'SBNamespaceUpdateParameters', - 'SBAuthorizationRule', - 'AuthorizationRuleProperties', - 'AccessKeys', - 'RegenerateAccessKeyParameters', - 'MessageCountDetails', - 'SBQueue', - 'SBTopic', - 'SBSubscription', - 'CheckNameAvailability', - 'CheckNameAvailabilityResult', - 'OperationDisplay', - 'Operation', - 'ErrorResponse', 'ErrorResponseException', - 'Action', - 'SqlFilter', - 'CorrelationFilter', - 'Rule', - 'SqlRuleAction', - 'PremiumMessagingRegionsProperties', - 'PremiumMessagingRegions', - 'Destination', - 'CaptureDescription', - 'Eventhub', - 'ArmDisasterRecovery', - 'OperationPaged', - 'SBNamespacePaged', - 'SBAuthorizationRulePaged', - 'ArmDisasterRecoveryPaged', - 'SBQueuePaged', - 'SBTopicPaged', - 'SBSubscriptionPaged', - 'RulePaged', - 'PremiumMessagingRegionsPaged', - 'EventhubPaged', - 'SkuName', - 'SkuTier', - 'AccessRights', - 'KeyType', - 'EntityStatus', - 'UnavailableReason', - 'FilterType', - 'EncodingCaptureDescription', - 'ProvisioningStateDR', - 'RoleDisasterRecovery', -] diff --git a/src/servicebus/azext_servicebus/servicebus/models/access_keys.py b/src/servicebus/azext_servicebus/servicebus/models/access_keys.py deleted file mode 100644 index 6165c5ce6d5..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/access_keys.py +++ /dev/null @@ -1,70 +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 msrest.serialization import Model - - -class AccessKeys(Model): - """Namespace/ServiceBus 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 authorization rule. - :vartype primary_connection_string: str - :ivar secondary_connection_string: Secondary connection string of the - created namespace authorization rule. - :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 authorization rule. - :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): - 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/src/servicebus/azext_servicebus/servicebus/models/action.py b/src/servicebus/azext_servicebus/servicebus/models/action.py deleted file mode 100644 index b65e94fb079..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/action.py +++ /dev/null @@ -1,38 +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 msrest.serialization import Model - - -class Action(Model): - """Represents the filter actions which are allowed for the transformation of a - message that have been matched by a filter expression. - - :param sql_expression: SQL expression. e.g. MyProperty='ABC' - :type sql_expression: str - :param compatibility_level: This property is reserved for future use. An - integer value showing the compatibility level, currently hard-coded to 20. - :type compatibility_level: int - :param requires_preprocessing: Value that indicates whether the rule - action requires preprocessing. Default value: True . - :type requires_preprocessing: bool - """ - - _attribute_map = { - 'sql_expression': {'key': 'sqlExpression', 'type': 'str'}, - 'compatibility_level': {'key': 'compatibilityLevel', 'type': 'int'}, - 'requires_preprocessing': {'key': 'requiresPreprocessing', 'type': 'bool'}, - } - - def __init__(self, sql_expression=None, compatibility_level=None, requires_preprocessing=True): - self.sql_expression = sql_expression - self.compatibility_level = compatibility_level - self.requires_preprocessing = requires_preprocessing diff --git a/src/servicebus/azext_servicebus/servicebus/models/arm_disaster_recovery.py b/src/servicebus/azext_servicebus/servicebus/models/arm_disaster_recovery.py deleted file mode 100644 index 9e722e9b375..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/arm_disaster_recovery.py +++ /dev/null @@ -1,68 +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 .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.servicebus.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: Primary/Secondary eventhub namespace name, which is - part of GEO DR pairning - :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.servicebus.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=None, alternate_name=None): - super(ArmDisasterRecovery, self).__init__() - self.provisioning_state = None - self.partner_namespace = partner_namespace - self.alternate_name = alternate_name - self.role = None diff --git a/src/servicebus/azext_servicebus/servicebus/models/arm_disaster_recovery_paged.py b/src/servicebus/azext_servicebus/servicebus/models/arm_disaster_recovery_paged.py deleted file mode 100644 index 819a0361825..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/arm_disaster_recovery_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class ArmDisasterRecoveryPaged(Paged): - """ - A paging container for iterating over a list of :class:`ArmDisasterRecovery ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[ArmDisasterRecovery]'} - } - - def __init__(self, *args, **kwargs): - - super(ArmDisasterRecoveryPaged, self).__init__(*args, **kwargs) diff --git a/src/servicebus/azext_servicebus/servicebus/models/authorization_rule_properties.py b/src/servicebus/azext_servicebus/servicebus/models/authorization_rule_properties.py deleted file mode 100644 index 8c6139f558a..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/authorization_rule_properties.py +++ /dev/null @@ -1,31 +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 msrest.serialization import Model - - -class AuthorizationRuleProperties(Model): - """AuthorizationRule properties. - - :param rights: The rights associated with the rule. - :type rights: list[str or ~azure.mgmt.servicebus.models.AccessRights] - """ - - _validation = { - 'rights': {'required': True}, - } - - _attribute_map = { - 'rights': {'key': 'rights', 'type': '[AccessRights]'}, - } - - def __init__(self, rights): - self.rights = rights diff --git a/src/servicebus/azext_servicebus/servicebus/models/capture_description.py b/src/servicebus/azext_servicebus/servicebus/models/capture_description.py deleted file mode 100644 index 15cd6938ed3..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/capture_description.py +++ /dev/null @@ -1,56 +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 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. Possible values include: 'Avro', 'AvroDeflate' - :type encoding: str or - ~azure.mgmt.servicebus.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 and 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.servicebus.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=None, encoding=None, interval_in_seconds=None, size_limit_in_bytes=None, destination=None): - 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/src/servicebus/azext_servicebus/servicebus/models/check_name_availability.py b/src/servicebus/azext_servicebus/servicebus/models/check_name_availability.py deleted file mode 100644 index 85499916b22..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/check_name_availability.py +++ /dev/null @@ -1,34 +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 msrest.serialization import Model - - -class CheckNameAvailability(Model): - """Description of a Check Name availability request properties. - - :param name: The Name to check the namespce name availability and The - namespace name can contain only letters, numbers, and hyphens. The - namespace must start with a letter, and it must end with a letter or - number. - :type name: str - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, name): - self.name = name diff --git a/src/servicebus/azext_servicebus/servicebus/models/check_name_availability_result.py b/src/servicebus/azext_servicebus/servicebus/models/check_name_availability_result.py deleted file mode 100644 index e6243401297..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/check_name_availability_result.py +++ /dev/null @@ -1,46 +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 msrest.serialization import Model - - -class CheckNameAvailabilityResult(Model): - """Description of a Check Name availability request properties. - - 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.servicebus.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=None, reason=None): - self.message = None - self.name_available = name_available - self.reason = reason diff --git a/src/servicebus/azext_servicebus/servicebus/models/correlation_filter.py b/src/servicebus/azext_servicebus/servicebus/models/correlation_filter.py deleted file mode 100644 index 13f694e5a52..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/correlation_filter.py +++ /dev/null @@ -1,60 +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 msrest.serialization import Model - - -class CorrelationFilter(Model): - """Represents the correlation filter expression. - - :param correlation_id: Identifier of the correlation. - :type correlation_id: str - :param message_id: Identifier of the message. - :type message_id: str - :param to: Address to send to. - :type to: str - :param reply_to: Address of the queue to reply to. - :type reply_to: str - :param label: Application specific label. - :type label: str - :param session_id: Session identifier. - :type session_id: str - :param reply_to_session_id: Session identifier to reply to. - :type reply_to_session_id: str - :param content_type: Content type of the message. - :type content_type: str - :param requires_preprocessing: Value that indicates whether the rule - action requires preprocessing. Default value: True . - :type requires_preprocessing: bool - """ - - _attribute_map = { - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'message_id': {'key': 'messageId', 'type': 'str'}, - 'to': {'key': 'to', 'type': 'str'}, - 'reply_to': {'key': 'replyTo', 'type': 'str'}, - 'label': {'key': 'label', 'type': 'str'}, - 'session_id': {'key': 'sessionId', 'type': 'str'}, - 'reply_to_session_id': {'key': 'replyToSessionId', 'type': 'str'}, - 'content_type': {'key': 'contentType', 'type': 'str'}, - 'requires_preprocessing': {'key': 'requiresPreprocessing', 'type': 'bool'}, - } - - def __init__(self, correlation_id=None, message_id=None, to=None, reply_to=None, label=None, session_id=None, reply_to_session_id=None, content_type=None, requires_preprocessing=True): - self.correlation_id = correlation_id - self.message_id = message_id - self.to = to - self.reply_to = reply_to - self.label = label - self.session_id = session_id - self.reply_to_session_id = reply_to_session_id - self.content_type = content_type - self.requires_preprocessing = requires_preprocessing diff --git a/src/servicebus/azext_servicebus/servicebus/models/destination.py b/src/servicebus/azext_servicebus/servicebus/models/destination.py deleted file mode 100644 index 7bdacd2cb1a..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/destination.py +++ /dev/null @@ -1,43 +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 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=None, storage_account_resource_id=None, blob_container=None, archive_name_format=None): - 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/src/servicebus/azext_servicebus/servicebus/models/error_response.py b/src/servicebus/azext_servicebus/servicebus/models/error_response.py deleted file mode 100644 index 6d818fd45e1..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/error_response.py +++ /dev/null @@ -1,45 +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 msrest.serialization import Model -from msrest.exceptions import HttpOperationError - - -class ErrorResponse(Model): - """Error reponse indicates ServiceBus 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=None, message=None): - 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/src/servicebus/azext_servicebus/servicebus/models/eventhub.py b/src/servicebus/azext_servicebus/servicebus/models/eventhub.py deleted file mode 100644 index 0df85eb93eb..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/eventhub.py +++ /dev/null @@ -1,81 +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 .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.servicebus.models.EntityStatus - :param capture_description: Properties of capture description - :type capture_description: - ~azure.mgmt.servicebus.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': {'maximum': 7, 'minimum': 1}, - 'partition_count': {'maximum': 32, '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=None, partition_count=None, status=None, capture_description=None): - super(Eventhub, self).__init__() - 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/src/servicebus/azext_servicebus/servicebus/models/eventhub_paged.py b/src/servicebus/azext_servicebus/servicebus/models/eventhub_paged.py deleted file mode 100644 index 3de52d9d20e..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/eventhub_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class EventhubPaged(Paged): - """ - A paging container for iterating over a list of :class:`Eventhub ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Eventhub]'} - } - - def __init__(self, *args, **kwargs): - - super(EventhubPaged, self).__init__(*args, **kwargs) diff --git a/src/servicebus/azext_servicebus/servicebus/models/message_count_details.py b/src/servicebus/azext_servicebus/servicebus/models/message_count_details.py deleted file mode 100644 index 86ccbdf5d8d..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/message_count_details.py +++ /dev/null @@ -1,58 +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 msrest.serialization import Model - - -class MessageCountDetails(Model): - """Message Count Details. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar active_message_count: Number of active messages in the queue, topic, - or subscription. - :vartype active_message_count: long - :ivar dead_letter_message_count: Number of messages that are dead - lettered. - :vartype dead_letter_message_count: long - :ivar scheduled_message_count: Number of scheduled messages. - :vartype scheduled_message_count: long - :ivar transfer_message_count: Number of messages transferred to another - queue, topic, or subscription. - :vartype transfer_message_count: long - :ivar transfer_dead_letter_message_count: Number of messages transferred - into dead letters. - :vartype transfer_dead_letter_message_count: long - """ - - _validation = { - 'active_message_count': {'readonly': True}, - 'dead_letter_message_count': {'readonly': True}, - 'scheduled_message_count': {'readonly': True}, - 'transfer_message_count': {'readonly': True}, - 'transfer_dead_letter_message_count': {'readonly': True}, - } - - _attribute_map = { - 'active_message_count': {'key': 'activeMessageCount', 'type': 'long'}, - 'dead_letter_message_count': {'key': 'deadLetterMessageCount', 'type': 'long'}, - 'scheduled_message_count': {'key': 'scheduledMessageCount', 'type': 'long'}, - 'transfer_message_count': {'key': 'transferMessageCount', 'type': 'long'}, - 'transfer_dead_letter_message_count': {'key': 'transferDeadLetterMessageCount', 'type': 'long'}, - } - - def __init__(self): - self.active_message_count = None - self.dead_letter_message_count = None - self.scheduled_message_count = None - self.transfer_message_count = None - self.transfer_dead_letter_message_count = None diff --git a/src/servicebus/azext_servicebus/servicebus/models/operation.py b/src/servicebus/azext_servicebus/servicebus/models/operation.py deleted file mode 100644 index 8646086dff6..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/operation.py +++ /dev/null @@ -1,38 +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 msrest.serialization import Model - - -class Operation(Model): - """A ServiceBus 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.servicebus.models.OperationDisplay - """ - - _validation = { - 'name': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDisplay'}, - } - - def __init__(self, display=None): - self.name = None - self.display = display diff --git a/src/servicebus/azext_servicebus/servicebus/models/operation_display.py b/src/servicebus/azext_servicebus/servicebus/models/operation_display.py deleted file mode 100644 index a0ca6fa0544..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/operation_display.py +++ /dev/null @@ -1,45 +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 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.ServiceBus - :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): - self.provider = None - self.resource = None - self.operation = None diff --git a/src/servicebus/azext_servicebus/servicebus/models/operation_paged.py b/src/servicebus/azext_servicebus/servicebus/models/operation_paged.py deleted file mode 100644 index aaa7a15b352..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/operation_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class OperationPaged(Paged): - """ - A paging container for iterating over a list of :class:`Operation ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Operation]'} - } - - def __init__(self, *args, **kwargs): - - super(OperationPaged, self).__init__(*args, **kwargs) diff --git a/src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions.py b/src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions.py deleted file mode 100644 index 3c57fe09f2f..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions.py +++ /dev/null @@ -1,53 +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 .resource_namespace_patch import ResourceNamespacePatch - - -class PremiumMessagingRegions(ResourceNamespacePatch): - """Premium 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.servicebus.models.PremiumMessagingRegionsProperties - """ - - _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': 'PremiumMessagingRegionsProperties'}, - } - - def __init__(self, location=None, tags=None, properties=None): - super(PremiumMessagingRegions, self).__init__(location=location, tags=tags) - self.properties = properties diff --git a/src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions_paged.py b/src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions_paged.py deleted file mode 100644 index 4d57754d8fb..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class PremiumMessagingRegionsPaged(Paged): - """ - A paging container for iterating over a list of :class:`PremiumMessagingRegions ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[PremiumMessagingRegions]'} - } - - def __init__(self, *args, **kwargs): - - super(PremiumMessagingRegionsPaged, self).__init__(*args, **kwargs) diff --git a/src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions_properties.py b/src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions_properties.py deleted file mode 100644 index aa09312088a..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions_properties.py +++ /dev/null @@ -1,39 +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 msrest.serialization import Model - - -class PremiumMessagingRegionsProperties(Model): - """PremiumMessagingRegionsProperties. - - 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): - self.code = None - self.full_name = None diff --git a/src/servicebus/azext_servicebus/servicebus/models/regenerate_access_key_parameters.py b/src/servicebus/azext_servicebus/servicebus/models/regenerate_access_key_parameters.py deleted file mode 100644 index 310c98901b0..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/regenerate_access_key_parameters.py +++ /dev/null @@ -1,38 +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 msrest.serialization import Model - - -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' - :type key_type: str or ~azure.mgmt.servicebus.models.KeyType - :param key: Optional, if the key value provided, is reset for KeyType - value or autogenerate 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=None): - self.key_type = key_type - self.key = key diff --git a/src/servicebus/azext_servicebus/servicebus/models/resource.py b/src/servicebus/azext_servicebus/servicebus/models/resource.py deleted file mode 100644 index 3ceb6eac8a7..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/resource.py +++ /dev/null @@ -1,44 +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 msrest.serialization import Model - - -class Resource(Model): - """The Resource definition for other than 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 - """ - - _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): - self.id = None - self.name = None - self.type = None diff --git a/src/servicebus/azext_servicebus/servicebus/models/resource_namespace_patch.py b/src/servicebus/azext_servicebus/servicebus/models/resource_namespace_patch.py deleted file mode 100644 index 053416e7196..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/resource_namespace_patch.py +++ /dev/null @@ -1,50 +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 .resource import Resource - - -class ResourceNamespacePatch(Resource): - """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 - :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=None, tags=None): - super(ResourceNamespacePatch, self).__init__() - self.location = location - self.tags = tags diff --git a/src/servicebus/azext_servicebus/servicebus/models/rule.py b/src/servicebus/azext_servicebus/servicebus/models/rule.py deleted file mode 100644 index 7a439128611..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/rule.py +++ /dev/null @@ -1,60 +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 .resource import Resource - - -class Rule(Resource): - """Description of Rule 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 action: Represents the filter actions which are allowed for the - transformation of a message that have been matched by a filter expression. - :type action: ~azure.mgmt.servicebus.models.Action - :param filter_type: Filter type that is evaluated against a - BrokeredMessage. Possible values include: 'SqlFilter', 'CorrelationFilter' - :type filter_type: str or ~azure.mgmt.servicebus.models.FilterType - :param sql_filter: Properties of sqlFilter - :type sql_filter: ~azure.mgmt.servicebus.models.SqlFilter - :param correlation_filter: Properties of correlationFilter - :type correlation_filter: ~azure.mgmt.servicebus.models.CorrelationFilter - """ - - _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'}, - 'action': {'key': 'properties.action', 'type': 'Action'}, - 'filter_type': {'key': 'properties.filterType', 'type': 'FilterType'}, - 'sql_filter': {'key': 'properties.sqlFilter', 'type': 'SqlFilter'}, - 'correlation_filter': {'key': 'properties.correlationFilter', 'type': 'CorrelationFilter'}, - } - - def __init__(self, action=None, filter_type=None, sql_filter=None, correlation_filter=None): - super(Rule, self).__init__() - self.action = action - self.filter_type = filter_type - self.sql_filter = sql_filter - self.correlation_filter = correlation_filter diff --git a/src/servicebus/azext_servicebus/servicebus/models/rule_paged.py b/src/servicebus/azext_servicebus/servicebus/models/rule_paged.py deleted file mode 100644 index 1cfb1a4e836..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/rule_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class RulePaged(Paged): - """ - A paging container for iterating over a list of :class:`Rule ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[Rule]'} - } - - def __init__(self, *args, **kwargs): - - super(RulePaged, self).__init__(*args, **kwargs) diff --git a/src/servicebus/azext_servicebus/servicebus/models/sb_authorization_rule.py b/src/servicebus/azext_servicebus/servicebus/models/sb_authorization_rule.py deleted file mode 100644 index b94c5c4a0cb..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/sb_authorization_rule.py +++ /dev/null @@ -1,47 +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 .resource import Resource - - -class SBAuthorizationRule(Resource): - """Description of a namespace authorization rule. - - 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 rights: The rights associated with the rule. - :type rights: list[str or ~azure.mgmt.servicebus.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': '[AccessRights]'}, - } - - def __init__(self, rights): - super(SBAuthorizationRule, self).__init__() - self.rights = rights diff --git a/src/servicebus/azext_servicebus/servicebus/models/sb_authorization_rule_paged.py b/src/servicebus/azext_servicebus/servicebus/models/sb_authorization_rule_paged.py deleted file mode 100644 index 24c4f71b000..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/sb_authorization_rule_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class SBAuthorizationRulePaged(Paged): - """ - A paging container for iterating over a list of :class:`SBAuthorizationRule ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SBAuthorizationRule]'} - } - - def __init__(self, *args, **kwargs): - - super(SBAuthorizationRulePaged, self).__init__(*args, **kwargs) diff --git a/src/servicebus/azext_servicebus/servicebus/models/sb_namespace.py b/src/servicebus/azext_servicebus/servicebus/models/sb_namespace.py deleted file mode 100644 index 9af8bb55912..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/sb_namespace.py +++ /dev/null @@ -1,79 +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 SBNamespace(TrackedResource): - """Description of a namespace 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: The Geo-location where the resource lives - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - :param sku: Porperties of Sku - :type sku: ~azure.mgmt.servicebus.models.SBSku - :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 - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'provisioning_state': {'readonly': True}, - 'created_at': {'readonly': True}, - 'updated_at': {'readonly': True}, - 'service_bus_endpoint': {'readonly': True}, - 'metric_id': {'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': 'sku', 'type': 'SBSku'}, - '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'}, - } - - def __init__(self, location, tags=None, sku=None): - super(SBNamespace, self).__init__(location=location, tags=tags) - self.sku = sku - self.provisioning_state = None - self.created_at = None - self.updated_at = None - self.service_bus_endpoint = None - self.metric_id = None diff --git a/src/servicebus/azext_servicebus/servicebus/models/sb_namespace_paged.py b/src/servicebus/azext_servicebus/servicebus/models/sb_namespace_paged.py deleted file mode 100644 index e0e77d8c605..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/sb_namespace_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class SBNamespacePaged(Paged): - """ - A paging container for iterating over a list of :class:`SBNamespace ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SBNamespace]'} - } - - def __init__(self, *args, **kwargs): - - super(SBNamespacePaged, self).__init__(*args, **kwargs) diff --git a/src/servicebus/azext_servicebus/servicebus/models/sb_namespace_update_parameters.py b/src/servicebus/azext_servicebus/servicebus/models/sb_namespace_update_parameters.py deleted file mode 100644 index dd3fde4636d..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/sb_namespace_update_parameters.py +++ /dev/null @@ -1,78 +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 .resource_namespace_patch import ResourceNamespacePatch - - -class SBNamespaceUpdateParameters(ResourceNamespacePatch): - """Description of a namespace 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] - :param sku: Porperties of Sku - :type sku: ~azure.mgmt.servicebus.models.SBSku - :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 - """ - - _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}, - } - - _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': 'SBSku'}, - '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'}, - } - - def __init__(self, location=None, tags=None, sku=None): - super(SBNamespaceUpdateParameters, self).__init__(location=location, tags=tags) - self.sku = sku - self.provisioning_state = None - self.created_at = None - self.updated_at = None - self.service_bus_endpoint = None - self.metric_id = None diff --git a/src/servicebus/azext_servicebus/servicebus/models/sb_queue.py b/src/servicebus/azext_servicebus/servicebus/models/sb_queue.py deleted file mode 100644 index 97ef3c09de1..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/sb_queue.py +++ /dev/null @@ -1,151 +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 .resource import Resource - - -class SBQueue(Resource): - """Description of queue 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 - :ivar count_details: Message Count Details. - :vartype count_details: ~azure.mgmt.servicebus.models.MessageCountDetails - :ivar created_at: The exact time the message was created. - :vartype created_at: datetime - :ivar updated_at: The exact time the message was updated. - :vartype updated_at: datetime - :ivar accessed_at: Last time a message was sent, or the last time there - was a receive request to this queue. - :vartype accessed_at: datetime - :ivar size_in_bytes: The size of the queue, in bytes. - :vartype size_in_bytes: long - :ivar message_count: The number of messages in the queue. - :vartype message_count: long - :param lock_duration: ISO 8601 timespan duration of a peek-lock; that is, - the amount of time that the message is locked for other receivers. The - maximum value for LockDuration is 5 minutes; the default value is 1 - minute. - :type lock_duration: timedelta - :param max_size_in_megabytes: The maximum size of the queue in megabytes, - which is the size of memory allocated for the queue. Default is 1024. - :type max_size_in_megabytes: int - :param requires_duplicate_detection: A value indicating if this queue - requires duplicate detection. - :type requires_duplicate_detection: bool - :param requires_session: A value that indicates whether the queue supports - the concept of sessions. - :type requires_session: bool - :param default_message_time_to_live: ISO 8601 default message timespan to - live value. This is the duration after which the message expires, starting - from when the message is sent to Service Bus. This is the default value - used when TimeToLive is not set on a message itself. - :type default_message_time_to_live: timedelta - :param dead_lettering_on_message_expiration: A value that indicates - whether this queue has dead letter support when a message expires. - :type dead_lettering_on_message_expiration: bool - :param duplicate_detection_history_time_window: ISO 8601 timeSpan - structure that defines the duration of the duplicate detection history. - The default value is 10 minutes. - :type duplicate_detection_history_time_window: timedelta - :param max_delivery_count: The maximum delivery count. A message is - automatically deadlettered after this number of deliveries. default value - is 10. - :type max_delivery_count: int - :param status: Enumerates the possible values for the status of a - messaging entity. Possible values include: 'Active', 'Disabled', - 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', - 'Renaming', 'Unknown' - :type status: str or ~azure.mgmt.servicebus.models.EntityStatus - :param auto_delete_on_idle: ISO 8061 timeSpan idle interval after which - the queue is automatically deleted. The minimum duration is 5 minutes. - :type auto_delete_on_idle: timedelta - :param enable_partitioning: A value that indicates whether the queue is to - be partitioned across multiple message brokers. - :type enable_partitioning: bool - :param enable_express: A value that indicates whether Express Entities are - enabled. An express queue holds a message in memory temporarily before - writing it to persistent storage. - :type enable_express: bool - :param forward_to: Queue/Topic name to forward the messages - :type forward_to: str - :param forward_dead_lettered_messages_to: Queue/Topic name to forward the - Dead Letter message - :type forward_dead_lettered_messages_to: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'count_details': {'readonly': True}, - 'created_at': {'readonly': True}, - 'updated_at': {'readonly': True}, - 'accessed_at': {'readonly': True}, - 'size_in_bytes': {'readonly': True}, - 'message_count': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'count_details': {'key': 'properties.countDetails', 'type': 'MessageCountDetails'}, - 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, - 'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'}, - 'accessed_at': {'key': 'properties.accessedAt', 'type': 'iso-8601'}, - 'size_in_bytes': {'key': 'properties.sizeInBytes', 'type': 'long'}, - 'message_count': {'key': 'properties.messageCount', 'type': 'long'}, - 'lock_duration': {'key': 'properties.lockDuration', 'type': 'duration'}, - 'max_size_in_megabytes': {'key': 'properties.maxSizeInMegabytes', 'type': 'int'}, - 'requires_duplicate_detection': {'key': 'properties.requiresDuplicateDetection', 'type': 'bool'}, - 'requires_session': {'key': 'properties.requiresSession', 'type': 'bool'}, - 'default_message_time_to_live': {'key': 'properties.defaultMessageTimeToLive', 'type': 'duration'}, - 'dead_lettering_on_message_expiration': {'key': 'properties.deadLetteringOnMessageExpiration', 'type': 'bool'}, - 'duplicate_detection_history_time_window': {'key': 'properties.duplicateDetectionHistoryTimeWindow', 'type': 'duration'}, - 'max_delivery_count': {'key': 'properties.maxDeliveryCount', 'type': 'int'}, - 'status': {'key': 'properties.status', 'type': 'EntityStatus'}, - 'auto_delete_on_idle': {'key': 'properties.autoDeleteOnIdle', 'type': 'duration'}, - 'enable_partitioning': {'key': 'properties.enablePartitioning', 'type': 'bool'}, - 'enable_express': {'key': 'properties.enableExpress', 'type': 'bool'}, - 'forward_to': {'key': 'properties.forwardTo', 'type': 'str'}, - 'forward_dead_lettered_messages_to': {'key': 'properties.forwardDeadLetteredMessagesTo', 'type': 'str'}, - } - - def __init__(self, lock_duration=None, max_size_in_megabytes=None, requires_duplicate_detection=None, requires_session=None, default_message_time_to_live=None, dead_lettering_on_message_expiration=None, duplicate_detection_history_time_window=None, max_delivery_count=None, status=None, auto_delete_on_idle=None, enable_partitioning=None, enable_express=None, forward_to=None, forward_dead_lettered_messages_to=None): - super(SBQueue, self).__init__() - self.count_details = None - self.created_at = None - self.updated_at = None - self.accessed_at = None - self.size_in_bytes = None - self.message_count = None - self.lock_duration = lock_duration - self.max_size_in_megabytes = max_size_in_megabytes - self.requires_duplicate_detection = requires_duplicate_detection - self.requires_session = requires_session - self.default_message_time_to_live = default_message_time_to_live - self.dead_lettering_on_message_expiration = dead_lettering_on_message_expiration - self.duplicate_detection_history_time_window = duplicate_detection_history_time_window - self.max_delivery_count = max_delivery_count - self.status = status - self.auto_delete_on_idle = auto_delete_on_idle - self.enable_partitioning = enable_partitioning - self.enable_express = enable_express - self.forward_to = forward_to - self.forward_dead_lettered_messages_to = forward_dead_lettered_messages_to diff --git a/src/servicebus/azext_servicebus/servicebus/models/sb_queue_paged.py b/src/servicebus/azext_servicebus/servicebus/models/sb_queue_paged.py deleted file mode 100644 index f85adb4bb59..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/sb_queue_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class SBQueuePaged(Paged): - """ - A paging container for iterating over a list of :class:`SBQueue ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SBQueue]'} - } - - def __init__(self, *args, **kwargs): - - super(SBQueuePaged, self).__init__(*args, **kwargs) diff --git a/src/servicebus/azext_servicebus/servicebus/models/sb_sku.py b/src/servicebus/azext_servicebus/servicebus/models/sb_sku.py deleted file mode 100644 index 6410cd381f8..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/sb_sku.py +++ /dev/null @@ -1,42 +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 msrest.serialization import Model - - -class SBSku(Model): - """SKU of the namespace. - - :param name: Name of this SKU. Possible values include: 'Basic', - 'Standard', 'Premium' - :type name: str or ~azure.mgmt.servicebus.models.SkuName - :param tier: The billing tier of this particular SKU. Possible values - include: 'Basic', 'Standard', 'Premium' - :type tier: str or ~azure.mgmt.servicebus.models.SkuTier - :param capacity: The specified messaging units for the tier. For Premium - tier, capacity are 1,2 and 4. - :type capacity: int - """ - - _validation = { - 'name': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'SkuName'}, - 'tier': {'key': 'tier', 'type': 'SkuTier'}, - 'capacity': {'key': 'capacity', 'type': 'int'}, - } - - def __init__(self, name, tier=None, capacity=None): - self.name = name - self.tier = tier - self.capacity = capacity diff --git a/src/servicebus/azext_servicebus/servicebus/models/sb_subscription.py b/src/servicebus/azext_servicebus/servicebus/models/sb_subscription.py deleted file mode 100644 index dab0aff0ff0..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/sb_subscription.py +++ /dev/null @@ -1,126 +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 .resource import Resource - - -class SBSubscription(Resource): - """Description of subscription 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 - :ivar message_count: Number of messages. - :vartype message_count: long - :ivar created_at: Exact time the message was created. - :vartype created_at: datetime - :ivar accessed_at: Last time there was a receive request to this - subscription. - :vartype accessed_at: datetime - :ivar updated_at: The exact time the message was updated. - :vartype updated_at: datetime - :ivar count_details: Message count details - :vartype count_details: ~azure.mgmt.servicebus.models.MessageCountDetails - :param lock_duration: ISO 8061 lock duration timespan for the - subscription. The default value is 1 minute. - :type lock_duration: timedelta - :param requires_session: Value indicating if a subscription supports the - concept of sessions. - :type requires_session: bool - :param default_message_time_to_live: ISO 8061 Default message timespan to - live value. This is the duration after which the message expires, starting - from when the message is sent to Service Bus. This is the default value - used when TimeToLive is not set on a message itself. - :type default_message_time_to_live: timedelta - :param dead_lettering_on_message_expiration: Value that indicates whether - a subscription has dead letter support when a message expires. - :type dead_lettering_on_message_expiration: bool - :param duplicate_detection_history_time_window: ISO 8601 timeSpan - structure that defines the duration of the duplicate detection history. - The default value is 10 minutes. - :type duplicate_detection_history_time_window: timedelta - :param max_delivery_count: Number of maximum deliveries. - :type max_delivery_count: int - :param status: Enumerates the possible values for the status of a - messaging entity. Possible values include: 'Active', 'Disabled', - 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', - 'Renaming', 'Unknown' - :type status: str or ~azure.mgmt.servicebus.models.EntityStatus - :param enable_batched_operations: Value that indicates whether server-side - batched operations are enabled. - :type enable_batched_operations: bool - :param auto_delete_on_idle: ISO 8061 timeSpan idle interval after which - the topic is automatically deleted. The minimum duration is 5 minutes. - :type auto_delete_on_idle: timedelta - :param forward_to: Queue/Topic name to forward the messages - :type forward_to: str - :param forward_dead_lettered_messages_to: Queue/Topic name to forward the - Dead Letter message - :type forward_dead_lettered_messages_to: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'message_count': {'readonly': True}, - 'created_at': {'readonly': True}, - 'accessed_at': {'readonly': True}, - 'updated_at': {'readonly': True}, - 'count_details': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'message_count': {'key': 'properties.messageCount', 'type': 'long'}, - 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, - 'accessed_at': {'key': 'properties.accessedAt', 'type': 'iso-8601'}, - 'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'}, - 'count_details': {'key': 'properties.countDetails', 'type': 'MessageCountDetails'}, - 'lock_duration': {'key': 'properties.lockDuration', 'type': 'duration'}, - 'requires_session': {'key': 'properties.requiresSession', 'type': 'bool'}, - 'default_message_time_to_live': {'key': 'properties.defaultMessageTimeToLive', 'type': 'duration'}, - 'dead_lettering_on_message_expiration': {'key': 'properties.deadLetteringOnMessageExpiration', 'type': 'bool'}, - 'duplicate_detection_history_time_window': {'key': 'properties.duplicateDetectionHistoryTimeWindow', 'type': 'duration'}, - 'max_delivery_count': {'key': 'properties.maxDeliveryCount', 'type': 'int'}, - 'status': {'key': 'properties.status', 'type': 'EntityStatus'}, - 'enable_batched_operations': {'key': 'properties.enableBatchedOperations', 'type': 'bool'}, - 'auto_delete_on_idle': {'key': 'properties.autoDeleteOnIdle', 'type': 'duration'}, - 'forward_to': {'key': 'properties.forwardTo', 'type': 'str'}, - 'forward_dead_lettered_messages_to': {'key': 'properties.forwardDeadLetteredMessagesTo', 'type': 'str'}, - } - - def __init__(self, lock_duration=None, requires_session=None, default_message_time_to_live=None, dead_lettering_on_message_expiration=None, duplicate_detection_history_time_window=None, max_delivery_count=None, status=None, enable_batched_operations=None, auto_delete_on_idle=None, forward_to=None, forward_dead_lettered_messages_to=None): - super(SBSubscription, self).__init__() - self.message_count = None - self.created_at = None - self.accessed_at = None - self.updated_at = None - self.count_details = None - self.lock_duration = lock_duration - self.requires_session = requires_session - self.default_message_time_to_live = default_message_time_to_live - self.dead_lettering_on_message_expiration = dead_lettering_on_message_expiration - self.duplicate_detection_history_time_window = duplicate_detection_history_time_window - self.max_delivery_count = max_delivery_count - self.status = status - self.enable_batched_operations = enable_batched_operations - self.auto_delete_on_idle = auto_delete_on_idle - self.forward_to = forward_to - self.forward_dead_lettered_messages_to = forward_dead_lettered_messages_to diff --git a/src/servicebus/azext_servicebus/servicebus/models/sb_subscription_paged.py b/src/servicebus/azext_servicebus/servicebus/models/sb_subscription_paged.py deleted file mode 100644 index 019bb9524f9..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/sb_subscription_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class SBSubscriptionPaged(Paged): - """ - A paging container for iterating over a list of :class:`SBSubscription ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SBSubscription]'} - } - - def __init__(self, *args, **kwargs): - - super(SBSubscriptionPaged, self).__init__(*args, **kwargs) diff --git a/src/servicebus/azext_servicebus/servicebus/models/sb_topic.py b/src/servicebus/azext_servicebus/servicebus/models/sb_topic.py deleted file mode 100644 index 5f0b806bed3..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/sb_topic.py +++ /dev/null @@ -1,129 +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 .resource import Resource - - -class SBTopic(Resource): - """Description of topic 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 - :ivar size_in_bytes: Size of the topic, in bytes. - :vartype size_in_bytes: long - :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 - :ivar accessed_at: Last time the message was sent, or a request was - received, for this topic. - :vartype accessed_at: datetime - :ivar subscription_count: Number of subscriptions. - :vartype subscription_count: int - :ivar count_details: Message count deatils - :vartype count_details: ~azure.mgmt.servicebus.models.MessageCountDetails - :param default_message_time_to_live: ISO 8601 Default message timespan to - live value. This is the duration after which the message expires, starting - from when the message is sent to Service Bus. This is the default value - used when TimeToLive is not set on a message itself. - :type default_message_time_to_live: timedelta - :param max_size_in_megabytes: Maximum size of the topic in megabytes, - which is the size of the memory allocated for the topic. Default is 1024. - :type max_size_in_megabytes: int - :param requires_duplicate_detection: Value indicating if this topic - requires duplicate detection. - :type requires_duplicate_detection: bool - :param duplicate_detection_history_time_window: ISO8601 timespan structure - that defines the duration of the duplicate detection history. The default - value is 10 minutes. - :type duplicate_detection_history_time_window: timedelta - :param enable_batched_operations: Value that indicates whether server-side - batched operations are enabled. - :type enable_batched_operations: bool - :param status: Enumerates the possible values for the status of a - messaging entity. Possible values include: 'Active', 'Disabled', - 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating', 'Deleting', - 'Renaming', 'Unknown' - :type status: str or ~azure.mgmt.servicebus.models.EntityStatus - :param support_ordering: Value that indicates whether the topic supports - ordering. - :type support_ordering: bool - :param auto_delete_on_idle: ISO 8601 timespan idle interval after which - the topic is automatically deleted. The minimum duration is 5 minutes. - :type auto_delete_on_idle: timedelta - :param enable_partitioning: Value that indicates whether the topic to be - partitioned across multiple message brokers is enabled. - :type enable_partitioning: bool - :param enable_express: Value that indicates whether Express Entities are - enabled. An express topic holds a message in memory temporarily before - writing it to persistent storage. - :type enable_express: bool - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'size_in_bytes': {'readonly': True}, - 'created_at': {'readonly': True}, - 'updated_at': {'readonly': True}, - 'accessed_at': {'readonly': True}, - 'subscription_count': {'readonly': True}, - 'count_details': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'size_in_bytes': {'key': 'properties.sizeInBytes', 'type': 'long'}, - 'created_at': {'key': 'properties.createdAt', 'type': 'iso-8601'}, - 'updated_at': {'key': 'properties.updatedAt', 'type': 'iso-8601'}, - 'accessed_at': {'key': 'properties.accessedAt', 'type': 'iso-8601'}, - 'subscription_count': {'key': 'properties.subscriptionCount', 'type': 'int'}, - 'count_details': {'key': 'properties.countDetails', 'type': 'MessageCountDetails'}, - 'default_message_time_to_live': {'key': 'properties.defaultMessageTimeToLive', 'type': 'duration'}, - 'max_size_in_megabytes': {'key': 'properties.maxSizeInMegabytes', 'type': 'int'}, - 'requires_duplicate_detection': {'key': 'properties.requiresDuplicateDetection', 'type': 'bool'}, - 'duplicate_detection_history_time_window': {'key': 'properties.duplicateDetectionHistoryTimeWindow', 'type': 'duration'}, - 'enable_batched_operations': {'key': 'properties.enableBatchedOperations', 'type': 'bool'}, - 'status': {'key': 'properties.status', 'type': 'EntityStatus'}, - 'support_ordering': {'key': 'properties.supportOrdering', 'type': 'bool'}, - 'auto_delete_on_idle': {'key': 'properties.autoDeleteOnIdle', 'type': 'duration'}, - 'enable_partitioning': {'key': 'properties.enablePartitioning', 'type': 'bool'}, - 'enable_express': {'key': 'properties.enableExpress', 'type': 'bool'}, - } - - def __init__(self, default_message_time_to_live=None, max_size_in_megabytes=None, requires_duplicate_detection=None, duplicate_detection_history_time_window=None, enable_batched_operations=None, status=None, support_ordering=None, auto_delete_on_idle=None, enable_partitioning=None, enable_express=None): - super(SBTopic, self).__init__() - self.size_in_bytes = None - self.created_at = None - self.updated_at = None - self.accessed_at = None - self.subscription_count = None - self.count_details = None - self.default_message_time_to_live = default_message_time_to_live - self.max_size_in_megabytes = max_size_in_megabytes - self.requires_duplicate_detection = requires_duplicate_detection - self.duplicate_detection_history_time_window = duplicate_detection_history_time_window - self.enable_batched_operations = enable_batched_operations - self.status = status - self.support_ordering = support_ordering - self.auto_delete_on_idle = auto_delete_on_idle - self.enable_partitioning = enable_partitioning - self.enable_express = enable_express diff --git a/src/servicebus/azext_servicebus/servicebus/models/sb_topic_paged.py b/src/servicebus/azext_servicebus/servicebus/models/sb_topic_paged.py deleted file mode 100644 index 1a1330b1d9d..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/sb_topic_paged.py +++ /dev/null @@ -1,27 +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 msrest.paging import Paged - - -class SBTopicPaged(Paged): - """ - A paging container for iterating over a list of :class:`SBTopic ` object - """ - - _attribute_map = { - 'next_link': {'key': 'nextLink', 'type': 'str'}, - 'current_page': {'key': 'value', 'type': '[SBTopic]'} - } - - def __init__(self, *args, **kwargs): - - super(SBTopicPaged, self).__init__(*args, **kwargs) diff --git a/src/servicebus/azext_servicebus/servicebus/models/service_bus_management_client_enums.py b/src/servicebus/azext_servicebus/servicebus/models/service_bus_management_client_enums.py deleted file mode 100644 index 52f86b7f900..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/service_bus_management_client_enums.py +++ /dev/null @@ -1,88 +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 enum import Enum - - -class SkuName(Enum): - - basic = "Basic" - standard = "Standard" - premium = "Premium" - - -class SkuTier(Enum): - - basic = "Basic" - standard = "Standard" - premium = "Premium" - - -class AccessRights(Enum): - - manage = "Manage" - send = "Send" - listen = "Listen" - - -class KeyType(Enum): - - primary_key = "PrimaryKey" - secondary_key = "SecondaryKey" - - -class EntityStatus(Enum): - - active = "Active" - disabled = "Disabled" - restoring = "Restoring" - send_disabled = "SendDisabled" - receive_disabled = "ReceiveDisabled" - creating = "Creating" - deleting = "Deleting" - renaming = "Renaming" - unknown = "Unknown" - - -class UnavailableReason(Enum): - - none = "None" - invalid_name = "InvalidName" - subscription_is_disabled = "SubscriptionIsDisabled" - name_in_use = "NameInUse" - name_in_lockdown = "NameInLockdown" - too_many_namespace_in_current_subscription = "TooManyNamespaceInCurrentSubscription" - - -class FilterType(Enum): - - sql_filter = "SqlFilter" - correlation_filter = "CorrelationFilter" - - -class EncodingCaptureDescription(Enum): - - avro = "Avro" - avro_deflate = "AvroDeflate" - - -class ProvisioningStateDR(Enum): - - accepted = "Accepted" - succeeded = "Succeeded" - failed = "Failed" - - -class RoleDisasterRecovery(Enum): - - primary = "Primary" - primary_not_replicating = "PrimaryNotReplicating" - secondary = "Secondary" diff --git a/src/servicebus/azext_servicebus/servicebus/models/sql_filter.py b/src/servicebus/azext_servicebus/servicebus/models/sql_filter.py deleted file mode 100644 index 66b5ebac20f..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/sql_filter.py +++ /dev/null @@ -1,46 +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 msrest.serialization import Model - - -class SqlFilter(Model): - """Represents a filter which is a composition of an expression and an action - that is executed in the pub/sub pipeline. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param sql_expression: The SQL expression. e.g. MyProperty='ABC' - :type sql_expression: str - :ivar compatibility_level: This property is reserved for future use. An - integer value showing the compatibility level, currently hard-coded to 20. - Default value: 20 . - :vartype compatibility_level: int - :param requires_preprocessing: Value that indicates whether the rule - action requires preprocessing. Default value: True . - :type requires_preprocessing: bool - """ - - _validation = { - 'compatibility_level': {'readonly': True}, - } - - _attribute_map = { - 'sql_expression': {'key': 'sqlExpression', 'type': 'str'}, - 'compatibility_level': {'key': 'compatibilityLevel', 'type': 'int'}, - 'requires_preprocessing': {'key': 'requiresPreprocessing', 'type': 'bool'}, - } - - def __init__(self, sql_expression=None, requires_preprocessing=True): - self.sql_expression = sql_expression - self.compatibility_level = None - self.requires_preprocessing = requires_preprocessing diff --git a/src/servicebus/azext_servicebus/servicebus/models/sql_rule_action.py b/src/servicebus/azext_servicebus/servicebus/models/sql_rule_action.py deleted file mode 100644 index 0150ca05ae2..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/sql_rule_action.py +++ /dev/null @@ -1,30 +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 .action import Action - - -class SqlRuleAction(Action): - """Represents set of actions written in SQL language-based syntax that is - performed against a ServiceBus.Messaging.BrokeredMessage . - - :param sql_expression: SQL expression. e.g. MyProperty='ABC' - :type sql_expression: str - :param compatibility_level: This property is reserved for future use. An - integer value showing the compatibility level, currently hard-coded to 20. - :type compatibility_level: int - :param requires_preprocessing: Value that indicates whether the rule - action requires preprocessing. Default value: True . - :type requires_preprocessing: bool - """ - - def __init__(self, sql_expression=None, compatibility_level=None, requires_preprocessing=True): - super(SqlRuleAction, self).__init__(sql_expression=sql_expression, compatibility_level=compatibility_level, requires_preprocessing=requires_preprocessing) diff --git a/src/servicebus/azext_servicebus/servicebus/models/tracked_resource.py b/src/servicebus/azext_servicebus/servicebus/models/tracked_resource.py deleted file mode 100644 index 192adcc84b2..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/models/tracked_resource.py +++ /dev/null @@ -1,51 +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 .resource import Resource - - -class TrackedResource(Resource): - """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 - :param location: The Geo-location where the resource lives - :type location: str - :param tags: Resource tags - :type tags: dict[str, str] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': 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, tags=None): - super(TrackedResource, self).__init__() - self.location = location - self.tags = tags diff --git a/src/servicebus/azext_servicebus/servicebus/operations/__init__.py b/src/servicebus/azext_servicebus/servicebus/operations/__init__.py deleted file mode 100644 index a6b1de61646..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/operations/__init__.py +++ /dev/null @@ -1,34 +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 .operations import Operations -from .namespaces_operations import NamespacesOperations -from .disaster_recovery_configs_operations import DisasterRecoveryConfigsOperations -from .queues_operations import QueuesOperations -from .topics_operations import TopicsOperations -from .subscriptions_operations import SubscriptionsOperations -from .rules_operations import RulesOperations -from .regions_operations import RegionsOperations -from .premium_messaging_regions_operations import PremiumMessagingRegionsOperations -from .event_hubs_operations import EventHubsOperations - -__all__ = [ - 'Operations', - 'NamespacesOperations', - 'DisasterRecoveryConfigsOperations', - 'QueuesOperations', - 'TopicsOperations', - 'SubscriptionsOperations', - 'RulesOperations', - 'RegionsOperations', - 'PremiumMessagingRegionsOperations', - 'EventHubsOperations', -] diff --git a/src/servicebus/azext_servicebus/servicebus/operations/disaster_recovery_configs_operations.py b/src/servicebus/azext_servicebus/servicebus/operations/disaster_recovery_configs_operations.py deleted file mode 100644 index cd20cb71773..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/operations/disaster_recovery_configs_operations.py +++ /dev/null @@ -1,697 +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 .. import models - - -class DisasterRecoveryConfigsOperations(object): - """DisasterRecoveryConfigsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec 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 check_name_availability_method( - self, resource_group_name, namespace_name, name, custom_headers=None, raw=False, **operation_config): - """Check the give namespace name availability. - - :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 name: The Name to check the namespce name availability and The - namespace name can contain only letters, numbers, and hyphens. The - namespace must start with a letter, and it must end with a letter or - number. - :type 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: CheckNameAvailabilityResult or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.CheckNameAvailabilityResult or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.CheckNameAvailability(name=name) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/CheckNameAvailability' - 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 body - body_content = self._serialize.body(parameters, 'CheckNameAvailability') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('CheckNameAvailabilityResult', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list( - self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): - """Gets all Alias(Disaster Recovery configurations). - - :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: An iterator like instance of ArmDisasterRecovery - :rtype: - ~azure.mgmt.servicebus.models.ArmDisasterRecoveryPaged[~azure.mgmt.servicebus.models.ArmDisasterRecovery] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs' - 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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.ArmDisasterRecoveryPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.ArmDisasterRecoveryPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, namespace_name, alias, partner_namespace=None, alternate_name=None, custom_headers=None, raw=False, **operation_config): - """Creates or updates a new Alias(Disaster Recovery configuration). - - :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 alias: The Disaster Recovery configuration name - :type alias: str - :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: Primary/Secondary eventhub namespace name, - which is part of GEO DR pairning - :type alternate_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: ArmDisasterRecovery or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.ArmDisasterRecovery or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.ArmDisasterRecovery(partner_namespace=partner_namespace, alternate_name=alternate_name) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'ArmDisasterRecovery') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200, 201]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('ArmDisasterRecovery', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete( - self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): - """Deletes an Alias(Disaster Recovery configuration). - - :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 alias: The Disaster Recovery configuration name - :type alias: 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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - '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.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get( - self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): - """Retrieves Alias(Disaster Recovery configuration) for primary or - secondary 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 alias: The Disaster Recovery configuration name - :type alias: 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: ArmDisasterRecovery or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.ArmDisasterRecovery or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - '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, **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('ArmDisasterRecovery', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def break_pairing( - self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): - """This operation disables the Disaster Recovery and stops replicating - changes from primary to secondary namespaces. - - :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 alias: The Disaster Recovery configuration name - :type alias: 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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/breakPairing' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - '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.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def fail_over( - self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): - """envokes GEO DR failover and reconfigure the alias to point to the - secondary 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 alias: The Disaster Recovery configuration name - :type alias: 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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/failover' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - '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.post(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def list_authorization_rules( - self, resource_group_name, namespace_name, alias, custom_headers=None, raw=False, **operation_config): - """Gets the authorization rules for a 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 alias: The Disaster Recovery configuration name - :type alias: 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 SBAuthorizationRule - :rtype: - ~azure.mgmt.servicebus.models.SBAuthorizationRulePaged[~azure.mgmt.servicebus.models.SBAuthorizationRule] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - '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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.SBAuthorizationRulePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.SBAuthorizationRulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def get_authorization_rule( - self, resource_group_name, namespace_name, alias, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Gets an authorization rule for a namespace by rule name. - - :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 alias: The Disaster Recovery configuration name - :type alias: str - :param authorization_rule_name: The authorizationrule name. - :type authorization_rule_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: SBAuthorizationRule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBAuthorizationRule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules/{authorizationRuleName}' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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, **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('SBAuthorizationRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_keys( - self, resource_group_name, namespace_name, alias, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Gets the primary and secondary connection strings for the 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 alias: The Disaster Recovery configuration name - :type alias: str - :param authorization_rule_name: The authorizationrule name. - :type authorization_rule_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: AccessKeys or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.AccessKeys or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules/{authorizationRuleName}/listKeys' - 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), - 'alias': self._serialize.url("alias", alias, 'str', max_length=50, min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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.post(url, query_parameters) - response = self._client.send(request, header_parameters, **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('AccessKeys', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized diff --git a/src/servicebus/azext_servicebus/servicebus/operations/event_hubs_operations.py b/src/servicebus/azext_servicebus/servicebus/operations/event_hubs_operations.py deleted file mode 100644 index 53434911990..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/operations/event_hubs_operations.py +++ /dev/null @@ -1,107 +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 .. import models - - -class EventHubsOperations(object): - """EventHubsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec 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_namespace( - self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): - """Gets all the Event Hubs in a service bus 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: An iterator like instance of Eventhub - :rtype: - ~azure.mgmt.servicebus.models.EventhubPaged[~azure.mgmt.servicebus.models.Eventhub] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/eventhubs' - 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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.EventhubPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.EventhubPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized diff --git a/src/servicebus/azext_servicebus/servicebus/operations/namespaces_operations.py b/src/servicebus/azext_servicebus/servicebus/operations/namespaces_operations.py deleted file mode 100644 index 72abad2ce7f..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/operations/namespaces_operations.py +++ /dev/null @@ -1,939 +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_operation import AzureOperationPoller - -from .. import models - - -class NamespacesOperations(object): - """NamespacesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec 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 check_name_availability_method( - self, name, custom_headers=None, raw=False, **operation_config): - """Check the give namespace name availability. - - :param name: The Name to check the namespce name availability and The - namespace name can contain only letters, numbers, and hyphens. The - namespace must start with a letter, and it must end with a letter or - number. - :type 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: CheckNameAvailabilityResult or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.CheckNameAvailabilityResult or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.CheckNameAvailability(name=name) - - # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/CheckNameAvailability' - path_format_arguments = { - '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 body - body_content = self._serialize.body(parameters, 'CheckNameAvailability') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('CheckNameAvailabilityResult', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list( - self, custom_headers=None, raw=False, **operation_config): - """Gets all the available namespaces within the subscription, irrespective - of the resource groups. - - :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 SBNamespace - :rtype: - ~azure.mgmt.servicebus.models.SBNamespacePaged[~azure.mgmt.servicebus.models.SBNamespace] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/namespaces' - path_format_arguments = { - '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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.SBNamespacePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.SBNamespacePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def list_by_resource_group( - self, resource_group_name, custom_headers=None, raw=False, **operation_config): - """Gets the available namespaces within a resource group. - - :param resource_group_name: Name of the Resource group within the - Azure subscription. - :type resource_group_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: An iterator like instance of SBNamespace - :rtype: - ~azure.mgmt.servicebus.models.SBNamespacePaged[~azure.mgmt.servicebus.models.SBNamespace] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces' - 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') - } - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.SBNamespacePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.SBNamespacePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, namespace_name, parameters, custom_headers=None, raw=False, **operation_config): - """Creates or updates a service namespace. Once created, this namespace's - resource manifest is immutable. This operation is idempotent. - - :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 parameters: Parameters supplied to create a namespace resource. - :type parameters: ~azure.mgmt.servicebus.models.SBNamespace - :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 SBNamespace - or ClientRawResponse if raw=true - :rtype: - ~msrestazure.azure_operation.AzureOperationPoller[~azure.mgmt.servicebus.models.SBNamespace] - or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}' - 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'), - '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 body - body_content = self._serialize.body(parameters, 'SBNamespace') - - # Construct and send request - def long_running_send(): - - request = self._client.put(url, query_parameters) - return self._client.send( - request, header_parameters, body_content, **operation_config) - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - return self._client.send( - request, header_parameters, **operation_config) - - def get_long_running_output(response): - - if response.status_code not in [200, 201, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('SBNamespace', response) - if response.status_code == 201: - deserialized = self._deserialize('SBNamespace', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - if raw: - response = long_running_send() - return get_long_running_output(response) - - long_running_operation_timeout = 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) - - def delete( - self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): - """Deletes an existing namespace. This operation also removes all - associated resources under the 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 - :return: An instance of AzureOperationPoller that returns None or - ClientRawResponse if raw=true - :rtype: ~msrestazure.azure_operation.AzureOperationPoller[None] or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}' - 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 - def long_running_send(): - - request = self._client.delete(url, query_parameters) - return self._client.send(request, header_parameters, **operation_config) - - def get_long_running_status(status_link, headers=None): - - request = self._client.get(status_link) - if headers: - request.headers.update(headers) - return self._client.send( - request, header_parameters, **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 - - if raw: - response = long_running_send() - return get_long_running_output(response) - - long_running_operation_timeout = 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) - - 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: SBNamespace or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBNamespace or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}' - 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, **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('SBNamespace', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def update( - self, resource_group_name, namespace_name, parameters, custom_headers=None, raw=False, **operation_config): - """Updates a service namespace. Once created, this namespace's resource - manifest is immutable. This operation is idempotent. - - :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 parameters: Parameters supplied to update a namespace resource. - :type parameters: - ~azure.mgmt.servicebus.models.SBNamespaceUpdateParameters - :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: SBNamespace or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBNamespace or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}' - 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 body - body_content = self._serialize.body(parameters, 'SBNamespaceUpdateParameters') - - # Construct and send request - request = self._client.patch(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **operation_config) - - if response.status_code not in [200, 201, 202]: - raise models.ErrorResponseException(self._deserialize, response) - - deserialized = None - - if response.status_code == 200: - deserialized = self._deserialize('SBNamespace', response) - if response.status_code == 201: - deserialized = self._deserialize('SBNamespace', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_authorization_rules( - self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): - """Gets the authorization rules for a 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: An iterator like instance of SBAuthorizationRule - :rtype: - ~azure.mgmt.servicebus.models.SBAuthorizationRulePaged[~azure.mgmt.servicebus.models.SBAuthorizationRule] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules' - 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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.SBAuthorizationRulePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.SBAuthorizationRulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def create_or_update_authorization_rule( - self, resource_group_name, namespace_name, authorization_rule_name, rights, custom_headers=None, raw=False, **operation_config): - """Creates or updates an authorization rule for a 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 authorization_rule_name: The authorizationrule name. - :type authorization_rule_name: str - :param rights: The rights associated with the rule. - :type rights: list[str or ~azure.mgmt.servicebus.models.AccessRights] - :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: SBAuthorizationRule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBAuthorizationRule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.SBAuthorizationRule(rights=rights) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}' - 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), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'SBAuthorizationRule') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('SBAuthorizationRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete_authorization_rule( - self, resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Deletes a namespace authorization rule. - - :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 authorization_rule_name: The authorizationrule name. - :type authorization_rule_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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}' - 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), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_authorization_rule( - self, resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Gets an authorization rule for a namespace by rule name. - - :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 authorization_rule_name: The authorizationrule name. - :type authorization_rule_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: SBAuthorizationRule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBAuthorizationRule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}' - 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), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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, **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('SBAuthorizationRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_keys( - self, resource_group_name, namespace_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Gets the primary and secondary connection strings for the 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 authorization_rule_name: The authorizationrule name. - :type authorization_rule_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: AccessKeys or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.AccessKeys or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys' - 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), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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.post(url, query_parameters) - response = self._client.send(request, header_parameters, **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('AccessKeys', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def regenerate_keys( - self, resource_group_name, namespace_name, authorization_rule_name, key_type, key=None, custom_headers=None, raw=False, **operation_config): - """Regenerates the primary or secondary connection strings for the - 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 authorization_rule_name: The authorizationrule name. - :type authorization_rule_name: str - :param key_type: The access key to regenerate. Possible values - include: 'PrimaryKey', 'SecondaryKey' - :type key_type: str or ~azure.mgmt.servicebus.models.KeyType - :param key: Optional, if the key value provided, is reset for KeyType - value or autogenerate Key value set for keyType - :type key: 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: AccessKeys or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.AccessKeys or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.RegenerateAccessKeyParameters(key_type=key_type, key=key) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys' - 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), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'RegenerateAccessKeyParameters') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('AccessKeys', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized diff --git a/src/servicebus/azext_servicebus/servicebus/operations/operations.py b/src/servicebus/azext_servicebus/servicebus/operations/operations.py deleted file mode 100644 index 9b98254ae1e..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/operations/operations.py +++ /dev/null @@ -1,96 +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 .. import models - - -class Operations(object): - """Operations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec 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( - self, custom_headers=None, raw=False, **operation_config): - """Lists all of the available ServiceBus REST API operations. - - :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 Operation - :rtype: - ~azure.mgmt.servicebus.models.OperationPaged[~azure.mgmt.servicebus.models.Operation] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/providers/Microsoft.ServiceBus/operations' - - # 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.OperationPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.OperationPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized diff --git a/src/servicebus/azext_servicebus/servicebus/operations/premium_messaging_regions_operations.py b/src/servicebus/azext_servicebus/servicebus/operations/premium_messaging_regions_operations.py deleted file mode 100644 index 61dba404096..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/operations/premium_messaging_regions_operations.py +++ /dev/null @@ -1,100 +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 .. import models - - -class PremiumMessagingRegionsOperations(object): - """PremiumMessagingRegionsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec 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( - self, custom_headers=None, raw=False, **operation_config): - """Gets the available premium messaging regions for servicebus . - - :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 PremiumMessagingRegions - :rtype: - ~azure.mgmt.servicebus.models.PremiumMessagingRegionsPaged[~azure.mgmt.servicebus.models.PremiumMessagingRegions] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/premiumMessagingRegions' - path_format_arguments = { - '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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.PremiumMessagingRegionsPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.PremiumMessagingRegionsPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized diff --git a/src/servicebus/azext_servicebus/servicebus/operations/queues_operations.py b/src/servicebus/azext_servicebus/servicebus/operations/queues_operations.py deleted file mode 100644 index f46dfc10223..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/operations/queues_operations.py +++ /dev/null @@ -1,718 +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 .. import models - - -class QueuesOperations(object): - """QueuesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec 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_namespace( - self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): - """Gets the queues within a 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: An iterator like instance of SBQueue - :rtype: - ~azure.mgmt.servicebus.models.SBQueuePaged[~azure.mgmt.servicebus.models.SBQueue] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues' - 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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.SBQueuePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.SBQueuePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, namespace_name, queue_name, parameters, custom_headers=None, raw=False, **operation_config): - """Creates or updates a Service Bus queue. This operation is idempotent. - - :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 queue_name: The queue name. - :type queue_name: str - :param parameters: Parameters supplied to create or update a queue - resource. - :type parameters: ~azure.mgmt.servicebus.models.SBQueue - :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: SBQueue or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBQueue or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}' - 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), - 'queueName': self._serialize.url("queue_name", queue_name, 'str', min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'SBQueue') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('SBQueue', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete( - self, resource_group_name, namespace_name, queue_name, custom_headers=None, raw=False, **operation_config): - """Deletes a queue from the specified namespace in a resource group. - - :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 queue_name: The queue name. - :type queue_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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}' - 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), - 'queueName': self._serialize.url("queue_name", queue_name, 'str', min_length=1), - '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.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get( - self, resource_group_name, namespace_name, queue_name, custom_headers=None, raw=False, **operation_config): - """Returns a description for the specified queue. - - :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 queue_name: The queue name. - :type queue_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: SBQueue or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBQueue or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}' - 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), - 'queueName': self._serialize.url("queue_name", queue_name, 'str', min_length=1), - '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, **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('SBQueue', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_authorization_rules( - self, resource_group_name, namespace_name, queue_name, custom_headers=None, raw=False, **operation_config): - """Gets all authorization rules for a queue. - - :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 queue_name: The queue name. - :type queue_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: An iterator like instance of SBAuthorizationRule - :rtype: - ~azure.mgmt.servicebus.models.SBAuthorizationRulePaged[~azure.mgmt.servicebus.models.SBAuthorizationRule] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules' - 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), - 'queueName': self._serialize.url("queue_name", queue_name, 'str', min_length=1), - '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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.SBAuthorizationRulePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.SBAuthorizationRulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def create_or_update_authorization_rule( - self, resource_group_name, namespace_name, queue_name, authorization_rule_name, rights, custom_headers=None, raw=False, **operation_config): - """Creates an authorization rule for a queue. - - :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 queue_name: The queue name. - :type queue_name: str - :param authorization_rule_name: The authorizationrule name. - :type authorization_rule_name: str - :param rights: The rights associated with the rule. - :type rights: list[str or ~azure.mgmt.servicebus.models.AccessRights] - :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: SBAuthorizationRule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBAuthorizationRule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.SBAuthorizationRule(rights=rights) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}' - 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), - 'queueName': self._serialize.url("queue_name", queue_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'SBAuthorizationRule') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('SBAuthorizationRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete_authorization_rule( - self, resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Deletes a queue authorization rule. - - :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 queue_name: The queue name. - :type queue_name: str - :param authorization_rule_name: The authorizationrule name. - :type authorization_rule_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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}' - 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), - 'queueName': self._serialize.url("queue_name", queue_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get_authorization_rule( - self, resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Gets an authorization rule for a queue by rule name. - - :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 queue_name: The queue name. - :type queue_name: str - :param authorization_rule_name: The authorizationrule name. - :type authorization_rule_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: SBAuthorizationRule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBAuthorizationRule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}' - 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), - 'queueName': self._serialize.url("queue_name", queue_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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, **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('SBAuthorizationRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_keys( - self, resource_group_name, namespace_name, queue_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Primary and secondary connection strings to the queue. - - :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 queue_name: The queue name. - :type queue_name: str - :param authorization_rule_name: The authorizationrule name. - :type authorization_rule_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: AccessKeys or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.AccessKeys or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}/ListKeys' - 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), - 'queueName': self._serialize.url("queue_name", queue_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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.post(url, query_parameters) - response = self._client.send(request, header_parameters, **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('AccessKeys', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def regenerate_keys( - self, resource_group_name, namespace_name, queue_name, authorization_rule_name, key_type, key=None, custom_headers=None, raw=False, **operation_config): - """Regenerates the primary or secondary connection strings to the queue. - - :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 queue_name: The queue name. - :type queue_name: str - :param authorization_rule_name: The authorizationrule name. - :type authorization_rule_name: str - :param key_type: The access key to regenerate. Possible values - include: 'PrimaryKey', 'SecondaryKey' - :type key_type: str or ~azure.mgmt.servicebus.models.KeyType - :param key: Optional, if the key value provided, is reset for KeyType - value or autogenerate Key value set for keyType - :type key: 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: AccessKeys or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.AccessKeys or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.RegenerateAccessKeyParameters(key_type=key_type, key=key) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/queues/{queueName}/authorizationRules/{authorizationRuleName}/regenerateKeys' - 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), - 'queueName': self._serialize.url("queue_name", queue_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'RegenerateAccessKeyParameters') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('AccessKeys', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized diff --git a/src/servicebus/azext_servicebus/servicebus/operations/regions_operations.py b/src/servicebus/azext_servicebus/servicebus/operations/regions_operations.py deleted file mode 100644 index 7719011387f..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/operations/regions_operations.py +++ /dev/null @@ -1,103 +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 .. 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 objec 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 PremiumMessagingRegions - :rtype: - ~azure.mgmt.servicebus.models.PremiumMessagingRegionsPaged[~azure.mgmt.servicebus.models.PremiumMessagingRegions] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/sku/{sku}/regions' - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.PremiumMessagingRegionsPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.PremiumMessagingRegionsPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized diff --git a/src/servicebus/azext_servicebus/servicebus/operations/rules_operations.py b/src/servicebus/azext_servicebus/servicebus/operations/rules_operations.py deleted file mode 100644 index 1027ec33b58..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/operations/rules_operations.py +++ /dev/null @@ -1,321 +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 .. import models - - -class RulesOperations(object): - """RulesOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec 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_subscriptions( - self, resource_group_name, namespace_name, topic_name, subscription_name, custom_headers=None, raw=False, **operation_config): - """List all the rules within given topic-subscription. - - :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 topic_name: The topic name. - :type topic_name: str - :param subscription_name: The subscription name. - :type subscription_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: An iterator like instance of Rule - :rtype: - ~azure.mgmt.servicebus.models.RulePaged[~azure.mgmt.servicebus.models.Rule] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - 'subscriptionName': self._serialize.url("subscription_name", subscription_name, 'str', max_length=50, min_length=1), - '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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.RulePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.RulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, namespace_name, topic_name, subscription_name, rule_name, parameters, custom_headers=None, raw=False, **operation_config): - """Creates a new rule and updates an existing rule. - - :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 topic_name: The topic name. - :type topic_name: str - :param subscription_name: The subscription name. - :type subscription_name: str - :param rule_name: The rule name. - :type rule_name: str - :param parameters: Parameters supplied to create a rule. - :type parameters: ~azure.mgmt.servicebus.models.Rule - :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: Rule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.Rule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - 'subscriptionName': self._serialize.url("subscription_name", subscription_name, 'str', max_length=50, min_length=1), - 'ruleName': self._serialize.url("rule_name", rule_name, 'str', max_length=50, min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'Rule') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('Rule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete( - self, resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers=None, raw=False, **operation_config): - """Deletes an existing rule. - - :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 topic_name: The topic name. - :type topic_name: str - :param subscription_name: The subscription name. - :type subscription_name: str - :param rule_name: The rule name. - :type rule_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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - 'subscriptionName': self._serialize.url("subscription_name", subscription_name, 'str', max_length=50, min_length=1), - 'ruleName': self._serialize.url("rule_name", rule_name, 'str', max_length=50, min_length=1), - '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.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get( - self, resource_group_name, namespace_name, topic_name, subscription_name, rule_name, custom_headers=None, raw=False, **operation_config): - """Retrieves the description for the specified rule. - - :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 topic_name: The topic name. - :type topic_name: str - :param subscription_name: The subscription name. - :type subscription_name: str - :param rule_name: The rule name. - :type rule_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: Rule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.Rule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}/rules/{ruleName}' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - 'subscriptionName': self._serialize.url("subscription_name", subscription_name, 'str', max_length=50, min_length=1), - 'ruleName': self._serialize.url("rule_name", rule_name, 'str', max_length=50, min_length=1), - '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, **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('Rule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized diff --git a/src/servicebus/azext_servicebus/servicebus/operations/subscriptions_operations.py b/src/servicebus/azext_servicebus/servicebus/operations/subscriptions_operations.py deleted file mode 100644 index a2f607b62fe..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/operations/subscriptions_operations.py +++ /dev/null @@ -1,310 +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 .. import models - - -class SubscriptionsOperations(object): - """SubscriptionsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec 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_topic( - self, resource_group_name, namespace_name, topic_name, custom_headers=None, raw=False, **operation_config): - """List all the subscriptions under a specified topic. - - :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 topic_name: The topic name. - :type topic_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: An iterator like instance of SBSubscription - :rtype: - ~azure.mgmt.servicebus.models.SBSubscriptionPaged[~azure.mgmt.servicebus.models.SBSubscription] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - '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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.SBSubscriptionPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.SBSubscriptionPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, namespace_name, topic_name, subscription_name, parameters, custom_headers=None, raw=False, **operation_config): - """Creates a topic subscription. - - :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 topic_name: The topic name. - :type topic_name: str - :param subscription_name: The subscription name. - :type subscription_name: str - :param parameters: Parameters supplied to create a subscription - resource. - :type parameters: ~azure.mgmt.servicebus.models.SBSubscription - :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: SBSubscription or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBSubscription or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - 'subscriptionName': self._serialize.url("subscription_name", subscription_name, 'str', max_length=50, min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'SBSubscription') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('SBSubscription', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete( - self, resource_group_name, namespace_name, topic_name, subscription_name, custom_headers=None, raw=False, **operation_config): - """Deletes a subscription from the specified topic. - - :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 topic_name: The topic name. - :type topic_name: str - :param subscription_name: The subscription name. - :type subscription_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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - 'subscriptionName': self._serialize.url("subscription_name", subscription_name, 'str', max_length=50, min_length=1), - '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.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get( - self, resource_group_name, namespace_name, topic_name, subscription_name, custom_headers=None, raw=False, **operation_config): - """Returns a subscription description for the specified topic. - - :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 topic_name: The topic name. - :type topic_name: str - :param subscription_name: The subscription name. - :type subscription_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: SBSubscription or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBSubscription or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/subscriptions/{subscriptionName}' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - 'subscriptionName': self._serialize.url("subscription_name", subscription_name, 'str', max_length=50, min_length=1), - '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, **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('SBSubscription', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized diff --git a/src/servicebus/azext_servicebus/servicebus/operations/topics_operations.py b/src/servicebus/azext_servicebus/servicebus/operations/topics_operations.py deleted file mode 100644 index d9761363df8..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/operations/topics_operations.py +++ /dev/null @@ -1,717 +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 .. import models - - -class TopicsOperations(object): - """TopicsOperations operations. - - :param client: Client for service requests. - :param config: Configuration of service client. - :param serializer: An object model serializer. - :param deserializer: An objec 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_namespace( - self, resource_group_name, namespace_name, custom_headers=None, raw=False, **operation_config): - """Gets all the topics in a 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: An iterator like instance of SBTopic - :rtype: - ~azure.mgmt.servicebus.models.SBTopicPaged[~azure.mgmt.servicebus.models.SBTopic] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics' - 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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.SBTopicPaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.SBTopicPaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def create_or_update( - self, resource_group_name, namespace_name, topic_name, parameters, custom_headers=None, raw=False, **operation_config): - """Creates a topic in 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 topic_name: The topic name. - :type topic_name: str - :param parameters: Parameters supplied to create a topic resource. - :type parameters: ~azure.mgmt.servicebus.models.SBTopic - :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: SBTopic or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBTopic or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'SBTopic') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('SBTopic', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete( - self, resource_group_name, namespace_name, topic_name, custom_headers=None, raw=False, **operation_config): - """Deletes a topic from the specified namespace and resource group. - - :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 topic_name: The topic name. - :type topic_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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - '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.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def get( - self, resource_group_name, namespace_name, topic_name, custom_headers=None, raw=False, **operation_config): - """Returns a description for the specified topic. - - :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 topic_name: The topic name. - :type topic_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: SBTopic or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBTopic or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - '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, **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('SBTopic', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def list_authorization_rules( - self, resource_group_name, namespace_name, topic_name, custom_headers=None, raw=False, **operation_config): - """Gets authorization rules for a topic. - - :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 topic_name: The topic name. - :type topic_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: An iterator like instance of SBAuthorizationRule - :rtype: - ~azure.mgmt.servicebus.models.SBAuthorizationRulePaged[~azure.mgmt.servicebus.models.SBAuthorizationRule] - :raises: - :class:`ErrorResponseException` - """ - def internal_paging(next_link=None, raw=False): - - if not next_link: - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - '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') - - 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, **operation_config) - - if response.status_code not in [200]: - raise models.ErrorResponseException(self._deserialize, response) - - return response - - # Deserialize response - deserialized = models.SBAuthorizationRulePaged(internal_paging, self._deserialize.dependencies) - - if raw: - header_dict = {} - client_raw_response = models.SBAuthorizationRulePaged(internal_paging, self._deserialize.dependencies, header_dict) - return client_raw_response - - return deserialized - - def create_or_update_authorization_rule( - self, resource_group_name, namespace_name, topic_name, authorization_rule_name, rights, custom_headers=None, raw=False, **operation_config): - """Creates an authorizatio rule for the specified topic. - - :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 topic_name: The topic name. - :type topic_name: str - :param authorization_rule_name: The authorizationrule name. - :type authorization_rule_name: str - :param rights: The rights associated with the rule. - :type rights: list[str or ~azure.mgmt.servicebus.models.AccessRights] - :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: SBAuthorizationRule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBAuthorizationRule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.SBAuthorizationRule(rights=rights) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'SBAuthorizationRule') - - # Construct and send request - request = self._client.put(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('SBAuthorizationRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def get_authorization_rule( - self, resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Returns the specified authorization rule. - - :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 topic_name: The topic name. - :type topic_name: str - :param authorization_rule_name: The authorizationrule name. - :type authorization_rule_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: SBAuthorizationRule or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.SBAuthorizationRule or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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, **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('SBAuthorizationRule', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def delete_authorization_rule( - self, resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Deletes a topic authorization rule. - - :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 topic_name: The topic name. - :type topic_name: str - :param authorization_rule_name: The authorizationrule name. - :type authorization_rule_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: None or ClientRawResponse if raw=true - :rtype: None or ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) - - if response.status_code not in [200, 204]: - raise models.ErrorResponseException(self._deserialize, response) - - if raw: - client_raw_response = ClientRawResponse(None, response) - return client_raw_response - - def list_keys( - self, resource_group_name, namespace_name, topic_name, authorization_rule_name, custom_headers=None, raw=False, **operation_config): - """Gets the primary and secondary connection strings for the topic. - - :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 topic_name: The topic name. - :type topic_name: str - :param authorization_rule_name: The authorizationrule name. - :type authorization_rule_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: AccessKeys or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.AccessKeys or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/ListKeys' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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.post(url, query_parameters) - response = self._client.send(request, header_parameters, **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('AccessKeys', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized - - def regenerate_keys( - self, resource_group_name, namespace_name, topic_name, authorization_rule_name, key_type, key=None, custom_headers=None, raw=False, **operation_config): - """Regenerates primary or secondary connection strings for the topic. - - :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 topic_name: The topic name. - :type topic_name: str - :param authorization_rule_name: The authorizationrule name. - :type authorization_rule_name: str - :param key_type: The access key to regenerate. Possible values - include: 'PrimaryKey', 'SecondaryKey' - :type key_type: str or ~azure.mgmt.servicebus.models.KeyType - :param key: Optional, if the key value provided, is reset for KeyType - value or autogenerate Key value set for keyType - :type key: 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: AccessKeys or ClientRawResponse if raw=true - :rtype: ~azure.mgmt.servicebus.models.AccessKeys or - ~msrest.pipeline.ClientRawResponse - :raises: - :class:`ErrorResponseException` - """ - parameters = models.RegenerateAccessKeyParameters(key_type=key_type, key=key) - - # Construct URL - url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/topics/{topicName}/authorizationRules/{authorizationRuleName}/regenerateKeys' - 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), - 'topicName': self._serialize.url("topic_name", topic_name, 'str', min_length=1), - 'authorizationRuleName': self._serialize.url("authorization_rule_name", authorization_rule_name, 'str', max_length=50, min_length=1), - '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 body - body_content = self._serialize.body(parameters, 'RegenerateAccessKeyParameters') - - # Construct and send request - request = self._client.post(url, query_parameters) - response = self._client.send( - request, header_parameters, body_content, **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('AccessKeys', response) - - if raw: - client_raw_response = ClientRawResponse(deserialized, response) - return client_raw_response - - return deserialized diff --git a/src/servicebus/azext_servicebus/servicebus/service_bus_management_client.py b/src/servicebus/azext_servicebus/servicebus/service_bus_management_client.py deleted file mode 100644 index 8f6fb7cea88..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/service_bus_management_client.py +++ /dev/null @@ -1,130 +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 msrest.service_client import ServiceClient -from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.operations import Operations -from .operations.namespaces_operations import NamespacesOperations -from .operations.disaster_recovery_configs_operations import DisasterRecoveryConfigsOperations -from .operations.queues_operations import QueuesOperations -from .operations.topics_operations import TopicsOperations -from .operations.subscriptions_operations import SubscriptionsOperations -from .operations.rules_operations import RulesOperations -from .operations.regions_operations import RegionsOperations -from .operations.premium_messaging_regions_operations import PremiumMessagingRegionsOperations -from .operations.event_hubs_operations import EventHubsOperations -from . import models - - -class ServiceBusManagementClientConfiguration(AzureConfiguration): - """Configuration for ServiceBusManagementClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: Subscription credentials that uniquely identify a - Microsoft Azure subscription. The subscription ID forms part of the URI - for every service call. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(ServiceBusManagementClientConfiguration, self).__init__(base_url) - - self.add_user_agent('azure-mgmt-servicebus/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id - - -class ServiceBusManagementClient(object): - """Azure Service Bus client - - :ivar config: Configuration for client. - :vartype config: ServiceBusManagementClientConfiguration - - :ivar operations: Operations operations - :vartype operations: azure.mgmt.servicebus.operations.Operations - :ivar namespaces: Namespaces operations - :vartype namespaces: azure.mgmt.servicebus.operations.NamespacesOperations - :ivar disaster_recovery_configs: DisasterRecoveryConfigs operations - :vartype disaster_recovery_configs: azure.mgmt.servicebus.operations.DisasterRecoveryConfigsOperations - :ivar queues: Queues operations - :vartype queues: azure.mgmt.servicebus.operations.QueuesOperations - :ivar topics: Topics operations - :vartype topics: azure.mgmt.servicebus.operations.TopicsOperations - :ivar subscriptions: Subscriptions operations - :vartype subscriptions: azure.mgmt.servicebus.operations.SubscriptionsOperations - :ivar rules: Rules operations - :vartype rules: azure.mgmt.servicebus.operations.RulesOperations - :ivar regions: Regions operations - :vartype regions: azure.mgmt.servicebus.operations.RegionsOperations - :ivar premium_messaging_regions: PremiumMessagingRegions operations - :vartype premium_messaging_regions: azure.mgmt.servicebus.operations.PremiumMessagingRegionsOperations - :ivar event_hubs: EventHubs operations - :vartype event_hubs: azure.mgmt.servicebus.operations.EventHubsOperations - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: Subscription credentials that uniquely identify a - Microsoft Azure subscription. The subscription ID forms part of the URI - for every service call. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - self.config = ServiceBusManagementClientConfiguration(credentials, subscription_id, base_url) - self._client = ServiceClient(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' - self._serialize = Serializer(client_models) - self._deserialize = Deserializer(client_models) - - self.operations = Operations( - self._client, self.config, self._serialize, self._deserialize) - self.namespaces = NamespacesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.disaster_recovery_configs = DisasterRecoveryConfigsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.queues = QueuesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.topics = TopicsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.subscriptions = SubscriptionsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.rules = RulesOperations( - self._client, self.config, self._serialize, self._deserialize) - self.regions = RegionsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.premium_messaging_regions = PremiumMessagingRegionsOperations( - self._client, self.config, self._serialize, self._deserialize) - self.event_hubs = EventHubsOperations( - self._client, self.config, self._serialize, self._deserialize) diff --git a/src/servicebus/azext_servicebus/servicebus/version.py b/src/servicebus/azext_servicebus/servicebus/version.py deleted file mode 100644 index fb0159ed93d..00000000000 --- a/src/servicebus/azext_servicebus/servicebus/version.py +++ /dev/null @@ -1,12 +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. -# -------------------------------------------------------------------------- - -VERSION = "0.1.0" diff --git a/src/servicebus/azext_servicebus/tests/__init__.py b/src/servicebus/azext_servicebus/tests/__init__.py deleted file mode 100644 index 34913fb394d..00000000000 --- a/src/servicebus/azext_servicebus/tests/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- diff --git a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml deleted file mode 100644 index b569f6110b2..00000000000 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml +++ /dev/null @@ -1,1414 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_alias000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001","name":"cli_test_sb_alias000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:44:32 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: 'b''{"name": "sb-nscli000002"}''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace exists] - Connection: [keep-alive] - Content-Length: ['32'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceBus/CheckNameAvailability?api-version=2017-04-01 - response: - body: {string: '{"nameAvailable":true,"reason":"None","message":null}'} - headers: - cache-control: [no-cache] - content-length: ['53'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:44:32 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"location": "SouthCentralUS", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Premium", "tier": "Premium"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Length: ['130'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T20:44:33.993Z","updatedAt":"2018-01-18T20:44:33.993Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['714'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:44:35 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T20:44:33.993Z","updatedAt":"2018-01-18T20:44:33.993Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['714'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:45:05 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'] - CommandName: [servicebus namespace create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T20:44:33.993Z","updatedAt":"2018-01-18T20:45:17.89Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['711'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:45:34 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'] - CommandName: [servicebus namespace show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T20:44:33.993Z","updatedAt":"2018-01-18T20:45:17.89Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['711'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:45:36 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: '{"location": "NorthCentralUS", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Premium", "tier": "Premium"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Length: ['130'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","name":"sb-nscli000003","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-18T20:45:37.887Z","updatedAt":"2018-01-18T20:45:37.887Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['714'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:45:39 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","name":"sb-nscli000003","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-18T20:45:37.887Z","updatedAt":"2018-01-18T20:45:37.887Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['714'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:46:09 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'] - CommandName: [servicebus namespace create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","name":"sb-nscli000003","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-18T20:45:37.887Z","updatedAt":"2018-01-18T20:46:23.353Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['712'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:46:40 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'] - CommandName: [servicebus namespace show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","name":"sb-nscli000003","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-18T20:45:37.887Z","updatedAt":"2018-01-18T20:46:23.353Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['712'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:46:41 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: '{"properties": {"rights": ["Send"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule create] - Connection: [keep-alive] - Content-Length: ['36'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['407'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:47:14 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['407'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:47:16 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: 'b''{"name": "cliAlias000005"}''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias exists] - Connection: [keep-alive] - Content-Length: ['32'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/CheckNameAvailability?api-version=2017-04-01 - response: - body: {string: '{"nameAvailable":true,"reason":"None"}'} - headers: - cache-control: [no-cache] - content-length: ['38'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:47:17 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: 'b''b\''{"properties": {"partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003"}}\''''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias create] - Connection: [keep-alive] - Content-Length: ['245'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:47:51 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:47:52 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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['675'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:47:53 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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:47:55 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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20: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] - 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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:48: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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:49:28 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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['674'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:49: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'] - CommandName: [servicebus georecovery-alias authorizationrule show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/cliAutho000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['452'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:50:01 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'] - CommandName: [servicebus georecovery-alias authorizationrule keys list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/cliAutho000004/listKeys?api-version=2017-04-01 - response: - body: {string: '{"aliasPrimaryConnectionString":"Endpoint=sb://clialias67an5np4oe6u.servicebus.windows.net/;SharedAccessKeyName=cliAutho000004;SharedAccessKey=L+rmqJiZSC5XCoj41iih7GldkjWab3pKmErM3E3viVo=","aliasSecondaryConnectionString":"Endpoint=sb://clialias67an5np4oe6u.servicebus.windows.net/;SharedAccessKeyName=cliAutho000004;SharedAccessKey=is0hYpJ2zL7bHLzm+SCKXqfvxb0HviyhP7ljbNBNCSU=","primaryKey":"L+rmqJiZSC5XCoj41iih7GldkjWab3pKmErM3E3viVo=","secondaryKey":"is0hYpJ2zL7bHLzm+SCKXqfvxb0HviyhP7ljbNBNCSU=","keyName":"cliAutho000004"}'} - headers: - cache-control: [no-cache] - content-length: ['546'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:50:03 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias authorizationrule list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Listen","Manage","Send"]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}]}'} - headers: - cache-control: [no-cache] - content-length: ['945'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:50:04 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'] - CommandName: [servicebus georecovery-alias break-pair] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005/breakPairing?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 20:50:06 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:50:06 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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20: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] - 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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:51:09 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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"","role":"PrimaryNotReplicating","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['483'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:51:41 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: 'b''b\''{"properties": {"partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003"}}\''''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias create] - Connection: [keep-alive] - Content-Length: ['245'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:51: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:52: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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:52:31 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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:53:03 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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:53:34 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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['674'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:54:06 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'] - CommandName: [servicebus georecovery-alias fail-over] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005/failover?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 20:54:07 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['675'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:54:08 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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['675'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:54:39 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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['675'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:55:11 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'] - CommandName: [servicebus georecovery-alias show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"","role":"PrimaryNotReplicating","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['483'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 20:55:41 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'] - CommandName: [servicebus georecovery-alias delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 20:55:44 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 20:56:16 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 20:56:46 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?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'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 20:57:17 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?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'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 20:57:47 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 20:57:50 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/operationresults/sb-nscli000003?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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/operationresults/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 20:58:20 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/operationresults/sb-nscli000003?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'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/operationresults/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 20:58:51 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/operationresults/sb-nscli000003?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'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/operationresults/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 20:59:21 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_alias000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:00:24 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZBTElBU0hCT0NQTkRIRU5UTkJQTFNPN0MyWTVOMnwxNjhERkQ2N0MzQzA2ODk3LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml deleted file mode 100644 index 830619988b9..00000000000 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml +++ /dev/null @@ -1,511 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_namespace000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001","name":"cli_test_sb_namespace000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:00:25 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: 'b''{"name": "sb-nscli000002"}''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace exists] - Connection: [keep-alive] - Content-Length: ['32'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceBus/CheckNameAvailability?api-version=2017-04-01 - response: - body: {string: '{"nameAvailable":true,"reason":"None","message":null}'} - headers: - cache-control: [no-cache] - content-length: ['53'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:00: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"location": "westus2", "tags": {"{tag1: value1}": ""}, "sku": {"name": - "Standard", "tier": "Standard"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Length: ['104'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:00:28.513Z","updatedAt":"2018-01-18T21:00:28.513Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['677'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:00: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:00:28.513Z","updatedAt":"2018-01-18T21:00:53.573Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['675'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:00: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'] - CommandName: [servicebus namespace show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:00:28.513Z","updatedAt":"2018-01-18T21:00:53.573Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['675'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:01:01 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'] - CommandName: [servicebus namespace list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceBus/namespaces?api-version=2017-04-01 - response: - body: {string: '{"value":[{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eg-hitesh-perf/providers/Microsoft.ServiceBus/namespaces/eventgrid-messaging-ussc","name":"eventgrid-messaging-ussc","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventgrid-messaging-ussc","createdAt":"2017-05-25T20:37:22.027Z","updatedAt":"2017-05-25T20:37:43.163Z","serviceBusEndpoint":"https://eventgrid-messaging-ussc.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_aliasyoy77t55eap2zog5kbao4ahnyooqds3q4t2oaf7sop7tsaw2kw75be3a25/providers/Microsoft.ServiceBus/namespaces/sb-nsclinxaxkdjcrrum","name":"sb-nsclinxaxkdjcrrum","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclinxaxkdjcrrum","createdAt":"2018-01-14T23:59:31.51Z","updatedAt":"2018-01-15T01:31:50.693Z","serviceBusEndpoint":"https://sb-nsclinxaxkdjcrrum.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias3bjuthaskhtdcs7eewkamcvcxwu5pv2z52x4sfa24inr46ur666xlmkq5a/providers/Microsoft.ServiceBus/namespaces/sb-nsclisezilxdvq4fd","name":"sb-nsclisezilxdvq4fd","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclisezilxdvq4fd","createdAt":"2018-01-12T03:21:54.3Z","updatedAt":"2018-01-12T03:26:04.313Z","serviceBusEndpoint":"https://sb-nsclisezilxdvq4fd.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/Test0192837","name":"Test0192837","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:test0192837","createdAt":"2017-05-04T18:53:05.943Z","updatedAt":"2017-08-09T22:00:20.873Z","serviceBusEndpoint":"https://Test0192837.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestLocationwithspace1","name":"TestLocationwithspace1","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testlocationwithspace1","createdAt":"2017-05-04T20:34:04.323Z","updatedAt":"2017-08-09T22:02:25.673Z","serviceBusEndpoint":"https://TestLocationwithspace1.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestLocationwithspace2","name":"TestLocationwithspace2","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testlocationwithspace2","createdAt":"2017-05-04T20:36:08.073Z","updatedAt":"2017-08-09T22:00:21.593Z","serviceBusEndpoint":"https://TestLocationwithspace2.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestLocationwithspace3","name":"TestLocationwithspace3","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testlocationwithspace3","createdAt":"2017-05-04T20:36:00.543Z","updatedAt":"2017-08-09T22:08:00.14Z","serviceBusEndpoint":"https://TestLocationwithspace3.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestLocationwithspace4","name":"TestLocationwithspace4","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testlocationwithspace4","createdAt":"2017-05-04T20:36:58.34Z","updatedAt":"2017-08-09T22:02:26.043Z","serviceBusEndpoint":"https://TestLocationwithspace4.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestLocationwithspace5","name":"TestLocationwithspace5","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testlocationwithspace5","createdAt":"2017-05-04T20:37:06.06Z","updatedAt":"2017-08-09T22:08:01.373Z","serviceBusEndpoint":"https://TestLocationwithspace5.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias2tinyjvsn4mama6b2cczzzxqaswwbnv7eo6lxlaiyikys2exxli6ifemmv/providers/Microsoft.ServiceBus/namespaces/sb-nsclizrw46v5dyqbx","name":"sb-nsclizrw46v5dyqbx","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclizrw46v5dyqbx","createdAt":"2018-01-13T02:18:29.707Z","updatedAt":"2018-01-13T02:23:44.8Z","serviceBusEndpoint":"https://sb-nsclizrw46v5dyqbx.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace6n6pvsxu54odomkb2efb756nycx6jdcnw3cuhnqmght2fv4wa4apve/providers/Microsoft.ServiceBus/namespaces/sb-nsclinca5wcqqe6wa","name":"sb-nsclinca5wcqqe6wa","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclinca5wcqqe6wa","createdAt":"2017-12-16T05:19:44.58Z","updatedAt":"2017-12-16T05:25:02.837Z","serviceBusEndpoint":"https://sb-nsclinca5wcqqe6wa.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestLocationwithspace","name":"TestLocationwithspace","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testlocationwithspace","createdAt":"2017-05-04T20:21:22.583Z","updatedAt":"2017-08-09T22:08:01.91Z","serviceBusEndpoint":"https://TestLocationwithspace.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:00:28.513Z","updatedAt":"2018-01-18T21:00:53.573Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SDKTests/providers/Microsoft.ServiceBus/namespaces/TestingIgniteNamespace","name":"TestingIgniteNamespace","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testingignitenamespace","createdAt":"2017-09-22T22:20:28.183Z","updatedAt":"2017-09-22T22:21:09.17Z","serviceBusEndpoint":"https://TestingIgniteNamespace.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GridToServiceBusTest/providers/Microsoft.ServiceBus/namespaces/GridToServiceBusTest","name":"GridToServiceBusTest","type":"Microsoft.ServiceBus/Namespaces","location":"West - US","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:gridtoservicebustest","createdAt":"2017-07-11T00:54:07.86Z","updatedAt":"2017-07-11T00:54:34.707Z","serviceBusEndpoint":"https://GridToServiceBusTest.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_aliasa7l2lr4xms34cxoibvd6huzi4bbyzbkhprxve4tks7dru3trmgkdml2swo/providers/Microsoft.ServiceBus/namespaces/sb-nscli3y77wbyitbd3","name":"sb-nscli3y77wbyitbd3","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli3y77wbyitbd3","createdAt":"2018-01-13T01:57:32.873Z","updatedAt":"2018-01-13T02:03:02.247Z","serviceBusEndpoint":"https://sb-nscli3y77wbyitbd3.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestingArmSBNamesapce","name":"TestingArmSBNamesapce","type":"Microsoft.ServiceBus/Namespaces","location":"West - US","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testingarmsbnamesapce","createdAt":"2017-06-08T00:23:24.203Z","updatedAt":"2017-06-08T00:25:28.627Z","serviceBusEndpoint":"https://TestingArmSBNamesapce.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridResourceGroup/providers/Microsoft.ServiceBus/namespaces/eventgrid-messaging","name":"eventgrid-messaging","type":"Microsoft.ServiceBus/Namespaces","location":"West - US","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventgrid-messaging","createdAt":"2017-04-26T16:53:28.42Z","updatedAt":"2017-08-25T02:08:28.097Z","serviceBusEndpoint":"https://eventgrid-messaging.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestLocationwithoutspace","name":"TestLocationwithoutspace","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testlocationwithoutspace","createdAt":"2017-05-04T20:24:03.43Z","updatedAt":"2017-08-09T22:00:20.7Z","serviceBusEndpoint":"https://TestLocationwithoutspace.servicebus.windows.net:443/","status":"Active"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['12129'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:01:03 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'] - CommandName: [servicebus namespace list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces?api-version=2017-04-01 - response: - body: {string: '{"value":[{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:00:28.513Z","updatedAt":"2018-01-18T21:00:53.573Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['687'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:01:04 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: '{"properties": {"rights": ["Send"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule create] - Connection: [keep-alive] - Content-Length: ['36'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"West - US 2","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['400'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:01:39 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"West - US 2","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['400'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:01:41 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'] - CommandName: [servicebus namespace authorizationrule show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/RootManageSharedAccessKey?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"West - US 2","properties":{"rights":["Listen","Manage","Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['428'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:01:42 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'] - CommandName: [servicebus namespace authorizationrule keys list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003/listKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Zy9IyqLIe9PtpmaSdOeD2170YUijnJMjXQYo0SdiCyE=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=3+Ip2VDFl01A9Iju1fgJNDcftc4pwhMREfVlDAlpujg=","primaryKey":"Zy9IyqLIe9PtpmaSdOeD2170YUijnJMjXQYo0SdiCyE=","secondaryKey":"3+Ip2VDFl01A9Iju1fgJNDcftc4pwhMREfVlDAlpujg=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['536'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:01:44 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "PrimaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule keys renew] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=CnT/eKD4Y8iyoe5twh0pQXWg0uKLIeuq6n28S6T4+DE=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=3+Ip2VDFl01A9Iju1fgJNDcftc4pwhMREfVlDAlpujg=","primaryKey":"CnT/eKD4Y8iyoe5twh0pQXWg0uKLIeuq6n28S6T4+DE=","secondaryKey":"3+Ip2VDFl01A9Iju1fgJNDcftc4pwhMREfVlDAlpujg=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['536'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:02:02 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "SecondaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule keys renew] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=CnT/eKD4Y8iyoe5twh0pQXWg0uKLIeuq6n28S6T4+DE=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=IlJ8BoKU/cEVjg2T21UuH/wQLnhd6vYGxhY+nbjAhZs=","primaryKey":"CnT/eKD4Y8iyoe5twh0pQXWg0uKLIeuq6n28S6T4+DE=","secondaryKey":"IlJ8BoKU/cEVjg2T21UuH/wQLnhd6vYGxhY+nbjAhZs=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['536'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:02:20 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:02:38 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:02:40 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:03:11 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_namespace000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:03:13 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZOQU1FU1BBQ0VWVVY1SUhHMzJLQklMWVZZQVlBWnw3OTBCRTYyODlGNUMyNkI0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml deleted file mode 100644 index a5668e7bd60..00000000000 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml +++ /dev/null @@ -1,493 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_queue000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001","name":"cli_test_sb_queue000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:03:16 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Length: ['125'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:03:17.16Z","updatedAt":"2018-01-18T21:03:17.16Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['694'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:03:18 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:03:17.16Z","updatedAt":"2018-01-18T21:03:42.22Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['692'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:03:48 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'] - CommandName: [servicebus namespace show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:03:17.16Z","updatedAt":"2018-01-18T21:03:42.22Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['692'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:03:50 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: '{"properties": {"autoDeleteOnIdle": "PT10M"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue create] - Connection: [keep-alive] - Content-Length: ['45'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004","name":"sb-queuecli000004","type":"Microsoft.ServiceBus/Namespaces/Queues","location":"West - US 2","properties":{"lockDuration":"PT1M","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"duplicateDetectionHistoryTimeWindow":"PT10M","maxDeliveryCount":10,"sizeInBytes":0,"messageCount":0,"status":"Active","autoDeleteOnIdle":"PT10M","enablePartitioning":false,"enableExpress":false,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"createdAt":"2018-01-18T21:03:51.843Z","updatedAt":"2018-01-18T21:03:51.877Z","accessedAt":"0001-01-01T00:00:00"}}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:03:53 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004","name":"sb-queuecli000004","type":"Microsoft.ServiceBus/Namespaces/Queues","location":"West - US 2","properties":{"lockDuration":"PT1M","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"duplicateDetectionHistoryTimeWindow":"PT10M","maxDeliveryCount":10,"sizeInBytes":0,"messageCount":0,"status":"Active","autoDeleteOnIdle":"PT10M","enablePartitioning":false,"enableExpress":false,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"createdAt":"2018-01-18T21:03:51.843Z","updatedAt":"2018-01-18T21:03:51.877Z","accessedAt":"0001-01-01T00:00:00Z"}}'} - headers: - cache-control: [no-cache] - content-length: ['1034'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:03:55 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'] - CommandName: [servicebus queue list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004","name":"sb-queuecli000004","type":"Microsoft.ServiceBus/Namespaces/Queues","location":"West - US 2","properties":{"lockDuration":"PT1M","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"duplicateDetectionHistoryTimeWindow":"PT10M","maxDeliveryCount":10,"sizeInBytes":0,"messageCount":0,"status":"Active","autoDeleteOnIdle":"PT10M","enablePartitioning":false,"enableExpress":false,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"createdAt":"2018-01-18T21:03:51.843Z","updatedAt":"2018-01-18T21:03:51.877Z","accessedAt":"0001-01-01T00:00:00Z"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['1046'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:03:57 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] - x-ms-inline-count: [''] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"rights": ["Listen"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue authorizationrule create] - Connection: [keep-alive] - Content-Length: ['38'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules","location":"West - US 2","properties":{"rights":["Listen"]}}'} - headers: - cache-control: [no-cache] - content-length: ['442'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:03:58 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue authorizationrule show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules","location":"West - US 2","properties":{"rights":["Listen"]}}'} - headers: - cache-control: [no-cache] - content-length: ['442'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:04: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'] - CommandName: [servicebus queue authorizationrule keys list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003/ListKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=BfGe6o8JeLkn53Na/fQIvi9t6pJTJMKitALycFmTWo8=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=TBNDcYEA9lw7EgQO7sCLU1R8HSOysDbCOlJb9TrCYtU=;EntityPath=sb-queuecli000004","primaryKey":"BfGe6o8JeLkn53Na/fQIvi9t6pJTJMKitALycFmTWo8=","secondaryKey":"TBNDcYEA9lw7EgQO7sCLU1R8HSOysDbCOlJb9TrCYtU=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:04:02 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "PrimaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue authorizationrule keys renew] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=NA5TwrNW6vAeBA4f31GB0kh0c9u22pBDY1/d1xncrKI=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=TBNDcYEA9lw7EgQO7sCLU1R8HSOysDbCOlJb9TrCYtU=;EntityPath=sb-queuecli000004","primaryKey":"NA5TwrNW6vAeBA4f31GB0kh0c9u22pBDY1/d1xncrKI=","secondaryKey":"TBNDcYEA9lw7EgQO7sCLU1R8HSOysDbCOlJb9TrCYtU=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:04:03 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "SecondaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue authorizationrule keys renew] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=NA5TwrNW6vAeBA4f31GB0kh0c9u22pBDY1/d1xncrKI=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=4CgHoYQBtIp0MJgE119zSzAiDUwHdBZGKaJXphmAlek=;EntityPath=sb-queuecli000004","primaryKey":"NA5TwrNW6vAeBA4f31GB0kh0c9u22pBDY1/d1xncrKI=","secondaryKey":"4CgHoYQBtIp0MJgE119zSzAiDUwHdBZGKaJXphmAlek=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:04:05 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue authorizationrule delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:04:07 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:04:09 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:04:11 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:04:42 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_queue000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:04:44 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZRVUVVRU9NTzc0VEQ0QUZJTkZPM0pFV09IRjZGQnwyRTg3QTA1QzAwNDdENjBCLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml deleted file mode 100644 index 6eca7531792..00000000000 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml +++ /dev/null @@ -1,491 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_rules000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001","name":"cli_test_sb_rules000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:04:46 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 201, message: Created} -- request: - body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Length: ['125'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:04:47.117Z","updatedAt":"2018-01-18T21:04:47.117Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['696'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:04:48 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:04:47.117Z","updatedAt":"2018-01-18T21:05:12.913Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['694'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:05:18 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'] - CommandName: [servicebus namespace show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:04:47.117Z","updatedAt":"2018-01-18T21:05:12.913Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['694'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:05:20 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: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic create] - Connection: [keep-alive] - Content-Length: ['2'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004","name":"sb-topiccli000004","type":"Microsoft.ServiceBus/Namespaces/Topics","location":"West - US 2","properties":{"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"duplicateDetectionHistoryTimeWindow":"PT10M","enableBatchedOperations":true,"sizeInBytes":0,"status":"Active","supportOrdering":true,"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S","enablePartitioning":false,"enableExpress":false,"createdAt":"2018-01-18T21:05:22.62Z","updatedAt":"2018-01-18T21:05:22.713Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} - headers: - cache-control: [no-cache] - content-length: ['1003'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004","name":"sb-topiccli000004","type":"Microsoft.ServiceBus/Namespaces/Topics","location":"West - US 2","properties":{"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"duplicateDetectionHistoryTimeWindow":"PT10M","enableBatchedOperations":true,"sizeInBytes":0,"status":"Active","supportOrdering":true,"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S","enablePartitioning":false,"enableExpress":false,"createdAt":"2018-01-18T21:05:22.62Z","updatedAt":"2018-01-18T21:05:22.713Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} - headers: - cache-control: [no-cache] - content-length: ['1004'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:05: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: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus subscription create] - Connection: [keep-alive] - Content-Length: ['2'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006","name":"sb-subscli000006","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions","location":"West - US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-18T21:05:28.8251246Z","updatedAt":"2018-01-18T21:05:28.8251246Z","accessedAt":"0001-01-01T00:00:00","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} - headers: - cache-control: [no-cache] - content-length: ['975'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:05:28 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus subscription show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006","name":"sb-subscli000006","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions","location":"West - US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-18T21:05:28.9837556Z","updatedAt":"2018-01-18T21:05:28.9837556Z","accessedAt":"2018-01-18T21:05:28.9837556Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} - headers: - cache-control: [no-cache] - content-length: ['984'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:05: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: '{"properties": {"action": {}, "sqlFilter": {"sqlExpression": "test=test"}, - "correlationFilter": {}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus rule create] - Connection: [keep-alive] - Content-Length: ['100'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006/rules/sb-rulecli000007?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006/rules/sb-rulecli000007","name":"sb-rulecli000007","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules","location":"West - US 2","properties":{"action":{},"filterType":"SqlFilter","sqlFilter":{"sqlExpression":"test=test","compatibilityLevel":20}}}'} - headers: - cache-control: [no-cache] - content-length: ['563'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:05:33 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus rule show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006/rules/sb-rulecli000007?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006/rules/sb-rulecli000007","name":"sb-rulecli000007","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules","location":"West - US 2","properties":{"action":{},"filterType":"SqlFilter","sqlFilter":{"sqlExpression":"test=test","compatibilityLevel":20,"parameters":{}}}}'} - headers: - cache-control: [no-cache] - content-length: ['579'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:05:34 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'] - CommandName: [servicebus rule list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006/rules?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006/rules/sb-rulecli000007","name":"sb-rulecli000007","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules","location":"West - US 2","properties":{"action":{},"filterType":"SqlFilter","sqlFilter":{"sqlExpression":"test=test","compatibilityLevel":20,"parameters":{}}}}]}'} - headers: - cache-control: [no-cache] - content-length: ['591'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:05:36 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] - x-ms-inline-count: [''] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus rule delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006/rules/sb-rulecli000007?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:05:38 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus subscription delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:05:39 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:05:42 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:05:44 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:06:14 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_rules000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:06:16 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZSVUxFU0lJRVpHTlhEWUM0QVlXU0hCQ0hQSzNIQnxBMjk2OTFDQ0UxRUMzMTEwLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml deleted file mode 100644 index eb18359d757..00000000000 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml +++ /dev/null @@ -1,403 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_subscription000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001","name":"cli_test_sb_subscription000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:06:19 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} -- request: - body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Length: ['125'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:06:21.98Z","updatedAt":"2018-01-18T21:06:21.98Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['694'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:06:23 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:06:21.98Z","updatedAt":"2018-01-18T21:06:46.773Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['693'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:06:53 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'] - CommandName: [servicebus namespace show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:06:21.98Z","updatedAt":"2018-01-18T21:06:46.773Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['693'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:06:55 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: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic create] - Connection: [keep-alive] - Content-Length: ['2'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004","name":"sb-topiccli000004","type":"Microsoft.ServiceBus/Namespaces/Topics","location":"West - US 2","properties":{"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"duplicateDetectionHistoryTimeWindow":"PT10M","enableBatchedOperations":true,"sizeInBytes":0,"status":"Active","supportOrdering":true,"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S","enablePartitioning":false,"enableExpress":false,"createdAt":"2018-01-18T21:06:56.94Z","updatedAt":"2018-01-18T21:06:56.953Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} - headers: - cache-control: [no-cache] - content-length: ['1003'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:06:58 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004","name":"sb-topiccli000004","type":"Microsoft.ServiceBus/Namespaces/Topics","location":"West - US 2","properties":{"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"duplicateDetectionHistoryTimeWindow":"PT10M","enableBatchedOperations":true,"sizeInBytes":0,"status":"Active","supportOrdering":true,"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S","enablePartitioning":false,"enableExpress":false,"createdAt":"2018-01-18T21:06:56.94Z","updatedAt":"2018-01-18T21:06:56.953Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} - headers: - cache-control: [no-cache] - content-length: ['1004'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:07: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: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus subscription create] - Connection: [keep-alive] - Content-Length: ['2'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006","name":"sb-subscli000006","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions","location":"West - US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-18T21:07:03.8706003Z","updatedAt":"2018-01-18T21:07:03.8706003Z","accessedAt":"0001-01-01T00:00:00","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} - headers: - cache-control: [no-cache] - content-length: ['975'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:07:03 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus subscription show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006","name":"sb-subscli000006","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions","location":"West - US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-18T21:07:03.7649169Z","updatedAt":"2018-01-18T21:07:03.7649169Z","accessedAt":"2018-01-18T21:07:03.7649169Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} - headers: - cache-control: [no-cache] - content-length: ['984'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:07:06 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'] - CommandName: [servicebus subscription list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006","name":"sb-subscli000006","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions","location":"West - US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-18T21:07:03.7649169Z","updatedAt":"2018-01-18T21:07:03.7649169Z","accessedAt":"2018-01-18T21:07:03.7649169Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['996'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:07:07 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] - x-ms-inline-count: [''] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus subscription delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:07:08 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:07:11 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:07:13 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:07:43 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_subscription000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:07:45 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZTVUJTQ1JJUFRJT05aSEVDRkpSMjJQMzdOQVVWUnw5MjA4QzQ0MUY4MDRBODk4LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml deleted file mode 100644 index 15144bd4e67..00000000000 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml +++ /dev/null @@ -1,440 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_topic000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001","name":"cli_test_sb_topic000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:07:47 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} -- request: - body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Length: ['125'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:07:49.123Z","updatedAt":"2018-01-18T21:07:49.123Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['696'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:07:50 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:07:49.123Z","updatedAt":"2018-01-18T21:08:13.317Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['694'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:08:21 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'] - CommandName: [servicebus namespace show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-18T21:07:49.123Z","updatedAt":"2018-01-18T21:08:13.317Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['694'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:08:22 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: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic create] - Connection: [keep-alive] - Content-Length: ['2'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004","name":"sb-topiccli000004","type":"Microsoft.ServiceBus/Namespaces/Topics","location":"West - US 2","properties":{"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"duplicateDetectionHistoryTimeWindow":"PT10M","enableBatchedOperations":true,"sizeInBytes":0,"status":"Active","supportOrdering":true,"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S","enablePartitioning":false,"enableExpress":false,"createdAt":"2018-01-18T21:08:24.32Z","updatedAt":"2018-01-18T21:08:24.353Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} - headers: - cache-control: [no-cache] - content-length: ['1003'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:08: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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004","name":"sb-topiccli000004","type":"Microsoft.ServiceBus/Namespaces/Topics","location":"West - US 2","properties":{"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"duplicateDetectionHistoryTimeWindow":"PT10M","enableBatchedOperations":true,"sizeInBytes":0,"status":"Active","supportOrdering":true,"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S","enablePartitioning":false,"enableExpress":false,"createdAt":"2018-01-18T21:08:24.32Z","updatedAt":"2018-01-18T21:08:24.353Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} - headers: - cache-control: [no-cache] - content-length: ['1004'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:08: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'] - CommandName: [servicebus topic list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004","name":"sb-topiccli000004","type":"Microsoft.ServiceBus/Namespaces/Topics","location":"West - US 2","properties":{"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"duplicateDetectionHistoryTimeWindow":"PT10M","enableBatchedOperations":true,"sizeInBytes":0,"status":"Active","supportOrdering":true,"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S","enablePartitioning":false,"enableExpress":false,"createdAt":"2018-01-18T21:08:24.32Z","updatedAt":"2018-01-18T21:08:24.353Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}]}'} - headers: - cache-control: [no-cache] - content-length: ['1016'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:08: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] - x-ms-inline-count: [''] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"rights": ["Send"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic authorizationrule create] - Connection: [keep-alive] - Content-Length: ['36'] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules","location":"West - US 2","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['440'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:08:31 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic authorizationrule show] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules","location":"West - US 2","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['440'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:08:32 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'] - CommandName: [servicebus topic authorizationrule keys list] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003/ListKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Xny867QTiKQHNBPV4hFD/Zjef/7Y2XFcfbLSKG7gyaU=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=m1oedQCVdhrl7V7JJQZLJsLDlw1r/ipVZiNtEUNo3bo=;EntityPath=sb-topiccli000004","primaryKey":"Xny867QTiKQHNBPV4hFD/Zjef/7Y2XFcfbLSKG7gyaU=","secondaryKey":"m1oedQCVdhrl7V7JJQZLJsLDlw1r/ipVZiNtEUNo3bo=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:08:34 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] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "PrimaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic authorizationrule keys renew] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=d7C55Igw5eiDavpAXX+UIY/RDCHm0MsijBHlSF5r6Mc=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=m1oedQCVdhrl7V7JJQZLJsLDlw1r/ipVZiNtEUNo3bo=;EntityPath=sb-topiccli000004","primaryKey":"d7C55Igw5eiDavpAXX+UIY/RDCHm0MsijBHlSF5r6Mc=","secondaryKey":"m1oedQCVdhrl7V7JJQZLJsLDlw1r/ipVZiNtEUNo3bo=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:08:36 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "SecondaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic authorizationrule keys renew] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=d7C55Igw5eiDavpAXX+UIY/RDCHm0MsijBHlSF5r6Mc=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=69cB+GYbD+a8tpEm4kz8ga54P0ZLh32aUBpRNzxdH2k=;EntityPath=sb-topiccli000004","primaryKey":"d7C55Igw5eiDavpAXX+UIY/RDCHm0MsijBHlSF5r6Mc=","secondaryKey":"69cB+GYbD+a8tpEm4kz8ga54P0ZLh32aUBpRNzxdH2k=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 18 Jan 2018 21:08:38 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic authorizationrule delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:08:40 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic delete] - 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.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:08:42 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - 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.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_topic000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 18 Jan 2018 21:08:44 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZUT1BJQ1ZaR1VCQlhJR0pCNjZZUzJTVkpXTFFDQnwwOEJDQTQ5QzM2M0I3RkU2LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/servicebus/azext_servicebus/tests/recordings/test_sb_alias.yaml b/src/servicebus/azext_servicebus/tests/recordings/test_sb_alias.yaml deleted file mode 100644 index a1160de92a3..00000000000 --- a/src/servicebus/azext_servicebus/tests/recordings/test_sb_alias.yaml +++ /dev/null @@ -1,1414 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_alias000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001","name":"cli_test_sb_alias000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:16:05 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} -- request: - body: 'b''{"name": "sb-nscli000002"}''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace exists] - Connection: [keep-alive] - Content-Length: ['32'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceBus/CheckNameAvailability?api-version=2017-04-01 - response: - body: {string: '{"nameAvailable":true,"reason":"None","message":null}'} - headers: - cache-control: [no-cache] - content-length: ['53'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:16:06 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: '{"location": "SouthCentralUS", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Premium", "tier": "Premium"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Length: ['130'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:16:07.29Z","updatedAt":"2018-01-25T18:16:07.29Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['712'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:16:08 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:16:07.29Z","updatedAt":"2018-01-25T18:16:07.29Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['712'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:16:38 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'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:16:07.29Z","updatedAt":"2018-01-25T18:16:49.813Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['711'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:17:07 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'] - CommandName: [servicebus namespace show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:16:07.29Z","updatedAt":"2018-01-25T18:16:49.813Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['711'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:17:08 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: '{"location": "NorthCentralUS", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Premium", "tier": "Premium"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Length: ['130'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","name":"sb-nscli000003","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-25T18:17:10.04Z","updatedAt":"2018-01-25T18:17:10.04Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['712'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:17:10 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","name":"sb-nscli000003","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-25T18:17:10.04Z","updatedAt":"2018-01-25T18:17:10.04Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['712'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:17:40 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'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","name":"sb-nscli000003","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-25T18:17:10.04Z","updatedAt":"2018-01-25T18:17:56.193Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['711'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:18:11 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'] - CommandName: [servicebus namespace show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","name":"sb-nscli000003","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-25T18:17:10.04Z","updatedAt":"2018-01-25T18:17:56.193Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['711'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:18:12 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: '{"properties": {"rights": ["Send"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule create] - Connection: [keep-alive] - Content-Length: ['36'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['407'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:18:44 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['407'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:18:45 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: 'b''{"name": "cliAlias000005"}''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias exists] - Connection: [keep-alive] - Content-Length: ['32'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/CheckNameAvailability?api-version=2017-04-01 - response: - body: {string: '{"nameAvailable":true,"reason":"None"}'} - headers: - cache-control: [no-cache] - content-length: ['38'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:18:45 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: 'b''b\''{"properties": {"partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003"}}\''''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias create] - Connection: [keep-alive] - Content-Length: ['245'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:19:19 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:19:19 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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['675'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:19:19 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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:19:19 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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:19:50 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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:20:21 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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:20:51 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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['674'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:21:22 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'] - CommandName: [servicebus georecovery-alias authorizationrule show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/cliAutho000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['452'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:21:22 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'] - CommandName: [servicebus georecovery-alias authorizationrule keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/cliAutho000004/listKeys?api-version=2017-04-01 - response: - body: {string: '{"aliasPrimaryConnectionString":"Endpoint=sb://clialiascdj2yy5nvmue.servicebus.windows.net/;SharedAccessKeyName=cliAutho000004;SharedAccessKey=3Y/7QowgBNA44GAmlsScO/vYJb2HzBH7TwaFlTAGTks=","aliasSecondaryConnectionString":"Endpoint=sb://clialiascdj2yy5nvmue.servicebus.windows.net/;SharedAccessKeyName=cliAutho000004;SharedAccessKey=ZEu/sV7kCWdrdQ659fWxBMrQHiTZKyeJp6wkkQofnd8=","primaryKey":"3Y/7QowgBNA44GAmlsScO/vYJb2HzBH7TwaFlTAGTks=","secondaryKey":"ZEu/sV7kCWdrdQ659fWxBMrQHiTZKyeJp6wkkQofnd8=","keyName":"cliAutho000004"}'} - headers: - cache-control: [no-cache] - content-length: ['546'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:21:23 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias authorizationrule list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Listen","Manage","Send"]}},{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005/AuthorizationRules/cliAutho000004","name":"cliAutho000004","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"South - Central US","properties":{"rights":["Send"]}}]}'} - headers: - cache-control: [no-cache] - content-length: ['945'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:21: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'] - CommandName: [servicebus georecovery-alias break-pair] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005/breakPairing?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:21: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:21: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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:21:55 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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:22: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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"","role":"PrimaryNotReplicating","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['483'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:22: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: 'b''b\''{"properties": {"partnerNamespace": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003"}}\''''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias create] - Connection: [keep-alive] - Content-Length: ['245'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:23:13 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:23:13 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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:23:44 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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:24:15 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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:24:45 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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003","role":"Primary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['674'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:25:16 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'] - CommandName: [servicebus georecovery-alias fail-over] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005/failover?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:25:16 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['675'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:25:17 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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['675'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:25:47 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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Accepted","partnerNamespace":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","role":"Secondary","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['675'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:26:18 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'] - CommandName: [servicebus georecovery-alias show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005","name":"cliAlias000005","type":"Microsoft.ServiceBus/Namespaces/disasterrecoveryconfigs","properties":{"provisioningState":"Succeeded","partnerNamespace":"","role":"PrimaryNotReplicating","type":"MetadataReplication"}}'} - headers: - cache-control: [no-cache] - content-length: ['483'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:26:49 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'] - CommandName: [servicebus georecovery-alias delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/disasterRecoveryConfigs/cliAlias000005?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:26:50 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:27:21 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:27:51 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?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'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:28:22 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?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'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:28:52 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:28:53 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/operationresults/sb-nscli000003?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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/operationresults/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:29:24 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/operationresults/sb-nscli000003?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'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/operationresults/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:29:54 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/operationresults/sb-nscli000003?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'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000003/operationresults/sb-nscli000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:30: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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_alias000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:30:26 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZBTElBU1FPWFlIT0NVQUtWN1BVQ08ySk9CNjJTQnw3QUM0MkRBNDY5RkM4RkUwLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/servicebus/azext_servicebus/tests/recordings/test_sb_namespace.yaml b/src/servicebus/azext_servicebus/tests/recordings/test_sb_namespace.yaml deleted file mode 100644 index b2f6ecd62c0..00000000000 --- a/src/servicebus/azext_servicebus/tests/recordings/test_sb_namespace.yaml +++ /dev/null @@ -1,511 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_namespace000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001","name":"cli_test_sb_namespace000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:30:28 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} -- request: - body: 'b''{"name": "sb-nscli000002"}''' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace exists] - Connection: [keep-alive] - Content-Length: ['32'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceBus/CheckNameAvailability?api-version=2017-04-01 - response: - body: {string: '{"nameAvailable":true,"reason":"None","message":null}'} - headers: - cache-control: [no-cache] - content-length: ['53'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:30:28 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"location": "westus2", "tags": {"{tag1: value1}": ""}, "sku": {"name": - "Standard", "tier": "Standard"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Length: ['104'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:30:29.97Z","updatedAt":"2018-01-25T18:30:29.97Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['675'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:30: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:30:29.97Z","updatedAt":"2018-01-25T18:30:55.96Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:31:01 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'] - CommandName: [servicebus namespace show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:30:29.97Z","updatedAt":"2018-01-25T18:30:55.96Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['673'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:31:02 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'] - CommandName: [servicebus namespace list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.ServiceBus/namespaces?api-version=2017-04-01 - response: - body: {string: '{"value":[{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/eg-hitesh-perf/providers/Microsoft.ServiceBus/namespaces/eventgrid-messaging-ussc","name":"eventgrid-messaging-ussc","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventgrid-messaging-ussc","createdAt":"2017-05-25T20:37:22.027Z","updatedAt":"2017-05-25T20:37:43.163Z","serviceBusEndpoint":"https://eventgrid-messaging-ussc.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_aliasyoy77t55eap2zog5kbao4ahnyooqds3q4t2oaf7sop7tsaw2kw75be3a25/providers/Microsoft.ServiceBus/namespaces/sb-nsclinxaxkdjcrrum","name":"sb-nsclinxaxkdjcrrum","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclinxaxkdjcrrum","createdAt":"2018-01-14T23:59:31.51Z","updatedAt":"2018-01-15T01:31:50.693Z","serviceBusEndpoint":"https://sb-nsclinxaxkdjcrrum.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias3bjuthaskhtdcs7eewkamcvcxwu5pv2z52x4sfa24inr46ur666xlmkq5a/providers/Microsoft.ServiceBus/namespaces/sb-nsclisezilxdvq4fd","name":"sb-nsclisezilxdvq4fd","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclisezilxdvq4fd","createdAt":"2018-01-12T03:21:54.3Z","updatedAt":"2018-01-12T03:26:04.313Z","serviceBusEndpoint":"https://sb-nsclisezilxdvq4fd.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/Test0192837","name":"Test0192837","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:test0192837","createdAt":"2017-05-04T18:53:05.943Z","updatedAt":"2017-08-09T22:00:20.873Z","serviceBusEndpoint":"https://Test0192837.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestLocationwithspace1","name":"TestLocationwithspace1","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testlocationwithspace1","createdAt":"2017-05-04T20:34:04.323Z","updatedAt":"2017-08-09T22:02:25.673Z","serviceBusEndpoint":"https://TestLocationwithspace1.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestLocationwithspace2","name":"TestLocationwithspace2","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testlocationwithspace2","createdAt":"2017-05-04T20:36:08.073Z","updatedAt":"2017-08-09T22:00:21.593Z","serviceBusEndpoint":"https://TestLocationwithspace2.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestLocationwithspace3","name":"TestLocationwithspace3","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testlocationwithspace3","createdAt":"2017-05-04T20:36:00.543Z","updatedAt":"2017-08-09T22:08:00.14Z","serviceBusEndpoint":"https://TestLocationwithspace3.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestLocationwithspace4","name":"TestLocationwithspace4","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testlocationwithspace4","createdAt":"2017-05-04T20:36:58.34Z","updatedAt":"2017-08-09T22:02:26.043Z","serviceBusEndpoint":"https://TestLocationwithspace4.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestLocationwithspace5","name":"TestLocationwithspace5","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testlocationwithspace5","createdAt":"2017-05-04T20:37:06.06Z","updatedAt":"2017-08-09T22:08:01.373Z","serviceBusEndpoint":"https://TestLocationwithspace5.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_alias2tinyjvsn4mama6b2cczzzxqaswwbnv7eo6lxlaiyikys2exxli6ifemmv/providers/Microsoft.ServiceBus/namespaces/sb-nsclizrw46v5dyqbx","name":"sb-nsclizrw46v5dyqbx","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclizrw46v5dyqbx","createdAt":"2018-01-13T02:18:29.707Z","updatedAt":"2018-01-13T02:23:44.8Z","serviceBusEndpoint":"https://sb-nsclizrw46v5dyqbx.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:30:29.97Z","updatedAt":"2018-01-25T18:30:55.96Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace6n6pvsxu54odomkb2efb756nycx6jdcnw3cuhnqmght2fv4wa4apve/providers/Microsoft.ServiceBus/namespaces/sb-nsclinca5wcqqe6wa","name":"sb-nsclinca5wcqqe6wa","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclinca5wcqqe6wa","createdAt":"2017-12-16T05:19:44.58Z","updatedAt":"2017-12-16T05:25:02.837Z","serviceBusEndpoint":"https://sb-nsclinca5wcqqe6wa.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestLocationwithspace","name":"TestLocationwithspace","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testlocationwithspace","createdAt":"2017-05-04T20:21:22.583Z","updatedAt":"2017-08-09T22:08:01.91Z","serviceBusEndpoint":"https://TestLocationwithspace.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SDKTests/providers/Microsoft.ServiceBus/namespaces/TestingIgniteNamespace","name":"TestingIgniteNamespace","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testingignitenamespace","createdAt":"2017-09-22T22:20:28.183Z","updatedAt":"2017-09-22T22:21:09.17Z","serviceBusEndpoint":"https://TestingIgniteNamespace.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/GridToServiceBusTest/providers/Microsoft.ServiceBus/namespaces/GridToServiceBusTest","name":"GridToServiceBusTest","type":"Microsoft.ServiceBus/Namespaces","location":"West - US","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:gridtoservicebustest","createdAt":"2017-07-11T00:54:07.86Z","updatedAt":"2017-07-11T00:54:34.707Z","serviceBusEndpoint":"https://GridToServiceBusTest.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_aliasa7l2lr4xms34cxoibvd6huzi4bbyzbkhprxve4tks7dru3trmgkdml2swo/providers/Microsoft.ServiceBus/namespaces/sb-nscli3y77wbyitbd3","name":"sb-nscli3y77wbyitbd3","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli3y77wbyitbd3","createdAt":"2018-01-13T01:57:32.873Z","updatedAt":"2018-01-13T02:03:02.247Z","serviceBusEndpoint":"https://sb-nscli3y77wbyitbd3.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestingArmSBNamesapce","name":"TestingArmSBNamesapce","type":"Microsoft.ServiceBus/Namespaces","location":"West - US","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testingarmsbnamesapce","createdAt":"2017-06-08T00:23:24.203Z","updatedAt":"2017-06-08T00:25:28.627Z","serviceBusEndpoint":"https://TestingArmSBNamesapce.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/EventGridResourceGroup/providers/Microsoft.ServiceBus/namespaces/eventgrid-messaging","name":"eventgrid-messaging","type":"Microsoft.ServiceBus/Namespaces","location":"West - US","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:eventgrid-messaging","createdAt":"2017-04-26T16:53:28.42Z","updatedAt":"2017-08-25T02:08:28.097Z","serviceBusEndpoint":"https://eventgrid-messaging.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/Default-Storage-WestUS/providers/Microsoft.ServiceBus/namespaces/TestLocationwithoutspace","name":"TestLocationwithoutspace","type":"Microsoft.ServiceBus/Namespaces","location":"West - Europe","tags":{},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:testlocationwithoutspace","createdAt":"2017-05-04T20:24:03.43Z","updatedAt":"2017-08-09T22:00:20.7Z","serviceBusEndpoint":"https://TestLocationwithoutspace.servicebus.windows.net:443/","status":"Active"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['12127'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:31:02 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'] - CommandName: [servicebus namespace list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces?api-version=2017-04-01 - response: - body: {string: '{"value":[{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:30:29.97Z","updatedAt":"2018-01-25T18:30:55.96Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['685'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:31:02 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: '{"properties": {"rights": ["Send"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule create] - Connection: [keep-alive] - Content-Length: ['36'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"West - US 2","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['400'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:31:35 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"West - US 2","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['400'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:31:37 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'] - CommandName: [servicebus namespace authorizationrule show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/RootManageSharedAccessKey?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/RootManageSharedAccessKey","name":"RootManageSharedAccessKey","type":"Microsoft.ServiceBus/Namespaces/AuthorizationRules","location":"West - US 2","properties":{"rights":["Listen","Manage","Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['428'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:31:38 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'] - CommandName: [servicebus namespace authorizationrule keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003/listKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=qsc07usjNtXbsR+D6ch0X5I8+jZa7jhPZRKs3ZjL62s=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Y+ST6f21kE9bBkkn7zqxg+RuUoF1ZB0NxFxNwywlDG8=","primaryKey":"qsc07usjNtXbsR+D6ch0X5I8+jZa7jhPZRKs3ZjL62s=","secondaryKey":"Y+ST6f21kE9bBkkn7zqxg+RuUoF1ZB0NxFxNwywlDG8=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['536'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:31:39 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "PrimaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule keys renew] - Connection: [keep-alive] - Content-Length: ['25'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ZR8Wm3qB5ilFMbaWwlU0sqarLMTN9yGxT3Lnxl+cNd0=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Y+ST6f21kE9bBkkn7zqxg+RuUoF1ZB0NxFxNwywlDG8=","primaryKey":"ZR8Wm3qB5ilFMbaWwlU0sqarLMTN9yGxT3Lnxl+cNd0=","secondaryKey":"Y+ST6f21kE9bBkkn7zqxg+RuUoF1ZB0NxFxNwywlDG8=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['536'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:31: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "SecondaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule keys renew] - Connection: [keep-alive] - Content-Length: ['27'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ZR8Wm3qB5ilFMbaWwlU0sqarLMTN9yGxT3Lnxl+cNd0=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=3Ut+QCWQ6oKGqE3kGMYGPiAsZDNi7CPAXrTXPno8xXs=","primaryKey":"ZR8Wm3qB5ilFMbaWwlU0sqarLMTN9yGxT3Lnxl+cNd0=","secondaryKey":"3Ut+QCWQ6oKGqE3kGMYGPiAsZDNi7CPAXrTXPno8xXs=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['536'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:32:12 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/AuthorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:32:29 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:32:29 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespace000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:33: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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_namespace000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:33:02 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZOQU1FU1BBQ0VBSkU1SFVJSjJQS1BJS1RJRE83T3wwQjZDMUMyM0RDNzEwRDE0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/servicebus/azext_servicebus/tests/recordings/test_sb_queue.yaml b/src/servicebus/azext_servicebus/tests/recordings/test_sb_queue.yaml deleted file mode 100644 index fa8a6422555..00000000000 --- a/src/servicebus/azext_servicebus/tests/recordings/test_sb_queue.yaml +++ /dev/null @@ -1,493 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_queue000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001","name":"cli_test_sb_queue000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:33:03 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} -- request: - body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Length: ['125'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:33:04.423Z","updatedAt":"2018-01-25T18:33:04.423Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['696'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:33:04 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:33:04.423Z","updatedAt":"2018-01-25T18:33:30.583Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['694'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:33:35 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'] - CommandName: [servicebus namespace show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:33:04.423Z","updatedAt":"2018-01-25T18:33:30.583Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['694'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:33:36 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: '{"properties": {"autoDeleteOnIdle": "PT10M"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue create] - Connection: [keep-alive] - Content-Length: ['45'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004","name":"sb-queuecli000004","type":"Microsoft.ServiceBus/Namespaces/Queues","location":"West - US 2","properties":{"lockDuration":"PT1M","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"duplicateDetectionHistoryTimeWindow":"PT10M","maxDeliveryCount":10,"sizeInBytes":0,"messageCount":0,"status":"Active","autoDeleteOnIdle":"PT10M","enablePartitioning":false,"enableExpress":false,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"createdAt":"2018-01-25T18:33:37.097Z","updatedAt":"2018-01-25T18:33:37.19Z","accessedAt":"0001-01-01T00:00:00"}}'} - headers: - cache-control: [no-cache] - content-length: ['1032'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:33:39 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004","name":"sb-queuecli000004","type":"Microsoft.ServiceBus/Namespaces/Queues","location":"West - US 2","properties":{"lockDuration":"PT1M","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"duplicateDetectionHistoryTimeWindow":"PT10M","maxDeliveryCount":10,"sizeInBytes":0,"messageCount":0,"status":"Active","autoDeleteOnIdle":"PT10M","enablePartitioning":false,"enableExpress":false,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"createdAt":"2018-01-25T18:33:37.097Z","updatedAt":"2018-01-25T18:33:37.19Z","accessedAt":"0001-01-01T00:00:00Z"}}'} - headers: - cache-control: [no-cache] - content-length: ['1033'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:33:40 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'] - CommandName: [servicebus queue list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004","name":"sb-queuecli000004","type":"Microsoft.ServiceBus/Namespaces/Queues","location":"West - US 2","properties":{"lockDuration":"PT1M","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"duplicateDetectionHistoryTimeWindow":"PT10M","maxDeliveryCount":10,"sizeInBytes":0,"messageCount":0,"status":"Active","autoDeleteOnIdle":"PT10M","enablePartitioning":false,"enableExpress":false,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"createdAt":"2018-01-25T18:33:37.097Z","updatedAt":"2018-01-25T18:33:37.19Z","accessedAt":"0001-01-01T00:00:00Z"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['1045'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:33:40 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] - x-ms-inline-count: [''] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"rights": ["Listen"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue authorizationrule create] - Connection: [keep-alive] - Content-Length: ['38'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules","location":"West - US 2","properties":{"rights":["Listen"]}}'} - headers: - cache-control: [no-cache] - content-length: ['442'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:33:42 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue authorizationrule show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.ServiceBus/Namespaces/Queues/AuthorizationRules","location":"West - US 2","properties":{"rights":["Listen"]}}'} - headers: - cache-control: [no-cache] - content-length: ['442'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:33:42 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'] - CommandName: [servicebus queue authorizationrule keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003/ListKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=WYSciO8yALyW91iF4rKomtyapOpdq6rwih5OVBNs2L4=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=oiGNiZtB8nJloiOBVlmLnFfGiMrk4Noctr++5lQPk+4=;EntityPath=sb-queuecli000004","primaryKey":"WYSciO8yALyW91iF4rKomtyapOpdq6rwih5OVBNs2L4=","secondaryKey":"oiGNiZtB8nJloiOBVlmLnFfGiMrk4Noctr++5lQPk+4=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:33:43 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "PrimaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue authorizationrule keys renew] - Connection: [keep-alive] - Content-Length: ['25'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=zy28vQeNF9vY9T39ixEaQAcCzHjjU+Se7Ynbo05L5Yg=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=oiGNiZtB8nJloiOBVlmLnFfGiMrk4Noctr++5lQPk+4=;EntityPath=sb-queuecli000004","primaryKey":"zy28vQeNF9vY9T39ixEaQAcCzHjjU+Se7Ynbo05L5Yg=","secondaryKey":"oiGNiZtB8nJloiOBVlmLnFfGiMrk4Noctr++5lQPk+4=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:33:43 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "SecondaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue authorizationrule keys renew] - Connection: [keep-alive] - Content-Length: ['27'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=zy28vQeNF9vY9T39ixEaQAcCzHjjU+Se7Ynbo05L5Yg=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=YALrHSxU7V2/E6Ler02+ScX+/MS6U8LB1eKo/3VLHis=;EntityPath=sb-queuecli000004","primaryKey":"zy28vQeNF9vY9T39ixEaQAcCzHjjU+Se7Ynbo05L5Yg=","secondaryKey":"YALrHSxU7V2/E6Ler02+ScX+/MS6U8LB1eKo/3VLHis=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:33:44 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue authorizationrule delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:33:46 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/queues/sb-queuecli000004?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:33:48 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:33:48 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_queue000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:34:18 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_queue000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:34:20 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZRVUVVRUFMMlk0TE1RTExWSEZSNVE0WlQ0VUZKSXxGOUMwRTVDNkY0QTY0MkEwLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/servicebus/azext_servicebus/tests/recordings/test_sb_rules.yaml b/src/servicebus/azext_servicebus/tests/recordings/test_sb_rules.yaml deleted file mode 100644 index a491a6e45bf..00000000000 --- a/src/servicebus/azext_servicebus/tests/recordings/test_sb_rules.yaml +++ /dev/null @@ -1,491 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_rules000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001","name":"cli_test_sb_rules000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:34:21 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 201, message: Created} -- request: - body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Length: ['125'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:34:22.22Z","updatedAt":"2018-01-25T18:34:22.22Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['694'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:34:22 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:34:22.22Z","updatedAt":"2018-01-25T18:34:49.233Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['693'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:34:53 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'] - CommandName: [servicebus namespace show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:34:22.22Z","updatedAt":"2018-01-25T18:34:49.233Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['693'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:34: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: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic create] - Connection: [keep-alive] - Content-Length: ['2'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004","name":"sb-topiccli000004","type":"Microsoft.ServiceBus/Namespaces/Topics","location":"West - US 2","properties":{"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"duplicateDetectionHistoryTimeWindow":"PT10M","enableBatchedOperations":true,"sizeInBytes":0,"status":"Active","supportOrdering":true,"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S","enablePartitioning":false,"enableExpress":false,"createdAt":"2018-01-25T18:34:55.843Z","updatedAt":"2018-01-25T18:34:56.017Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} - headers: - cache-control: [no-cache] - content-length: ['1004'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:34:58 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004","name":"sb-topiccli000004","type":"Microsoft.ServiceBus/Namespaces/Topics","location":"West - US 2","properties":{"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"duplicateDetectionHistoryTimeWindow":"PT10M","enableBatchedOperations":true,"sizeInBytes":0,"status":"Active","supportOrdering":true,"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S","enablePartitioning":false,"enableExpress":false,"createdAt":"2018-01-25T18:34:55.843Z","updatedAt":"2018-01-25T18:34:56.017Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} - headers: - cache-control: [no-cache] - content-length: ['1005'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:34:58 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: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus subscription create] - Connection: [keep-alive] - Content-Length: ['2'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006","name":"sb-subscli000006","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions","location":"West - US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-25T18:35:01.362451Z","updatedAt":"2018-01-25T18:35:01.362451Z","accessedAt":"0001-01-01T00:00:00","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} - headers: - cache-control: [no-cache] - content-length: ['973'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:35:01 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus subscription show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006","name":"sb-subscli000006","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions","location":"West - US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-25T18:35:01.3908188Z","updatedAt":"2018-01-25T18:35:01.3908188Z","accessedAt":"2018-01-25T18:35:01.3908188Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} - headers: - cache-control: [no-cache] - content-length: ['984'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:35:01 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: '{"properties": {"action": {}, "sqlFilter": {"sqlExpression": "test=test"}, - "correlationFilter": {}}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus rule create] - Connection: [keep-alive] - Content-Length: ['100'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006/rules/sb-rulecli000007?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006/rules/sb-rulecli000007","name":"sb-rulecli000007","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules","location":"West - US 2","properties":{"action":{},"filterType":"SqlFilter","sqlFilter":{"sqlExpression":"test=test","compatibilityLevel":20}}}'} - headers: - cache-control: [no-cache] - content-length: ['563'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:35:04 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus rule show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006/rules/sb-rulecli000007?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006/rules/sb-rulecli000007","name":"sb-rulecli000007","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules","location":"West - US 2","properties":{"action":{},"filterType":"SqlFilter","sqlFilter":{"sqlExpression":"test=test","compatibilityLevel":20,"parameters":{}}}}'} - headers: - cache-control: [no-cache] - content-length: ['579'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:35:05 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'] - CommandName: [servicebus rule list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006/rules?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006/rules/sb-rulecli000007","name":"sb-rulecli000007","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions/Rules","location":"West - US 2","properties":{"action":{},"filterType":"SqlFilter","sqlFilter":{"sqlExpression":"test=test","compatibilityLevel":20,"parameters":{}}}}]}'} - headers: - cache-control: [no-cache] - content-length: ['591'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:35:06 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] - x-ms-inline-count: [''] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus rule delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006/rules/sb-rulecli000007?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:35:06 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus subscription delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:35:08 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:35:10 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:35:10 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_rules000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:35:41 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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_rules000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:35:43 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZSVUxFU0hWVE9YVjVKVTY3WUZENVI1TklaQVM1QnxCM0FDOTQ5NEQ5RTBBQjUyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/servicebus/azext_servicebus/tests/recordings/test_sb_subscription.yaml b/src/servicebus/azext_servicebus/tests/recordings/test_sb_subscription.yaml deleted file mode 100644 index 2b3c0348e61..00000000000 --- a/src/servicebus/azext_servicebus/tests/recordings/test_sb_subscription.yaml +++ /dev/null @@ -1,403 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_subscription000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001","name":"cli_test_sb_subscription000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:35:44 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 201, message: Created} -- request: - body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Length: ['125'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:35:44.987Z","updatedAt":"2018-01-25T18:35:44.987Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['696'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:35:45 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:35:44.987Z","updatedAt":"2018-01-25T18:36:10.837Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['694'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:36:16 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'] - CommandName: [servicebus namespace show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:35:44.987Z","updatedAt":"2018-01-25T18:36:10.837Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['694'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:36:18 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: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic create] - Connection: [keep-alive] - Content-Length: ['2'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004","name":"sb-topiccli000004","type":"Microsoft.ServiceBus/Namespaces/Topics","location":"West - US 2","properties":{"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"duplicateDetectionHistoryTimeWindow":"PT10M","enableBatchedOperations":true,"sizeInBytes":0,"status":"Active","supportOrdering":true,"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S","enablePartitioning":false,"enableExpress":false,"createdAt":"2018-01-25T18:36:18.437Z","updatedAt":"2018-01-25T18:36:18.687Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} - headers: - cache-control: [no-cache] - content-length: ['1004'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:36:20 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004","name":"sb-topiccli000004","type":"Microsoft.ServiceBus/Namespaces/Topics","location":"West - US 2","properties":{"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"duplicateDetectionHistoryTimeWindow":"PT10M","enableBatchedOperations":true,"sizeInBytes":0,"status":"Active","supportOrdering":true,"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S","enablePartitioning":false,"enableExpress":false,"createdAt":"2018-01-25T18:36:18.437Z","updatedAt":"2018-01-25T18:36:18.687Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} - headers: - cache-control: [no-cache] - content-length: ['1005'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:36:21 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: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus subscription create] - Connection: [keep-alive] - Content-Length: ['2'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006","name":"sb-subscli000006","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions","location":"West - US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-25T18:36:24.520973Z","updatedAt":"2018-01-25T18:36:24.520973Z","accessedAt":"0001-01-01T00:00:00","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} - headers: - cache-control: [no-cache] - content-length: ['973'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:36: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus subscription show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006","name":"sb-subscli000006","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions","location":"West - US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-25T18:36:24.5593804Z","updatedAt":"2018-01-25T18:36:24.5593804Z","accessedAt":"2018-01-25T18:36:24.56Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} - headers: - cache-control: [no-cache] - content-length: ['979'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:36: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'] - CommandName: [servicebus subscription list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006","name":"sb-subscli000006","type":"Microsoft.ServiceBus/Namespaces/Topics/Subscriptions","location":"West - US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-25T18:36:24.5593804Z","updatedAt":"2018-01-25T18:36:24.5593804Z","accessedAt":"2018-01-25T18:36:24.56Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}]}'} - headers: - cache-control: [no-cache] - content-length: ['991'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:36: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] - x-ms-inline-count: [''] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus subscription delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/subscriptions/sb-subscli000006?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:36: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] - x-ms-ratelimit-remaining-subscription-writes: ['1195'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:36:28 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] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:36:29 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 202, message: Accepted} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace delete] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_subscription000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/operationresults/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:37: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] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_subscription000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:37:01 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZTVUJTQ1JJUFRJT05ZR1JUSzM2UTQyUVIyVktCQnxBRTIxOEE5QzFGNUUwRTU3LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/servicebus/azext_servicebus/tests/recordings/test_sb_topic.yaml b/src/servicebus/azext_servicebus/tests/recordings/test_sb_topic.yaml deleted file mode 100644 index 0acb3dd5a1f..00000000000 --- a/src/servicebus/azext_servicebus/tests/recordings/test_sb_topic.yaml +++ /dev/null @@ -1,440 +0,0 @@ -interactions: -- request: - body: '{"location": "westus", "tags": {"use": "az-test"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group create] - Connection: [keep-alive] - Content-Length: ['50'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_topic000001?api-version=2017-05-10 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001","name":"cli_test_sb_topic000001","location":"westus","tags":{"use":"az-test"},"properties":{"provisioningState":"Succeeded"}}'} - headers: - cache-control: [no-cache] - content-length: ['328'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:37:01 GMT'] - expires: ['-1'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 201, message: Created} -- request: - body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": - ""}, "sku": {"name": "Standard", "tier": "Standard"}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Length: ['125'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:37:02.783Z","updatedAt":"2018-01-25T18:37:02.783Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} - headers: - cache-control: [no-cache] - content-length: ['696'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:37:03 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace create] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:37:02.783Z","updatedAt":"2018-01-25T18:37:29.487Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['694'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:37:34 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'] - CommandName: [servicebus namespace show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002?api-version=2017-04-01 - response: - body: {string: '{"sku":{"name":"Standard","tier":"Standard"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002","name":"sb-nscli000002","type":"Microsoft.ServiceBus/Namespaces","location":"West - US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-25T18:37:02.783Z","updatedAt":"2018-01-25T18:37:29.487Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} - headers: - cache-control: [no-cache] - content-length: ['694'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:37:35 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: '{}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic create] - Connection: [keep-alive] - Content-Length: ['2'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004","name":"sb-topiccli000004","type":"Microsoft.ServiceBus/Namespaces/Topics","location":"West - US 2","properties":{"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"duplicateDetectionHistoryTimeWindow":"PT10M","enableBatchedOperations":true,"sizeInBytes":0,"status":"Active","supportOrdering":true,"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S","enablePartitioning":false,"enableExpress":false,"createdAt":"2018-01-25T18:37:35.81Z","updatedAt":"2018-01-25T18:37:35.84Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} - headers: - cache-control: [no-cache] - content-length: ['1002'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:37:37 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004","name":"sb-topiccli000004","type":"Microsoft.ServiceBus/Namespaces/Topics","location":"West - US 2","properties":{"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"duplicateDetectionHistoryTimeWindow":"PT10M","enableBatchedOperations":true,"sizeInBytes":0,"status":"Active","supportOrdering":true,"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S","enablePartitioning":false,"enableExpress":false,"createdAt":"2018-01-25T18:37:35.81Z","updatedAt":"2018-01-25T18:37:35.84Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} - headers: - cache-control: [no-cache] - content-length: ['1003'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:37:38 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'] - CommandName: [servicebus topic list] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics?api-version=2017-04-01 - response: - body: {string: '{"value":[{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004","name":"sb-topiccli000004","type":"Microsoft.ServiceBus/Namespaces/Topics","location":"West - US 2","properties":{"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","maxSizeInMegabytes":5120,"requiresDuplicateDetection":false,"duplicateDetectionHistoryTimeWindow":"PT10M","enableBatchedOperations":true,"sizeInBytes":0,"status":"Active","supportOrdering":true,"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S","enablePartitioning":false,"enableExpress":false,"createdAt":"2018-01-25T18:37:35.81Z","updatedAt":"2018-01-25T18:37:35.84Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}]}'} - headers: - cache-control: [no-cache] - content-length: ['1015'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:37:39 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] - x-ms-inline-count: [''] - status: {code: 200, message: OK} -- request: - body: '{"properties": {"rights": ["Send"]}}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic authorizationrule create] - Connection: [keep-alive] - Content-Length: ['36'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules","location":"West - US 2","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['440'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:37:40 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic authorizationrule show] - Connection: [keep-alive] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003","name":"cliAutho000003","type":"Microsoft.ServiceBus/Namespaces/Topics/AuthorizationRules","location":"West - US 2","properties":{"rights":["Send"]}}'} - headers: - cache-control: [no-cache] - content-length: ['440'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:37:41 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'] - CommandName: [servicebus topic authorizationrule keys list] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003/ListKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=IqhAAgEVfAqHU29HeaGnz8YlEObtXSl7ai68mNruo4Q=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=d0mBDCGH859CTCIKiJvj3/uLliDsvrzGV2gYQJcLNwU=;EntityPath=sb-topiccli000004","primaryKey":"IqhAAgEVfAqHU29HeaGnz8YlEObtXSl7ai68mNruo4Q=","secondaryKey":"d0mBDCGH859CTCIKiJvj3/uLliDsvrzGV2gYQJcLNwU=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:37:41 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "PrimaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic authorizationrule keys renew] - Connection: [keep-alive] - Content-Length: ['25'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ZzA9RiHQ1siAlKCHRctVgQxiWbVAhNQmUIIXiNZYvdM=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=d0mBDCGH859CTCIKiJvj3/uLliDsvrzGV2gYQJcLNwU=;EntityPath=sb-topiccli000004","primaryKey":"ZzA9RiHQ1siAlKCHRctVgQxiWbVAhNQmUIIXiNZYvdM=","secondaryKey":"d0mBDCGH859CTCIKiJvj3/uLliDsvrzGV2gYQJcLNwU=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:37:41 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: '{"keyType": "SecondaryKey"}' - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic authorizationrule keys renew] - Connection: [keep-alive] - Content-Length: ['27'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003/regenerateKeys?api-version=2017-04-01 - response: - body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ZzA9RiHQ1siAlKCHRctVgQxiWbVAhNQmUIIXiNZYvdM=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Nr+eiaJb7iKLTj1/4J7nTmdtXxPCJFw0OijjQru9gLQ=;EntityPath=sb-topiccli000004","primaryKey":"ZzA9RiHQ1siAlKCHRctVgQxiWbVAhNQmUIIXiNZYvdM=","secondaryKey":"Nr+eiaJb7iKLTj1/4J7nTmdtXxPCJFw0OijjQru9gLQ=","keyName":"cliAutho000003"}'} - headers: - cache-control: [no-cache] - content-length: ['610'] - content-type: [application/json; charset=utf-8] - date: ['Thu, 25 Jan 2018 18:37:43 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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic authorizationrule delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004/authorizationRules/cliAutho000003?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:37:44 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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_topic000001/providers/Microsoft.ServiceBus/namespaces/sb-nscli000002/topics/sb-topiccli000004?api-version=2017-04-01 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:37:46 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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] - status: {code: 200, message: OK} -- request: - body: null - headers: - Accept: [application/json] - Accept-Encoding: ['gzip, deflate'] - CommandName: [group delete] - Connection: [keep-alive] - Content-Length: ['0'] - Content-Type: [application/json; charset=utf-8] - User-Agent: [python/3.6.3 (Windows-10-10.0.16299-SP0) requests/2.18.4 msrest/0.4.22 - msrest_azure/0.4.19 resourcemanagementclient/1.2.1 Azure-SDK-For-Python - AZURECLI/2.0.26] - accept-language: [en-US] - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/cli_test_sb_topic000001?api-version=2017-05-10 - response: - body: {string: ''} - headers: - cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 25 Jan 2018 18:37:46 GMT'] - expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZUT1BJQ1lKTzY2WkRKR0xMSDRBNUdQUjUyUEhDR3xBNEIzOTMyRkRBQjc4NTdCLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] - pragma: [no-cache] - strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] - status: {code: 202, message: Accepted} -version: 1 diff --git a/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py b/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py deleted file mode 100644 index 00945e2820b..00000000000 --- a/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py +++ /dev/null @@ -1,451 +0,0 @@ -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -# AZURE CLI SERVICEBUS - NAMESAPCE TEST DEFINITIONS - -import time -from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) -from azext_servicebus.servicebus.models import ProvisioningStateDR - - -# pylint: disable=line-too-long -# pylint: disable=too-many-lines - - -class SBNamespaceCURDScenarioTest(ScenarioTest): - @ResourceGroupPreparer(name_prefix='cli_test_sb_namespace') - def test_sb_namespace(self, resource_group): - self.kwargs.update({ - 'loc': 'westus2', - 'rg': resource_group, - 'namespacename': self.create_random_name(prefix='sb-nscli', length=20), - 'tags': {'tag1: value1'}, - 'sku': 'Standard', - 'tier': 'Standard', - 'authoname': self.create_random_name(prefix='cliAutho', length=20), - 'defaultauthorizationrule': 'RootManageSharedAccessKey', - 'accessrights': 'Send', - 'primary': 'PrimaryKey', - 'secondary': 'SecondaryKey' - }) - - # Check for the NameSpace name Availability - - self.cmd('servicebus namespace exists --name {namespacename}', - checks=[self.check('nameAvailable', True)]) - - # Create Namespace - self.cmd('servicebus namespace create --resource-group {rg} --name {namespacename} --location {loc} --tags {tags} --sku-name {sku} --sku-tier {tier}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Get Created Namespace - self.cmd('servicebus namespace show --resource-group {rg} --name {namespacename}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Get Created Namespace list by subscription - listnamespaceresult = self.cmd('servicebus namespace list').output - self.assertGreater(len(listnamespaceresult), 0) - - # Get Created Namespace list by ResourceGroup - listnamespacebyresourcegroupresult = self.cmd('servicebus namespace list --resource-group {rg}').output - self.assertGreater(len(listnamespacebyresourcegroupresult), 0) - - # Create Authoriazation Rule - self.cmd('servicebus namespace authorizationrule create --resource-group {rg} --namespace-name {namespacename} --name {authoname} --access-rights {accessrights}', - checks=[self.check('name', self.kwargs['authoname'])]) - - # Get Authorization Rule - self.cmd('servicebus namespace authorizationrule show --resource-group {rg} --namespace-name {namespacename} --name {authoname}', checks=[self.check('name', self.kwargs['authoname'])]) - - # Get Default Authorization Rule - self.cmd('servicebus namespace authorizationrule show --resource-group {rg} --namespace-name {namespacename} --name {defaultauthorizationrule}', - checks=[self.check('name', self.kwargs['defaultauthorizationrule'])]) - - # Get Authorization Rule Listkeys - self.cmd('servicebus namespace authorizationrule keys list --resource-group {rg} --namespace-name {namespacename} --name {authoname}') - - # Regeneratekeys - Primary - self.cmd('servicebus namespace authorizationrule keys renew --resource-group {rg} --namespace-name {namespacename} --name {authoname} --key-name {primary}') - - # Regeneratekeys - Secondary - self.cmd('servicebus namespace authorizationrule keys renew --resource-group {rg} --namespace-name {namespacename} --name {authoname} --key-name {secondary}') - - # Delete AuthorizationRule - self.cmd('servicebus namespace authorizationrule delete --resource-group {rg} --namespace-name {namespacename} --name {authoname}') - - # Delete Namespace list by ResourceGroup - self.cmd('servicebus namespace delete --resource-group {rg} --name {namespacename}') - - @ResourceGroupPreparer(name_prefix='cli_test_sb_queue') - def test_sb_queue(self, resource_group): - self.kwargs.update({ - 'loc': 'westus2', - 'rg': resource_group, - 'namespacename': self.create_random_name(prefix='sb-nscli', length=20), - 'tags': {'tag1: value1', 'tag2: value2'}, - 'sku': 'Standard', - 'tier': 'Standard', - 'authoname': self.create_random_name(prefix='cliAutho', length=20), - 'defaultauthorizationrule': 'RootManageSharedAccessKey', - 'accessrights': 'Listen', - 'primary': 'PrimaryKey', - 'secondary': 'SecondaryKey', - 'queuename': self.create_random_name(prefix='sb-queuecli', length=25), - 'queueauthoname': self.create_random_name(prefix='cliQueueAutho', length=25), - 'lockduration': 'PT10M' - - }) - - # Create Namespace - self.cmd('servicebus namespace create --resource-group {rg} --name {namespacename} --location {loc} --tags {tags} --sku-name {sku} --sku-tier {tier}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Get Created Namespace - self.cmd('servicebus namespace show --resource-group {rg} --name {namespacename}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Create Queue - self.cmd('servicebus queue create --resource-group {rg} --namespace-name {namespacename} --name {queuename} --auto-delete-on-idle {lockduration} ', checks=[self.check('name', self.kwargs['queuename'])]) - - # Get Queue - self.cmd('servicebus queue show --resource-group {rg} --namespace-name {namespacename} --name {queuename}', - checks=[self.check('name', self.kwargs['queuename'])]) - - # Queue List - self.cmd('servicebus queue list --resource-group {rg} --namespace-name {namespacename}') - - # Create Authoriazation Rule - self.cmd('servicebus queue authorizationrule create --resource-group {rg} --namespace-name {namespacename} --queue-name {queuename} --name {authoname} --access-rights {accessrights}', - checks=[self.check('name', self.kwargs['authoname'])]) - - # Get Create Authorization Rule - self.cmd('servicebus queue authorizationrule show --resource-group {rg} --namespace-name {namespacename} --queue-name {queuename} --name {authoname}', - checks=[self.check('name', self.kwargs['authoname'])]) - - # Get Authorization Rule Listkeys - self.cmd('servicebus queue authorizationrule keys list --resource-group {rg} --namespace-name {namespacename} --queue-name {queuename} --name {authoname}') - - # Regeneratekeys - Primary - regenrateprimarykeyresult = self.cmd('servicebus queue authorizationrule keys renew --resource-group {rg} --namespace-name {namespacename} --queue-name {queuename} --name {authoname} --key-name {primary}') - self.assertIsNotNone(regenrateprimarykeyresult) - - # Regeneratekeys - Secondary - regenratesecondarykeyresult = self.cmd( - 'servicebus queue authorizationrule keys renew --resource-group {rg} --namespace-name {namespacename} --queue-name {queuename} --name {authoname} --key-name {secondary}') - self.assertIsNotNone(regenratesecondarykeyresult) - - # Delete Queue AuthorizationRule - self.cmd('servicebus queue authorizationrule delete --resource-group {rg} --namespace-name {namespacename} --queue-name {queuename} --name {authoname}') - - # Delete Queue - self.cmd('servicebus queue delete --resource-group {rg} --namespace-name {namespacename} --name {queuename}') - - # Delete Namespace - self.cmd('servicebus namespace delete --resource-group {rg} --name {namespacename}') - - @ResourceGroupPreparer(name_prefix='cli_test_sb_topic') - def test_sb_topic(self, resource_group): - self.kwargs.update({ - 'loc': 'westus2', - 'rg': resource_group, - 'namespacename': self.create_random_name(prefix='sb-nscli', length=20), - 'tags': {'tag1: value1', 'tag2: value2'}, - 'sku': 'Standard', - 'tier': 'Standard', - 'authoname': self.create_random_name(prefix='cliAutho', length=20), - 'defaultauthorizationrule': 'RootManageSharedAccessKey', - 'accessrights': 'Send', - 'primary': 'PrimaryKey', - 'secondary': 'SecondaryKey', - 'topicname': self.create_random_name(prefix='sb-topiccli', length=25), - 'topicauthoname': self.create_random_name(prefix='cliTopicAutho', length=25) - }) - - # Create Namespace - self.cmd( - 'servicebus namespace create --resource-group {rg} --name {namespacename} --location {loc} --tags {tags} --sku-name {sku} --sku-tier {tier}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Get Created Namespace - self.cmd('servicebus namespace show --resource-group {rg} --name {namespacename}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Create Topic - self.cmd( - 'servicebus topic create --resource-group {rg} --namespace-name {namespacename} --name {topicname}', - checks=[self.check('name', self.kwargs['topicname'])]) - - # Get Topic - self.cmd( - 'servicebus topic show --resource-group {rg} --namespace-name {namespacename} --name {topicname}', - checks=[self.check('name', self.kwargs['topicname'])]) - - # Topic List - self.cmd('servicebus topic list --resource-group {rg} --namespace-name {namespacename}') - - # Create Authoriazation Rule - self.cmd('servicebus topic authorizationrule create --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {authoname} --access-rights {accessrights}', - checks=[self.check('name', self.kwargs['authoname'])]) - - # Get Create Authorization Rule - self.cmd('servicebus topic authorizationrule show --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {authoname}', checks=[self.check('name', self.kwargs['authoname'])]) - - # Get Authorization Rule Listkeys - self.cmd('servicebus topic authorizationrule keys list --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {authoname}') - - # Regeneratekeys - Primary - self.cmd('servicebus topic authorizationrule keys renew --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {authoname} --key-name {primary}') - - # Regeneratekeys - Secondary - self.cmd('servicebus topic authorizationrule keys renew --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {authoname} --key-name {secondary}') - - # Delete Topic AuthorizationRule - self.cmd('servicebus topic authorizationrule delete --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {authoname}') - - # Delete Topic - self.cmd('servicebus topic delete --resource-group {rg} --namespace-name {namespacename} --name {topicname}') - - @ResourceGroupPreparer(name_prefix='cli_test_sb_subscription') - def test_sb_subscription(self, resource_group): - self.kwargs.update({ - 'loc': 'westus2', - 'rg': resource_group, - 'namespacename': self.create_random_name(prefix='sb-nscli', length=20), - 'tags': {'tag1: value1', 'tag2: value2'}, - 'sku': 'Standard', - 'tier': 'Standard', - 'authoname': self.create_random_name(prefix='cliAutho', length=20), - 'defaultauthorizationrule': 'RootManageSharedAccessKey', - 'accessrights': 'Send, Listen', - 'primary': 'PrimaryKey', - 'secondary': 'SecondaryKey', - 'topicname': self.create_random_name(prefix='sb-topiccli', length=25), - 'topicauthoname': self.create_random_name(prefix='cliTopicAutho', length=25), - 'subscriptionname': self.create_random_name(prefix='sb-subscli', length=25) - }) - - # Create Namespace - self.cmd('servicebus namespace create --resource-group {rg} --name {namespacename} --location {loc} --tags {tags} --sku-name {sku} --sku-tier {tier}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Get Created Namespace - self.cmd('servicebus namespace show --resource-group {rg} --name {namespacename}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Create Topic - self.cmd('servicebus topic create --resource-group {rg} --namespace-name {namespacename} --name {topicname}', - checks=[self.check('name', self.kwargs['topicname'])]) - - # Get Topic - self.cmd('servicebus topic show --resource-group {rg} --namespace-name {namespacename} --name {topicname}', - checks=[self.check('name', self.kwargs['topicname'])]) - - # Create Subscription - self.cmd('servicebus subscription create --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {subscriptionname}', - checks=[self.check('name', self.kwargs['subscriptionname'])]) - - # Get Create Subscription - self.cmd('servicebus subscription show --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {subscriptionname}', - checks=[self.check('name', self.kwargs['subscriptionname'])]) - - # Get list of Subscription+ - self.cmd('servicebus subscription list --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname}') - - # Delete Subscription - self.cmd('servicebus subscription delete --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {subscriptionname}') - - # Delete Topic - self.cmd('servicebus topic delete --resource-group {rg} --namespace-name {namespacename} --name {topicname}') - - # Delete Namespace - self.cmd('servicebus namespace delete --resource-group {rg} --name {namespacename}') - - @ResourceGroupPreparer(name_prefix='cli_test_sb_rules') - def test_sb_rules(self, resource_group): - self.kwargs.update({ - 'loc': 'westus2', - 'rg': resource_group, - 'namespacename': self.create_random_name(prefix='sb-nscli', length=20), - 'tags': {'tag1: value1', 'tag2: value2'}, - 'sku': 'Standard', - 'tier': 'Standard', - 'authoname': self.create_random_name(prefix='cliAutho', length=20), - 'defaultauthorizationrule': 'RootManageSharedAccessKey', - 'accessrights': 'Listen', - 'primary': 'PrimaryKey', - 'secondary': 'SecondaryKey', - 'topicname': self.create_random_name(prefix='sb-topiccli', length=25), - 'topicauthoname': self.create_random_name(prefix='cliTopicAutho', length=25), - 'subscriptionname': self.create_random_name(prefix='sb-subscli', length=25), - 'rulename': self.create_random_name(prefix='sb-rulecli', length=25), - 'sqlexpression': 'test=test' - }) - - # Create Namespace - self.cmd('servicebus namespace create --resource-group {rg} --name {namespacename} --location {loc} --tags {tags} --sku-name {sku} --sku-tier {tier}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Get Created Namespace - self.cmd('servicebus namespace show --resource-group {rg} --name {namespacename}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Create Topic - self.cmd('servicebus topic create --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', - checks=[self.check('name', self.kwargs['topicname'])]) - - # Get Topic - self.cmd('servicebus topic show --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', - checks=[self.check('name', self.kwargs['topicname'])]) - - # Create Subscription - self.cmd('servicebus subscription create --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {subscriptionname}', - checks=[self.check('name', self.kwargs['subscriptionname'])]) - - # Get Create Subscription - self.cmd('servicebus subscription show --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {subscriptionname}', checks=[self.check('name', self.kwargs['subscriptionname'])]) - - # Create Rules - self.cmd('servicebus rule create --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --subscription-name {subscriptionname} --name {rulename} --filter-sql-expression {sqlexpression}', - checks=[self.check('name', self.kwargs['rulename'])]) - - # Get Created Rules - self.cmd('servicebus rule show --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --subscription-name {subscriptionname} --name {rulename}', - checks=[self.check('name', self.kwargs['rulename'])]) - - # Get Rules List By Subscription - self.cmd('servicebus rule list --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --subscription-name {subscriptionname}') - - # Delete create rule - self.cmd('servicebus rule delete --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --subscription-name {subscriptionname} --name {rulename}') - - # Delete create Subscription - self.cmd('servicebus subscription delete --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {subscriptionname}') - - # Delete Topic - self.cmd('servicebus topic delete --resource-group {rg} --namespace-name {namespacename} --name {topicname}') - - # Delete Namespace - self.cmd('servicebus namespace delete --resource-group {rg} --name {namespacename}') - - @ResourceGroupPreparer(name_prefix='cli_test_sb_alias') - def test_sb_alias(self, resource_group): - - self.kwargs.update({ - 'loc_south': 'SouthCentralUS', - 'loc_north': 'NorthCentralUS', - 'rg': resource_group, - 'namespacenameprimary': self.create_random_name(prefix='sb-nscli', length=20), - 'namespacenamesecondary': self.create_random_name(prefix='sb-nscli', length=20), - 'tags': {'tag1: value1', 'tag2: value2'}, - 'sku': 'Premium', - 'tier': 'Premium', - 'authoname': self.create_random_name(prefix='cliAutho', length=20), - 'defaultauthorizationrule': 'RootManageSharedAccessKey', - 'accessrights': 'Send', - 'primary': 'PrimaryKey', - 'secondary': 'SecondaryKey', - 'aliasname': self.create_random_name(prefix='cliAlias', length=20), - 'alternatename': self.create_random_name(prefix='cliAlter', length=20), - 'id': '', - 'test': '' - }) - - self.cmd('servicebus namespace exists --name {namespacenameprimary}', - checks=[self.check('nameAvailable', True)]) - - # Create Namespace - Primary - self.cmd('servicebus namespace create --resource-group {rg} --name {namespacenameprimary} --location {loc_south} --tags {tags} --sku-name {sku} --sku-tier {tier}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Get Created Namespace - Primary - self.cmd('servicebus namespace show --resource-group {rg} --name {namespacenameprimary}', checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Create Namespace - Secondary - self.cmd('servicebus namespace create --resource-group {rg} --name {namespacenamesecondary} --location {loc_north} --tags {tags} --sku-name {sku} --sku-tier {tier}', - checks=[self.check('sku.name', self.kwargs['sku'])]) - - # Get Created Namespace - Secondary - getnamespace2result = self.cmd('servicebus namespace show --resource-group {rg} --name {namespacenamesecondary}', - checks=[self.check('sku.name', self.kwargs['sku'])]).get_output_in_json() - - # Create Authoriazation Rule - self.cmd('servicebus namespace authorizationrule create --resource-group {rg} --namespace-name {namespacenameprimary} --name {authoname} --access-rights {accessrights}', checks=[self.check('name', self.kwargs['authoname'])]) - - partnernamespaceid = getnamespace2result['id'] - self.kwargs.update({'id': partnernamespaceid}) - # Get Create Authorization Rule - self.cmd('servicebus namespace authorizationrule show --resource-group {rg} --namespace-name {namespacenameprimary} --name {authoname}', checks=[self.check('name', self.kwargs['authoname'])]) - - # CheckNameAvailability - Alias - - self.cmd('servicebus georecovery-alias exists --resource-group {rg} --namespace-name {namespacenameprimary} --name {aliasname}', checks=[self.check('nameAvailable', True)]) - - # Create alias - self.cmd('servicebus georecovery-alias create --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname} --partner-namespace {id}') - - # get alias - Primary - self.cmd('servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}') - - # get alias - Secondary - self.cmd('servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}') - - getaliasprimarynamespace = self.cmd('servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').get_output_in_json() - - # check for the Alias Provisioning succeeded - while getaliasprimarynamespace['provisioningState'] != ProvisioningStateDR.succeeded.value: - time.sleep(30) - getaliasprimarynamespace = self.cmd('servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').get_output_in_json() - - # Get Authorization Rule - self.cmd('servicebus georecovery-alias authorizationrule show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname} --name {authoname}', checks=[self.check('name', self.kwargs['authoname'])]) - - # Get AuthorizationRule Keys - self.cmd('servicebus georecovery-alias authorizationrule keys list --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname} --name {authoname}') - - # Get available AuthorizationRules - self.cmd('servicebus georecovery-alias authorizationrule list --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}') - - # Break Pairing - self.cmd('servicebus georecovery-alias break-pair --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}') - - getaliasafterbreak = self.cmd('servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').get_output_in_json() - - # check for the Alias Provisioning succeeded - while getaliasafterbreak['provisioningState'] != ProvisioningStateDR.succeeded.value: - time.sleep(30) - getaliasafterbreak = self.cmd('servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').get_output_in_json() - - # Create alias - self.cmd('servicebus georecovery-alias create --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname} --partner-namespace {id}') - - getaliasaftercreate = self.cmd( - 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').get_output_in_json() - - # check for the Alias Provisioning succeeded - while getaliasaftercreate['provisioningState'] != ProvisioningStateDR.succeeded.value: - time.sleep(30) - getaliasaftercreate = self.cmd('servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').get_output_in_json() - - # FailOver - self.cmd('servicebus georecovery-alias fail-over --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}') - - getaliasafterfail = self.cmd( - 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}').get_output_in_json() - - # check for the Alias Provisioning succeeded - while getaliasafterfail['provisioningState'] != ProvisioningStateDR.succeeded.value: - time.sleep(30) - getaliasafterfail = self.cmd('servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}').get_output_in_json() - - # Delete Alias - self.cmd('servicebus georecovery-alias delete --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}') - - time.sleep(30) - - # Delete Namespace - primary - self.cmd('servicebus namespace delete --resource-group {rg} --name {namespacenameprimary}') - - # Delete Namespace - secondary - self.cmd('servicebus namespace delete --resource-group {rg} --name {namespacenamesecondary}') diff --git a/src/servicebus/setup.cfg b/src/servicebus/setup.cfg deleted file mode 100644 index 3c6e79cf31d..00000000000 --- a/src/servicebus/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[bdist_wheel] -universal=1 diff --git a/src/servicebus/setup.py b/src/servicebus/setup.py deleted file mode 100644 index 1701e7d2fdb..00000000000 --- a/src/servicebus/setup.py +++ /dev/null @@ -1,41 +0,0 @@ -#!/usr/bin/env python - -# -------------------------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for license information. -# -------------------------------------------------------------------------------------------- - -from codecs import open -from setuptools import setup, find_packages - -VERSION = "0.0.1" - -CLASSIFIERS = [ - 'Development Status :: 4 - Beta', - 'Intended Audience :: Developers', - 'Intended Audience :: System Administrators', - 'Programming Language :: Python', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'License :: OSI Approved :: MIT License', -] - -DEPENDENCIES = [] - -setup( - name='servicebus', - version=VERSION, - description='An Azure CLI Extension to manage servicebus resources', - long_description='An Azure CLI Extension to manage Service Bus resources', - license='MIT', - author='Ajit Navasare', - author_email='v-ajnava@microsoft.com', - url='https://github.com/Azure/azure-cli-extensions', - classifiers=CLASSIFIERS, - packages=find_packages(exclude=["tests"]), - install_requires=DEPENDENCIES -)