From 3d184b0c587ca1974b6874ef6484639fe7a54e71 Mon Sep 17 00:00:00 2001 From: "Ajit Maruti Navasare (MINDTREE LIMITED)" Date: Tue, 9 Jan 2018 09:41:25 -0800 Subject: [PATCH 01/13] ServiceBus CLI Extension --- src/servicebus/azext_servicebus/__init__.py | 35 + .../azext_servicebus/_client_factory.py | 50 + src/servicebus/azext_servicebus/_help.py | 497 +++++++ src/servicebus/azext_servicebus/_params.py | 357 +++++ src/servicebus/azext_servicebus/_utils.py | 18 + .../azext_servicebus/_validators.py | 39 + src/servicebus/azext_servicebus/commands.py | 127 ++ src/servicebus/azext_servicebus/custom.py | 166 +++ .../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 | 1325 +++++++++++++++++ .../recordings/latest/test_sb_namespace.yaml | 513 +++++++ .../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/test_servicebus_commands.py | 495 ++++++ src/servicebus/setup.cfg | 2 + src/servicebus/setup.py | 41 + 74 files changed, 12047 insertions(+) create mode 100644 src/servicebus/azext_servicebus/__init__.py create mode 100644 src/servicebus/azext_servicebus/_client_factory.py create mode 100644 src/servicebus/azext_servicebus/_help.py create mode 100644 src/servicebus/azext_servicebus/_params.py create mode 100644 src/servicebus/azext_servicebus/_utils.py create mode 100644 src/servicebus/azext_servicebus/_validators.py create mode 100644 src/servicebus/azext_servicebus/commands.py create mode 100644 src/servicebus/azext_servicebus/custom.py create mode 100644 src/servicebus/azext_servicebus/servicebus/__init__.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/__init__.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/access_keys.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/action.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/arm_disaster_recovery.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/arm_disaster_recovery_paged.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/authorization_rule_properties.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/capture_description.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/check_name_availability.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/check_name_availability_result.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/correlation_filter.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/destination.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/error_response.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/eventhub.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/eventhub_paged.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/message_count_details.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/operation.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/operation_display.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/operation_paged.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions_paged.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions_properties.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/regenerate_access_key_parameters.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/resource.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/resource_namespace_patch.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/rule.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/rule_paged.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_authorization_rule.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_authorization_rule_paged.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_namespace.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_namespace_paged.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_namespace_update_parameters.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_queue.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_queue_paged.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_sku.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_subscription.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_subscription_paged.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_topic.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/sb_topic_paged.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/service_bus_management_client_enums.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/sql_filter.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/sql_rule_action.py create mode 100644 src/servicebus/azext_servicebus/servicebus/models/tracked_resource.py create mode 100644 src/servicebus/azext_servicebus/servicebus/operations/__init__.py create mode 100644 src/servicebus/azext_servicebus/servicebus/operations/disaster_recovery_configs_operations.py create mode 100644 src/servicebus/azext_servicebus/servicebus/operations/event_hubs_operations.py create mode 100644 src/servicebus/azext_servicebus/servicebus/operations/namespaces_operations.py create mode 100644 src/servicebus/azext_servicebus/servicebus/operations/operations.py create mode 100644 src/servicebus/azext_servicebus/servicebus/operations/premium_messaging_regions_operations.py create mode 100644 src/servicebus/azext_servicebus/servicebus/operations/queues_operations.py create mode 100644 src/servicebus/azext_servicebus/servicebus/operations/regions_operations.py create mode 100644 src/servicebus/azext_servicebus/servicebus/operations/rules_operations.py create mode 100644 src/servicebus/azext_servicebus/servicebus/operations/subscriptions_operations.py create mode 100644 src/servicebus/azext_servicebus/servicebus/operations/topics_operations.py create mode 100644 src/servicebus/azext_servicebus/servicebus/service_bus_management_client.py create mode 100644 src/servicebus/azext_servicebus/servicebus/version.py create mode 100644 src/servicebus/azext_servicebus/tests/__init__.py create mode 100644 src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml create mode 100644 src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml create mode 100644 src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml create mode 100644 src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml create mode 100644 src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml create mode 100644 src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml create mode 100644 src/servicebus/azext_servicebus/tests/test_servicebus_commands.py create mode 100644 src/servicebus/setup.cfg create mode 100644 src/servicebus/setup.py diff --git a/src/servicebus/azext_servicebus/__init__.py b/src/servicebus/azext_servicebus/__init__.py new file mode 100644 index 00000000000..ed2dd2cdb35 --- /dev/null +++ b/src/servicebus/azext_servicebus/__init__.py @@ -0,0 +1,35 @@ +# -------------------------------------------------------------------------------------------- +# 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 + + +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 new file mode 100644 index 00000000000..f6c7bc985f2 --- /dev/null +++ b/src/servicebus/azext_servicebus/_client_factory.py @@ -0,0 +1,50 @@ +# -------------------------------------------------------------------------------------------- +# 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 new file mode 100644 index 00000000000..c98cc265b6c --- /dev/null +++ b/src/servicebus/azext_servicebus/_help.py @@ -0,0 +1,497 @@ +# -------------------------------------------------------------------------------------------- +# 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['sb'] = """ + type: group + short-summary: Manage Azure ServiceBus namespace, queue, topic, subscription, rule and alias (Disaster Recovery Configuration) + + """ + +helps['sb namespace'] = """ + type: group + short-summary: Manage Azure ServiceBus namespace and authorization-rule + + """ + +helps['sb queue'] = """ + type: group + short-summary: Manage Azure ServiceBus queue and authorization-rule + + """ + +helps['sb topic'] = """ + type: group + short-summary: Manage Azure ServiceBus topic and authorization-rule + + """ + +helps['sb subscription'] = """ + type: group + short-summary: Manage Azure ServiceBus Subscription + + """ + +helps['sb rule'] = """ + type: group + short-summary: Manage Azure ServiceBus rule + + """ + +helps['sb alias'] = """ + type: group + short-summary: Manage Azure ServiceBus Alias (Disaster Recovery Configuration) + + """ + +helps['sb namespace check-name-availability'] = """ + type: command + short-summary: check for the availability of the given name for the Namespace + examples: + - name: Create a new topic. + text: az sb namespace check_name_availability --name mynamespace + + """ + +helps['sb namespace create'] = """ + type: command + short-summary: Creates the ServiceBus Namespace + examples: + - name: Create a new namespace. + text: helps['az sb namespace create --resource-group myresourcegroup --name mynamespace --location westus + --tags ['tag1: value1', 'tag2: value2'] --sku-name Standard --sku-tier Standard'] + + """ + +helps['sb namespace show'] = """ + type: command + short-summary: shows the Namespace Details + examples: + - name: shows the Namespace details. + text: helps['az sb namespace show --resource-group myresourcegroup --name mynamespace'] + + """ + +helps['sb namespace list'] = """ + type: command + short-summary: List the Namespaces by ResourceGroup or By subscription + examples: + - name: Get the Namespaces by resource Group. + text: helps['az sb namespace list --resource-group myresourcegroup'] + - name: Get the Namespaces by Subscription. + text: helps['az sb namespace list'] + + """ + +helps['sb namespace delete'] = """ + type: command + short-summary: Deletes the Namespaces + examples: + - name: Deletes the Namespace + text: helps['az sb namespace delete --resource-group myresourcegroup --name mynamespace'] + + """ + +helps['sb namespace authorizationrule create'] = """ + type: command + short-summary: Creates Authorization rule for the given Namespace + examples: + - name: Creates Authorization rules + text: helps['az sb namespace authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace + --name myauthorule --access-rights [Send, Listen]'] + + """ + +helps['sb namespace authorizationrule get'] = """ + type: command + short-summary: Shows the details of AuthorizatioRule + examples: + - name: Shows the details of AuthorizatioRule + text: helps['az sb namespace authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace + --name myauthorule'] + + """ + +helps['sb namespace authorizationrule list'] = """ + type: command + short-summary: Shows the list of AuthorizatioRule by Namespace + examples: + - name: Shows the list of AuthorizatioRule by Namespace + text: helps['az sb namespace authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace'] + + """ + +helps['sb namespace authorizationrule list-keys'] = """ + type: command + short-summary: Shows the connectionstrings of AuthorizatioRule for the namespace + examples: + - name: Shows the connectionstrings of AuthorizatioRule for the namespace. + text: helps['az sb namespace authorizationrule list-keys --resource-group myresourcegroup --namespace-name mynamespace + --name myauthorule'] + + """ + +helps['sb namespace authorizationrule regenerate-keys'] = """ + type: command + short-summary: Regenerate the connectionstrings of AuthorizatioRule for the namespace. + examples: + - name: Regenerate the connectionstrings of AuthorizatioRule for the namespace. + text: helps['az sb namespace authorizationrule regenerate-keys --resource-group myresourcegroup + --namespace-name mynamespace --name myauthorule --key PrimaryKey'] + + """ + +helps['sb namespace authorizationrule delete'] = """ + type: command + short-summary: Deletes the AuthorizatioRule of the namespace. + examples: + - name: Deletes the AuthorizatioRule of the namespace. + text: helps['az sb namespace authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace + --name myauthorule'] + + """ + +helps['sb queue create'] = """ + type: command + short-summary: Creates the ServiceBus Queue + examples: + - name: Create a new queue. + text: helps['az sb queue create --resource-group myresourcegroup --namespace-name mynamespace --name myqueue'] + + """ + +helps['sb queue show'] = """ + type: command + short-summary: shows the Queue Details + examples: + - name: Shows the Queue details. + text: helps['az sb queue show --resource-group myresourcegroup --namespace-name mynamespace --name myqueue'] + + """ + +helps['sb queue list'] = """ + type: command + short-summary: List the Queueby Namepsace + examples: + - name: Get the Queues by Namespace. + text: helps['az sb queue list --resource-group myresourcegroup --namespace-name mynamespace'] + + """ + +helps['sb queue delete'] = """ + type: command + short-summary: Deletes the Queue + examples: + - name: Deletes the queue + text: helps['az sb queue delete --resource-group myresourcegroup --namespace-name mynamespace --name myqueue'] + + """ + +helps['sb queue authorizationrule create'] = """ + type: command + short-summary: Creates Authorization rule for the given Queue + examples: + - name: Creates Authorization rules + text: helps['az sb queue authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace + --queue-name myqueue + --name myauthorule --access-rights [Listen]'] + + """ + +helps['sb queue authorizationrule show'] = """ + type: command + short-summary: shows the details of AuthorizatioRule + examples: + - name: shows the details of AuthorizatioRule + text: helps['az sb queue authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace + --queue-name myqueue + --name myauthorule'] + + """ + +helps['sb queue authorizationrule list'] = """ + type: command + short-summary: shows the list of AuthorizatioRule by Queue + examples: + - name: shows the list of AuthorizatioRule by Queue + text: helps['az sb queue authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace + --queue-name myqueue'] + + """ + +helps['sb queue authorizationrule list-keys'] = """ + type: command + short-summary: Shows the connectionstrings of AuthorizatioRule for the Queue. + examples: + - name: Shows the connectionstrings of AuthorizatioRule for the queue. + text: helps['az sb queue authorizationrule list-keys --resource-group myresourcegroup --namespace-name mynamespace + --queue-name myqueue + --name myauthorule'] + + """ + +helps['sb queue authorizationrule regenerate-keys'] = """ + type: command + short-summary: Regenerate the connectionstrings of AuthorizatioRule for the namespace. + examples: + - name: Regenerate the connectionstrings of AuthorizatioRule for the namespace. + text: helps['az sb queue authorizationrule regenerate-keys --resource-group myresourcegroup --namespace-name mynamespace + --queue-name myqueue + --name myauthorule --key PrimaryKey'] + + """ + +helps['sb queue authorizationrule delete'] = """ + type: command + short-summary: Deletes the AuthorizatioRule of the Queue. + examples: + - name: Deletes the AuthorizatioRule of the queue. + text: helps['az sb queue authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace + --queue-name myqueue + --name myauthorule'] + + """ + +helps['sb topic create'] = """ + type: command + short-summary: Creates the ServiceBus Topic + examples: + - name: Create a new queue. + text: helps['az sb topic create --resource-group myresourcegroup --namespace-name mynamespace --name {topicname}'] + + """ + +helps['sb topic show'] = """ + type: command + short-summary: Shows the Topic Details + examples: + - name: Shows the Topic details. + text: helps['az sb topic get --resource-group myresourcegroup --namespace-name mynamespace --name {topicname}'] + + """ + +helps['sb topic list'] = """ + type: command + short-summary: List the Topic by Namepsace + examples: + - name: Get the Topics by Namespace. + text: helps['az sb topic list --resource-group myresourcegroup --namespace-name mynamespace'] + + """ + +helps['sb topic delete'] = """ + type: command + short-summary: Deletes the Topic + examples: + - name: Deletes the topic + text: helps['az sb topic delete --resource-group myresourcegroup --namespace-name mynamespace --name {topicname}'] + + """ + +helps['sb topic authorizationrule create'] = """ + type: command + short-summary: Creates Authorization rule for the given Topic + examples: + - name: Creates Authorization rules + text: helps['az sb topic authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} --name myauthorule --access-rights [Send, Listen]'] + + """ + +helps['sb topic authorizationrule show'] = """ + type: command + short-summary: Shows the details of AuthorizatioRule + examples: + - name: Shows the details of AuthorizatioRule + text: helps['az sb topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} + --name myauthorule'] + + """ + +helps['sb topic authorizationrule list'] = """ + type: command + short-summary: Gets the list of AuthorizatioRule by Topic + examples: + - name: Gets the list of AuthorizatioRule by Topic + text: helps['az sb topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname}'] + + """ + +helps['sb topic authorizationrule list-keys'] = """ + type: command + short-summary: shows the connectionstrings of AuthorizatioRule for the Topic. + examples: + - name: Gets the connectionstrings of AuthorizatioRule for the topic. + text: helps['az sb topic authorizationrule listkeys --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} + --name myauthorule'] + + """ + +helps['sb topic authorizationrule regenerate-keys'] = """ + type: command + short-summary: Regenerate the connectionstrings of AuthorizatioRule for the Topic. + examples: + - name: Regenerate the connectionstrings of AuthorizatioRule for the Topic. + text: helps['az sb topic authorizationrule regenerate_keys --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} + --name myauthorule --regeneratekey PrimaryKey'] + + """ + +helps['sb topic authorizationrule delete'] = """ + type: command + short-summary: Deletes the AuthorizatioRule of the Topic. + examples: + - name: Deletes the AuthorizatioRule of the topic + text: helps['az sb topic authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} + --name myauthorule'] + + """ +helps['sb subscription create'] = """ + type: command + short-summary: Creates the ServiceBus Subscription + examples: + - name: Create a new Subscription. + text: helps['az sb subscription create --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} --name {subscriptionname}'] + + """ + +helps['sb subscription show'] = """ + type: command + short-summary: Shows the Subscription Details + examples: + - name: Shows the Subscription details. + text: helps['az sb subscription get --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} --name {subscriptionname}'] + + """ + +helps['sb subscription list'] = """ + type: command + short-summary: List the Subscription by Topic + examples: + - name: Shows the Subscription by Topic. + text: helps['az sb subscription list --resource-group myresourcegroup --namespace-name mynamespace'] + + """ + +helps['sb subscription delete'] = """ + type: command + short-summary: Deletes the Subscription + examples: + - name: Deletes the Subscription + text: helps['az sb subscription delete --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} --name {subscriptionname}'] + + """ + +helps['sb rule create'] = """ + type: command + short-summary: Creates the ServiceBus Rule for Subscription + examples: + - name: Create a new Rule. + text: helps['az sb rule create --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} + --subscription-name {subscriptionname} --name {rulename} --filter-sql-expression {sqlexpression}'] + + """ + +helps['sb rule show'] = """ + type: command + short-summary: Shows the Rule Details + examples: + - name: Shows the Rule details. + text: helps['az sb rule show --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} + --subscription-name {subscriptionname} --name {rulename}'] + + """ + +helps['sb rule list'] = """ + type: command + short-summary: List the Rule by Subscription + examples: + - name: Shows the Rule by Subscription. + text: helps['az sb rule list --resource-group myresourcegroup --namespace-name mynamespace + --subscription-name {subscriptionname}'] + + """ + +helps['sb rule delete'] = """ + type: command + short-summary: Deletes the Rule + examples: + - name: Deletes the Rule + text: helps['az sb rule delete --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} + --subscription-name {subscriptionname} --name {rulename}'] + + """ + +helps['sb alias check_name_availability'] = """ + type: command + short-summary: Check the availability of the Alias (Geo DR Configuration) Name + examples: + - name: Check the availability of the Alias (Geo DR Configuration) Name + text: helps['az sb alias check_name_availability --resource-group myresourcegroup --namespace-name primarynamespace + --alias myaliasname'] + + """ + +helps['sb alias create'] = """ + type: command + short-summary: Creats Alias (Geo DR Configuration) for the give Namespace + examples: + - name: Creats Alias (Geo DR Configuration) for the give Namespace + text: helps['az sb alias create --resource-group myresourcegroup --namespace-name primarynamespace + --alias myaliasname --partner-namespace {id}'] + + """ + +helps['sb alias show'] = """ + type: command + short-summary: shows details of Alias (Geo DR Configuration) for Primay/Secondary Namespace + examples: + - name: show details of Alias (Geo DR Configuration) of the Primary Namespace + text: helps['az sb alias show --resource-group myresourcegroup --namespace-name primarynamespace + --alias myaliasname'] + - name: Get details of Alias (Geo DR Configuration) of the Secondary Namespace + text: helps['az sb alias show --resource-group myresourcegroup --namespace-name secondarynamespace + --alias myaliasname'] + + """ + +helps['sb alias break-pairing'] = """ + type: command + short-summary: Disables the Disaster Recovery 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: helps['az sb alias break-pairing --resource-group myresourcegroup --namespace-name primarynamespace + --alias myaliasname'] + + """ + +helps['sb alias fail-over'] = """ + type: command + short-summary: Envokes GEO DR failover and reconfigure the alias to point to the secondary namespace + examples: + - name: Envokes GEO DR failover and reconfigure the alias to point to the secondary namespace + text: helps['az sb alias fail-over --resource-group myresourcegroup --namespace-name secondarynamespace + --alias myaliasname'] + + """ + +helps['sb alias delete'] = """ + type: command + short-summary: Delete Alias(Disaster Recovery configuration) request accepted + examples: + - name: Delete Alias(Disaster Recovery configuration) request accepted + text: helps['az sb 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 new file mode 100644 index 00000000000..06bbdea94b8 --- /dev/null +++ b/src/servicebus/azext_servicebus/_params.py @@ -0,0 +1,357 @@ +# -------------------------------------------------------------------------------------------- +# 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('sb namespace check-name-availability') as c: + c.argument('namespace_name', options_list=['--name'], help='name of the Namespace') + + with self.argument_context('sb namespace create') as c: + c.argument('resource_group_name', arg_type=resource_group_name_type) + c.argument('namespace_name', options_list=['--name'], 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 ['sb namespace show', 'sb namespace delete']: + with self.argument_context(scope) as c: + c.argument('resource_group_name', arg_type=resource_group_name_type) + c.argument('namespace_name', options_list=['--name', '-n'], help='name of the Namespace') + + with self.argument_context('sb namespace list') as c: + c.argument('resource_group_name', arg_type=resource_group_name_type) + + # region Namespace Authorizationrule + with self.argument_context('sb namespace authorizationrule') 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') + c.argument('authorization_rule_name', options_list=['--name'], help='name of the Namespace AuthorizationRule') + + with self.argument_context('sb namespace authorizationrule create') as c: + c.argument('accessrights', options_list=['--access-rights'], + help='Authorization rule rights of type list, allowed values are Send, Listen or Manage') + + with self.argument_context('sb namespace authorizationrule regenerate-keys') as c: + c.argument('key_type', options_list=['--key-name'], arg_type=get_enum_type(['PrimaryKey', 'SecondaryKey'])) + + +def load_arguments_queue(self, _): + # region - Queue Create + with self.argument_context('sb queue create') as c: + c.argument('resource_group_name', arg_type=resource_group_name_type, required=True) + c.argument('namespace_name', options_list=['--namespace-name'], required=True, help='name of the Namespace') + c.argument('queue_name', options_list=['--name', '-n'], required=True, help='Queue Name') + 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 Get + for scope in ['sb queue show', 'sb queue delete']: + with self.argument_context(scope) 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') + c.argument('queue_name', options_list=['--name', '-n'], help='Queue Name') + + # region Queue Get + with self.argument_context('sb queue list') 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') + + # region Queue Authorizationrule + with self.argument_context('sb queue authorizationrule') as c: + c.argument('authorization_rule_name', options_list=['--name'], help='name of the Queue AuthorizationRule') + c.argument('namespace', options_list=['--namespace-name'], help='name of the Namespace') + c.argument('queuename', options_list=['--queue-name'], help='name of the Queue') + + with self.argument_context('sb queue authorizationrule create') as c: + c.argument('accessrights', options_list=['--access-rights'], help='Authorization rule rights of type list, allowed values are Send, Listen or Manage') + + with self.argument_context('sb queue authorizationrule regenerate-keys') as c: + c.argument('key_type', options_list=['--key-name'], arg_type=get_enum_type(['PrimaryKey', 'SecondaryKey'])) + + +# - Queue Region +def load_arguments_topic(self, _): + # region - Topic Create + with self.argument_context('sb topic create') as c: + c.argument('resource_group_name', arg_type=resource_group_name_type, required=True) + c.argument('namespace_name', options_list=['--namespace-name'], required=True, help='name of the Namespace') + c.argument('topic_name', options_list=['--name', '-n'], required=True, help='Topic Name') + 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 Get + for scope in ['sb topic show', 'sb topic delete']: + with self.argument_context(scope) 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') + c.argument('topic_name', options_list=['--name', '-n'], + help='Topic Name') + + with self.argument_context('sb topic list') as c: + c.argument('resource_group_name', arg_type=resource_group_name_type) + c.argument('namespace_name', options_list=['--namespace-name', '-n'], + help='name of the Namespace') + + # region Topic Authorizationrule + with self.argument_context('sb topic authorizationrule') as c: + c.argument('authorization_rule_name', options_list=['--name'], help='name of the Topic AuthorizationRule') + c.argument('namespace_name', options_list=['--namespace-name'], help='name of the Namespace') + c.argument('topic_name', options_list=['--topic-name'], help='name of the Topic') + + with self.argument_context('sb topic authorizationrule create') as c: + c.argument('accessrights', options_list=['--access-rights'], help='Authorization rule rights of type list, allowed values are Send, Listen or Manage') + + with self.argument_context('sb topic authorizationrule regenerate-keys') as c: + c.argument('key_type', options_list=['--key-name'], arg_type=get_enum_type(['PrimaryKey', 'SecondaryKey'])) + + +# Subscription Region +def load_arguments_subscription(self, _): + # region - Subscription Create + with self.argument_context('sb subscription create') 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') + c.argument('topic_name', options_list=['--topic-name'], help='Topic Name') + c.argument('subscription_name', options_list=['--name'], help='Subscription Name') + 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 Get + for scope in ['sb subscription show', 'sb subscription delete']: + with self.argument_context(scope) as c: + c.argument('namespacename', options_list=['--namespace-name'], help='name of the Namespace') + c.argument('topic_name', options_list=['--topic-name'], help='name of the Topic') + c.argument('subscription_name', options_list=['--name'], help='name of the Subscription of Topic') + + with self.argument_context('sb subscription list') as c: + c.argument('namespace_name', options_list=['--namespace-name'], help='name of the Namespace') + c.argument('topic_name', options_list=['--topic-name'], help='name of the Topic') + + +# ### Region Subscription Rules + + +# Rules Create + +def load_arguments_rule(self, _): + with self.argument_context('sb rule create') 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') + 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') + 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.') + + for scope in ['sb rule show', 'sb rule delete']: + with self.argument_context(scope) 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') + 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'], help='Rule Name') + + with self.argument_context('sb rules list') 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') + 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('sb alias check-name-availability') 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') + c.argument('name', options_list=['--name'], + help='Name of the Alias (Disaster Recovery) to check availability') + + with self.argument_context('sb alias create') 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') + 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 ['sb alias show', 'sb alias delete']: + with self.argument_context(scope) 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') + c.argument('alias', options_list=['--alias'], help='Name of the Alias (Disaster Recovery)') + + with self.argument_context('sb alias list') 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') + + for scope in ['sb alias break-pairing', 'sb alias fail_over', 'sb alias list-authorization-rules']: + with self.argument_context(scope)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') + c.argument('alias', options_list=['--alias'], + help='Name of the Alias (Disaster Recovery)') + + for scope in ['sb alias show-authorization-rule', 'sb alias list-keys']: + with self.argument_context(scope)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') + c.argument('alias', options_list=['--alias'], + help='Name of the Alias (Disaster Recovery)') + c.argument('authorization_rule_name', options_list=['--name'], + help='name of the Topic AuthorizationRule') diff --git a/src/servicebus/azext_servicebus/_utils.py b/src/servicebus/azext_servicebus/_utils.py new file mode 100644 index 00000000000..f02f76bfa36 --- /dev/null +++ b/src/servicebus/azext_servicebus/_utils.py @@ -0,0 +1,18 @@ +# -------------------------------------------------------------------------------------------- +# 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 new file mode 100644 index 00000000000..9aa958d78b2 --- /dev/null +++ b/src/servicebus/azext_servicebus/_validators.py @@ -0,0 +1,39 @@ +# -------------------------------------------------------------------------------------------- +# 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/commands.py b/src/servicebus/azext_servicebus/commands.py new file mode 100644 index 00000000000..cd3a332b2ba --- /dev/null +++ b/src/servicebus/azext_servicebus/commands.py @@ -0,0 +1,127 @@ +# -------------------------------------------------------------------------------------------- +# 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,) + + +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('sb namespace', sb_namespace_util, client_factory=namespaces_mgmt_client_factory) as g: + g.custom_command('create', 'cli_namespace_create') + g.command('show', 'get') + g.custom_command('list', 'cli_namespace_list') + g.command('delete', 'delete') + g.command('check-name-availability', 'check_name_availability_method') + + with self.command_group('sb 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') + g.command('list', 'list_authorization_rules') + g.command('list-keys', 'list_keys') + g.command('regenerate-keys', 'regenerate_keys') + g.command('delete', 'delete_authorization_rule') + +# Queue Region + with self.command_group('sb queue', sb_queue_util, client_factory=queues_mgmt_client_factory) as g: + g.custom_command('create', 'cli_sbqueue_create') + g.command('show', 'get') + g.command('list', 'list_by_namespace') + g.command('delete', 'delete') + + with self.command_group('sb 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') + g.command('list', 'list_authorization_rules') + g.command('list-keys', 'list_keys') + g.command('regenerate-keys', 'regenerate_keys') + g.command('delete', 'delete_authorization_rule') + +# Topic Region + with self.command_group('sb topic', sb_topic_util, client_factory=topics_mgmt_client_factory) as g: + g.custom_command('create', 'cli_sbtopic_create') + g.command('show', 'get') + g.command('list', 'list_by_namespace') + g.command('delete', 'delete') + + with self.command_group('sb 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') + g.command('list', 'list_authorization_rules') + g.command('list-keys', 'list_keys') + g.command('regenerate-keys', 'regenerate_keys') + g.command('delete', 'delete_authorization_rule') + +# Subscription Region + with self.command_group('sb subscription', sb_subscriptions_util, client_factory=subscriptions_mgmt_client_factory) as g: + g.custom_command('create', 'cli_sbsubscription_create') + g.command('show', 'get') + g.command('list', 'list_by_topic') + g.command('delete', 'delete') + +# Rules Region + with self.command_group('sb rule', sb_rule_util, client_factory=rules_mgmt_client_factory) as g: + g.custom_command('create', 'cli_rules_create') + g.command('show', 'get') + g.command('list', 'list_by_subscriptions') + g.command('delete', 'delete') + +# DisasterRecoveryConfigs Region + with self.command_group('sb alias', sb_geodr_util, client_factory=disaster_recovery_mgmt_client_factory) as g: + g.command('create', 'create_or_update') + g.command('show', 'get') + g.command('list', 'list') + g.command('break-pairing', 'break_pairing') + g.command('fail-over', 'fail_over') + g.command('check-name-availability', 'check_name_availability_method') + g.command('list-authorization_rules', 'list_authorization_rules') + g.command('show-authorization-rule', 'get_authorization_rule') + g.command('list-keys', 'list_keys') + g.command('delete', 'delete') diff --git a/src/servicebus/azext_servicebus/custom.py b/src/servicebus/azext_servicebus/custom.py new file mode 100644 index 00000000000..c28c8788c37 --- /dev/null +++ b/src/servicebus/azext_servicebus/custom.py @@ -0,0 +1,166 @@ +# -------------------------------------------------------------------------------------------- +# 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) + +from knack.util import CLIError + + +# 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, namespace_name=None): + cmd_result = None + if resource_group_name and namespace_name: + cmd_result = client.get(resource_group_name, namespace_name) + + if resource_group_name and not namespace_name: + cmd_result = client.list_by_resource_group(resource_group_name, namespace_name) + + if not resource_group_name and not namespace_name: + cmd_result = client.list(resource_group_name, namespace_name) + + if not cmd_result: + raise CLIError('--resource-group name required when namespace name is provided') + + 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) diff --git a/src/servicebus/azext_servicebus/servicebus/__init__.py b/src/servicebus/azext_servicebus/servicebus/__init__.py new file mode 100644 index 00000000000..7e81ffce33f --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/__init__.py @@ -0,0 +1,17 @@ +# 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 new file mode 100644 index 00000000000..b769252f8a1 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/__init__.py @@ -0,0 +1,116 @@ +# 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 new file mode 100644 index 00000000000..6165c5ce6d5 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/access_keys.py @@ -0,0 +1,70 @@ +# 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 new file mode 100644 index 00000000000..b65e94fb079 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/action.py @@ -0,0 +1,38 @@ +# 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 new file mode 100644 index 00000000000..9e722e9b375 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/arm_disaster_recovery.py @@ -0,0 +1,68 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class ArmDisasterRecovery(Resource): + """Single item in List or Get Alias(Disaster Recovery configuration) + operation. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Resource Id + :vartype id: str + :ivar name: Resource name + :vartype name: str + :ivar type: Resource type + :vartype type: str + :ivar provisioning_state: Provisioning state of the Alias(Disaster + Recovery configuration) - possible values 'Accepted' or 'Succeeded' or + 'Failed'. Possible values include: 'Accepted', 'Succeeded', 'Failed' + :vartype provisioning_state: str or + ~azure.mgmt.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 new file mode 100644 index 00000000000..819a0361825 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/arm_disaster_recovery_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class 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 new file mode 100644 index 00000000000..8c6139f558a --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/authorization_rule_properties.py @@ -0,0 +1,31 @@ +# 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 new file mode 100644 index 00000000000..15cd6938ed3 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/capture_description.py @@ -0,0 +1,56 @@ +# 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 new file mode 100644 index 00000000000..85499916b22 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/check_name_availability.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class 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 new file mode 100644 index 00000000000..e6243401297 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/check_name_availability_result.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class 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 new file mode 100644 index 00000000000..13f694e5a52 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/correlation_filter.py @@ -0,0 +1,60 @@ +# 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 new file mode 100644 index 00000000000..7bdacd2cb1a --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/destination.py @@ -0,0 +1,43 @@ +# 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 new file mode 100644 index 00000000000..6d818fd45e1 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/error_response.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +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 new file mode 100644 index 00000000000..0df85eb93eb --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/eventhub.py @@ -0,0 +1,81 @@ +# 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 new file mode 100644 index 00000000000..3de52d9d20e --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/eventhub_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class 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 new file mode 100644 index 00000000000..86ccbdf5d8d --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/message_count_details.py @@ -0,0 +1,58 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class 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 new file mode 100644 index 00000000000..8646086dff6 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/operation.py @@ -0,0 +1,38 @@ +# 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 new file mode 100644 index 00000000000..a0ca6fa0544 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/operation_display.py @@ -0,0 +1,45 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class 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 new file mode 100644 index 00000000000..aaa7a15b352 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/operation_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class 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 new file mode 100644 index 00000000000..3c57fe09f2f --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions.py @@ -0,0 +1,53 @@ +# 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 new file mode 100644 index 00000000000..4d57754d8fb --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class 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 new file mode 100644 index 00000000000..aa09312088a --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/premium_messaging_regions_properties.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class 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 new file mode 100644 index 00000000000..310c98901b0 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/regenerate_access_key_parameters.py @@ -0,0 +1,38 @@ +# 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 new file mode 100644 index 00000000000..3ceb6eac8a7 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/resource.py @@ -0,0 +1,44 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class 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 new file mode 100644 index 00000000000..053416e7196 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/resource_namespace_patch.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .resource import Resource + + +class 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 new file mode 100644 index 00000000000..7a439128611 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/rule.py @@ -0,0 +1,60 @@ +# 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 new file mode 100644 index 00000000000..1cfb1a4e836 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/rule_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class 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 new file mode 100644 index 00000000000..b94c5c4a0cb --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/sb_authorization_rule.py @@ -0,0 +1,47 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .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 new file mode 100644 index 00000000000..24c4f71b000 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/sb_authorization_rule_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class 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 new file mode 100644 index 00000000000..9af8bb55912 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/sb_namespace.py @@ -0,0 +1,79 @@ +# 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 new file mode 100644 index 00000000000..e0e77d8c605 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/sb_namespace_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class 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 new file mode 100644 index 00000000000..dd3fde4636d --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/sb_namespace_update_parameters.py @@ -0,0 +1,78 @@ +# 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 new file mode 100644 index 00000000000..97ef3c09de1 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/sb_queue.py @@ -0,0 +1,151 @@ +# 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 new file mode 100644 index 00000000000..f85adb4bb59 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/sb_queue_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class 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 new file mode 100644 index 00000000000..6410cd381f8 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/sb_sku.py @@ -0,0 +1,42 @@ +# 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 new file mode 100644 index 00000000000..dab0aff0ff0 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/sb_subscription.py @@ -0,0 +1,126 @@ +# 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 new file mode 100644 index 00000000000..019bb9524f9 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/sb_subscription_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class 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 new file mode 100644 index 00000000000..5f0b806bed3 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/sb_topic.py @@ -0,0 +1,129 @@ +# 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 new file mode 100644 index 00000000000..1a1330b1d9d --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/sb_topic_paged.py @@ -0,0 +1,27 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.paging import Paged + + +class 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 new file mode 100644 index 00000000000..52f86b7f900 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/service_bus_management_client_enums.py @@ -0,0 +1,88 @@ +# 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 new file mode 100644 index 00000000000..66b5ebac20f --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/sql_filter.py @@ -0,0 +1,46 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class 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 new file mode 100644 index 00000000000..0150ca05ae2 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/sql_rule_action.py @@ -0,0 +1,30 @@ +# 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 new file mode 100644 index 00000000000..192adcc84b2 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/models/tracked_resource.py @@ -0,0 +1,51 @@ +# 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 new file mode 100644 index 00000000000..a6b1de61646 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/operations/__init__.py @@ -0,0 +1,34 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from .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 new file mode 100644 index 00000000000..cd20cb71773 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/operations/disaster_recovery_configs_operations.py @@ -0,0 +1,697 @@ +# 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 new file mode 100644 index 00000000000..53434911990 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/operations/event_hubs_operations.py @@ -0,0 +1,107 @@ +# 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 new file mode 100644 index 00000000000..72abad2ce7f --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/operations/namespaces_operations.py @@ -0,0 +1,939 @@ +# 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 new file mode 100644 index 00000000000..9b98254ae1e --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/operations/operations.py @@ -0,0 +1,96 @@ +# 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 new file mode 100644 index 00000000000..61dba404096 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/operations/premium_messaging_regions_operations.py @@ -0,0 +1,100 @@ +# 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 new file mode 100644 index 00000000000..f46dfc10223 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/operations/queues_operations.py @@ -0,0 +1,718 @@ +# 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 new file mode 100644 index 00000000000..7719011387f --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/operations/regions_operations.py @@ -0,0 +1,103 @@ +# 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 new file mode 100644 index 00000000000..1027ec33b58 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/operations/rules_operations.py @@ -0,0 +1,321 @@ +# 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 new file mode 100644 index 00000000000..a2f607b62fe --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/operations/subscriptions_operations.py @@ -0,0 +1,310 @@ +# 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 new file mode 100644 index 00000000000..d9761363df8 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/operations/topics_operations.py @@ -0,0 +1,717 @@ +# 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 new file mode 100644 index 00000000000..8f6fb7cea88 --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/service_bus_management_client.py @@ -0,0 +1,130 @@ +# 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 new file mode 100644 index 00000000000..fb0159ed93d --- /dev/null +++ b/src/servicebus/azext_servicebus/servicebus/version.py @@ -0,0 +1,12 @@ +# 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 new file mode 100644 index 00000000000..34913fb394d --- /dev/null +++ b/src/servicebus/azext_servicebus/tests/__init__.py @@ -0,0 +1,4 @@ +# -------------------------------------------------------------------------------------------- +# 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 new file mode 100644 index 00000000000..81140786a07 --- /dev/null +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml @@ -0,0 +1,1325 @@ +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.24] + 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, 21 Dec 2017 17:24:13 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: [sb namespace check-name-availability] + 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.24] + 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, 21 Dec 2017 17:24: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: ['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: [sb 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.24] + 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":"2017-12-21T17:24:19.56Z","updatedAt":"2017-12-21T17:24:19.56Z","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, 21 Dec 2017 17:24: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: [sb 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.24] + 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":"2017-12-21T17:24:19.56Z","updatedAt":"2017-12-21T17:24:19.56Z","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, 21 Dec 2017 17:24: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: [sb 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.24] + 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":"2017-12-21T17:24:19.56Z","updatedAt":"2017-12-21T17:25:07.13Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + headers: + cache-control: [no-cache] + content-length: ['710'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:25: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: [sb 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.24] + 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":"2017-12-21T17:24:19.56Z","updatedAt":"2017-12-21T17:25:07.13Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + headers: + cache-control: [no-cache] + content-length: ['710'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:25: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: '{"location": "NorthCentralUS", "tags": {"{tag1: value1,": "", "tag2: value2}": + ""}, "sku": {"name": "Premium", "tier": "Premium"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:25:26.78Z","updatedAt":"2017-12-21T17:25:26.78Z","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, 21 Dec 2017 17:25: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: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:25:26.78Z","updatedAt":"2017-12-21T17:25:26.78Z","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, 21 Dec 2017 17: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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:25:26.78Z","updatedAt":"2017-12-21T17:26:19.18Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} + headers: + cache-control: [no-cache] + content-length: ['710'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:26: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: [sb 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.24] + 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":"2017-12-21T17:25:26.78Z","updatedAt":"2017-12-21T17:26:19.18Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} + headers: + cache-control: [no-cache] + content-length: ['710'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:26: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: '{"properties": {"rights": ["Send"]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:27: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: [sb 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.24] + 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, 21 Dec 2017 17:27: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: 'b''{"name": "cliAlias000005"}''' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb alias check-name-availability] + 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.24] + 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, 21 Dec 2017 17:27: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: '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: [sb 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.24] + 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, 21 Dec 2017 17:27: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: ['1198'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:27: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: [sb 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.24] + 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, 21 Dec 2017 17:27: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: [sb 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.24] + 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, 21 Dec 2017 17:27: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: [sb 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.24] + 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, 21 Dec 2017 17:28: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: [sb 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.24] + 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, 21 Dec 2017 17:28: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: [sb 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.24] + 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, 21 Dec 2017 17:29: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: [sb 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.24] + 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, 21 Dec 2017 17:29: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: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb alias break-pairing] + 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.24] + 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, 21 Dec 2017 17:29: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] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:29: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: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17: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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17: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: [sb 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.24] + 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, 21 Dec 2017 17: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] + 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: [sb 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.24] + 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, 21 Dec 2017 17: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: [sb 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.24] + 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, 21 Dec 2017 17:31: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: [sb 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.24] + 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, 21 Dec 2017 17:32: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: [sb 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.24] + 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, 21 Dec 2017 17:32: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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17: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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:34: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: [sb 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.24] + 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, 21 Dec 2017 17:34: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: ['1198'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:34: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: [sb 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.24] + 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, 21 Dec 2017 17:34: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: [sb 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.24] + 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, 21 Dec 2017 17: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] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:35: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: [sb 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.24] + 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, 21 Dec 2017 17:35: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: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:36:13 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: [sb 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.24] + 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, 21 Dec 2017 17:36:41 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: [sb 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.24] + 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, 21 Dec 2017 17:37: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] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17: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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:37:49 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: [sb 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.24] + 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, 21 Dec 2017 17:38: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: [sb 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.24] + 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, 21 Dec 2017 17:38: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] + status: {code: 202, message: Accepted} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:39: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] + 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.24] + 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, 21 Dec 2017 17:39:23 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZBTElBUzNPVktLNEZXTDVFSlJZQTJLUlo1NzRHMnw1ODMzNTM3QjMyNzAxOThGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/latest/test_sb_namespace.yaml b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml new file mode 100644 index 00000000000..96607795e4d --- /dev/null +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml @@ -0,0 +1,513 @@ +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.24] + 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, 21 Dec 2017 17:39: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: [sb namespace check-name-availability] + 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.24] + 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, 21 Dec 2017 17:39: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: [sb 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.24] + 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":"2017-12-21T17:39:32.12Z","updatedAt":"2017-12-21T17:39:32.12Z","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, 21 Dec 2017 17:39: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: [sb 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.24] + 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":"2017-12-21T17:39:32.12Z","updatedAt":"2017-12-21T17:40:00.74Z","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, 21 Dec 2017 17:40: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: [sb 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.24] + 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":"2017-12-21T17:39:32.12Z","updatedAt":"2017-12-21T17:40:00.74Z","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, 21 Dec 2017 17:40: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: [sb 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.24] + 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_namespace2wikucfcmbvuggsc2ppty2dv2vwzscqbewalk7utdokze4oe4yko52/providers/Microsoft.ServiceBus/namespaces/sb-nscli2seqdw4o6cpq","name":"sb-nscli2seqdw4o6cpq","type":"Microsoft.ServiceBus/Namespaces","location":"North + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli2seqdw4o6cpq","createdAt":"2017-12-16T04:01:58.05Z","updatedAt":"2017-12-16T05:12:36.983Z","serviceBusEndpoint":"https://sb-nscli2seqdw4o6cpq.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_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":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespaceut5zqyzvptdw5hwkvesugbs6gyxh6ws5bsrmsbt7hee5khp2lgzlix/providers/Microsoft.ServiceBus/namespaces/sb-nsclisrwaze7yfrv3","name":"sb-nsclisrwaze7yfrv3","type":"Microsoft.ServiceBus/Namespaces","location":"North + Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclisrwaze7yfrv3","createdAt":"2017-12-16T17:28:36.46Z","updatedAt":"2017-12-16T18:40:44.037Z","serviceBusEndpoint":"https://sb-nsclisrwaze7yfrv3.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespacecoxqc6ek6xgxrgdqkgp73ho6sorba6ljkz5mvntqxg2nsbo5pl2fic/providers/Microsoft.ServiceBus/namespaces/sb-nsclioz2khnxxmb4j","name":"sb-nsclioz2khnxxmb4j","type":"Microsoft.ServiceBus/Namespaces","location":"South + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclioz2khnxxmb4j","createdAt":"2017-12-16T03:43:43.44Z","updatedAt":"2017-12-16T05:05:22.213Z","serviceBusEndpoint":"https://sb-nsclioz2khnxxmb4j.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_namespaceokquronxzujxantrhghxnhrv4354fym75veryp23fzp7pix7hba4ib/providers/Microsoft.ServiceBus/namespaces/sb-nscli76spyj2vzwvy","name":"sb-nscli76spyj2vzwvy","type":"Microsoft.ServiceBus/Namespaces","location":"North + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli76spyj2vzwvy","createdAt":"2017-12-16T17:09:08.33Z","updatedAt":"2017-12-16T17:21:20.247Z","serviceBusEndpoint":"https://sb-nscli76spyj2vzwvy.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespacegjlhejieresrpo6enemyd4ihktsmjhn4vofwwdkqjaxbro7ssr5qmp/providers/Microsoft.ServiceBus/namespaces/sb-nsclisooglao2gn6t","name":"sb-nsclisooglao2gn6t","type":"Microsoft.ServiceBus/Namespaces","location":"North + Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclisooglao2gn6t","createdAt":"2017-12-16T16:43:16.283Z","updatedAt":"2017-12-16T16:57:00.17Z","serviceBusEndpoint":"https://sb-nsclisooglao2gn6t.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":"2017-12-21T17:39:32.12Z","updatedAt":"2017-12-21T17:40:00.74Z","serviceBusEndpoint":"https://sb-nscli000002.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":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespacecoxqc6ek6xgxrgdqkgp73ho6sorba6ljkz5mvntqxg2nsbo5pl2fic/providers/Microsoft.ServiceBus/namespaces/sb-nscli37xlt4h435ro","name":"sb-nscli37xlt4h435ro","type":"Microsoft.ServiceBus/Namespaces","location":"North + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli37xlt4h435ro","createdAt":"2017-12-16T03:53:33.89Z","updatedAt":"2017-12-16T05:05:28.283Z","serviceBusEndpoint":"https://sb-nscli37xlt4h435ro.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: ['13552'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:40: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: [sb 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.24] + 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":"2017-12-21T17:39:32.12Z","updatedAt":"2017-12-21T17:40:00.74Z","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, 21 Dec 2017 17:40: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: '{"properties": {"rights": ["Send"]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:40: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: [sb 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.24] + 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, 21 Dec 2017 17:40: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: [sb 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.24] + 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, 21 Dec 2017 17:40: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: [sb namespace authorizationrule list-keys] + 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.24] + 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=zbeVkY7OOZgW8b4K2rH3iRG5J9zk1i2QGLsUSayOY5Q=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Lhy1KUoLpBHrCQzlYujOHT8QjnhJXSAFblL5MTVTGSQ=","primaryKey":"zbeVkY7OOZgW8b4K2rH3iRG5J9zk1i2QGLsUSayOY5Q=","secondaryKey":"Lhy1KUoLpBHrCQzlYujOHT8QjnhJXSAFblL5MTVTGSQ=","keyName":"cliAutho000003"}'} + headers: + cache-control: [no-cache] + content-length: ['536'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:40: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: [sb namespace authorizationrule regenerate-keys] + 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.24] + 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=iMGbbraWqEpghniYG+qkl5q4zrsMZmP3UDpszFbfz0s=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Lhy1KUoLpBHrCQzlYujOHT8QjnhJXSAFblL5MTVTGSQ=","primaryKey":"iMGbbraWqEpghniYG+qkl5q4zrsMZmP3UDpszFbfz0s=","secondaryKey":"Lhy1KUoLpBHrCQzlYujOHT8QjnhJXSAFblL5MTVTGSQ=","keyName":"cliAutho000003"}'} + headers: + cache-control: [no-cache] + content-length: ['536'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:40: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: '{"keyType": "SecondaryKey"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb namespace authorizationrule regenerate-keys] + 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.24] + 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=iMGbbraWqEpghniYG+qkl5q4zrsMZmP3UDpszFbfz0s=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=0iQ0Z8NtPVg2g2nY/j2JrZorQlWVCUmqpPrerXQABjw=","primaryKey":"iMGbbraWqEpghniYG+qkl5q4zrsMZmP3UDpszFbfz0s=","secondaryKey":"0iQ0Z8NtPVg2g2nY/j2JrZorQlWVCUmqpPrerXQABjw=","keyName":"cliAutho000003"}'} + headers: + cache-control: [no-cache] + content-length: ['536'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:41: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: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:41: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: [sb 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.24] + 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, 21 Dec 2017 17:41:41 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: [sb 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.24] + 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, 21 Dec 2017 17:42: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] + 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.24] + 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, 21 Dec 2017 17:42:17 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZOQU1FU1BBQ0VYV09JM1pGT0k2NDVLM1JDSUc0SnxBMjc0NkVCQUU2NEY3QjY3LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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 new file mode 100644 index 00000000000..f8740a98ca8 --- /dev/null +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml @@ -0,0 +1,493 @@ +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.24] + 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, 21 Dec 2017 17:42:19 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: [sb 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.24] + 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":"2017-12-21T17:42:21.283Z","updatedAt":"2017-12-21T17:42:21.283Z","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, 21 Dec 2017 17:42: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: [sb 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.24] + 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":"2017-12-21T17:42:21.283Z","updatedAt":"2017-12-21T17:42:43.617Z","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, 21 Dec 2017 17:42: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: [sb 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.24] + 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":"2017-12-21T17:42:21.283Z","updatedAt":"2017-12-21T17:42:43.617Z","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, 21 Dec 2017 17:42: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": {"autoDeleteOnIdle": "PT10M"}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:42:57.09Z","updatedAt":"2017-12-21T17:42:57.17Z","accessedAt":"0001-01-01T00:00:00"}}'} + headers: + cache-control: [no-cache] + content-length: ['1031'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:42: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: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:42:57.09Z","updatedAt":"2017-12-21T17:42:57.17Z","accessedAt":"0001-01-01T00:00:00Z"}}'} + headers: + cache-control: [no-cache] + content-length: ['1032'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:42: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: [sb 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.24] + 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":"2017-12-21T17:42:57.09Z","updatedAt":"2017-12-21T17:42:57.17Z","accessedAt":"0001-01-01T00:00:00Z"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['1044'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:43: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-inline-count: [''] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"rights": ["Listen"]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:43: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: [sb 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.24] + 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, 21 Dec 2017 17:43: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: [sb queue authorizationrule list-keys] + 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.24] + 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=hqcNKyeiL2T8Vj/kObgPiXC/0/E8pDB89uDksacy9+s=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=CTtU19EMNMPdCJbPWF9FneZ35NWfBnXxQqL2Mpq3Aoc=;EntityPath=sb-queuecli000004","primaryKey":"hqcNKyeiL2T8Vj/kObgPiXC/0/E8pDB89uDksacy9+s=","secondaryKey":"CTtU19EMNMPdCJbPWF9FneZ35NWfBnXxQqL2Mpq3Aoc=","keyName":"cliAutho000003"}'} + headers: + cache-control: [no-cache] + content-length: ['610'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:43: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: '{"keyType": "PrimaryKey"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb queue authorizationrule regenerate-keys] + 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.24] + 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=XtLVU427mKKWt4KLHVd/qLMhwVVV0dpzx9Ni5gT6GlM=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=CTtU19EMNMPdCJbPWF9FneZ35NWfBnXxQqL2Mpq3Aoc=;EntityPath=sb-queuecli000004","primaryKey":"XtLVU427mKKWt4KLHVd/qLMhwVVV0dpzx9Ni5gT6GlM=","secondaryKey":"CTtU19EMNMPdCJbPWF9FneZ35NWfBnXxQqL2Mpq3Aoc=","keyName":"cliAutho000003"}'} + headers: + cache-control: [no-cache] + content-length: ['610'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:43: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: ['1197'] + status: {code: 200, message: OK} +- request: + body: '{"keyType": "SecondaryKey"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb queue authorizationrule regenerate-keys] + 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.24] + 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=XtLVU427mKKWt4KLHVd/qLMhwVVV0dpzx9Ni5gT6GlM=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=teSICT76A4vOj7/4mP2p2cnRjlJ7L27XEQpOCIKCp6o=;EntityPath=sb-queuecli000004","primaryKey":"XtLVU427mKKWt4KLHVd/qLMhwVVV0dpzx9Ni5gT6GlM=","secondaryKey":"teSICT76A4vOj7/4mP2p2cnRjlJ7L27XEQpOCIKCp6o=","keyName":"cliAutho000003"}'} + headers: + cache-control: [no-cache] + content-length: ['610'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:43: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-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:43: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] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:43: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] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:43:14 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: [sb 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.24] + 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, 21 Dec 2017 17:43: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] + 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.24] + 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, 21 Dec 2017 17:43:49 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZRVUVVRTdXUVVYT1JTSzJHTkJNS0xEWk42T1dGMnw2MkNBNTdDQUVDNDRCRjQ0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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 new file mode 100644 index 00000000000..10dee0a50b3 --- /dev/null +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml @@ -0,0 +1,491 @@ +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.24] + 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, 21 Dec 2017 17:43:52 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: [sb 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.24] + 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":"2017-12-21T17:44:00.083Z","updatedAt":"2017-12-21T17:44:00.083Z","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, 21 Dec 2017 17:43: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: [sb 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.24] + 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":"2017-12-21T17:44:00.083Z","updatedAt":"2017-12-21T17:44:22.877Z","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, 21 Dec 2017 17:44:30 GMT'] + expires: ['-1'] + pragma: [no-cache] + server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] + server-sb: [Service-Bus-Resource-Provider/SN1] + strict-transport-security: [max-age=31536000; includeSubDomains] + transfer-encoding: [chunked] + vary: [Accept-Encoding] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:44:00.083Z","updatedAt":"2017-12-21T17:44:22.877Z","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, 21 Dec 2017 17: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] + status: {code: 200, message: OK} +- request: + body: '{}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:44:35.543Z","updatedAt":"2017-12-21T17:44:35.683Z","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, 21 Dec 2017 17: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: ['1198'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:44:35.543Z","updatedAt":"2017-12-21T17:44:35.683Z","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, 21 Dec 2017 17:44: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: '{}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:44:41.1783334Z","updatedAt":"2017-12-21T17:44:41.1783334Z","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, 21 Dec 2017 17:44: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: ['1197'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:44:40.7341376Z","updatedAt":"2017-12-21T17:44:40.7341376Z","accessedAt":"2017-12-21T17:44:40.7341376Z","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, 21 Dec 2017 17:44: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: '{"properties": {"action": {}, "sqlFilter": {"sqlExpression": "test=test"}, + "correlationFilter": {}}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:44: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: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:44: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: [sb 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.24] + 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, 21 Dec 2017 17:44: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] + x-ms-inline-count: [''] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:44: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] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:44: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] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:44: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] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:44:54 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: [sb 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.24] + 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, 21 Dec 2017 17:45: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: [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.24] + 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, 21 Dec 2017 17:45:30 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZSVUxFU1FKRlEzTkxEQUdTVDJZS1hSUk0yUkZDNnwyNkMxODY2MjhBNEI4ODI0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/latest/test_sb_subscription.yaml b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml new file mode 100644 index 00000000000..90d87352834 --- /dev/null +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml @@ -0,0 +1,403 @@ +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.24] + 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, 21 Dec 2017 17:45:29 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: [sb 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.24] + 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":"2017-12-21T17:45:36.693Z","updatedAt":"2017-12-21T17:45:36.693Z","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, 21 Dec 2017 17: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] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:45:36.693Z","updatedAt":"2017-12-21T17:46:00.36Z","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, 21 Dec 2017 17:46: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: [sb 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.24] + 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":"2017-12-21T17:45:36.693Z","updatedAt":"2017-12-21T17:46:00.36Z","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, 21 Dec 2017 17:46: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: [sb 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.24] + 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":"2017-12-21T17:46:11.81Z","updatedAt":"2017-12-21T17:46:11.92Z","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, 21 Dec 2017 17:46: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: [sb 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.24] + 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":"2017-12-21T17:46:11.81Z","updatedAt":"2017-12-21T17:46:11.92Z","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, 21 Dec 2017 17:46: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: '{}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:46:18.2007097Z","updatedAt":"2017-12-21T17:46:18.2007097Z","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, 21 Dec 2017 17:46: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] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:46:18.3150261Z","updatedAt":"2017-12-21T17:46:18.3150261Z","accessedAt":"2017-12-21T17:46:18.317Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + headers: + cache-control: [no-cache] + content-length: ['980'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:46: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: [sb 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.24] + 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":"2017-12-21T17:46:18.3150261Z","updatedAt":"2017-12-21T17:46:18.3150261Z","accessedAt":"2017-12-21T17:46:18.317Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}]}'} + headers: + cache-control: [no-cache] + content-length: ['992'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:46: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-inline-count: [''] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:46: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: [sb 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.24] + 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, 21 Dec 2017 17:46: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] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:46:25 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: [sb 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.24] + 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, 21 Dec 2017 17:47: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.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.24] + 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, 21 Dec 2017 17:47:00 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZTVUJTQ1JJUFRJT05VSkxFNFlYTk01MlBHSjQ1WXwyMURFMTZEQkJCRjk0NDJFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/latest/test_sb_topic.yaml b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml new file mode 100644 index 00000000000..f9221464a4c --- /dev/null +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml @@ -0,0 +1,440 @@ +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.24] + 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, 21 Dec 2017 17:47:01 GMT'] + expires: ['-1'] + pragma: [no-cache] + strict-transport-security: [max-age=31536000; includeSubDomains] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] + 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: [sb 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.24] + 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":"2017-12-21T17:47:06.573Z","updatedAt":"2017-12-21T17:47:06.573Z","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, 21 Dec 2017 17:47: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: ['1198'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:47:06.573Z","updatedAt":"2017-12-21T17:47:28.143Z","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, 21 Dec 2017 17:47: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: [sb 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.24] + 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":"2017-12-21T17:47:06.573Z","updatedAt":"2017-12-21T17:47:28.143Z","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, 21 Dec 2017 17:47: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: '{}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:47:42.137Z","updatedAt":"2017-12-21T17:47:42.183Z","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, 21 Dec 2017 17:47: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: ['1198'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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":"2017-12-21T17:47:42.137Z","updatedAt":"2017-12-21T17:47:42.183Z","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, 21 Dec 2017 17:47: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: [sb 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.24] + 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":"2017-12-21T17:47:42.137Z","updatedAt":"2017-12-21T17:47:42.183Z","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: ['1017'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:47: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-inline-count: [''] + status: {code: 200, message: OK} +- request: + body: '{"properties": {"rights": ["Send"]}}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:47: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: ['1198'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17: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] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb topic authorizationrule list-keys] + 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.24] + 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=vsDUvrpgssEzWOxGWrTN6xqZrBJmOn2emzUrNO7qacc=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=53ErnYyXZDbptWk/W6+Ev1t+3RY23ACXP/wSsEET+BM=;EntityPath=sb-topiccli000004","primaryKey":"vsDUvrpgssEzWOxGWrTN6xqZrBJmOn2emzUrNO7qacc=","secondaryKey":"53ErnYyXZDbptWk/W6+Ev1t+3RY23ACXP/wSsEET+BM=","keyName":"cliAutho000003"}'} + headers: + cache-control: [no-cache] + content-length: ['610'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:47: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: '{"keyType": "PrimaryKey"}' + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb topic authorizationrule regenerate-keys] + 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.24] + 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=+epLd2VCRyhxdF2f+oCCL+0fj970zxi61nSx7h6vtrg=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=53ErnYyXZDbptWk/W6+Ev1t+3RY23ACXP/wSsEET+BM=;EntityPath=sb-topiccli000004","primaryKey":"+epLd2VCRyhxdF2f+oCCL+0fj970zxi61nSx7h6vtrg=","secondaryKey":"53ErnYyXZDbptWk/W6+Ev1t+3RY23ACXP/wSsEET+BM=","keyName":"cliAutho000003"}'} + headers: + cache-control: [no-cache] + content-length: ['610'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:47: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: [sb topic authorizationrule regenerate-keys] + 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.24] + 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=+epLd2VCRyhxdF2f+oCCL+0fj970zxi61nSx7h6vtrg=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ZSommXHC70Z1QiUqFLZ3K0nNN744mw1OvKVpOIa+s0s=;EntityPath=sb-topiccli000004","primaryKey":"+epLd2VCRyhxdF2f+oCCL+0fj970zxi61nSx7h6vtrg=","secondaryKey":"ZSommXHC70Z1QiUqFLZ3K0nNN744mw1OvKVpOIa+s0s=","keyName":"cliAutho000003"}'} + headers: + cache-control: [no-cache] + content-length: ['610'] + content-type: [application/json; charset=utf-8] + date: ['Thu, 21 Dec 2017 17:47: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] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:47: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: ['1199'] + status: {code: 200, message: OK} +- request: + body: null + headers: + Accept: [application/json] + Accept-Encoding: ['gzip, deflate'] + CommandName: [sb 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.24] + 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, 21 Dec 2017 17:47: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: ['1199'] + 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.24] + 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, 21 Dec 2017 17:47:58 GMT'] + expires: ['-1'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZUT1BJQ1o0REkyRk82SVlVR1RQTlBRVllCREw3VnwwNzg2NUE0NDYxQjFFRDJELVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?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/test_servicebus_commands.py b/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py new file mode 100644 index 00000000000..14f6fa207c6 --- /dev/null +++ b/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py @@ -0,0 +1,495 @@ +# -------------------------------------------------------------------------------------------- +# 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 json +import time +from azext_servicebus.servicebus.models import ProvisioningStateDR + +from azure.cli.testsdk import ( + ScenarioTest, ResourceGroupPreparer) + +# 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('sb namespace check-name-availability --name {namespacename}', + checks=[self.check('nameAvailable', True)]) + + # Create Namespace + self.cmd('sb 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('sb namespace show --resource-group {rg} --name {namespacename}', + checks=[self.check('sku.name', self.kwargs['sku'])]) + + # Get Created Namespace list by subscription + listnamespaceresult = self.cmd('sb namespace list').output + self.assertGreater(len(listnamespaceresult), 0) + + # Get Created Namespace list by ResourceGroup + listnamespacebyresourcegroupresult = self.cmd('sb namespace list --resource-group {rg}').output + self.assertGreater(len(listnamespacebyresourcegroupresult), 0) + + # Create Authoriazation Rule + self.cmd('sb 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('sb namespace authorizationrule show --resource-group {rg} --namespace-name {namespacename}' + ' --name {authoname}', checks=[self.check('name', self.kwargs['authoname'])]) + + # Get Default Authorization Rule + self.cmd('sb namespace authorizationrule show --resource-group {rg} --namespace-name {namespacename}' + ' --name {defaultauthorizationrule}', + checks=[self.check('name', self.kwargs['defaultauthorizationrule'])]) + + # Get Authorization Rule Listkeys + self.cmd('sb namespace authorizationrule list-keys --resource-group {rg} --namespace-name {namespacename}' + ' --name {authoname}') + + # Regeneratekeys - Primary + self.cmd( + 'sb namespace authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename} --name {authoname} --key-name {primary}') + + # Regeneratekeys - Secondary + self.cmd('sb namespace authorizationrule regenerate-keys --resource-group {rg}' + ' --namespace-name {namespacename} --name {authoname} --key-name {secondary}') + + # Delete AuthorizationRule + self.cmd('sb namespace authorizationrule delete --resource-group {rg} --namespace-name {namespacename}' + ' --name {authoname}') + + # Delete Namespace list by ResourceGroup + self.cmd('sb 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('sb 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('sb namespace show --resource-group {rg} --name {namespacename}', + checks=[self.check('sku.name', self.kwargs['sku'])]) + + # Create Queue + self.cmd('sb 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('sb queue show --resource-group {rg} --namespace-name {namespacename} --name {queuename}', + checks=[self.check('name', self.kwargs['queuename'])]) + + # Queue List + self.cmd('sb queue list --resource-group {rg} --namespace-name {namespacename}') + + # Create Authoriazation Rule + self.cmd('sb 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('sb 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('sb queue authorizationrule list-keys --resource-group {rg} --namespace-name {namespacename}' + ' --queue-name {queuename} --name {authoname}') + + # Regeneratekeys - Primary + regenrateprimarykeyresult = self.cmd( + 'sb queue authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename} --queue-name {queuename} --name {authoname} --key-name {primary}') + self.assertIsNotNone(regenrateprimarykeyresult) + + # Regeneratekeys - Secondary + regenratesecondarykeyresult = self.cmd( + 'sb queue authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename}' + ' --queue-name {queuename} --name {authoname} --key-name {secondary}') + self.assertIsNotNone(regenratesecondarykeyresult) + + # Delete Queue AuthorizationRule + self.cmd('sb queue authorizationrule delete --resource-group {rg} --namespace-name {namespacename}' + ' --queue-name {queuename} --name {authoname}') + + # Delete Queue + self.cmd('sb queue delete --resource-group {rg} --namespace-name {namespacename} --name {queuename}') + + # Delete Namespace + self.cmd('sb 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( + 'sb 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('sb namespace show --resource-group {rg} --name {namespacename}', + checks=[self.check('sku.name', self.kwargs['sku'])]) + + # Create Topic + self.cmd( + 'sb topic create --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', + checks=[self.check('name', self.kwargs['topicname'])]) + + # Get Topic + self.cmd( + 'sb topic show --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', + checks=[self.check('name', self.kwargs['topicname'])]) + + # Topic List + self.cmd('sb topic list --resource-group {rg} --namespace-name {namespacename}') + + # Create Authoriazation Rule + self.cmd('sb 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( + 'sb 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( + 'sb topic authorizationrule list-keys --resource-group {rg} --namespace-name {namespacename}' + ' --topic-name {topicname} --name {authoname}') + + # Regeneratekeys - Primary + self.cmd( + 'sb topic authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename}' + ' --topic-name {topicname} --name {authoname} --key-name {primary}') + + # Regeneratekeys - Secondary + self.cmd( + 'sb topic authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {authoname} --key-name {secondary}') + + # Delete Topic AuthorizationRule + self.cmd( + 'sb topic authorizationrule delete --resource-group {rg} --namespace-name {namespacename}' + ' --topic-name {topicname} --name {authoname}') + + # Delete Topic + self.cmd('sb 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('sb 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('sb namespace show --resource-group {rg} --name {namespacename}', + checks=[self.check('sku.name', self.kwargs['sku'])]) + + # Create Topic + self.cmd('sb topic create --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', + checks=[self.check('name', self.kwargs['topicname'])]) + + # Get Topic + self.cmd('sb topic show --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', + checks=[self.check('name', self.kwargs['topicname'])]) + + # Create Subscription + self.cmd('sb 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('sb 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('sb subscription list --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname}') + + # Delete Subscription + self.cmd( + 'sb subscription delete --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {subscriptionname}') + + # Delete Topic + self.cmd('sb topic delete --resource-group {rg} --namespace-name {namespacename} --name {topicname}') + + # Delete Namespace + self.cmd('sb 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('sb 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('sb namespace show --resource-group {rg} --name {namespacename}', + checks=[self.check('sku.name', self.kwargs['sku'])]) + + # Create Topic + self.cmd('sb topic create --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', + checks=[self.check('name', self.kwargs['topicname'])]) + + # Get Topic + self.cmd('sb topic show --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', + checks=[self.check('name', self.kwargs['topicname'])]) + + # Create Subscription + self.cmd('sb 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('sb subscription show --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname}' + ' --name {subscriptionname}', checks=[self.check('name', self.kwargs['subscriptionname'])]) + + # Create Rules + self.cmd('sb 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('sb 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('sb rule list --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname}' + ' --subscription-name {subscriptionname}') + + # Delete create rule + self.cmd( + 'sb rule delete --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --subscription-name {subscriptionname} --name {rulename}') + + # Delete create Subscription + self.cmd( + 'sb subscription delete --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {subscriptionname}') + + # Delete Topic + self.cmd('sb topic delete --resource-group {rg} --namespace-name {namespacename} --name {topicname}') + + # Delete Namespace + self.cmd('sb 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('sb namespace check-name-availability --name {namespacenameprimary}', + checks=[self.check('nameAvailable', True)]) + + # Create Namespace - Primary + self.cmd('sb 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('sb namespace show --resource-group {rg} --name {namespacenameprimary}', + checks=[self.check('sku.name', self.kwargs['sku'])]) + + # Create Namespace - Secondary + self.cmd('sb 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('sb namespace show --resource-group {rg} --name {namespacenamesecondary}', + checks=[self.check('sku.name', self.kwargs['sku'])]).output + + # Create Authoriazation Rule + self.cmd('sb namespace authorizationrule create --resource-group {rg} --namespace-name {namespacenameprimary} --name {authoname} --access-rights {accessrights}', checks=[self.check('name', self.kwargs['authoname'])]) + + partnernamespaceid = json.loads(getnamespace2result)['id'] + self.kwargs.update({'id': partnernamespaceid}) + # Get Create Authorization Rule + self.cmd('sb namespace authorizationrule show --resource-group {rg} --namespace-name {namespacenameprimary}' + ' --name {authoname}', checks=[self.check('name', self.kwargs['authoname'])]) + + # CheckNameAvailability - Alias + + self.cmd('sb alias check-name-availability --resource-group {rg} --namespace-name {namespacenameprimary} --name {aliasname}', checks=[self.check('nameAvailable', True)]) + + # Create alias + self.cmd('sb alias create --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname} --partner-namespace {id}') + + # get alias - Primary + self.cmd('sb alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}') + + # get alias - Secondary + self.cmd('sb alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}') + + getaliasprimarynamespace = self.cmd( + 'sb alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + + # check for the Alias Provisioning succeeded + while json.loads(getaliasprimarynamespace)['provisioningState'] != ProvisioningStateDR.succeeded.value: + time.sleep(30) + getaliasprimarynamespace = self.cmd( + 'sb alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + + # Break Pairing + self.cmd('sb alias break-pairing --resource-group {rg} --namespace-name {namespacenameprimary}' + ' --alias {aliasname}') + + getaliasafterbreak = self.cmd( + 'sb alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + + # check for the Alias Provisioning succeeded + while json.loads(getaliasafterbreak)['provisioningState'] != ProvisioningStateDR.succeeded.value: + time.sleep(30) + getaliasafterbreak = self.cmd( + 'sb alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + + # Create alias + self.cmd('sb alias create --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}' + ' --partner-namespace {id}') + + getaliasaftercreate = self.cmd( + 'sb alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + + # check for the Alias Provisioning succeeded + while json.loads(getaliasaftercreate)['provisioningState'] != ProvisioningStateDR.succeeded.value: + time.sleep(30) + getaliasaftercreate = self.cmd( + 'sb alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + + # FailOver + self.cmd('sb alias fail-over --resource-group {rg} --namespace-name {namespacenamesecondary}' + ' --alias {aliasname}') + + getaliasafterfail = self.cmd( + 'sb alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}').output + + # check for the Alias Provisioning succeeded + while json.loads(getaliasafterfail)['provisioningState'] != ProvisioningStateDR.succeeded.value: + time.sleep(30) + getaliasafterfail = self.cmd( + 'sb alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}').output + + # Delete Alias + self.cmd('sb alias delete --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}') + + time.sleep(30) + + # Delete Namespace - primary + self.cmd('sb namespace delete --resource-group {rg} --name {namespacenameprimary}') + + # Delete Namespace - secondary + self.cmd('sb namespace delete --resource-group {rg} --name {namespacenamesecondary}') diff --git a/src/servicebus/setup.cfg b/src/servicebus/setup.cfg new file mode 100644 index 00000000000..3c6e79cf31d --- /dev/null +++ b/src/servicebus/setup.cfg @@ -0,0 +1,2 @@ +[bdist_wheel] +universal=1 diff --git a/src/servicebus/setup.py b/src/servicebus/setup.py new file mode 100644 index 00000000000..dce565f2e08 --- /dev/null +++ b/src/servicebus/setup.py @@ -0,0 +1,41 @@ +#!/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 servicebus 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(), + install_requires=DEPENDENCIES +) From 79e23690e7ceb51ef85891dcc43110947063e711 Mon Sep 17 00:00:00 2001 From: "Ajit Maruti Navasare (MINDTREE LIMITED)" Date: Tue, 9 Jan 2018 09:48:41 -0800 Subject: [PATCH 02/13] updated Codeowners --- .github/CODEOWNERS | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index b349363eb8a..5c44db92fca 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -3,3 +3,5 @@ /src/index.json @derekbekoe /src/image-copy/ @tamirkamara + +/src/servicebus/ @v-ajnava From 41be0293b9343546e5225330a7364de2170eaca8 Mon Sep 17 00:00:00 2001 From: "Ajit Maruti Navasare (MINDTREE LIMITED)" Date: Wed, 10 Jan 2018 09:40:31 -0800 Subject: [PATCH 03/13] changed sb to servicebus --- src/servicebus/azext_servicebus/_help.py | 186 +++++++------- src/servicebus/azext_servicebus/_params.py | 64 ++--- src/servicebus/azext_servicebus/commands.py | 18 +- src/servicebus/azext_servicebus/custom.py | 3 +- .../recordings/latest/test_sb_alias.yaml | 238 +++++++++--------- .../recordings/latest/test_sb_namespace.yaml | 140 +++++------ .../recordings/latest/test_sb_queue.yaml | 118 ++++----- .../recordings/latest/test_sb_rules.yaml | 108 ++++---- .../latest/test_sb_subscription.yaml | 90 +++---- .../recordings/latest/test_sb_topic.yaml | 92 +++---- .../tests/test_servicebus_commands.py | 176 +++++++------ 11 files changed, 616 insertions(+), 617 deletions(-) diff --git a/src/servicebus/azext_servicebus/_help.py b/src/servicebus/azext_servicebus/_help.py index c98cc265b6c..7fdd610b505 100644 --- a/src/servicebus/azext_servicebus/_help.py +++ b/src/servicebus/azext_servicebus/_help.py @@ -5,151 +5,151 @@ from knack.help_files import helps -helps['sb'] = """ +helps['servicebus'] = """ type: group short-summary: Manage Azure ServiceBus namespace, queue, topic, subscription, rule and alias (Disaster Recovery Configuration) """ -helps['sb namespace'] = """ +helps['servicebus namespace'] = """ type: group short-summary: Manage Azure ServiceBus namespace and authorization-rule """ -helps['sb queue'] = """ +helps['servicebus queue'] = """ type: group short-summary: Manage Azure ServiceBus queue and authorization-rule """ -helps['sb topic'] = """ +helps['servicebus topic'] = """ type: group short-summary: Manage Azure ServiceBus topic and authorization-rule """ -helps['sb subscription'] = """ +helps['servicebus subscription'] = """ type: group short-summary: Manage Azure ServiceBus Subscription """ -helps['sb rule'] = """ +helps['servicebus rule'] = """ type: group short-summary: Manage Azure ServiceBus rule """ -helps['sb alias'] = """ +helps['servicebus alias'] = """ type: group short-summary: Manage Azure ServiceBus Alias (Disaster Recovery Configuration) """ -helps['sb namespace check-name-availability'] = """ +helps['servicebus namespace check-name-availability'] = """ type: command short-summary: check for the availability of the given name for the Namespace examples: - name: Create a new topic. - text: az sb namespace check_name_availability --name mynamespace + text: az servicebus namespace check_name_availability --name mynamespace """ -helps['sb namespace create'] = """ +helps['servicebus namespace create'] = """ type: command short-summary: Creates the ServiceBus Namespace examples: - name: Create a new namespace. - text: helps['az sb namespace create --resource-group myresourcegroup --name mynamespace --location westus + text: helps['az servicebus namespace create --resource-group myresourcegroup --name mynamespace --location westus --tags ['tag1: value1', 'tag2: value2'] --sku-name Standard --sku-tier Standard'] """ -helps['sb namespace show'] = """ +helps['servicebus namespace show'] = """ type: command short-summary: shows the Namespace Details examples: - name: shows the Namespace details. - text: helps['az sb namespace show --resource-group myresourcegroup --name mynamespace'] + text: helps['az servicebus namespace show --resource-group myresourcegroup --name mynamespace'] """ -helps['sb namespace list'] = """ +helps['servicebus namespace list'] = """ type: command short-summary: List the Namespaces by ResourceGroup or By subscription examples: - name: Get the Namespaces by resource Group. - text: helps['az sb namespace list --resource-group myresourcegroup'] + text: helps['az servicebus namespace list --resource-group myresourcegroup'] - name: Get the Namespaces by Subscription. - text: helps['az sb namespace list'] + text: helps['az servicebus namespace list'] """ -helps['sb namespace delete'] = """ +helps['servicebus namespace delete'] = """ type: command short-summary: Deletes the Namespaces examples: - name: Deletes the Namespace - text: helps['az sb namespace delete --resource-group myresourcegroup --name mynamespace'] + text: helps['az servicebus namespace delete --resource-group myresourcegroup --name mynamespace'] """ -helps['sb namespace authorizationrule create'] = """ +helps['servicebus namespace authorizationrule create'] = """ type: command short-summary: Creates Authorization rule for the given Namespace examples: - name: Creates Authorization rules - text: helps['az sb namespace authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus namespace authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule --access-rights [Send, Listen]'] """ -helps['sb namespace authorizationrule get'] = """ +helps['servicebus namespace authorizationrule get'] = """ type: command short-summary: Shows the details of AuthorizatioRule examples: - name: Shows the details of AuthorizatioRule - text: helps['az sb namespace authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus namespace authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule'] """ -helps['sb namespace authorizationrule list'] = """ +helps['servicebus namespace authorizationrule list'] = """ type: command short-summary: Shows the list of AuthorizatioRule by Namespace examples: - name: Shows the list of AuthorizatioRule by Namespace - text: helps['az sb namespace authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace'] + text: helps['az servicebus namespace authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace'] """ -helps['sb namespace authorizationrule list-keys'] = """ +helps['servicebus namespace authorizationrule list-keys'] = """ type: command short-summary: Shows the connectionstrings of AuthorizatioRule for the namespace examples: - name: Shows the connectionstrings of AuthorizatioRule for the namespace. - text: helps['az sb namespace authorizationrule list-keys --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus namespace authorizationrule list-keys --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule'] """ -helps['sb namespace authorizationrule regenerate-keys'] = """ +helps['servicebus namespace authorizationrule regenerate-keys'] = """ type: command short-summary: Regenerate the connectionstrings of AuthorizatioRule for the namespace. examples: - name: Regenerate the connectionstrings of AuthorizatioRule for the namespace. - text: helps['az sb namespace authorizationrule regenerate-keys --resource-group myresourcegroup + text: helps['az servicebus namespace authorizationrule regenerate-keys --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule --key PrimaryKey'] """ -helps['sb namespace authorizationrule delete'] = """ +helps['servicebus namespace authorizationrule delete'] = """ type: command short-summary: Deletes the AuthorizatioRule of the namespace. examples: - name: Deletes the AuthorizatioRule of the namespace. - text: helps['az sb namespace authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus namespace authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule'] """ @@ -163,104 +163,104 @@ """ -helps['sb queue show'] = """ +helps['servicebus queue show'] = """ type: command short-summary: shows the Queue Details examples: - name: Shows the Queue details. - text: helps['az sb queue show --resource-group myresourcegroup --namespace-name mynamespace --name myqueue'] + text: helps['az servicebus queue show --resource-group myresourcegroup --namespace-name mynamespace --name myqueue'] """ -helps['sb queue list'] = """ +helps['servicebus queue list'] = """ type: command short-summary: List the Queueby Namepsace examples: - name: Get the Queues by Namespace. - text: helps['az sb queue list --resource-group myresourcegroup --namespace-name mynamespace'] + text: helps['az servicebus queue list --resource-group myresourcegroup --namespace-name mynamespace'] """ -helps['sb queue delete'] = """ +helps['servicebus queue delete'] = """ type: command short-summary: Deletes the Queue examples: - name: Deletes the queue - text: helps['az sb queue delete --resource-group myresourcegroup --namespace-name mynamespace --name myqueue'] + text: helps['az servicebus queue delete --resource-group myresourcegroup --namespace-name mynamespace --name myqueue'] """ -helps['sb queue authorizationrule create'] = """ +helps['servicebus queue authorizationrule create'] = """ type: command short-summary: Creates Authorization rule for the given Queue examples: - name: Creates Authorization rules - text: helps['az sb queue authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus queue authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace --queue-name myqueue --name myauthorule --access-rights [Listen]'] """ -helps['sb queue authorizationrule show'] = """ +helps['servicebus queue authorizationrule show'] = """ type: command short-summary: shows the details of AuthorizatioRule examples: - name: shows the details of AuthorizatioRule - text: helps['az sb queue authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus queue authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace --queue-name myqueue --name myauthorule'] """ -helps['sb queue authorizationrule list'] = """ +helps['servicebus queue authorizationrule list'] = """ type: command short-summary: shows the list of AuthorizatioRule by Queue examples: - name: shows the list of AuthorizatioRule by Queue - text: helps['az sb queue authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus queue authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace --queue-name myqueue'] """ -helps['sb queue authorizationrule list-keys'] = """ +helps['servicebus queue authorizationrule list-keys'] = """ type: command short-summary: Shows the connectionstrings of AuthorizatioRule for the Queue. examples: - name: Shows the connectionstrings of AuthorizatioRule for the queue. - text: helps['az sb queue authorizationrule list-keys --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus queue authorizationrule list-keys --resource-group myresourcegroup --namespace-name mynamespace --queue-name myqueue --name myauthorule'] """ -helps['sb queue authorizationrule regenerate-keys'] = """ +helps['servicebus queue authorizationrule regenerate-keys'] = """ type: command short-summary: Regenerate the connectionstrings of AuthorizatioRule for the namespace. examples: - name: Regenerate the connectionstrings of AuthorizatioRule for the namespace. - text: helps['az sb queue authorizationrule regenerate-keys --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus queue authorizationrule regenerate-keys --resource-group myresourcegroup --namespace-name mynamespace --queue-name myqueue --name myauthorule --key PrimaryKey'] """ -helps['sb queue authorizationrule delete'] = """ +helps['servicebus queue authorizationrule delete'] = """ type: command short-summary: Deletes the AuthorizatioRule of the Queue. examples: - name: Deletes the AuthorizatioRule of the queue. - text: helps['az sb queue authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus queue authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace --queue-name myqueue --name myauthorule'] """ -helps['sb topic create'] = """ +helps['servicebus topic create'] = """ type: command short-summary: Creates the ServiceBus Topic examples: - name: Create a new queue. - text: helps['az sb topic create --resource-group myresourcegroup --namespace-name mynamespace --name {topicname}'] + text: helps['az servicebus topic create --resource-group myresourcegroup --namespace-name mynamespace --name {topicname}'] """ @@ -273,142 +273,142 @@ """ -helps['sb topic list'] = """ +helps['servicebus topic list'] = """ type: command short-summary: List the Topic by Namepsace examples: - name: Get the Topics by Namespace. - text: helps['az sb topic list --resource-group myresourcegroup --namespace-name mynamespace'] + text: helps['az servicebus topic list --resource-group myresourcegroup --namespace-name mynamespace'] """ -helps['sb topic delete'] = """ +helps['servicebus topic delete'] = """ type: command short-summary: Deletes the Topic examples: - name: Deletes the topic - text: helps['az sb topic delete --resource-group myresourcegroup --namespace-name mynamespace --name {topicname}'] + text: helps['az servicebus topic delete --resource-group myresourcegroup --namespace-name mynamespace --name {topicname}'] """ -helps['sb topic authorizationrule create'] = """ +helps['servicebus topic authorizationrule create'] = """ type: command short-summary: Creates Authorization rule for the given Topic examples: - name: Creates Authorization rules - text: helps['az sb topic authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus topic authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --name myauthorule --access-rights [Send, Listen]'] """ -helps['sb topic authorizationrule show'] = """ +helps['servicebus topic authorizationrule show'] = """ type: command short-summary: Shows the details of AuthorizatioRule examples: - name: Shows the details of AuthorizatioRule - text: helps['az sb topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --name myauthorule'] """ -helps['sb topic authorizationrule list'] = """ +helps['servicebus topic authorizationrule list'] = """ type: command short-summary: Gets the list of AuthorizatioRule by Topic examples: - name: Gets the list of AuthorizatioRule by Topic - text: helps['az sb topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname}'] """ -helps['sb topic authorizationrule list-keys'] = """ +helps['servicebus topic authorizationrule list-keys'] = """ type: command short-summary: shows the connectionstrings of AuthorizatioRule for the Topic. examples: - name: Gets the connectionstrings of AuthorizatioRule for the topic. - text: helps['az sb topic authorizationrule listkeys --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus topic authorizationrule listkeys --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --name myauthorule'] """ -helps['sb topic authorizationrule regenerate-keys'] = """ +helps['servicebus topic authorizationrule regenerate-keys'] = """ type: command short-summary: Regenerate the connectionstrings of AuthorizatioRule for the Topic. examples: - name: Regenerate the connectionstrings of AuthorizatioRule for the Topic. - text: helps['az sb topic authorizationrule regenerate_keys --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus topic authorizationrule regenerate_keys --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --name myauthorule --regeneratekey PrimaryKey'] """ -helps['sb topic authorizationrule delete'] = """ +helps['servicebus topic authorizationrule delete'] = """ type: command short-summary: Deletes the AuthorizatioRule of the Topic. examples: - name: Deletes the AuthorizatioRule of the topic - text: helps['az sb topic authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus topic authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --name myauthorule'] """ -helps['sb subscription create'] = """ +helps['servicebus subscription create'] = """ type: command short-summary: Creates the ServiceBus Subscription examples: - name: Create a new Subscription. - text: helps['az sb subscription create --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus subscription create --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --name {subscriptionname}'] """ -helps['sb subscription show'] = """ +helps['servicebus subscription show'] = """ type: command short-summary: Shows the Subscription Details examples: - name: Shows the Subscription details. - text: helps['az sb subscription get --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus subscription get --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --name {subscriptionname}'] """ -helps['sb subscription list'] = """ +helps['servicebus subscription list'] = """ type: command short-summary: List the Subscription by Topic examples: - name: Shows the Subscription by Topic. - text: helps['az sb subscription list --resource-group myresourcegroup --namespace-name mynamespace'] + text: helps['az servicebus subscription list --resource-group myresourcegroup --namespace-name mynamespace'] """ -helps['sb subscription delete'] = """ +helps['servicebus subscription delete'] = """ type: command short-summary: Deletes the Subscription examples: - name: Deletes the Subscription - text: helps['az sb subscription delete --resource-group myresourcegroup --namespace-name mynamespace + text: helps['az servicebus subscription delete --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --name {subscriptionname}'] """ -helps['sb rule create'] = """ +helps['servicebus rule create'] = """ type: command short-summary: Creates the ServiceBus Rule for Subscription examples: - name: Create a new Rule. - text: helps['az sb rule create --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} + text: helps['az servicebus rule create --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --subscription-name {subscriptionname} --name {rulename} --filter-sql-expression {sqlexpression}'] """ -helps['sb rule show'] = """ +helps['servicebus rule show'] = """ type: command short-summary: Shows the Rule Details examples: - name: Shows the Rule details. - text: helps['az sb rule show --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} + text: helps['az servicebus rule show --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --subscription-name {subscriptionname} --name {rulename}'] """ @@ -423,75 +423,75 @@ """ -helps['sb rule delete'] = """ +helps['servicebus rule delete'] = """ type: command short-summary: Deletes the Rule examples: - name: Deletes the Rule - text: helps['az sb rule delete --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} + text: helps['az servicebus rule delete --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --subscription-name {subscriptionname} --name {rulename}'] """ -helps['sb alias check_name_availability'] = """ +helps['servicebus georecovery-alias check_name_availability'] = """ type: command short-summary: Check the availability of the Alias (Geo DR Configuration) Name examples: - name: Check the availability of the Alias (Geo DR Configuration) Name - text: helps['az sb alias check_name_availability --resource-group myresourcegroup --namespace-name primarynamespace + text: helps['az servicebus georecovery-alias check_name_availability --resource-group myresourcegroup --namespace-name primarynamespace --alias myaliasname'] """ -helps['sb alias create'] = """ +helps['servicebus georecovery-alias create'] = """ type: command short-summary: Creats Alias (Geo DR Configuration) for the give Namespace examples: - name: Creats Alias (Geo DR Configuration) for the give Namespace - text: helps['az sb alias create --resource-group myresourcegroup --namespace-name primarynamespace + text: helps['az servicebus georecovery-alias create --resource-group myresourcegroup --namespace-name primarynamespace --alias myaliasname --partner-namespace {id}'] """ -helps['sb alias show'] = """ +helps['servicebus georecovery-alias show'] = """ type: command short-summary: shows details of Alias (Geo DR Configuration) for Primay/Secondary Namespace examples: - name: show details of Alias (Geo DR Configuration) of the Primary Namespace - text: helps['az sb alias show --resource-group myresourcegroup --namespace-name primarynamespace + text: helps['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: helps['az sb alias show --resource-group myresourcegroup --namespace-name secondarynamespace + text: helps['az servicebus georecovery-alias show --resource-group myresourcegroup --namespace-name secondarynamespace --alias myaliasname'] """ -helps['sb alias break-pairing'] = """ +helps['servicebus georecovery-alias break-pairing'] = """ type: command short-summary: Disables the Disaster Recovery 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: helps['az sb alias break-pairing --resource-group myresourcegroup --namespace-name primarynamespace + text: helps['az servicebus georecovery-alias break-pairing --resource-group myresourcegroup --namespace-name primarynamespace --alias myaliasname'] """ -helps['sb alias fail-over'] = """ +helps['servicebus georecovery-alias fail-over'] = """ type: command short-summary: Envokes GEO DR failover and reconfigure the alias to point to the secondary namespace examples: - name: Envokes GEO DR failover and reconfigure the alias to point to the secondary namespace - text: helps['az sb alias fail-over --resource-group myresourcegroup --namespace-name secondarynamespace + text: helps['az servicebus georecovery-alias fail-over --resource-group myresourcegroup --namespace-name secondarynamespace --alias myaliasname'] """ -helps['sb alias delete'] = """ +helps['servicebus georecovery-alias delete'] = """ type: command short-summary: Delete Alias(Disaster Recovery configuration) request accepted examples: - name: Delete Alias(Disaster Recovery configuration) request accepted - text: helps['az sb alias delete --resource-group myresourcegroup --namespace-name secondarynamespace + text: helps['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 index 06bbdea94b8..32f57e3c6fe 100644 --- a/src/servicebus/azext_servicebus/_params.py +++ b/src/servicebus/azext_servicebus/_params.py @@ -11,10 +11,10 @@ # pylint: disable=line-too-long def load_arguments_namespace(self, _): - with self.argument_context('sb namespace check-name-availability') as c: + with self.argument_context('servicebus namespace check-name-availability') as c: c.argument('namespace_name', options_list=['--name'], help='name of the Namespace') - with self.argument_context('sb namespace create') as c: + with self.argument_context('servicebus namespace create') as c: c.argument('resource_group_name', arg_type=resource_group_name_type) c.argument('namespace_name', options_list=['--name'], help='name of the Namespace') c.argument('tags', options_list=['--tags', '-t'], arg_type=tags_type, help='tags for the namespace in ' @@ -25,31 +25,31 @@ def load_arguments_namespace(self, _): c.argument('capacity', options_list=['--capacity'], help='Capacity for Sku') # region Namespace Get - for scope in ['sb namespace show', 'sb namespace delete']: + for scope in ['servicebus namespace show', 'servicebus namespace delete']: with self.argument_context(scope) as c: c.argument('resource_group_name', arg_type=resource_group_name_type) c.argument('namespace_name', options_list=['--name', '-n'], help='name of the Namespace') - with self.argument_context('sb namespace list') as c: + with self.argument_context('servicebus namespace list') as c: c.argument('resource_group_name', arg_type=resource_group_name_type) # region Namespace Authorizationrule - with self.argument_context('sb namespace authorizationrule') as c: + with self.argument_context('servicebus namespace authorizationrule') 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') c.argument('authorization_rule_name', options_list=['--name'], help='name of the Namespace AuthorizationRule') - with self.argument_context('sb namespace authorizationrule create') as c: + with self.argument_context('servicebus namespace authorizationrule create') as c: c.argument('accessrights', options_list=['--access-rights'], help='Authorization rule rights of type list, allowed values are Send, Listen or Manage') - with self.argument_context('sb namespace authorizationrule regenerate-keys') as c: + with self.argument_context('servicebus namespace authorizationrule regenerate-keys') as c: c.argument('key_type', options_list=['--key-name'], arg_type=get_enum_type(['PrimaryKey', 'SecondaryKey'])) def load_arguments_queue(self, _): # region - Queue Create - with self.argument_context('sb queue create') as c: + with self.argument_context('servicebus queue create') as c: c.argument('resource_group_name', arg_type=resource_group_name_type, required=True) c.argument('namespace_name', options_list=['--namespace-name'], required=True, help='name of the Namespace') c.argument('queue_name', options_list=['--name', '-n'], required=True, help='Queue Name') @@ -104,34 +104,34 @@ def load_arguments_queue(self, _): ' Dead Letter message') # region Queue Get - for scope in ['sb queue show', 'sb queue delete']: + for scope in ['servicebus queue show', 'servicebus queue delete']: with self.argument_context(scope) 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') c.argument('queue_name', options_list=['--name', '-n'], help='Queue Name') # region Queue Get - with self.argument_context('sb queue list') as c: + with self.argument_context('servicebus queue list') 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') # region Queue Authorizationrule - with self.argument_context('sb queue authorizationrule') as c: + with self.argument_context('servicebus queue authorizationrule') as c: c.argument('authorization_rule_name', options_list=['--name'], help='name of the Queue AuthorizationRule') c.argument('namespace', options_list=['--namespace-name'], help='name of the Namespace') c.argument('queuename', options_list=['--queue-name'], help='name of the Queue') - with self.argument_context('sb queue authorizationrule create') as c: + with self.argument_context('servicebus queue authorizationrule create') as c: c.argument('accessrights', options_list=['--access-rights'], help='Authorization rule rights of type list, allowed values are Send, Listen or Manage') - with self.argument_context('sb queue authorizationrule regenerate-keys') as c: + with self.argument_context('servicebus queue authorizationrule regenerate-keys') as c: c.argument('key_type', options_list=['--key-name'], arg_type=get_enum_type(['PrimaryKey', 'SecondaryKey'])) -# - Queue Region +# - Topic Region def load_arguments_topic(self, _): # region - Topic Create - with self.argument_context('sb topic create') as c: + with self.argument_context('servicebus topic create') as c: c.argument('resource_group_name', arg_type=resource_group_name_type, required=True) c.argument('namespace_name', options_list=['--namespace-name'], required=True, help='name of the Namespace') c.argument('topic_name', options_list=['--name', '-n'], required=True, help='Topic Name') @@ -173,7 +173,7 @@ def load_arguments_topic(self, _): ' memory temporarily before writing it to persistent storage.') # region Topic Get - for scope in ['sb topic show', 'sb topic delete']: + for scope in ['servicebus topic show', 'servicebus topic delete']: with self.argument_context(scope) as c: c.argument('resource_group_name', arg_type=resource_group_name_type) c.argument('namespace_name', options_list=['--namespace-name'], @@ -181,28 +181,28 @@ def load_arguments_topic(self, _): c.argument('topic_name', options_list=['--name', '-n'], help='Topic Name') - with self.argument_context('sb topic list') as c: + with self.argument_context('servicebus topic list') as c: c.argument('resource_group_name', arg_type=resource_group_name_type) c.argument('namespace_name', options_list=['--namespace-name', '-n'], help='name of the Namespace') # region Topic Authorizationrule - with self.argument_context('sb topic authorizationrule') as c: + with self.argument_context('servicebus topic authorizationrule') as c: c.argument('authorization_rule_name', options_list=['--name'], help='name of the Topic AuthorizationRule') c.argument('namespace_name', options_list=['--namespace-name'], help='name of the Namespace') c.argument('topic_name', options_list=['--topic-name'], help='name of the Topic') - with self.argument_context('sb topic authorizationrule create') as c: + with self.argument_context('servicebus topic authorizationrule create') as c: c.argument('accessrights', options_list=['--access-rights'], help='Authorization rule rights of type list, allowed values are Send, Listen or Manage') - with self.argument_context('sb topic authorizationrule regenerate-keys') as c: + with self.argument_context('servicebus topic authorizationrule regenerate-keys') as c: c.argument('key_type', options_list=['--key-name'], arg_type=get_enum_type(['PrimaryKey', 'SecondaryKey'])) # Subscription Region def load_arguments_subscription(self, _): # region - Subscription Create - with self.argument_context('sb subscription create') as c: + with self.argument_context('servicebus subscription create') 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') c.argument('topic_name', options_list=['--topic-name'], help='Topic Name') @@ -242,13 +242,13 @@ def load_arguments_subscription(self, _): help='Queue/Topic name to forward the Dead Letter message') # region Subscription Get - for scope in ['sb subscription show', 'sb subscription delete']: + for scope in ['servicebus subscription show', 'servicebus subscription delete']: with self.argument_context(scope) as c: c.argument('namespacename', options_list=['--namespace-name'], help='name of the Namespace') c.argument('topic_name', options_list=['--topic-name'], help='name of the Topic') c.argument('subscription_name', options_list=['--name'], help='name of the Subscription of Topic') - with self.argument_context('sb subscription list') as c: + with self.argument_context('servicebus subscription list') as c: c.argument('namespace_name', options_list=['--namespace-name'], help='name of the Namespace') c.argument('topic_name', options_list=['--topic-name'], help='name of the Topic') @@ -259,7 +259,7 @@ def load_arguments_subscription(self, _): # Rules Create def load_arguments_rule(self, _): - with self.argument_context('sb rule create') as c: + with self.argument_context('servicebus rule create') 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') c.argument('topic_name', options_list=['--topic-name'], help='Topic Name') @@ -290,7 +290,7 @@ def load_arguments_rule(self, _): options_list=['--requires-preprocessing'], help='Value that indicates whether the rule action requires preprocessing.') - for scope in ['sb rule show', 'sb rule delete']: + for scope in ['servicebus rule show', 'servicebus rule delete']: with self.argument_context(scope) as c: c.argument('resource_group_name', arg_type=resource_group_name_type) c.argument('namespace_name', options_list=['--namespace-name'], @@ -300,7 +300,7 @@ def load_arguments_rule(self, _): help='Subscription Name') c.argument('rule_name', options_list=['--name'], help='Rule Name') - with self.argument_context('sb rules list') as c: + with self.argument_context('servicebus rules list') 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') @@ -312,13 +312,13 @@ def load_arguments_rule(self, _): # # # # Geo DR - Disaster Recovery Configs - Alias : Region def load_arguments_geodr(self, _): - with self.argument_context('sb alias check-name-availability') as c: + with self.argument_context('servicebus georecovery-alias check-name-availability') 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') c.argument('name', options_list=['--name'], help='Name of the Alias (Disaster Recovery) to check availability') - with self.argument_context('sb alias create') as c: + with self.argument_context('servicebus georecovery-alias create') 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') c.argument('alias', options_list=['--alias'], help='Name of the Alias (Disaster Recovery)') @@ -328,17 +328,17 @@ def load_arguments_geodr(self, _): 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 ['sb alias show', 'sb alias delete']: + for scope in ['servicebus georecovery-alias show', 'servicebus georecovery-alias delete']: with self.argument_context(scope) 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') c.argument('alias', options_list=['--alias'], help='Name of the Alias (Disaster Recovery)') - with self.argument_context('sb alias list') as c: + with self.argument_context('servicebus georecovery-alias list') 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') - for scope in ['sb alias break-pairing', 'sb alias fail_over', 'sb alias list-authorization-rules']: + for scope in ['servicebus georecovery-alias break-pairing', 'servicebus georecovery-alias fail_over', 'servicebus georecovery-alias list-authorization-rules']: with self.argument_context(scope)as c: c.argument('resource_group_name', arg_type=resource_group_name_type) c.argument('namespace_name', options_list=['--namespace-name'], @@ -346,7 +346,7 @@ def load_arguments_geodr(self, _): c.argument('alias', options_list=['--alias'], help='Name of the Alias (Disaster Recovery)') - for scope in ['sb alias show-authorization-rule', 'sb alias list-keys']: + for scope in ['servicebus georecovery-alias show-authorization-rule', 'servicebus georecovery-alias list-keys']: with self.argument_context(scope)as c: c.argument('resource_group_name', arg_type=resource_group_name_type) c.argument('namespace_name', options_list=['--namespace-name'], diff --git a/src/servicebus/azext_servicebus/commands.py b/src/servicebus/azext_servicebus/commands.py index cd3a332b2ba..fd74a1c35f5 100644 --- a/src/servicebus/azext_servicebus/commands.py +++ b/src/servicebus/azext_servicebus/commands.py @@ -54,14 +54,14 @@ def load_command_table(self, _): ) # Namespace Region - with self.command_group('sb namespace', sb_namespace_util, client_factory=namespaces_mgmt_client_factory) as g: + 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') g.custom_command('list', 'cli_namespace_list') g.command('delete', 'delete') g.command('check-name-availability', 'check_name_availability_method') - with self.command_group('sb namespace authorizationrule', sb_namespace_util, client_factory=namespaces_mgmt_client_factory) as g: + 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') g.command('list', 'list_authorization_rules') @@ -70,13 +70,13 @@ def load_command_table(self, _): g.command('delete', 'delete_authorization_rule') # Queue Region - with self.command_group('sb queue', sb_queue_util, client_factory=queues_mgmt_client_factory) as g: + 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') g.command('list', 'list_by_namespace') g.command('delete', 'delete') - with self.command_group('sb queue authorizationrule', sb_queue_util, client_factory=queues_mgmt_client_factory) as g: + 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') g.command('list', 'list_authorization_rules') @@ -85,13 +85,13 @@ def load_command_table(self, _): g.command('delete', 'delete_authorization_rule') # Topic Region - with self.command_group('sb topic', sb_topic_util, client_factory=topics_mgmt_client_factory) as g: + 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') g.command('list', 'list_by_namespace') g.command('delete', 'delete') - with self.command_group('sb topic authorizationrule', sb_topic_util, client_factory=topics_mgmt_client_factory) as g: + 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') g.command('list', 'list_authorization_rules') @@ -100,21 +100,21 @@ def load_command_table(self, _): g.command('delete', 'delete_authorization_rule') # Subscription Region - with self.command_group('sb subscription', sb_subscriptions_util, client_factory=subscriptions_mgmt_client_factory) as g: + 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') g.command('list', 'list_by_topic') g.command('delete', 'delete') # Rules Region - with self.command_group('sb rule', sb_rule_util, client_factory=rules_mgmt_client_factory) as g: + 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') g.command('list', 'list_by_subscriptions') g.command('delete', 'delete') # DisasterRecoveryConfigs Region - with self.command_group('sb alias', sb_geodr_util, client_factory=disaster_recovery_mgmt_client_factory) as g: + 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') g.command('list', 'list') diff --git a/src/servicebus/azext_servicebus/custom.py b/src/servicebus/azext_servicebus/custom.py index c28c8788c37..293af803520 100644 --- a/src/servicebus/azext_servicebus/custom.py +++ b/src/servicebus/azext_servicebus/custom.py @@ -6,11 +6,12 @@ # pylint: disable=line-too-long # pylint: disable=too-many-lines +from knack.util import CLIError + from azext_servicebus._utils import accessrights_converter from azext_servicebus.servicebus.models import (SBNamespace, SBSku, SBQueue, SBTopic, SBSubscription, Rule, Action, SqlFilter, CorrelationFilter, ArmDisasterRecovery) -from knack.util import CLIError # Namespace Region 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 index 81140786a07..d8b77a26b9b 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml @@ -20,18 +20,18 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:24:13 GMT'] + date: ['Wed, 10 Jan 2018 03:34:53 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 201, message: Created} - request: body: 'b''{"name": "sb-nscli000002"}''' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace check-name-availability] + CommandName: [servicebus namespace check-name-availability] Connection: [keep-alive] Content-Length: ['32'] Content-Type: [application/json; charset=utf-8] @@ -46,7 +46,7 @@ interactions: cache-control: [no-cache] content-length: ['53'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:24:14 GMT'] + date: ['Wed, 10 Jan 2018 03:34:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -54,7 +54,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: '{"location": "SouthCentralUS", "tags": {"{tag1: value1,": "", "tag2: value2}": @@ -62,7 +62,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + CommandName: [servicebus namespace create] Connection: [keep-alive] Content-Length: ['130'] Content-Type: [application/json; charset=utf-8] @@ -73,12 +73,12 @@ interactions: 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":"2017-12-21T17:24:19.56Z","updatedAt":"2017-12-21T17:24:19.56Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:34:56.037Z","updatedAt":"2018-01-10T03:34:56.037Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['712'] + content-length: ['714'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:24:20 GMT'] + date: ['Wed, 10 Jan 2018 03:34:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -86,14 +86,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + 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 @@ -103,12 +103,12 @@ interactions: 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":"2017-12-21T17:24:19.56Z","updatedAt":"2017-12-21T17:24:19.56Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:34:56.037Z","updatedAt":"2018-01-10T03:34:56.037Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['712'] + content-length: ['714'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:24:49 GMT'] + date: ['Wed, 10 Jan 2018 03:35:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -122,7 +122,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + 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 @@ -132,12 +132,12 @@ interactions: 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":"2017-12-21T17:24:19.56Z","updatedAt":"2017-12-21T17:25:07.13Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:34:56.037Z","updatedAt":"2018-01-10T03:35:39.12Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['710'] + content-length: ['711'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:25:20 GMT'] + date: ['Wed, 10 Jan 2018 03:35:58 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -151,7 +151,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace show] + 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 @@ -161,12 +161,12 @@ interactions: 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":"2017-12-21T17:24:19.56Z","updatedAt":"2017-12-21T17:25:07.13Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:34:56.037Z","updatedAt":"2018-01-10T03:35:39.12Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['710'] + content-length: ['711'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:25:26 GMT'] + date: ['Wed, 10 Jan 2018 03:36:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -181,7 +181,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + CommandName: [servicebus namespace create] Connection: [keep-alive] Content-Length: ['130'] Content-Type: [application/json; charset=utf-8] @@ -192,12 +192,12 @@ interactions: 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":"2017-12-21T17:25:26.78Z","updatedAt":"2017-12-21T17:25:26.78Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-10T03:36:00.627Z","updatedAt":"2018-01-10T03:36:00.627Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['712'] + content-length: ['714'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:25:26 GMT'] + date: ['Wed, 10 Jan 2018 03:36:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -205,14 +205,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + 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 @@ -222,12 +222,12 @@ interactions: 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":"2017-12-21T17:25:26.78Z","updatedAt":"2017-12-21T17:25:26.78Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-10T03:36:00.627Z","updatedAt":"2018-01-10T03:36:00.627Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['712'] + content-length: ['714'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:25:56 GMT'] + date: ['Wed, 10 Jan 2018 03:36:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -241,7 +241,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + 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 @@ -251,12 +251,12 @@ interactions: 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":"2017-12-21T17:25:26.78Z","updatedAt":"2017-12-21T17:26:19.18Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-10T03:36:00.627Z","updatedAt":"2018-01-10T03:36:46.497Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['710'] + content-length: ['712'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:26:27 GMT'] + date: ['Wed, 10 Jan 2018 03:37:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -270,7 +270,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace show] + 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 @@ -280,12 +280,12 @@ interactions: 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":"2017-12-21T17:25:26.78Z","updatedAt":"2017-12-21T17:26:19.18Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-10T03:36:00.627Z","updatedAt":"2018-01-10T03:36:46.497Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['710'] + content-length: ['712'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:26:29 GMT'] + date: ['Wed, 10 Jan 2018 03:37:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -299,7 +299,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace authorizationrule create] + CommandName: [servicebus namespace authorizationrule create] Connection: [keep-alive] Content-Length: ['36'] Content-Type: [application/json; charset=utf-8] @@ -315,7 +315,7 @@ interactions: cache-control: [no-cache] content-length: ['407'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:27:04 GMT'] + date: ['Wed, 10 Jan 2018 03:37:37 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -330,7 +330,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace authorizationrule show] + 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 @@ -345,7 +345,7 @@ interactions: cache-control: [no-cache] content-length: ['407'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:27:01 GMT'] + date: ['Wed, 10 Jan 2018 03:37:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -359,7 +359,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias check-name-availability] + CommandName: [servicebus georecovery-alias check-name-availability] Connection: [keep-alive] Content-Length: ['32'] Content-Type: [application/json; charset=utf-8] @@ -374,7 +374,7 @@ interactions: cache-control: [no-cache] content-length: ['38'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:27:08 GMT'] + date: ['Wed, 10 Jan 2018 03:37:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -382,14 +382,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] 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: [sb alias create] + CommandName: [servicebus georecovery-alias create] Connection: [keep-alive] Content-Length: ['245'] Content-Type: [application/json; charset=utf-8] @@ -404,7 +404,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:27:42 GMT'] + date: ['Wed, 10 Jan 2018 03:38:12 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -419,7 +419,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -433,7 +433,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:27:44 GMT'] + date: ['Wed, 10 Jan 2018 03:38:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -447,7 +447,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -461,7 +461,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:27:46 GMT'] + date: ['Wed, 10 Jan 2018 03:38:14 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -475,7 +475,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -489,7 +489,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:27:48 GMT'] + date: ['Wed, 10 Jan 2018 03:38:15 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -503,7 +503,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -517,7 +517,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:28:21 GMT'] + date: ['Wed, 10 Jan 2018 03:38:45 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -531,7 +531,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -545,7 +545,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:28:51 GMT'] + date: ['Wed, 10 Jan 2018 03:39:16 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -559,7 +559,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -573,7 +573,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:29:24 GMT'] + date: ['Wed, 10 Jan 2018 03:39:47 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -587,7 +587,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -601,7 +601,7 @@ interactions: cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:29:58 GMT'] + date: ['Wed, 10 Jan 2018 03:40:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -615,7 +615,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias break-pairing] + CommandName: [servicebus georecovery-alias break-pairing] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -629,20 +629,20 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:29:56 GMT'] + date: ['Wed, 10 Jan 2018 03:40: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'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -656,7 +656,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:29:58 GMT'] + date: ['Wed, 10 Jan 2018 03:40:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -670,7 +670,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -684,7 +684,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:30:30 GMT'] + date: ['Wed, 10 Jan 2018 03:40:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -698,7 +698,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -712,7 +712,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:31:02 GMT'] + date: ['Wed, 10 Jan 2018 03:41:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -726,7 +726,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -740,7 +740,7 @@ interactions: cache-control: [no-cache] content-length: ['483'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:31:35 GMT'] + date: ['Wed, 10 Jan 2018 03:41:52 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -754,7 +754,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias create] + CommandName: [servicebus georecovery-alias create] Connection: [keep-alive] Content-Length: ['245'] Content-Type: [application/json; charset=utf-8] @@ -769,7 +769,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:31:51 GMT'] + date: ['Wed, 10 Jan 2018 03:42:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -777,14 +777,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -798,7 +798,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:31:55 GMT'] + date: ['Wed, 10 Jan 2018 03:42:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -812,7 +812,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -826,7 +826,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:32:28 GMT'] + date: ['Wed, 10 Jan 2018 03:42:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -840,7 +840,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -854,7 +854,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:32:57 GMT'] + date: ['Wed, 10 Jan 2018 03:43:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -868,7 +868,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -882,7 +882,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:33:29 GMT'] + date: ['Wed, 10 Jan 2018 03:43:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -896,7 +896,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -910,7 +910,7 @@ interactions: cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:34:04 GMT'] + date: ['Wed, 10 Jan 2018 03:44:12 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -924,7 +924,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias fail-over] + CommandName: [servicebus georecovery-alias fail-over] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -938,20 +938,20 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:34:02 GMT'] + date: ['Wed, 10 Jan 2018 03:44: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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -965,7 +965,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:34:04 GMT'] + date: ['Wed, 10 Jan 2018 03:44:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -979,7 +979,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -993,7 +993,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:34:38 GMT'] + date: ['Wed, 10 Jan 2018 03:44:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1007,7 +1007,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -1021,7 +1021,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:35:08 GMT'] + date: ['Wed, 10 Jan 2018 03:45:14 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1035,7 +1035,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias show] + 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 @@ -1049,7 +1049,7 @@ interactions: cache-control: [no-cache] content-length: ['483'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:35:39 GMT'] + date: ['Wed, 10 Jan 2018 03:45:45 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1063,7 +1063,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb alias delete] + CommandName: [servicebus georecovery-alias delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -1077,7 +1077,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:35:42 GMT'] + date: ['Wed, 10 Jan 2018 03:45:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1090,7 +1090,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + CommandName: [servicebus namespace delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -1104,7 +1104,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:36:13 GMT'] + date: ['Wed, 10 Jan 2018 03:46:18 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] @@ -1118,7 +1118,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + 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 @@ -1131,7 +1131,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:36:41 GMT'] + date: ['Wed, 10 Jan 2018 03:46:49 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] @@ -1144,7 +1144,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + 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 @@ -1157,7 +1157,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:37:16 GMT'] + date: ['Wed, 10 Jan 2018 03:47:18 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] @@ -1170,7 +1170,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + 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 @@ -1183,7 +1183,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:37:44 GMT'] + date: ['Wed, 10 Jan 2018 03:47:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1195,7 +1195,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + CommandName: [servicebus namespace delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -1209,21 +1209,21 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:37:49 GMT'] + date: ['Wed, 10 Jan 2018 03:47: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'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + 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 @@ -1236,7 +1236,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:38:20 GMT'] + date: ['Wed, 10 Jan 2018 03:48: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] @@ -1249,7 +1249,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + 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 @@ -1262,7 +1262,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:38:53 GMT'] + date: ['Wed, 10 Jan 2018 03:48:55 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] @@ -1275,7 +1275,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + 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 @@ -1288,7 +1288,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:39:20 GMT'] + date: ['Wed, 10 Jan 2018 03:49:26 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1315,11 +1315,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:39:23 GMT'] + date: ['Wed, 10 Jan 2018 03:49:27 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZBTElBUzNPVktLNEZXTDVFSlJZQTJLUlo1NzRHMnw1ODMzNTM3QjMyNzAxOThGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZBTElBU1hLRVVKV002RkZYSExEQU42UkROWFo3SXxBMkIxNjcxODE5Nzg3ODkzLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] 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 index 96607795e4d..169afcfc4f1 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml @@ -20,18 +20,18 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:39:25 GMT'] + date: ['Wed, 10 Jan 2018 03:49:28 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 201, message: Created} - request: body: 'b''{"name": "sb-nscli000002"}''' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace check-name-availability] + CommandName: [servicebus namespace check-name-availability] Connection: [keep-alive] Content-Length: ['32'] Content-Type: [application/json; charset=utf-8] @@ -46,7 +46,7 @@ interactions: cache-control: [no-cache] content-length: ['53'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:39:27 GMT'] + date: ['Wed, 10 Jan 2018 03:49:29 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -62,7 +62,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + CommandName: [servicebus namespace create] Connection: [keep-alive] Content-Length: ['104'] Content-Type: [application/json; charset=utf-8] @@ -73,12 +73,12 @@ interactions: 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":"2017-12-21T17:39:32.12Z","updatedAt":"2017-12-21T17:39:32.12Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:49:30.243Z","updatedAt":"2018-01-10T03:49:30.243Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['675'] + content-length: ['677'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:39:31 GMT'] + date: ['Wed, 10 Jan 2018 03:49:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -86,14 +86,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + 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 @@ -103,12 +103,12 @@ interactions: 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":"2017-12-21T17:39:32.12Z","updatedAt":"2017-12-21T17:40:00.74Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:49:30.243Z","updatedAt":"2018-01-10T03:49:59.537Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['673'] + content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:40:00 GMT'] + date: ['Wed, 10 Jan 2018 03:50:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -122,7 +122,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace show] + 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 @@ -132,12 +132,12 @@ interactions: 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":"2017-12-21T17:39:32.12Z","updatedAt":"2017-12-21T17:40:00.74Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:49:30.243Z","updatedAt":"2018-01-10T03:49:59.537Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['673'] + content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:40:03 GMT'] + date: ['Wed, 10 Jan 2018 03:50:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -151,7 +151,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace list] + 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 @@ -160,33 +160,33 @@ interactions: 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_namespace2wikucfcmbvuggsc2ppty2dv2vwzscqbewalk7utdokze4oe4yko52/providers/Microsoft.ServiceBus/namespaces/sb-nscli2seqdw4o6cpq","name":"sb-nscli2seqdw4o6cpq","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli2seqdw4o6cpq","createdAt":"2017-12-16T04:01:58.05Z","updatedAt":"2017-12-16T05:12:36.983Z","serviceBusEndpoint":"https://sb-nscli2seqdw4o6cpq.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 + body: {string: '{"value":[{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespacegjlhejieresrpo6enemyd4ihktsmjhn4vofwwdkqjaxbro7ssr5qmp/providers/Microsoft.ServiceBus/namespaces/sb-nsclisooglao2gn6t","name":"sb-nsclisooglao2gn6t","type":"Microsoft.ServiceBus/Namespaces","location":"North + Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclisooglao2gn6t","createdAt":"2017-12-16T16:43:16.283Z","updatedAt":"2017-12-16T16:57:00.17Z","serviceBusEndpoint":"https://sb-nsclisooglao2gn6t.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":"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_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":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespaceut5zqyzvptdw5hwkvesugbs6gyxh6ws5bsrmsbt7hee5khp2lgzlix/providers/Microsoft.ServiceBus/namespaces/sb-nsclisrwaze7yfrv3","name":"sb-nsclisrwaze7yfrv3","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclisrwaze7yfrv3","createdAt":"2017-12-16T17:28:36.46Z","updatedAt":"2017-12-16T18:40:44.037Z","serviceBusEndpoint":"https://sb-nsclisrwaze7yfrv3.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespacecoxqc6ek6xgxrgdqkgp73ho6sorba6ljkz5mvntqxg2nsbo5pl2fic/providers/Microsoft.ServiceBus/namespaces/sb-nsclioz2khnxxmb4j","name":"sb-nsclioz2khnxxmb4j","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclioz2khnxxmb4j","createdAt":"2017-12-16T03:43:43.44Z","updatedAt":"2017-12-16T05:05:22.213Z","serviceBusEndpoint":"https://sb-nsclioz2khnxxmb4j.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_namespaceokquronxzujxantrhghxnhrv4354fym75veryp23fzp7pix7hba4ib/providers/Microsoft.ServiceBus/namespaces/sb-nscli76spyj2vzwvy","name":"sb-nscli76spyj2vzwvy","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli76spyj2vzwvy","createdAt":"2017-12-16T17:09:08.33Z","updatedAt":"2017-12-16T17:21:20.247Z","serviceBusEndpoint":"https://sb-nscli76spyj2vzwvy.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespacegjlhejieresrpo6enemyd4ihktsmjhn4vofwwdkqjaxbro7ssr5qmp/providers/Microsoft.ServiceBus/namespaces/sb-nsclisooglao2gn6t","name":"sb-nsclisooglao2gn6t","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclisooglao2gn6t","createdAt":"2017-12-16T16:43:16.283Z","updatedAt":"2017-12-16T16:57:00.17Z","serviceBusEndpoint":"https://sb-nsclisooglao2gn6t.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":"2017-12-21T17:39:32.12Z","updatedAt":"2017-12-21T17:40:00.74Z","serviceBusEndpoint":"https://sb-nscli000002.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":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespacecoxqc6ek6xgxrgdqkgp73ho6sorba6ljkz5mvntqxg2nsbo5pl2fic/providers/Microsoft.ServiceBus/namespaces/sb-nscli37xlt4h435ro","name":"sb-nscli37xlt4h435ro","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli37xlt4h435ro","createdAt":"2017-12-16T03:53:33.89Z","updatedAt":"2017-12-16T05:05:28.283Z","serviceBusEndpoint":"https://sb-nscli37xlt4h435ro.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"}}]}'} + 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":"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/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/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"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_aliasabkkbqxjz5cq6ok5unfar57hqiwwn35zjaugsrkky64bd4iaghl2f3jf6o/providers/Microsoft.ServiceBus/namespaces/sb-nsclitx7lxyb6ti3p","name":"sb-nsclitx7lxyb6ti3p","type":"Microsoft.ServiceBus/Namespaces","location":"North + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclitx7lxyb6ti3p","createdAt":"2018-01-10T02:58:13.167Z","updatedAt":"2018-01-10T03:02:50.013Z","serviceBusEndpoint":"https://sb-nsclitx7lxyb6ti3p.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-10T03:49:30.243Z","updatedAt":"2018-01-10T03:49:59.537Z","serviceBusEndpoint":"https://sb-nscli000002.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":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespacecoxqc6ek6xgxrgdqkgp73ho6sorba6ljkz5mvntqxg2nsbo5pl2fic/providers/Microsoft.ServiceBus/namespaces/sb-nscli37xlt4h435ro","name":"sb-nscli37xlt4h435ro","type":"Microsoft.ServiceBus/Namespaces","location":"North + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli37xlt4h435ro","createdAt":"2017-12-16T03:53:33.89Z","updatedAt":"2017-12-16T05:05:28.283Z","serviceBusEndpoint":"https://sb-nscli37xlt4h435ro.servicebus.windows.net:443/","status":"Active"}},{"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_namespaceokquronxzujxantrhghxnhrv4354fym75veryp23fzp7pix7hba4ib/providers/Microsoft.ServiceBus/namespaces/sb-nscli76spyj2vzwvy","name":"sb-nscli76spyj2vzwvy","type":"Microsoft.ServiceBus/Namespaces","location":"North + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli76spyj2vzwvy","createdAt":"2017-12-16T17:09:08.33Z","updatedAt":"2017-12-16T17:21:20.247Z","serviceBusEndpoint":"https://sb-nscli76spyj2vzwvy.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespaceut5zqyzvptdw5hwkvesugbs6gyxh6ws5bsrmsbt7hee5khp2lgzlix/providers/Microsoft.ServiceBus/namespaces/sb-nsclisrwaze7yfrv3","name":"sb-nsclisrwaze7yfrv3","type":"Microsoft.ServiceBus/Namespaces","location":"North + Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclisrwaze7yfrv3","createdAt":"2017-12-16T17:28:36.46Z","updatedAt":"2017-12-16T18:40:44.037Z","serviceBusEndpoint":"https://sb-nsclisrwaze7yfrv3.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/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":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_aliasabkkbqxjz5cq6ok5unfar57hqiwwn35zjaugsrkky64bd4iaghl2f3jf6o/providers/Microsoft.ServiceBus/namespaces/sb-nscli2ij7cuaslcpq","name":"sb-nscli2ij7cuaslcpq","type":"Microsoft.ServiceBus/Namespaces","location":"South + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli2ij7cuaslcpq","createdAt":"2018-01-10T02:57:07.753Z","updatedAt":"2018-01-10T03:02:59.09Z","serviceBusEndpoint":"https://sb-nscli2ij7cuaslcpq.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"}}]}'} headers: cache-control: [no-cache] - content-length: ['13552'] + content-length: ['13555'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:40:01 GMT'] + date: ['Wed, 10 Jan 2018 03:50:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -200,7 +200,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace list] + 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 @@ -210,12 +210,12 @@ interactions: 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":"2017-12-21T17:39:32.12Z","updatedAt":"2017-12-21T17:40:00.74Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}]}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:49:30.243Z","updatedAt":"2018-01-10T03:49:59.537Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}]}'} headers: cache-control: [no-cache] - content-length: ['685'] + content-length: ['687'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:40:08 GMT'] + date: ['Wed, 10 Jan 2018 03:50:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -229,7 +229,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace authorizationrule create] + CommandName: [servicebus namespace authorizationrule create] Connection: [keep-alive] Content-Length: ['36'] Content-Type: [application/json; charset=utf-8] @@ -245,7 +245,7 @@ interactions: cache-control: [no-cache] content-length: ['400'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:40:40 GMT'] + date: ['Wed, 10 Jan 2018 03:50:37 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -253,14 +253,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace authorizationrule show] + 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 @@ -275,7 +275,7 @@ interactions: cache-control: [no-cache] content-length: ['400'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:40:42 GMT'] + date: ['Wed, 10 Jan 2018 03:50:37 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -289,7 +289,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace authorizationrule show] + 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 @@ -304,7 +304,7 @@ interactions: cache-control: [no-cache] content-length: ['428'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:40:45 GMT'] + date: ['Wed, 10 Jan 2018 03:50:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -318,7 +318,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace authorizationrule list-keys] + CommandName: [servicebus namespace authorizationrule list-keys] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -328,12 +328,12 @@ interactions: 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=zbeVkY7OOZgW8b4K2rH3iRG5J9zk1i2QGLsUSayOY5Q=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Lhy1KUoLpBHrCQzlYujOHT8QjnhJXSAFblL5MTVTGSQ=","primaryKey":"zbeVkY7OOZgW8b4K2rH3iRG5J9zk1i2QGLsUSayOY5Q=","secondaryKey":"Lhy1KUoLpBHrCQzlYujOHT8QjnhJXSAFblL5MTVTGSQ=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=xIaisS6mMwG+PjoB6mjjSbz/urdlbOCFxvB1GnjBMn8=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=lEcNai6KnqiQzQTr/CGfsaDEUtP+xrh5lV0gmmniGMo=","primaryKey":"xIaisS6mMwG+PjoB6mjjSbz/urdlbOCFxvB1GnjBMn8=","secondaryKey":"lEcNai6KnqiQzQTr/CGfsaDEUtP+xrh5lV0gmmniGMo=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['536'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:40:44 GMT'] + date: ['Wed, 10 Jan 2018 03:50:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -348,7 +348,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace authorizationrule regenerate-keys] + CommandName: [servicebus namespace authorizationrule regenerate-keys] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json; charset=utf-8] @@ -358,12 +358,12 @@ interactions: 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=iMGbbraWqEpghniYG+qkl5q4zrsMZmP3UDpszFbfz0s=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Lhy1KUoLpBHrCQzlYujOHT8QjnhJXSAFblL5MTVTGSQ=","primaryKey":"iMGbbraWqEpghniYG+qkl5q4zrsMZmP3UDpszFbfz0s=","secondaryKey":"Lhy1KUoLpBHrCQzlYujOHT8QjnhJXSAFblL5MTVTGSQ=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Nhh7vLMINTYumC//nNTN0ilSzQ0isibmPUsVJ+5Jk8w=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=lEcNai6KnqiQzQTr/CGfsaDEUtP+xrh5lV0gmmniGMo=","primaryKey":"Nhh7vLMINTYumC//nNTN0ilSzQ0isibmPUsVJ+5Jk8w=","secondaryKey":"lEcNai6KnqiQzQTr/CGfsaDEUtP+xrh5lV0gmmniGMo=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['536'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:40:59 GMT'] + date: ['Wed, 10 Jan 2018 03:50:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -371,14 +371,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + 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: [sb namespace authorizationrule regenerate-keys] + CommandName: [servicebus namespace authorizationrule regenerate-keys] Connection: [keep-alive] Content-Length: ['27'] Content-Type: [application/json; charset=utf-8] @@ -388,12 +388,12 @@ interactions: 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=iMGbbraWqEpghniYG+qkl5q4zrsMZmP3UDpszFbfz0s=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=0iQ0Z8NtPVg2g2nY/j2JrZorQlWVCUmqpPrerXQABjw=","primaryKey":"iMGbbraWqEpghniYG+qkl5q4zrsMZmP3UDpszFbfz0s=","secondaryKey":"0iQ0Z8NtPVg2g2nY/j2JrZorQlWVCUmqpPrerXQABjw=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Nhh7vLMINTYumC//nNTN0ilSzQ0isibmPUsVJ+5Jk8w=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=spqvfy9+jLK+uEEuV5W5VmopGig67AakJ6yAszxMSRs=","primaryKey":"Nhh7vLMINTYumC//nNTN0ilSzQ0isibmPUsVJ+5Jk8w=","secondaryKey":"spqvfy9+jLK+uEEuV5W5VmopGig67AakJ6yAszxMSRs=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['536'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:41:22 GMT'] + date: ['Wed, 10 Jan 2018 03:51:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -401,14 +401,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace authorizationrule delete] + CommandName: [servicebus namespace authorizationrule delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -422,7 +422,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:41:38 GMT'] + date: ['Wed, 10 Jan 2018 03:51:29 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -435,7 +435,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + CommandName: [servicebus namespace delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -449,21 +449,21 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:41:41 GMT'] + date: ['Wed, 10 Jan 2018 03:51:31 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'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + 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 @@ -476,7 +476,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:42:12 GMT'] + date: ['Wed, 10 Jan 2018 03:52:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -503,11 +503,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:42:17 GMT'] + date: ['Wed, 10 Jan 2018 03:52:05 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZOQU1FU1BBQ0VYV09JM1pGT0k2NDVLM1JDSUc0SnxBMjc0NkVCQUU2NEY3QjY3LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZOQU1FU1BBQ0VSRUs0Qk9TTzc1S1VXNExEWERJQXxDQTdCMkUzRkUwMkY3RDZFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] 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 index f8740a98ca8..0e077091d14 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:42:19 GMT'] + date: ['Wed, 10 Jan 2018 03:52:07 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 201, message: Created} - request: body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": @@ -32,7 +32,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + CommandName: [servicebus namespace create] Connection: [keep-alive] Content-Length: ['125'] Content-Type: [application/json; charset=utf-8] @@ -43,12 +43,12 @@ interactions: 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":"2017-12-21T17:42:21.283Z","updatedAt":"2017-12-21T17:42:21.283Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:52:09.3Z","updatedAt":"2018-01-10T03:52:09.3Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['696'] + content-length: ['692'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:42:19 GMT'] + date: ['Wed, 10 Jan 2018 03:52:10 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,14 +56,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + 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 @@ -73,12 +73,12 @@ interactions: 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":"2017-12-21T17:42:21.283Z","updatedAt":"2017-12-21T17:42:43.617Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:52:09.3Z","updatedAt":"2018-01-10T03:52:35.073Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['694'] + content-length: ['692'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:42:53 GMT'] + date: ['Wed, 10 Jan 2018 03:52:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -92,7 +92,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace show] + 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 @@ -102,12 +102,12 @@ interactions: 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":"2017-12-21T17:42:21.283Z","updatedAt":"2017-12-21T17:42:43.617Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:52:09.3Z","updatedAt":"2018-01-10T03:52:35.073Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['694'] + content-length: ['692'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:42:53 GMT'] + date: ['Wed, 10 Jan 2018 03:52:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -121,7 +121,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb queue create] + CommandName: [servicebus queue create] Connection: [keep-alive] Content-Length: ['45'] Content-Type: [application/json; charset=utf-8] @@ -132,12 +132,12 @@ interactions: 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":"2017-12-21T17:42:57.09Z","updatedAt":"2017-12-21T17:42:57.17Z","accessedAt":"0001-01-01T00:00:00"}}'} + 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-10T03:52:47.99Z","updatedAt":"2018-01-10T03:52:48.087Z","accessedAt":"0001-01-01T00:00:00"}}'} headers: cache-control: [no-cache] - content-length: ['1031'] + content-length: ['1032'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:42:55 GMT'] + date: ['Wed, 10 Jan 2018 03:52:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -145,14 +145,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb queue show] + 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 @@ -162,12 +162,12 @@ interactions: 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":"2017-12-21T17:42:57.09Z","updatedAt":"2017-12-21T17:42:57.17Z","accessedAt":"0001-01-01T00:00:00Z"}}'} + 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-10T03:52:47.99Z","updatedAt":"2018-01-10T03:52:48.087Z","accessedAt":"0001-01-01T00:00:00Z"}}'} headers: cache-control: [no-cache] - content-length: ['1032'] + content-length: ['1033'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:42:55 GMT'] + date: ['Wed, 10 Jan 2018 03:52:50 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -181,7 +181,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb queue list] + 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 @@ -191,12 +191,12 @@ interactions: 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":"2017-12-21T17:42:57.09Z","updatedAt":"2017-12-21T17:42:57.17Z","accessedAt":"0001-01-01T00:00:00Z"}}]}'} + 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-10T03:52:47.99Z","updatedAt":"2018-01-10T03:52:48.087Z","accessedAt":"0001-01-01T00:00:00Z"}}]}'} headers: cache-control: [no-cache] - content-length: ['1044'] + content-length: ['1045'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:43:03 GMT'] + date: ['Wed, 10 Jan 2018 03:52:52 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -211,7 +211,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb queue authorizationrule create] + CommandName: [servicebus queue authorizationrule create] Connection: [keep-alive] Content-Length: ['38'] Content-Type: [application/json; charset=utf-8] @@ -227,7 +227,7 @@ interactions: cache-control: [no-cache] content-length: ['442'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:43:04 GMT'] + date: ['Wed, 10 Jan 2018 03:52:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -235,14 +235,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb queue authorizationrule show] + 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 @@ -257,7 +257,7 @@ interactions: cache-control: [no-cache] content-length: ['442'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:43:04 GMT'] + date: ['Wed, 10 Jan 2018 03:52:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -271,7 +271,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb queue authorizationrule list-keys] + CommandName: [servicebus queue authorizationrule list-keys] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -281,12 +281,12 @@ interactions: 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=hqcNKyeiL2T8Vj/kObgPiXC/0/E8pDB89uDksacy9+s=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=CTtU19EMNMPdCJbPWF9FneZ35NWfBnXxQqL2Mpq3Aoc=;EntityPath=sb-queuecli000004","primaryKey":"hqcNKyeiL2T8Vj/kObgPiXC/0/E8pDB89uDksacy9+s=","secondaryKey":"CTtU19EMNMPdCJbPWF9FneZ35NWfBnXxQqL2Mpq3Aoc=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=HEE2oBQ2K+dM/eSSEWQPMZ3JJ7WxrDBrlU1pcmHJLp0=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=1ZBgD8wprlPiuhtp6MqCnNWUtsHV4YGftQxHRCkxfW4=;EntityPath=sb-queuecli000004","primaryKey":"HEE2oBQ2K+dM/eSSEWQPMZ3JJ7WxrDBrlU1pcmHJLp0=","secondaryKey":"1ZBgD8wprlPiuhtp6MqCnNWUtsHV4YGftQxHRCkxfW4=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:43:08 GMT'] + date: ['Wed, 10 Jan 2018 03:52:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -294,14 +294,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + 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: [sb queue authorizationrule regenerate-keys] + CommandName: [servicebus queue authorizationrule regenerate-keys] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json; charset=utf-8] @@ -311,12 +311,12 @@ interactions: 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=XtLVU427mKKWt4KLHVd/qLMhwVVV0dpzx9Ni5gT6GlM=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=CTtU19EMNMPdCJbPWF9FneZ35NWfBnXxQqL2Mpq3Aoc=;EntityPath=sb-queuecli000004","primaryKey":"XtLVU427mKKWt4KLHVd/qLMhwVVV0dpzx9Ni5gT6GlM=","secondaryKey":"CTtU19EMNMPdCJbPWF9FneZ35NWfBnXxQqL2Mpq3Aoc=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=hm6ORjPfv4Bq14Te0AXXbUVPyTPylSuU5c5FcCuPK4M=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=1ZBgD8wprlPiuhtp6MqCnNWUtsHV4YGftQxHRCkxfW4=;EntityPath=sb-queuecli000004","primaryKey":"hm6ORjPfv4Bq14Te0AXXbUVPyTPylSuU5c5FcCuPK4M=","secondaryKey":"1ZBgD8wprlPiuhtp6MqCnNWUtsHV4YGftQxHRCkxfW4=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:43:10 GMT'] + date: ['Wed, 10 Jan 2018 03:52:58 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -324,14 +324,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: '{"keyType": "SecondaryKey"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb queue authorizationrule regenerate-keys] + CommandName: [servicebus queue authorizationrule regenerate-keys] Connection: [keep-alive] Content-Length: ['27'] Content-Type: [application/json; charset=utf-8] @@ -341,12 +341,12 @@ interactions: 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=XtLVU427mKKWt4KLHVd/qLMhwVVV0dpzx9Ni5gT6GlM=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=teSICT76A4vOj7/4mP2p2cnRjlJ7L27XEQpOCIKCp6o=;EntityPath=sb-queuecli000004","primaryKey":"XtLVU427mKKWt4KLHVd/qLMhwVVV0dpzx9Ni5gT6GlM=","secondaryKey":"teSICT76A4vOj7/4mP2p2cnRjlJ7L27XEQpOCIKCp6o=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=hm6ORjPfv4Bq14Te0AXXbUVPyTPylSuU5c5FcCuPK4M=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=6su+KkW29I9VXuqNFpk1HN2NviYfuIHZ/0CNAP1Q1CI=;EntityPath=sb-queuecli000004","primaryKey":"hm6ORjPfv4Bq14Te0AXXbUVPyTPylSuU5c5FcCuPK4M=","secondaryKey":"6su+KkW29I9VXuqNFpk1HN2NviYfuIHZ/0CNAP1Q1CI=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:43:07 GMT'] + date: ['Wed, 10 Jan 2018 03:53:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -354,14 +354,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb queue authorizationrule delete] + CommandName: [servicebus queue authorizationrule delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -375,20 +375,20 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:43:12 GMT'] + date: ['Wed, 10 Jan 2018 03:53: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'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb queue delete] + CommandName: [servicebus queue delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -402,20 +402,20 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:43:17 GMT'] + date: ['Wed, 10 Jan 2018 03:53: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + CommandName: [servicebus namespace delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -429,21 +429,21 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:43:14 GMT'] + date: ['Wed, 10 Jan 2018 03:53:06 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'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 202, message: Accepted} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + 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 @@ -456,7 +456,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:43:48 GMT'] + date: ['Wed, 10 Jan 2018 03:53:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -483,11 +483,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:43:49 GMT'] + date: ['Wed, 10 Jan 2018 03:53:39 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZRVUVVRTdXUVVYT1JTSzJHTkJNS0xEWk42T1dGMnw2MkNBNTdDQUVDNDRCRjQ0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZRVUVVRUdEUjQ2VjNUWjRHWkJRSkxLUU5DWUNKR3wzRDk4NjdDNjJFMzc4NkZDLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] 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 index 10dee0a50b3..1c1a4703620 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:43:52 GMT'] + date: ['Wed, 10 Jan 2018 03:53:46 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": @@ -32,7 +32,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + CommandName: [servicebus namespace create] Connection: [keep-alive] Content-Length: ['125'] Content-Type: [application/json; charset=utf-8] @@ -43,12 +43,12 @@ interactions: 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":"2017-12-21T17:44:00.083Z","updatedAt":"2017-12-21T17:44:00.083Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:53:48.56Z","updatedAt":"2018-01-10T03:53:48.56Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['696'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:43:58 GMT'] + date: ['Wed, 10 Jan 2018 03:53:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,14 +56,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + 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 @@ -73,12 +73,12 @@ interactions: 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":"2017-12-21T17:44:00.083Z","updatedAt":"2017-12-21T17:44:22.877Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:53:48.56Z","updatedAt":"2018-01-10T03:54:15.47Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['694'] + content-length: ['692'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:44:30 GMT'] + date: ['Wed, 10 Jan 2018 03:54:19 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -92,7 +92,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace show] + 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 @@ -102,12 +102,12 @@ interactions: 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":"2017-12-21T17:44:00.083Z","updatedAt":"2017-12-21T17:44:22.877Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:53:48.56Z","updatedAt":"2018-01-10T03:54:15.47Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['694'] + content-length: ['692'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:44:32 GMT'] + date: ['Wed, 10 Jan 2018 03:54:22 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -121,7 +121,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb topic create] + CommandName: [servicebus topic create] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json; charset=utf-8] @@ -132,12 +132,12 @@ interactions: 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":"2017-12-21T17:44:35.543Z","updatedAt":"2017-12-21T17:44:35.683Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-10T03:54:25.82Z","updatedAt":"2018-01-10T03:54:25.88Z","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-length: ['1002'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:44:35 GMT'] + date: ['Wed, 10 Jan 2018 03:54:26 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -145,14 +145,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb topic show] + 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 @@ -162,12 +162,12 @@ interactions: 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":"2017-12-21T17:44:35.543Z","updatedAt":"2017-12-21T17:44:35.683Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-10T03:54:25.82Z","updatedAt":"2018-01-10T03:54:25.88Z","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-length: ['1003'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:44:36 GMT'] + date: ['Wed, 10 Jan 2018 03:54:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -181,7 +181,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb subscription create] + CommandName: [servicebus subscription create] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json; charset=utf-8] @@ -192,12 +192,12 @@ interactions: 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":"2017-12-21T17:44:41.1783334Z","updatedAt":"2017-12-21T17:44:41.1783334Z","accessedAt":"0001-01-01T00:00:00","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-10T03:54:32.4379789Z","updatedAt":"2018-01-10T03:54:32.4379789Z","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, 21 Dec 2017 17:44:40 GMT'] + date: ['Wed, 10 Jan 2018 03:54:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -205,14 +205,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb subscription show] + 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 @@ -222,12 +222,12 @@ interactions: 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":"2017-12-21T17:44:40.7341376Z","updatedAt":"2017-12-21T17:44:40.7341376Z","accessedAt":"2017-12-21T17:44:40.7341376Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-10T03:54:32.4374069Z","updatedAt":"2018-01-10T03:54:32.4374069Z","accessedAt":"2018-01-10T03:54:32.4374069Z","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, 21 Dec 2017 17:44:40 GMT'] + date: ['Wed, 10 Jan 2018 03:54:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -242,7 +242,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb rule create] + CommandName: [servicebus rule create] Connection: [keep-alive] Content-Length: ['100'] Content-Type: [application/json; charset=utf-8] @@ -258,7 +258,7 @@ interactions: cache-control: [no-cache] content-length: ['563'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:44:45 GMT'] + date: ['Wed, 10 Jan 2018 03:54:37 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -266,14 +266,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb rule show] + 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 @@ -288,7 +288,7 @@ interactions: cache-control: [no-cache] content-length: ['579'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:44:43 GMT'] + date: ['Wed, 10 Jan 2018 03:54:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -302,7 +302,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb rule list] + 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 @@ -317,7 +317,7 @@ interactions: cache-control: [no-cache] content-length: ['591'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:44:49 GMT'] + date: ['Wed, 10 Jan 2018 03:54:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -332,7 +332,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb rule delete] + CommandName: [servicebus rule delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -346,7 +346,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:44:51 GMT'] + date: ['Wed, 10 Jan 2018 03:54:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -359,7 +359,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb subscription delete] + CommandName: [servicebus subscription delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -373,20 +373,20 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:44:53 GMT'] + date: ['Wed, 10 Jan 2018 03:54: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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb topic delete] + CommandName: [servicebus topic delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -400,20 +400,20 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:44:54 GMT'] + date: ['Wed, 10 Jan 2018 03:54: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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + CommandName: [servicebus namespace delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -427,21 +427,21 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:44:54 GMT'] + date: ['Wed, 10 Jan 2018 03:54:49 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'] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] status: {code: 202, message: Accepted} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + 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 @@ -454,7 +454,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:45:29 GMT'] + date: ['Wed, 10 Jan 2018 03:55:20 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -481,11 +481,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:45:30 GMT'] + date: ['Wed, 10 Jan 2018 03:55:22 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZSVUxFU1FKRlEzTkxEQUdTVDJZS1hSUk0yUkZDNnwyNkMxODY2MjhBNEI4ODI0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZSVUxFU1JQRlJINlNRQUZPQUtGMkhJWkU3TzJGVHw0MUM3OTE3Qzg3QUU3Q0I4LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + 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 index 90d87352834..ce087b499f2 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:45:29 GMT'] + date: ['Wed, 10 Jan 2018 03:55:24 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 201, message: Created} - request: body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": @@ -32,7 +32,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + CommandName: [servicebus namespace create] Connection: [keep-alive] Content-Length: ['125'] Content-Type: [application/json; charset=utf-8] @@ -43,12 +43,12 @@ interactions: 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":"2017-12-21T17:45:36.693Z","updatedAt":"2017-12-21T17:45:36.693Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:55:26.54Z","updatedAt":"2018-01-10T03:55:26.54Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['696'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:45:36 GMT'] + date: ['Wed, 10 Jan 2018 03:55:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,14 +56,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + 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 @@ -73,12 +73,12 @@ interactions: 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":"2017-12-21T17:45:36.693Z","updatedAt":"2017-12-21T17:46:00.36Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:55:26.54Z","updatedAt":"2018-01-10T03:55:52.927Z","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, 21 Dec 2017 17:46:06 GMT'] + date: ['Wed, 10 Jan 2018 03:55:58 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -92,7 +92,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace show] + 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 @@ -102,12 +102,12 @@ interactions: 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":"2017-12-21T17:45:36.693Z","updatedAt":"2017-12-21T17:46:00.36Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:55:26.54Z","updatedAt":"2018-01-10T03:55:52.927Z","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, 21 Dec 2017 17:46:07 GMT'] + date: ['Wed, 10 Jan 2018 03:56:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -121,7 +121,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb topic create] + CommandName: [servicebus topic create] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json; charset=utf-8] @@ -132,12 +132,12 @@ interactions: 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":"2017-12-21T17:46:11.81Z","updatedAt":"2017-12-21T17:46:11.92Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-10T03:56:03.46Z","updatedAt":"2018-01-10T03:56:03.52Z","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, 21 Dec 2017 17:46:10 GMT'] + date: ['Wed, 10 Jan 2018 03:56:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -152,7 +152,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb topic show] + 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 @@ -162,12 +162,12 @@ interactions: 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":"2017-12-21T17:46:11.81Z","updatedAt":"2017-12-21T17:46:11.92Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-10T03:56:03.46Z","updatedAt":"2018-01-10T03:56:03.52Z","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, 21 Dec 2017 17:46:16 GMT'] + date: ['Wed, 10 Jan 2018 03:56:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -181,7 +181,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb subscription create] + CommandName: [servicebus subscription create] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json; charset=utf-8] @@ -192,12 +192,12 @@ interactions: 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":"2017-12-21T17:46:18.2007097Z","updatedAt":"2017-12-21T17:46:18.2007097Z","accessedAt":"0001-01-01T00:00:00","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-10T03:56:09.9992548Z","updatedAt":"2018-01-10T03:56:09.9992548Z","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, 21 Dec 2017 17:46:16 GMT'] + date: ['Wed, 10 Jan 2018 03:56:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -205,14 +205,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb subscription show] + 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 @@ -222,12 +222,12 @@ interactions: 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":"2017-12-21T17:46:18.3150261Z","updatedAt":"2017-12-21T17:46:18.3150261Z","accessedAt":"2017-12-21T17:46:18.317Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-10T03:56:10.4294214Z","updatedAt":"2018-01-10T03:56:10.4294214Z","accessedAt":"2018-01-10T03:56:10.43Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} headers: cache-control: [no-cache] - content-length: ['980'] + content-length: ['979'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:46:17 GMT'] + date: ['Wed, 10 Jan 2018 03:56:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -241,7 +241,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb subscription list] + 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 @@ -251,12 +251,12 @@ interactions: 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":"2017-12-21T17:46:18.3150261Z","updatedAt":"2017-12-21T17:46:18.3150261Z","accessedAt":"2017-12-21T17:46:18.317Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}]}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-10T03:56:10.4294214Z","updatedAt":"2018-01-10T03:56:10.4294214Z","accessedAt":"2018-01-10T03:56:10.43Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}]}'} headers: cache-control: [no-cache] - content-length: ['992'] + content-length: ['991'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:46:24 GMT'] + date: ['Wed, 10 Jan 2018 03:56:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -271,7 +271,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb subscription delete] + CommandName: [servicebus subscription delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -285,20 +285,20 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:46:24 GMT'] + date: ['Wed, 10 Jan 2018 03:56: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb topic delete] + CommandName: [servicebus topic delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -312,20 +312,20 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:46:25 GMT'] + date: ['Wed, 10 Jan 2018 03:56: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: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + CommandName: [servicebus namespace delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -339,21 +339,21 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:46:25 GMT'] + date: ['Wed, 10 Jan 2018 03:56:19 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'] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] status: {code: 202, message: Accepted} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace delete] + 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 @@ -366,7 +366,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:47:00 GMT'] + date: ['Wed, 10 Jan 2018 03:56:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -393,11 +393,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:47:00 GMT'] + date: ['Wed, 10 Jan 2018 03:56:51 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZTVUJTQ1JJUFRJT05VSkxFNFlYTk01MlBHSjQ1WXwyMURFMTZEQkJCRjk0NDJFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZTVUJTQ1JJUFRJT05LV1JNUFIzTUtWN1BYNlhTT3w5MDQ3MDk3QjYzOTNEMTNGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] 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 index f9221464a4c..c4bfcb56de3 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml @@ -20,7 +20,7 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:47:01 GMT'] + date: ['Wed, 10 Jan 2018 03:56:54 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -32,7 +32,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + CommandName: [servicebus namespace create] Connection: [keep-alive] Content-Length: ['125'] Content-Type: [application/json; charset=utf-8] @@ -43,12 +43,12 @@ interactions: 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":"2017-12-21T17:47:06.573Z","updatedAt":"2017-12-21T17:47:06.573Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:56:55.223Z","updatedAt":"2018-01-10T03:56:55.223Z","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, 21 Dec 2017 17:47:02 GMT'] + date: ['Wed, 10 Jan 2018 03:56:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,14 +56,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace create] + 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 @@ -73,12 +73,12 @@ interactions: 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":"2017-12-21T17:47:06.573Z","updatedAt":"2017-12-21T17:47:28.143Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:56:55.223Z","updatedAt":"2018-01-10T03:57:20.52Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['694'] + content-length: ['693'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:47:37 GMT'] + date: ['Wed, 10 Jan 2018 03:57:27 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -92,7 +92,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb namespace show] + 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 @@ -102,12 +102,12 @@ interactions: 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":"2017-12-21T17:47:06.573Z","updatedAt":"2017-12-21T17:47:28.143Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-10T03:56:55.223Z","updatedAt":"2018-01-10T03:57:20.52Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['694'] + content-length: ['693'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:47:37 GMT'] + date: ['Wed, 10 Jan 2018 03:57:29 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -121,7 +121,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb topic create] + CommandName: [servicebus topic create] Connection: [keep-alive] Content-Length: ['2'] Content-Type: [application/json; charset=utf-8] @@ -132,12 +132,12 @@ interactions: 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":"2017-12-21T17:47:42.137Z","updatedAt":"2017-12-21T17:47:42.183Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-10T03:57:32.257Z","updatedAt":"2018-01-10T03:57:32.287Z","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, 21 Dec 2017 17:47:42 GMT'] + date: ['Wed, 10 Jan 2018 03:57:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -152,7 +152,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb topic show] + 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 @@ -162,12 +162,12 @@ interactions: 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":"2017-12-21T17:47:42.137Z","updatedAt":"2017-12-21T17:47:42.183Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-10T03:57:32.257Z","updatedAt":"2018-01-10T03:57:32.287Z","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, 21 Dec 2017 17:47:43 GMT'] + date: ['Wed, 10 Jan 2018 03:57:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -181,7 +181,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb topic list] + 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 @@ -191,12 +191,12 @@ interactions: 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":"2017-12-21T17:47:42.137Z","updatedAt":"2017-12-21T17:47:42.183Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}]}'} + 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-10T03:57:32.257Z","updatedAt":"2018-01-10T03:57:32.287Z","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: ['1017'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:47:45 GMT'] + date: ['Wed, 10 Jan 2018 03:57:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -211,7 +211,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb topic authorizationrule create] + CommandName: [servicebus topic authorizationrule create] Connection: [keep-alive] Content-Length: ['36'] Content-Type: [application/json; charset=utf-8] @@ -227,7 +227,7 @@ interactions: cache-control: [no-cache] content-length: ['440'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:47:48 GMT'] + date: ['Wed, 10 Jan 2018 03:57:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -242,7 +242,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb topic authorizationrule show] + 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 @@ -257,7 +257,7 @@ interactions: cache-control: [no-cache] content-length: ['440'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:47:51 GMT'] + date: ['Wed, 10 Jan 2018 03:57:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -271,7 +271,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb topic authorizationrule list-keys] + CommandName: [servicebus topic authorizationrule list-keys] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -281,12 +281,12 @@ interactions: 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=vsDUvrpgssEzWOxGWrTN6xqZrBJmOn2emzUrNO7qacc=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=53ErnYyXZDbptWk/W6+Ev1t+3RY23ACXP/wSsEET+BM=;EntityPath=sb-topiccli000004","primaryKey":"vsDUvrpgssEzWOxGWrTN6xqZrBJmOn2emzUrNO7qacc=","secondaryKey":"53ErnYyXZDbptWk/W6+Ev1t+3RY23ACXP/wSsEET+BM=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=UIvpWtZH0fiI2qVph2KDtqYj8wqPvoCruC03PUmu4B4=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ZFZoKYVSLyHwo4lNepoddS1UOpRQZQ+k43Is39vix1s=;EntityPath=sb-topiccli000004","primaryKey":"UIvpWtZH0fiI2qVph2KDtqYj8wqPvoCruC03PUmu4B4=","secondaryKey":"ZFZoKYVSLyHwo4lNepoddS1UOpRQZQ+k43Is39vix1s=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:47:48 GMT'] + date: ['Wed, 10 Jan 2018 03:57:42 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -294,14 +294,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + 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: [sb topic authorizationrule regenerate-keys] + CommandName: [servicebus topic authorizationrule regenerate-keys] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json; charset=utf-8] @@ -311,12 +311,12 @@ interactions: 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=+epLd2VCRyhxdF2f+oCCL+0fj970zxi61nSx7h6vtrg=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=53ErnYyXZDbptWk/W6+Ev1t+3RY23ACXP/wSsEET+BM=;EntityPath=sb-topiccli000004","primaryKey":"+epLd2VCRyhxdF2f+oCCL+0fj970zxi61nSx7h6vtrg=","secondaryKey":"53ErnYyXZDbptWk/W6+Ev1t+3RY23ACXP/wSsEET+BM=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=KDIyIPOUjqwPr2ExZCsejXxW/mRPVlOjdw3pM9wiSFk=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ZFZoKYVSLyHwo4lNepoddS1UOpRQZQ+k43Is39vix1s=;EntityPath=sb-topiccli000004","primaryKey":"KDIyIPOUjqwPr2ExZCsejXxW/mRPVlOjdw3pM9wiSFk=","secondaryKey":"ZFZoKYVSLyHwo4lNepoddS1UOpRQZQ+k43Is39vix1s=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:47:56 GMT'] + date: ['Wed, 10 Jan 2018 03:57:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -324,14 +324,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + 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: [sb topic authorizationrule regenerate-keys] + CommandName: [servicebus topic authorizationrule regenerate-keys] Connection: [keep-alive] Content-Length: ['27'] Content-Type: [application/json; charset=utf-8] @@ -341,12 +341,12 @@ interactions: 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=+epLd2VCRyhxdF2f+oCCL+0fj970zxi61nSx7h6vtrg=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ZSommXHC70Z1QiUqFLZ3K0nNN744mw1OvKVpOIa+s0s=;EntityPath=sb-topiccli000004","primaryKey":"+epLd2VCRyhxdF2f+oCCL+0fj970zxi61nSx7h6vtrg=","secondaryKey":"ZSommXHC70Z1QiUqFLZ3K0nNN744mw1OvKVpOIa+s0s=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=KDIyIPOUjqwPr2ExZCsejXxW/mRPVlOjdw3pM9wiSFk=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=nXmJA/Ms4OWSdETEB92fP94mvOF82mAu1I2l25/f4fM=;EntityPath=sb-topiccli000004","primaryKey":"KDIyIPOUjqwPr2ExZCsejXxW/mRPVlOjdw3pM9wiSFk=","secondaryKey":"nXmJA/Ms4OWSdETEB92fP94mvOF82mAu1I2l25/f4fM=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Thu, 21 Dec 2017 17:47:54 GMT'] + date: ['Wed, 10 Jan 2018 03:57:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -361,7 +361,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb topic authorizationrule delete] + CommandName: [servicebus topic authorizationrule delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -375,20 +375,20 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:47:58 GMT'] + date: ['Wed, 10 Jan 2018 03:57: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'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [sb topic delete] + CommandName: [servicebus topic delete] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -402,13 +402,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:47:58 GMT'] + date: ['Wed, 10 Jan 2018 03:57: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -430,11 +430,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 21 Dec 2017 17:47:58 GMT'] + date: ['Wed, 10 Jan 2018 03:57:53 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZUT1BJQ1o0REkyRk82SVlVR1RQTlBRVllCREw3VnwwNzg2NUE0NDYxQjFFRDJELVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZUT1BJQ1AyN0JIM1lST0hIQkk1WUxFNFVRUU5RV3xDMUZEOTJGNkQwOEFBQzg2LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] 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 index 14f6fa207c6..b8d81cad78b 100644 --- a/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py +++ b/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py @@ -7,10 +7,9 @@ import json import time +from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) from azext_servicebus.servicebus.models import ProvisioningStateDR -from azure.cli.testsdk import ( - ScenarioTest, ResourceGroupPreparer) # pylint: disable=line-too-long # pylint: disable=too-many-lines @@ -35,58 +34,57 @@ def test_sb_namespace(self, resource_group): # Check for the NameSpace name Availability - self.cmd('sb namespace check-name-availability --name {namespacename}', + self.cmd('servicebus namespace check-name-availability --name {namespacename}', checks=[self.check('nameAvailable', True)]) # Create Namespace - self.cmd('sb namespace create --resource-group {rg} --name {namespacename} ' + 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('sb namespace show --resource-group {rg} --name {namespacename}', + 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('sb namespace list').output + listnamespaceresult = self.cmd('servicebus namespace list').output self.assertGreater(len(listnamespaceresult), 0) # Get Created Namespace list by ResourceGroup - listnamespacebyresourcegroupresult = self.cmd('sb namespace list --resource-group {rg}').output + listnamespacebyresourcegroupresult = self.cmd('servicebus namespace list --resource-group {rg}').output self.assertGreater(len(listnamespacebyresourcegroupresult), 0) # Create Authoriazation Rule - self.cmd('sb namespace authorizationrule create --resource-group {rg}' + 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('sb namespace authorizationrule show --resource-group {rg} --namespace-name {namespacename}' + 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('sb namespace authorizationrule show --resource-group {rg} --namespace-name {namespacename}' + 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('sb namespace authorizationrule list-keys --resource-group {rg} --namespace-name {namespacename}' + self.cmd('servicebus namespace authorizationrule list-keys --resource-group {rg} --namespace-name {namespacename}' ' --name {authoname}') # Regeneratekeys - Primary - self.cmd( - 'sb namespace authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename} --name {authoname} --key-name {primary}') + self.cmd('servicebus namespace authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename} --name {authoname} --key-name {primary}') # Regeneratekeys - Secondary - self.cmd('sb namespace authorizationrule regenerate-keys --resource-group {rg}' + self.cmd('servicebus namespace authorizationrule regenerate-keys --resource-group {rg}' ' --namespace-name {namespacename} --name {authoname} --key-name {secondary}') # Delete AuthorizationRule - self.cmd('sb namespace authorizationrule delete --resource-group {rg} --namespace-name {namespacename}' + self.cmd('servicebus namespace authorizationrule delete --resource-group {rg} --namespace-name {namespacename}' ' --name {authoname}') # Delete Namespace list by ResourceGroup - self.cmd('sb namespace delete --resource-group {rg} --name {namespacename}') + self.cmd('servicebus namespace delete --resource-group {rg} --name {namespacename}') @ResourceGroupPreparer(name_prefix='cli_test_sb_queue') def test_sb_queue(self, resource_group): @@ -109,59 +107,59 @@ def test_sb_queue(self, resource_group): }) # Create Namespace - self.cmd('sb namespace create --resource-group {rg} --name {namespacename} --location {loc} --tags {tags}' + 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('sb namespace show --resource-group {rg} --name {namespacename}', + self.cmd('servicebus namespace show --resource-group {rg} --name {namespacename}', checks=[self.check('sku.name', self.kwargs['sku'])]) # Create Queue - self.cmd('sb queue create --resource-group {rg} --namespace-name {namespacename} --name {queuename}' + 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('sb queue show --resource-group {rg} --namespace-name {namespacename} --name {queuename}', + self.cmd('servicebus queue show --resource-group {rg} --namespace-name {namespacename} --name {queuename}', checks=[self.check('name', self.kwargs['queuename'])]) # Queue List - self.cmd('sb queue list --resource-group {rg} --namespace-name {namespacename}') + self.cmd('servicebus queue list --resource-group {rg} --namespace-name {namespacename}') # Create Authoriazation Rule - self.cmd('sb queue authorizationrule create --resource-group {rg} --namespace-name {namespacename}' + 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('sb queue authorizationrule show --resource-group {rg} --namespace-name {namespacename}' + 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('sb queue authorizationrule list-keys --resource-group {rg} --namespace-name {namespacename}' + self.cmd('servicebus queue authorizationrule list-keys --resource-group {rg} --namespace-name {namespacename}' ' --queue-name {queuename} --name {authoname}') # Regeneratekeys - Primary regenrateprimarykeyresult = self.cmd( - 'sb queue authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename} --queue-name {queuename} --name {authoname} --key-name {primary}') + 'servicebus queue authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename} --queue-name {queuename} --name {authoname} --key-name {primary}') self.assertIsNotNone(regenrateprimarykeyresult) # Regeneratekeys - Secondary regenratesecondarykeyresult = self.cmd( - 'sb queue authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename}' + 'servicebus queue authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename}' ' --queue-name {queuename} --name {authoname} --key-name {secondary}') self.assertIsNotNone(regenratesecondarykeyresult) # Delete Queue AuthorizationRule - self.cmd('sb queue authorizationrule delete --resource-group {rg} --namespace-name {namespacename}' + self.cmd('servicebus queue authorizationrule delete --resource-group {rg} --namespace-name {namespacename}' ' --queue-name {queuename} --name {authoname}') # Delete Queue - self.cmd('sb queue delete --resource-group {rg} --namespace-name {namespacename} --name {queuename}') + self.cmd('servicebus queue delete --resource-group {rg} --namespace-name {namespacename} --name {queuename}') # Delete Namespace - self.cmd('sb namespace delete --resource-group {rg} --name {namespacename}') + self.cmd('servicebus namespace delete --resource-group {rg} --name {namespacename}') @ResourceGroupPreparer(name_prefix='cli_test_sb_topic') def test_sb_topic(self, resource_group): @@ -183,58 +181,58 @@ def test_sb_topic(self, resource_group): # Create Namespace self.cmd( - 'sb namespace create --resource-group {rg} --name {namespacename} ' + '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('sb namespace show --resource-group {rg} --name {namespacename}', + self.cmd('servicebus namespace show --resource-group {rg} --name {namespacename}', checks=[self.check('sku.name', self.kwargs['sku'])]) # Create Topic self.cmd( - 'sb topic create --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', + 'servicebus topic create --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', checks=[self.check('name', self.kwargs['topicname'])]) # Get Topic self.cmd( - 'sb topic show --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', + 'servicebus topic show --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', checks=[self.check('name', self.kwargs['topicname'])]) # Topic List - self.cmd('sb topic list --resource-group {rg} --namespace-name {namespacename}') + self.cmd('servicebus topic list --resource-group {rg} --namespace-name {namespacename}') # Create Authoriazation Rule - self.cmd('sb topic authorizationrule create --resource-group {rg} --namespace-name {namespacename}' + 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( - 'sb topic authorizationrule show --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {authoname}', + '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( - 'sb topic authorizationrule list-keys --resource-group {rg} --namespace-name {namespacename}' + 'servicebus topic authorizationrule list-keys --resource-group {rg} --namespace-name {namespacename}' ' --topic-name {topicname} --name {authoname}') # Regeneratekeys - Primary self.cmd( - 'sb topic authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename}' + 'servicebus topic authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename}' ' --topic-name {topicname} --name {authoname} --key-name {primary}') # Regeneratekeys - Secondary self.cmd( - 'sb topic authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {authoname} --key-name {secondary}') + 'servicebus topic authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {authoname} --key-name {secondary}') # Delete Topic AuthorizationRule self.cmd( - 'sb topic authorizationrule delete --resource-group {rg} --namespace-name {namespacename}' + 'servicebus topic authorizationrule delete --resource-group {rg} --namespace-name {namespacename}' ' --topic-name {topicname} --name {authoname}') # Delete Topic - self.cmd('sb topic delete --resource-group {rg} --namespace-name {namespacename} --name {topicname}') + 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): @@ -256,44 +254,44 @@ def test_sb_subscription(self, resource_group): }) # Create Namespace - self.cmd('sb namespace create --resource-group {rg} --name {namespacename} ' + 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('sb namespace show --resource-group {rg} --name {namespacename}', + self.cmd('servicebus namespace show --resource-group {rg} --name {namespacename}', checks=[self.check('sku.name', self.kwargs['sku'])]) # Create Topic - self.cmd('sb topic create --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', + self.cmd('servicebus topic create --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', checks=[self.check('name', self.kwargs['topicname'])]) # Get Topic - self.cmd('sb topic show --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', + self.cmd('servicebus topic show --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', checks=[self.check('name', self.kwargs['topicname'])]) # Create Subscription - self.cmd('sb subscription create --resource-group {rg} --namespace-name {namespacename}' + 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('sb subscription show --resource-group {rg} --namespace-name {namespacename}' + 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('sb subscription list --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname}') + self.cmd('servicebus subscription list --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname}') # Delete Subscription self.cmd( - 'sb subscription delete --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {subscriptionname}') + 'servicebus subscription delete --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {subscriptionname}') # Delete Topic - self.cmd('sb topic delete --resource-group {rg} --namespace-name {namespacename} --name {topicname}') + self.cmd('servicebus topic delete --resource-group {rg} --namespace-name {namespacename} --name {topicname}') # Delete Namespace - self.cmd('sb namespace delete --resource-group {rg} --name {namespacename}') + self.cmd('servicebus namespace delete --resource-group {rg} --name {namespacename}') @ResourceGroupPreparer(name_prefix='cli_test_sb_rules') def test_sb_rules(self, resource_group): @@ -317,58 +315,58 @@ def test_sb_rules(self, resource_group): }) # Create Namespace - self.cmd('sb namespace create --resource-group {rg} --name {namespacename} ' + 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('sb namespace show --resource-group {rg} --name {namespacename}', + self.cmd('servicebus namespace show --resource-group {rg} --name {namespacename}', checks=[self.check('sku.name', self.kwargs['sku'])]) # Create Topic - self.cmd('sb topic create --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', + self.cmd('servicebus topic create --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', checks=[self.check('name', self.kwargs['topicname'])]) # Get Topic - self.cmd('sb topic show --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', + self.cmd('servicebus topic show --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', checks=[self.check('name', self.kwargs['topicname'])]) # Create Subscription - self.cmd('sb subscription create --resource-group {rg} --namespace-name {namespacename}' + 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('sb subscription show --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname}' + 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('sb rule create --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname}' + 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('sb rule show --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname}' + 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('sb rule list --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname}' + self.cmd('servicebus rule list --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname}' ' --subscription-name {subscriptionname}') # Delete create rule self.cmd( - 'sb rule delete --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --subscription-name {subscriptionname} --name {rulename}') + 'servicebus rule delete --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --subscription-name {subscriptionname} --name {rulename}') # Delete create Subscription self.cmd( - 'sb subscription delete --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {subscriptionname}') + 'servicebus subscription delete --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {subscriptionname}') # Delete Topic - self.cmd('sb topic delete --resource-group {rg} --namespace-name {namespacename} --name {topicname}') + self.cmd('servicebus topic delete --resource-group {rg} --namespace-name {namespacename} --name {topicname}') # Delete Namespace - self.cmd('sb namespace delete --resource-group {rg} --name {namespacename}') + self.cmd('servicebus namespace delete --resource-group {rg} --name {namespacename}') @ResourceGroupPreparer(name_prefix='cli_test_sb_alias') def test_sb_alias(self, resource_group): @@ -393,103 +391,103 @@ def test_sb_alias(self, resource_group): 'test': '' }) - self.cmd('sb namespace check-name-availability --name {namespacenameprimary}', + self.cmd('servicebus namespace check-name-availability --name {namespacenameprimary}', checks=[self.check('nameAvailable', True)]) # Create Namespace - Primary - self.cmd('sb namespace create --resource-group {rg} --name {namespacenameprimary} --location {loc_south} --tags {tags} --sku-name {sku} --sku-tier {tier}', + 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('sb namespace show --resource-group {rg} --name {namespacenameprimary}', + self.cmd('servicebus namespace show --resource-group {rg} --name {namespacenameprimary}', checks=[self.check('sku.name', self.kwargs['sku'])]) # Create Namespace - Secondary - self.cmd('sb namespace create --resource-group {rg} --name {namespacenamesecondary}' + 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('sb namespace show --resource-group {rg} --name {namespacenamesecondary}', + getnamespace2result = self.cmd('servicebus namespace show --resource-group {rg} --name {namespacenamesecondary}', checks=[self.check('sku.name', self.kwargs['sku'])]).output # Create Authoriazation Rule - self.cmd('sb namespace authorizationrule create --resource-group {rg} --namespace-name {namespacenameprimary} --name {authoname} --access-rights {accessrights}', checks=[self.check('name', self.kwargs['authoname'])]) + 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 = json.loads(getnamespace2result)['id'] self.kwargs.update({'id': partnernamespaceid}) # Get Create Authorization Rule - self.cmd('sb namespace authorizationrule show --resource-group {rg} --namespace-name {namespacenameprimary}' + 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('sb alias check-name-availability --resource-group {rg} --namespace-name {namespacenameprimary} --name {aliasname}', checks=[self.check('nameAvailable', True)]) + self.cmd('servicebus georecovery-alias check-name-availability --resource-group {rg} --namespace-name {namespacenameprimary} --name {aliasname}', checks=[self.check('nameAvailable', True)]) # Create alias - self.cmd('sb alias create --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname} --partner-namespace {id}') + self.cmd('servicebus georecovery-alias create --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname} --partner-namespace {id}') # get alias - Primary - self.cmd('sb alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}') + self.cmd('servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}') # get alias - Secondary - self.cmd('sb alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}') + self.cmd('servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}') getaliasprimarynamespace = self.cmd( - 'sb alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output # check for the Alias Provisioning succeeded while json.loads(getaliasprimarynamespace)['provisioningState'] != ProvisioningStateDR.succeeded.value: time.sleep(30) getaliasprimarynamespace = self.cmd( - 'sb alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output # Break Pairing - self.cmd('sb alias break-pairing --resource-group {rg} --namespace-name {namespacenameprimary}' + self.cmd('servicebus georecovery-alias break-pairing --resource-group {rg} --namespace-name {namespacenameprimary}' ' --alias {aliasname}') getaliasafterbreak = self.cmd( - 'sb alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output # check for the Alias Provisioning succeeded while json.loads(getaliasafterbreak)['provisioningState'] != ProvisioningStateDR.succeeded.value: time.sleep(30) getaliasafterbreak = self.cmd( - 'sb alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output # Create alias - self.cmd('sb alias create --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}' + self.cmd('servicebus georecovery-alias create --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}' ' --partner-namespace {id}') getaliasaftercreate = self.cmd( - 'sb alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output # check for the Alias Provisioning succeeded while json.loads(getaliasaftercreate)['provisioningState'] != ProvisioningStateDR.succeeded.value: time.sleep(30) getaliasaftercreate = self.cmd( - 'sb alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output # FailOver - self.cmd('sb alias fail-over --resource-group {rg} --namespace-name {namespacenamesecondary}' + self.cmd('servicebus georecovery-alias fail-over --resource-group {rg} --namespace-name {namespacenamesecondary}' ' --alias {aliasname}') getaliasafterfail = self.cmd( - 'sb alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}').output + 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}').output # check for the Alias Provisioning succeeded while json.loads(getaliasafterfail)['provisioningState'] != ProvisioningStateDR.succeeded.value: time.sleep(30) getaliasafterfail = self.cmd( - 'sb alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}').output + 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}').output # Delete Alias - self.cmd('sb alias delete --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}') + self.cmd('servicebus georecovery-alias delete --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}') time.sleep(30) # Delete Namespace - primary - self.cmd('sb namespace delete --resource-group {rg} --name {namespacenameprimary}') + self.cmd('servicebus namespace delete --resource-group {rg} --name {namespacenameprimary}') # Delete Namespace - secondary - self.cmd('sb namespace delete --resource-group {rg} --name {namespacenamesecondary}') + self.cmd('servicebus namespace delete --resource-group {rg} --name {namespacenamesecondary}') From 270f3e1f19d4b290da6df7ce66cecb983e5afa42 Mon Sep 17 00:00:00 2001 From: "Ajit Maruti Navasare (MINDTREE LIMITED)" Date: Wed, 10 Jan 2018 10:46:13 -0800 Subject: [PATCH 04/13] fixed lint error --- src/servicebus/azext_servicebus/custom.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/servicebus/azext_servicebus/custom.py b/src/servicebus/azext_servicebus/custom.py index 293af803520..e41f9662205 100644 --- a/src/servicebus/azext_servicebus/custom.py +++ b/src/servicebus/azext_servicebus/custom.py @@ -13,7 +13,6 @@ 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): From 247a580145ec910fd35a971ee4bc33a0285f0a1d Mon Sep 17 00:00:00 2001 From: "Ajit Maruti Navasare (MINDTREE LIMITED)" Date: Wed, 10 Jan 2018 12:44:24 -0800 Subject: [PATCH 05/13] updated help --- src/servicebus/azext_servicebus/_help.py | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/servicebus/azext_servicebus/_help.py b/src/servicebus/azext_servicebus/_help.py index 7fdd610b505..11881424eb7 100644 --- a/src/servicebus/azext_servicebus/_help.py +++ b/src/servicebus/azext_servicebus/_help.py @@ -7,7 +7,7 @@ helps['servicebus'] = """ type: group - short-summary: Manage Azure ServiceBus namespace, queue, topic, subscription, rule and alias (Disaster Recovery Configuration) + short-summary: Manage Azure ServiceBus namespace, queue, topic, subscription, rule and geo disaster recovery configuration - alias """ @@ -41,9 +41,9 @@ """ -helps['servicebus alias'] = """ +helps['servicebus georecovery-alias'] = """ type: group - short-summary: Manage Azure ServiceBus Alias (Disaster Recovery Configuration) + short-summary: Manage Azure ServiceBus Geo Disaster Recovery Configuration - Alias """ @@ -435,9 +435,9 @@ helps['servicebus georecovery-alias check_name_availability'] = """ type: command - short-summary: Check the availability of the Alias (Geo DR Configuration) Name + short-summary: Check the availability of the Geo Disaster Recovery configuration - Alias Name examples: - - name: Check the availability of the Alias (Geo DR Configuration) Name + - name: Check the availability of the Geo Disaster Recovery configuration - Alias Name text: helps['az servicebus georecovery-alias check_name_availability --resource-group myresourcegroup --namespace-name primarynamespace --alias myaliasname'] @@ -445,9 +445,9 @@ helps['servicebus georecovery-alias create'] = """ type: command - short-summary: Creats Alias (Geo DR Configuration) for the give Namespace + short-summary: Creates Geo Disaster Recovery configuration - Alias for the give Namespace examples: - - name: Creats Alias (Geo DR Configuration) for the give Namespace + - name: Creates Geo Disaster Recovery configuration - Alias for the give Namespace text: helps['az servicebus georecovery-alias create --resource-group myresourcegroup --namespace-name primarynamespace --alias myaliasname --partner-namespace {id}'] @@ -455,7 +455,7 @@ helps['servicebus georecovery-alias show'] = """ type: command - short-summary: shows details of Alias (Geo DR Configuration) for Primay/Secondary Namespace + short-summary: shows details of Geo Disaster Recovery configuration - Alias for Primay/Secondary Namespace examples: - name: show details of Alias (Geo DR Configuration) of the Primary Namespace text: helps['az servicebus georecovery-alias show --resource-group myresourcegroup --namespace-name primarynamespace @@ -468,7 +468,7 @@ helps['servicebus georecovery-alias break-pairing'] = """ type: command - short-summary: Disables the Disaster Recovery and stops replicating changes from primary to secondary namespaces + short-summary: Disables the Geo Disaster Recovery 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: helps['az servicebus georecovery-alias break-pairing --resource-group myresourcegroup --namespace-name primarynamespace @@ -478,9 +478,9 @@ helps['servicebus georecovery-alias fail-over'] = """ type: command - short-summary: Envokes GEO DR failover and reconfigure the alias to point to the secondary namespace + short-summary: Envokes Geo Disaster Recovery failover and reconfigure the alias to point to the secondary namespace examples: - - name: Envokes GEO DR failover and reconfigure the alias to point to the secondary namespace + - name: Envokes Geo Disaster Recovery failover and reconfigure the alias to point to the secondary namespace text: helps['az servicebus georecovery-alias fail-over --resource-group myresourcegroup --namespace-name secondarynamespace --alias myaliasname'] @@ -488,7 +488,7 @@ helps['servicebus georecovery-alias delete'] = """ type: command - short-summary: Delete Alias(Disaster Recovery configuration) request accepted + short-summary: Delete Geo Disaster Recovery configuration - Alias request accepted examples: - name: Delete Alias(Disaster Recovery configuration) request accepted text: helps['az servicebus georecovery-alias delete --resource-group myresourcegroup --namespace-name secondarynamespace From 3b0dac4bf6861854bf3b2f8f837e34fedfc30db8 Mon Sep 17 00:00:00 2001 From: "Ajit Maruti Navasare (MINDTREE LIMITED)" Date: Thu, 11 Jan 2018 14:02:53 -0800 Subject: [PATCH 06/13] Review comments resolved --- src/servicebus/azext_servicebus/__init__.py | 4 +- src/servicebus/azext_servicebus/_help.py | 267 +++++++++--------- src/servicebus/azext_servicebus/_params.py | 2 +- .../recordings/latest/test_sb_alias.yaml | 172 ++++++----- .../recordings/latest/test_sb_namespace.yaml | 74 ++--- .../recordings/latest/test_sb_queue.yaml | 86 +++--- .../recordings/latest/test_sb_rules.yaml | 76 ++--- .../latest/test_sb_subscription.yaml | 68 ++--- .../recordings/latest/test_sb_topic.yaml | 72 ++--- .../tests/test_servicebus_commands.py | 4 +- src/servicebus/setup.py | 4 +- 11 files changed, 425 insertions(+), 404 deletions(-) diff --git a/src/servicebus/azext_servicebus/__init__.py b/src/servicebus/azext_servicebus/__init__.py index ed2dd2cdb35..3871c2c1b96 100644 --- a/src/servicebus/azext_servicebus/__init__.py +++ b/src/servicebus/azext_servicebus/__init__.py @@ -3,9 +3,11 @@ # 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 azext_servicebus._help import helps -# pylint: disable=unused-import class ServicebusCommandsLoader(AzCommandsLoader): diff --git a/src/servicebus/azext_servicebus/_help.py b/src/servicebus/azext_servicebus/_help.py index 11881424eb7..04105848c24 100644 --- a/src/servicebus/azext_servicebus/_help.py +++ b/src/servicebus/azext_servicebus/_help.py @@ -7,43 +7,43 @@ helps['servicebus'] = """ type: group - short-summary: Manage Azure ServiceBus namespace, queue, topic, subscription, rule and geo disaster recovery configuration - alias + 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 ServiceBus namespace and authorization-rule + short-summary: Manage Azure Service Bus namespace and authorization-rule """ helps['servicebus queue'] = """ type: group - short-summary: Manage Azure ServiceBus queue and authorization-rule + short-summary: Manage Azure Service Bus queue and authorization-rule """ helps['servicebus topic'] = """ type: group - short-summary: Manage Azure ServiceBus topic and authorization-rule + short-summary: Manage Azure Service Bus topic and authorization-rule """ helps['servicebus subscription'] = """ type: group - short-summary: Manage Azure ServiceBus Subscription + short-summary: Manage Azure Service Bus subscription """ helps['servicebus rule'] = """ type: group - short-summary: Manage Azure ServiceBus rule + short-summary: Manage Azure Service Bus rule """ helps['servicebus georecovery-alias'] = """ type: group - short-summary: Manage Azure ServiceBus Geo Disaster Recovery Configuration - Alias + short-summary: Manage Azure Service Bus Geo Disaster Recovery Configuration - Alias """ @@ -51,24 +51,24 @@ type: command short-summary: check for the availability of the given name for the Namespace examples: - - name: Create a new topic. - text: az servicebus namespace check_name_availability --name mynamespace + - name: check for the availability of mynamespace for the Namespace + text: az servicebus namespace check-name-availability --name mynamespace """ helps['servicebus namespace create'] = """ type: command - short-summary: Creates the ServiceBus Namespace + short-summary: Creates the Service Bus Namespace examples: - - name: Create a new namespace. - text: helps['az servicebus namespace create --resource-group myresourcegroup --name mynamespace --location westus - --tags ['tag1: value1', 'tag2: value2'] --sku-name Standard --sku-tier Standard'] + - name: Create a new 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 Namespace Details + short-summary: Shows the Service Bus Namespace details examples: - name: shows the Namespace details. text: helps['az servicebus namespace show --resource-group myresourcegroup --name mynamespace'] @@ -77,89 +77,89 @@ helps['servicebus namespace list'] = """ type: command - short-summary: List the Namespaces by ResourceGroup or By subscription + short-summary: List the Service Bus Namespaces by ResourceGroup or by subscription examples: - - name: Get the Namespaces by resource Group. + - name: Get the Service Bus Namespaces by resource Group. text: helps['az servicebus namespace list --resource-group myresourcegroup'] - - name: Get the Namespaces by Subscription. - text: helps['az servicebus namespace list'] + - name: Get the Service Bus Namespaces by Subscription. + text: az servicebus namespace list """ helps['servicebus namespace delete'] = """ type: command - short-summary: Deletes the Namespaces + short-summary: Deletes the Service Bus Namespace examples: - - name: Deletes the Namespace - text: helps['az servicebus namespace delete --resource-group myresourcegroup --name mynamespace'] + - 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 Authorization rule for the given Namespace + short-summary: Creates Authorizationrule for the given Service Bus Namespace examples: - - name: Creates Authorization rules - text: helps['az servicebus namespace authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace - --name myauthorule --access-rights [Send, Listen]'] + - name: Creates Authorizationrule 'myauthorule' for the given Service Bus Namespace 'mynamepsace' + text: az servicebus namespace authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace + --name myauthorule --access-rights [Send, Listen] """ helps['servicebus namespace authorizationrule get'] = """ type: command - short-summary: Shows the details of AuthorizatioRule + short-summary: Shows the details of AuthorizationRule examples: - - name: Shows the details of AuthorizatioRule - text: helps['az servicebus namespace authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace - --name myauthorule'] + - name: Shows the details of 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 AuthorizatioRule by Namespace + short-summary: Shows the list of AuthorizationRule by Namespace examples: - - name: Shows the list of AuthorizatioRule by Namespace - text: helps['az servicebus namespace authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace'] + - name: Shows the list of AuthorizationRule by Namespace + text: az servicebus namespace authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace """ helps['servicebus namespace authorizationrule list-keys'] = """ type: command - short-summary: Shows the connectionstrings of AuthorizatioRule for the namespace + short-summary: Shows the connectionstrings of AuthorizationRule for the namespace examples: - - name: Shows the connectionstrings of AuthorizatioRule for the namespace. - text: helps['az servicebus namespace authorizationrule list-keys --resource-group myresourcegroup --namespace-name mynamespace - --name myauthorule'] + - name: Shows the connectionstrings of AuthorizationRule for the namespace. + text: az servicebus namespace authorizationrule list-keys --resource-group myresourcegroup --namespace-name mynamespace + --name myauthorule """ helps['servicebus namespace authorizationrule regenerate-keys'] = """ type: command - short-summary: Regenerate the connectionstrings of AuthorizatioRule for the namespace. + short-summary: Regenerate the connectionstrings of AuthorizationRule for the namespace. examples: - - name: Regenerate the connectionstrings of AuthorizatioRule for the namespace. - text: helps['az servicebus namespace authorizationrule regenerate-keys --resource-group myresourcegroup - --namespace-name mynamespace --name myauthorule --key PrimaryKey'] + - name: Regenerate the connectionstrings of AuthorizationRule for the 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 AuthorizatioRule of the namespace. + short-summary: Deletes the AuthorizationRule of the namespace. examples: - - name: Deletes the AuthorizatioRule of the namespace. - text: helps['az servicebus namespace authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace - --name myauthorule'] + - name: Deletes the AuthorizationRule of the namespace. + text: az servicebus namespace authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace + --name myauthorule """ helps['sb queue create'] = """ type: command - short-summary: Creates the ServiceBus Queue + short-summary: Creates the Service Bus Queue examples: - - name: Create a new queue. - text: helps['az sb queue create --resource-group myresourcegroup --namespace-name mynamespace --name myqueue'] + - name: Creates a new queue. + text: az sb queue create --resource-group myresourcegroup --namespace-name mynamespace --name myqueue """ @@ -167,17 +167,17 @@ type: command short-summary: shows the Queue Details examples: - - name: Shows the Queue details. - text: helps['az servicebus queue show --resource-group myresourcegroup --namespace-name mynamespace --name myqueue'] + - name: Shows the 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 Queueby Namepsace + short-summary: List the Queue by Namepsace examples: - name: Get the Queues by Namespace. - text: helps['az servicebus queue list --resource-group myresourcegroup --namespace-name mynamespace'] + text: az servicebus queue list --resource-group myresourcegroup --namespace-name mynamespace """ @@ -186,7 +186,7 @@ short-summary: Deletes the Queue examples: - name: Deletes the queue - text: helps['az servicebus queue delete --resource-group myresourcegroup --namespace-name mynamespace --name myqueue'] + text: az servicebus queue delete --resource-group myresourcegroup --namespace-name mynamespace --name myqueue """ @@ -195,63 +195,58 @@ short-summary: Creates Authorization rule for the given Queue examples: - name: Creates Authorization rules - text: helps['az servicebus queue authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace - --queue-name myqueue - --name myauthorule --access-rights [Listen]'] + 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 AuthorizatioRule + short-summary: shows the details of AuthorizationRule examples: - - name: shows the details of AuthorizatioRule - text: helps['az servicebus queue authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace - --queue-name myqueue - --name myauthorule'] + - 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 AuthorizatioRule by Queue + short-summary: shows the list of AuthorizationRule by Queue examples: - - name: shows the list of AuthorizatioRule by Queue - text: helps['az servicebus queue authorizationrule show --resource-group myresourcegroup --namespace-name mynamespace - --queue-name myqueue'] + - 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 list-keys'] = """ type: command - short-summary: Shows the connectionstrings of AuthorizatioRule for the Queue. + short-summary: Shows the connectionstrings of AuthorizationRule for the Queue. examples: - - name: Shows the connectionstrings of AuthorizatioRule for the queue. - text: helps['az servicebus queue authorizationrule list-keys --resource-group myresourcegroup --namespace-name mynamespace - --queue-name myqueue - --name myauthorule'] + - name: Shows the connectionstrings 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 regenerate-keys'] = """ type: command - short-summary: Regenerate the connectionstrings of AuthorizatioRule for the namespace. + short-summary: Regenerate the connectionstrings of AuthorizationRule for the namespace. examples: - - name: Regenerate the connectionstrings of AuthorizatioRule for the namespace. - text: helps['az servicebus queue authorizationrule regenerate-keys --resource-group myresourcegroup --namespace-name mynamespace - --queue-name myqueue - --name myauthorule --key PrimaryKey'] + - name: Regenerate the connectionstrings 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 AuthorizatioRule of the Queue. + short-summary: Deletes the AuthorizationRule of the Queue. examples: - - name: Deletes the AuthorizatioRule of the queue. - text: helps['az servicebus queue authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace - --queue-name myqueue - --name myauthorule'] + - name: Deletes the AuthorizationRule of the queue. + text: az servicebus queue authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace + --queue-name myqueue --name myauthorule """ @@ -260,7 +255,7 @@ short-summary: Creates the ServiceBus Topic examples: - name: Create a new queue. - text: helps['az servicebus topic create --resource-group myresourcegroup --namespace-name mynamespace --name {topicname}'] + text: az servicebus topic create --resource-group myresourcegroup --namespace-name mynamespace --name {topicname} """ @@ -269,7 +264,7 @@ short-summary: Shows the Topic Details examples: - name: Shows the Topic details. - text: helps['az sb topic get --resource-group myresourcegroup --namespace-name mynamespace --name {topicname}'] + text: az sb topic get --resource-group myresourcegroup --namespace-name mynamespace --name {topicname} """ @@ -278,7 +273,7 @@ short-summary: List the Topic by Namepsace examples: - name: Get the Topics by Namespace. - text: helps['az servicebus topic list --resource-group myresourcegroup --namespace-name mynamespace'] + text: az servicebus topic list --resource-group myresourcegroup --namespace-name mynamespace """ @@ -287,7 +282,7 @@ short-summary: Deletes the Topic examples: - name: Deletes the topic - text: helps['az servicebus topic delete --resource-group myresourcegroup --namespace-name mynamespace --name {topicname}'] + text: az servicebus topic delete --resource-group myresourcegroup --namespace-name mynamespace --name {topicname} """ @@ -296,62 +291,58 @@ short-summary: Creates Authorization rule for the given Topic examples: - name: Creates Authorization rules - text: helps['az servicebus topic authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} --name myauthorule --access-rights [Send, Listen]'] + text: az servicebus topic authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} --name myauthorule --access-rights [Send, Listen] """ helps['servicebus topic authorizationrule show'] = """ type: command - short-summary: Shows the details of AuthorizatioRule + short-summary: Shows the details of AuthorizationRule examples: - - name: Shows the details of AuthorizatioRule - text: helps['az servicebus topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} - --name myauthorule'] + - name: Shows the details of AuthorizationRule + text: az servicebus topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} --name myauthorule """ helps['servicebus topic authorizationrule list'] = """ type: command - short-summary: Gets the list of AuthorizatioRule by Topic + short-summary: Gets the list of AuthorizationRule by Topic examples: - - name: Gets the list of AuthorizatioRule by Topic - text: helps['az servicebus topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname}'] + - name: Gets the list of AuthorizationRule by Topic + text: az servicebus topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} """ helps['servicebus topic authorizationrule list-keys'] = """ type: command - short-summary: shows the connectionstrings of AuthorizatioRule for the Topic. + short-summary: shows the connectionstrings of AuthorizationRule for the Topic. examples: - - name: Gets the connectionstrings of AuthorizatioRule for the topic. - text: helps['az servicebus topic authorizationrule listkeys --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} - --name myauthorule'] + - name: Gets the connectionstrings of AuthorizationRule for the topic. + text: az servicebus topic authorizationrule listkeys --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} --name myauthorule """ helps['servicebus topic authorizationrule regenerate-keys'] = """ type: command - short-summary: Regenerate the connectionstrings of AuthorizatioRule for the Topic. + short-summary: Regenerate the connectionstrings of AuthorizationRule for the Topic. examples: - - name: Regenerate the connectionstrings of AuthorizatioRule for the Topic. - text: helps['az servicebus topic authorizationrule regenerate_keys --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} - --name myauthorule --regeneratekey PrimaryKey'] + - name: Regenerate the connectionstrings of AuthorizationRule for the Topic. + text: az servicebus topic authorizationrule regenerate_keys --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} --name myauthorule --regeneratekey PrimaryKey """ helps['servicebus topic authorizationrule delete'] = """ type: command - short-summary: Deletes the AuthorizatioRule of the Topic. + short-summary: Deletes the AuthorizationRule of the Topic. examples: - - name: Deletes the AuthorizatioRule of the topic - text: helps['az servicebus topic authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} - --name myauthorule'] + - name: Deletes the AuthorizationRule of the topic + text: az servicebus topic authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} --name myauthorule """ helps['servicebus subscription create'] = """ @@ -359,8 +350,8 @@ short-summary: Creates the ServiceBus Subscription examples: - name: Create a new Subscription. - text: helps['az servicebus subscription create --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} --name {subscriptionname}'] + text: az servicebus subscription create --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} --name {subscriptionname} """ @@ -369,8 +360,8 @@ short-summary: Shows the Subscription Details examples: - name: Shows the Subscription details. - text: helps['az servicebus subscription get --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} --name {subscriptionname}'] + text: az servicebus subscription get --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} --name {subscriptionname} """ @@ -379,7 +370,7 @@ short-summary: List the Subscription by Topic examples: - name: Shows the Subscription by Topic. - text: helps['az servicebus subscription list --resource-group myresourcegroup --namespace-name mynamespace'] + text: az servicebus subscription list --resource-group myresourcegroup --namespace-name mynamespace """ @@ -388,8 +379,8 @@ short-summary: Deletes the Subscription examples: - name: Deletes the Subscription - text: helps['az servicebus subscription delete --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} --name {subscriptionname}'] + text: az servicebus subscription delete --resource-group myresourcegroup --namespace-name mynamespace + --topic-name {topicname} --name {subscriptionname} """ @@ -398,8 +389,8 @@ short-summary: Creates the ServiceBus Rule for Subscription examples: - name: Create a new Rule. - text: helps['az servicebus rule create --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} - --subscription-name {subscriptionname} --name {rulename} --filter-sql-expression {sqlexpression}'] + text: az servicebus rule create --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} + --subscription-name {subscriptionname} --name {rulename} --filter-sql-expression {sqlexpression} """ @@ -408,8 +399,8 @@ short-summary: Shows the Rule Details examples: - name: Shows the Rule details. - text: helps['az servicebus rule show --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} - --subscription-name {subscriptionname} --name {rulename}'] + text: az servicebus rule show --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} + --subscription-name {subscriptionname} --name {rulename} """ @@ -418,8 +409,8 @@ short-summary: List the Rule by Subscription examples: - name: Shows the Rule by Subscription. - text: helps['az sb rule list --resource-group myresourcegroup --namespace-name mynamespace - --subscription-name {subscriptionname}'] + text: az sb rule list --resource-group myresourcegroup --namespace-name mynamespace + --subscription-name {subscriptionname} """ @@ -428,8 +419,8 @@ short-summary: Deletes the Rule examples: - name: Deletes the Rule - text: helps['az servicebus rule delete --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} - --subscription-name {subscriptionname} --name {rulename}'] + text: az servicebus rule delete --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} + --subscription-name {subscriptionname} --name {rulename} """ @@ -438,8 +429,8 @@ short-summary: Check the availability of the Geo Disaster Recovery configuration - Alias Name examples: - name: Check the availability of the Geo Disaster Recovery configuration - Alias Name - text: helps['az servicebus georecovery-alias check_name_availability --resource-group myresourcegroup --namespace-name primarynamespace - --alias myaliasname'] + text: az servicebus georecovery-alias check_name_availability --resource-group myresourcegroup --namespace-name primarynamespace + --alias myaliasname """ @@ -448,8 +439,8 @@ short-summary: Creates Geo Disaster Recovery configuration - Alias for the give Namespace examples: - name: Creates Geo Disaster Recovery configuration - Alias for the give Namespace - text: helps['az servicebus georecovery-alias create --resource-group myresourcegroup --namespace-name primarynamespace - --alias myaliasname --partner-namespace {id}'] + text: az servicebus georecovery-alias create --resource-group myresourcegroup --namespace-name primarynamespace + --alias myaliasname --partner-namespace """ @@ -458,11 +449,11 @@ short-summary: shows details of Geo Disaster Recovery configuration - Alias for Primay/Secondary Namespace examples: - name: show details of Alias (Geo DR Configuration) of the Primary Namespace - text: helps['az servicebus georecovery-alias show --resource-group myresourcegroup --namespace-name primarynamespace - --alias myaliasname'] + 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: helps['az servicebus georecovery-alias show --resource-group myresourcegroup --namespace-name secondarynamespace - --alias myaliasname'] + text: az servicebus georecovery-alias show --resource-group myresourcegroup --namespace-name secondarynamespace + --alias myaliasname """ @@ -471,8 +462,8 @@ short-summary: Disables the Geo Disaster Recovery 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: helps['az servicebus georecovery-alias break-pairing --resource-group myresourcegroup --namespace-name primarynamespace - --alias myaliasname'] + text: az servicebus georecovery-alias break-pairing --resource-group myresourcegroup --namespace-name primarynamespace + --alias myaliasname """ @@ -481,8 +472,8 @@ short-summary: Envokes Geo Disaster Recovery failover and reconfigure the alias to point to the secondary namespace examples: - name: Envokes Geo Disaster Recovery failover and reconfigure the alias to point to the secondary namespace - text: helps['az servicebus georecovery-alias fail-over --resource-group myresourcegroup --namespace-name secondarynamespace - --alias myaliasname'] + text: az servicebus georecovery-alias fail-over --resource-group myresourcegroup --namespace-name secondarynamespace + --alias myaliasname """ @@ -491,7 +482,7 @@ short-summary: Delete Geo Disaster Recovery configuration - Alias request accepted examples: - name: Delete Alias(Disaster Recovery configuration) request accepted - text: helps['az servicebus georecovery-alias delete --resource-group myresourcegroup --namespace-name secondarynamespace - --alias myaliasname'] + 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 index 32f57e3c6fe..7f7b92c68b4 100644 --- a/src/servicebus/azext_servicebus/_params.py +++ b/src/servicebus/azext_servicebus/_params.py @@ -279,7 +279,7 @@ def load_arguments_rule(self, _): 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('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'], 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 index d8b77a26b9b..d27c49a4eae 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:34:53 GMT'] + date: ['Thu, 11 Jan 2018 19:50:25 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: body: 'b''{"name": "sb-nscli000002"}''' @@ -46,7 +46,7 @@ interactions: cache-control: [no-cache] content-length: ['53'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:34:55 GMT'] + date: ['Thu, 11 Jan 2018 19:50:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -57,7 +57,7 @@ interactions: x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: - body: '{"location": "SouthCentralUS", "tags": {"{tag1: value1,": "", "tag2: value2}": + body: '{"location": "SouthCentralUS", "tags": {"{tag2: value2,": "", "tag1: value1}": ""}, "sku": {"name": "Premium", "tier": "Premium"}}' headers: Accept: [application/json] @@ -73,12 +73,12 @@ interactions: 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-10T03:34:56.037Z","updatedAt":"2018-01-10T03:34:56.037Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T19:50:25.177Z","updatedAt":"2018-01-11T19:50:25.177Z","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: ['Wed, 10 Jan 2018 03:34:56 GMT'] + date: ['Thu, 11 Jan 2018 19:50:26 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -103,12 +103,12 @@ interactions: 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-10T03:34:56.037Z","updatedAt":"2018-01-10T03:34:56.037Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T19:50:25.177Z","updatedAt":"2018-01-11T19:50:25.177Z","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: ['Wed, 10 Jan 2018 03:35:28 GMT'] + date: ['Thu, 11 Jan 2018 19:50:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-10T03:34:56.037Z","updatedAt":"2018-01-10T03:35:39.12Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T19:50:25.177Z","updatedAt":"2018-01-11T19:51:08.797Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['711'] + content-length: ['712'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:35:58 GMT'] + date: ['Thu, 11 Jan 2018 19:51:27 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -161,12 +161,12 @@ interactions: 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-10T03:34:56.037Z","updatedAt":"2018-01-10T03:35:39.12Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T19:50:25.177Z","updatedAt":"2018-01-11T19:51:08.797Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['711'] + content-length: ['712'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:36:00 GMT'] + date: ['Thu, 11 Jan 2018 19:51:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -176,7 +176,7 @@ interactions: vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: '{"location": "NorthCentralUS", "tags": {"{tag1: value1,": "", "tag2: value2}": + body: '{"location": "NorthCentralUS", "tags": {"{tag2: value2,": "", "tag1: value1}": ""}, "sku": {"name": "Premium", "tier": "Premium"}}' headers: Accept: [application/json] @@ -192,12 +192,12 @@ interactions: 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-10T03:36:00.627Z","updatedAt":"2018-01-10T03:36:00.627Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-11T19:51:28.46Z","updatedAt":"2018-01-11T19:51:28.46Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['714'] + content-length: ['712'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:36:02 GMT'] + date: ['Thu, 11 Jan 2018 19:51:29 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -222,12 +222,12 @@ interactions: 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-10T03:36:00.627Z","updatedAt":"2018-01-10T03:36:00.627Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-11T19:51:28.46Z","updatedAt":"2018-01-11T19:51:28.46Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['714'] + content-length: ['712'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:36:32 GMT'] + date: ['Thu, 11 Jan 2018 19:51:59 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -251,12 +251,12 @@ interactions: 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-10T03:36:00.627Z","updatedAt":"2018-01-10T03:36:46.497Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-11T19:51:28.46Z","updatedAt":"2018-01-11T19:52:15.237Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['712'] + content-length: ['711'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:37:03 GMT'] + date: ['Thu, 11 Jan 2018 19:52:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -280,12 +280,12 @@ interactions: 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-10T03:36:00.627Z","updatedAt":"2018-01-10T03:36:46.497Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-11T19:51:28.46Z","updatedAt":"2018-01-11T19:52:15.237Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['712'] + content-length: ['711'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:37:04 GMT'] + date: ['Thu, 11 Jan 2018 19:52:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -315,7 +315,7 @@ interactions: cache-control: [no-cache] content-length: ['407'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:37:37 GMT'] + date: ['Thu, 11 Jan 2018 19:53:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -323,7 +323,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -345,7 +345,7 @@ interactions: cache-control: [no-cache] content-length: ['407'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:37:38 GMT'] + date: ['Thu, 11 Jan 2018 19:53:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -374,7 +374,7 @@ interactions: cache-control: [no-cache] content-length: ['38'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:37:39 GMT'] + date: ['Thu, 11 Jan 2018 19:53:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -382,7 +382,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] 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"}}\''''' @@ -404,7 +404,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:38:12 GMT'] + date: ['Thu, 11 Jan 2018 19:53:37 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -412,7 +412,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null @@ -433,7 +433,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:38:13 GMT'] + date: ['Thu, 11 Jan 2018 19:53:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -461,7 +461,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:38:14 GMT'] + date: ['Thu, 11 Jan 2018 19:53:37 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -489,7 +489,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:38:15 GMT'] + date: ['Thu, 11 Jan 2018 19:53:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -517,7 +517,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:38:45 GMT'] + date: ['Thu, 11 Jan 2018 19:54:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -545,7 +545,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:39:16 GMT'] + date: ['Thu, 11 Jan 2018 19:54:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -573,7 +573,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:39:47 GMT'] + date: ['Thu, 11 Jan 2018 19:55:10 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -601,7 +601,7 @@ interactions: cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:40:18 GMT'] + date: ['Thu, 11 Jan 2018 19:55:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -629,13 +629,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:40:18 GMT'] + date: ['Thu, 11 Jan 2018 19: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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -656,7 +656,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:40:18 GMT'] + date: ['Thu, 11 Jan 2018 19:55:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -684,7 +684,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:40:49 GMT'] + date: ['Thu, 11 Jan 2018 19:56:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -712,7 +712,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:41:21 GMT'] + date: ['Thu, 11 Jan 2018 19:56:42 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -740,7 +740,7 @@ interactions: cache-control: [no-cache] content-length: ['483'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:41:52 GMT'] + date: ['Thu, 11 Jan 2018 19:57:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -769,7 +769,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:42:08 GMT'] + date: ['Thu, 11 Jan 2018 19:57:29 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -777,7 +777,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -798,7 +798,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:42:09 GMT'] + date: ['Thu, 11 Jan 2018 19:57:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -826,7 +826,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:42:40 GMT'] + date: ['Thu, 11 Jan 2018 19:58:01 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -854,7 +854,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:43:11 GMT'] + date: ['Thu, 11 Jan 2018 19:58:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -882,7 +882,35 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:43:41 GMT'] + date: ['Thu, 11 Jan 2018 19:59: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 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.24] + 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, 11 Jan 2018 19:59:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -910,7 +938,7 @@ interactions: cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:44:12 GMT'] + date: ['Thu, 11 Jan 2018 20:00:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -938,13 +966,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:44:13 GMT'] + date: ['Thu, 11 Jan 2018 20:00: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] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -965,7 +993,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:44:13 GMT'] + date: ['Thu, 11 Jan 2018 20:00:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -993,7 +1021,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:44:43 GMT'] + date: ['Thu, 11 Jan 2018 20:00:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1021,7 +1049,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:45:14 GMT'] + date: ['Thu, 11 Jan 2018 20:01:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1049,7 +1077,7 @@ interactions: cache-control: [no-cache] content-length: ['483'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:45:45 GMT'] + date: ['Thu, 11 Jan 2018 20:01:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1077,7 +1105,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:45:46 GMT'] + date: ['Thu, 11 Jan 2018 20:01:35 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1104,7 +1132,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:46:18 GMT'] + date: ['Thu, 11 Jan 2018 20:02:06 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] @@ -1131,7 +1159,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:46:49 GMT'] + date: ['Thu, 11 Jan 2018 20:02:37 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] @@ -1157,7 +1185,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:47:18 GMT'] + date: ['Thu, 11 Jan 2018 20:03:06 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] @@ -1183,7 +1211,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:47:49 GMT'] + date: ['Thu, 11 Jan 2018 20:03:37 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1209,14 +1237,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:47:53 GMT'] + date: ['Thu, 11 Jan 2018 20:03:38 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: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 202, message: Accepted} - request: body: null @@ -1236,7 +1264,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:48:24 GMT'] + date: ['Thu, 11 Jan 2018 20:04:08 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] @@ -1262,7 +1290,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:48:55 GMT'] + date: ['Thu, 11 Jan 2018 20:04:38 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] @@ -1288,7 +1316,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:49:26 GMT'] + date: ['Thu, 11 Jan 2018 20:05:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1315,9 +1343,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:49:27 GMT'] + date: ['Thu, 11 Jan 2018 20:05:11 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZBTElBU1hLRVVKV002RkZYSExEQU42UkROWFo3SXxBMkIxNjcxODE5Nzg3ODkzLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZBTElBU0hFMk9DS0VWU0VWV1MzN0RCS0w1SFpFTnxEQjAwRkNGN0UxNkFDMTNDLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-ms-ratelimit-remaining-subscription-writes: ['1198'] 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 index 169afcfc4f1..9d11c822881 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:49:28 GMT'] + date: ['Thu, 11 Jan 2018 20:05:13 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: body: 'b''{"name": "sb-nscli000002"}''' @@ -46,7 +46,7 @@ interactions: cache-control: [no-cache] content-length: ['53'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:49:29 GMT'] + date: ['Thu, 11 Jan 2018 20:05:14 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -73,12 +73,12 @@ interactions: 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-10T03:49:30.243Z","updatedAt":"2018-01-10T03:49:30.243Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:05:13.46Z","updatedAt":"2018-01-11T20:05:13.46Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['677'] + content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:49:32 GMT'] + date: ['Thu, 11 Jan 2018 20:05:15 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -86,7 +86,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -103,12 +103,12 @@ interactions: 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-10T03:49:30.243Z","updatedAt":"2018-01-10T03:49:59.537Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:05:13.46Z","updatedAt":"2018-01-11T20:05:38.263Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['675'] + content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:50:02 GMT'] + date: ['Thu, 11 Jan 2018 20:05:45 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-10T03:49:30.243Z","updatedAt":"2018-01-10T03:49:59.537Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:05:13.46Z","updatedAt":"2018-01-11T20:05:38.263Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['675'] + content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:50:03 GMT'] + date: ['Thu, 11 Jan 2018 20:05:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -172,7 +172,7 @@ interactions: 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/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"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_aliasabkkbqxjz5cq6ok5unfar57hqiwwn35zjaugsrkky64bd4iaghl2f3jf6o/providers/Microsoft.ServiceBus/namespaces/sb-nsclitx7lxyb6ti3p","name":"sb-nsclitx7lxyb6ti3p","type":"Microsoft.ServiceBus/Namespaces","location":"North Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclitx7lxyb6ti3p","createdAt":"2018-01-10T02:58:13.167Z","updatedAt":"2018-01-10T03:02:50.013Z","serviceBusEndpoint":"https://sb-nsclitx7lxyb6ti3p.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-10T03:49:30.243Z","updatedAt":"2018-01-10T03:49:59.537Z","serviceBusEndpoint":"https://sb-nscli000002.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 + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:05:13.46Z","updatedAt":"2018-01-11T20:05:38.263Z","serviceBusEndpoint":"https://sb-nscli000002.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":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespacecoxqc6ek6xgxrgdqkgp73ho6sorba6ljkz5mvntqxg2nsbo5pl2fic/providers/Microsoft.ServiceBus/namespaces/sb-nscli37xlt4h435ro","name":"sb-nscli37xlt4h435ro","type":"Microsoft.ServiceBus/Namespaces","location":"North Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli37xlt4h435ro","createdAt":"2017-12-16T03:53:33.89Z","updatedAt":"2017-12-16T05:05:28.283Z","serviceBusEndpoint":"https://sb-nscli37xlt4h435ro.servicebus.windows.net:443/","status":"Active"}},{"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_namespaceokquronxzujxantrhghxnhrv4354fym75veryp23fzp7pix7hba4ib/providers/Microsoft.ServiceBus/namespaces/sb-nscli76spyj2vzwvy","name":"sb-nscli76spyj2vzwvy","type":"Microsoft.ServiceBus/Namespaces","location":"North @@ -184,9 +184,9 @@ interactions: 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"}}]}'} headers: cache-control: [no-cache] - content-length: ['13555'] + content-length: ['13554'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:50:04 GMT'] + date: ['Thu, 11 Jan 2018 20:05:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -210,12 +210,12 @@ interactions: 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-10T03:49:30.243Z","updatedAt":"2018-01-10T03:49:59.537Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}]}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:05:13.46Z","updatedAt":"2018-01-11T20:05:38.263Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}]}'} headers: cache-control: [no-cache] - content-length: ['687'] + content-length: ['686'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:50:04 GMT'] + date: ['Thu, 11 Jan 2018 20:05:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -245,7 +245,7 @@ interactions: cache-control: [no-cache] content-length: ['400'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:50:37 GMT'] + date: ['Thu, 11 Jan 2018 20:06:19 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -253,7 +253,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -275,7 +275,7 @@ interactions: cache-control: [no-cache] content-length: ['400'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:50:37 GMT'] + date: ['Thu, 11 Jan 2018 20:06:20 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -304,7 +304,7 @@ interactions: cache-control: [no-cache] content-length: ['428'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:50:38 GMT'] + date: ['Thu, 11 Jan 2018 20:06:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -328,12 +328,12 @@ interactions: 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=xIaisS6mMwG+PjoB6mjjSbz/urdlbOCFxvB1GnjBMn8=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=lEcNai6KnqiQzQTr/CGfsaDEUtP+xrh5lV0gmmniGMo=","primaryKey":"xIaisS6mMwG+PjoB6mjjSbz/urdlbOCFxvB1GnjBMn8=","secondaryKey":"lEcNai6KnqiQzQTr/CGfsaDEUtP+xrh5lV0gmmniGMo=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=6OPDSil84ck1Fd2CALTpoMKmv9VAcfluyRMLcHk8uBI=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=S+HHENFnivot+h2PhQcSGadz/NEeYdv2RWU8KxOS4wg=","primaryKey":"6OPDSil84ck1Fd2CALTpoMKmv9VAcfluyRMLcHk8uBI=","secondaryKey":"S+HHENFnivot+h2PhQcSGadz/NEeYdv2RWU8KxOS4wg=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['536'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:50:40 GMT'] + date: ['Thu, 11 Jan 2018 20:06:22 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -358,12 +358,12 @@ interactions: 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=Nhh7vLMINTYumC//nNTN0ilSzQ0isibmPUsVJ+5Jk8w=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=lEcNai6KnqiQzQTr/CGfsaDEUtP+xrh5lV0gmmniGMo=","primaryKey":"Nhh7vLMINTYumC//nNTN0ilSzQ0isibmPUsVJ+5Jk8w=","secondaryKey":"lEcNai6KnqiQzQTr/CGfsaDEUtP+xrh5lV0gmmniGMo=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=2/Vx/3jc606agsKzxq0KYja3BE8bDYTSOYoTYqXRQXU=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=S+HHENFnivot+h2PhQcSGadz/NEeYdv2RWU8KxOS4wg=","primaryKey":"2/Vx/3jc606agsKzxq0KYja3BE8bDYTSOYoTYqXRQXU=","secondaryKey":"S+HHENFnivot+h2PhQcSGadz/NEeYdv2RWU8KxOS4wg=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['536'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:50:56 GMT'] + date: ['Thu, 11 Jan 2018 20:06:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -371,7 +371,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: '{"keyType": "SecondaryKey"}' @@ -388,12 +388,12 @@ interactions: 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=Nhh7vLMINTYumC//nNTN0ilSzQ0isibmPUsVJ+5Jk8w=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=spqvfy9+jLK+uEEuV5W5VmopGig67AakJ6yAszxMSRs=","primaryKey":"Nhh7vLMINTYumC//nNTN0ilSzQ0isibmPUsVJ+5Jk8w=","secondaryKey":"spqvfy9+jLK+uEEuV5W5VmopGig67AakJ6yAszxMSRs=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=2/Vx/3jc606agsKzxq0KYja3BE8bDYTSOYoTYqXRQXU=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=/6tRkuGc9RJWP6ESx6WT/lWrtDb0MX+umf6TVe3sdik=","primaryKey":"2/Vx/3jc606agsKzxq0KYja3BE8bDYTSOYoTYqXRQXU=","secondaryKey":"/6tRkuGc9RJWP6ESx6WT/lWrtDb0MX+umf6TVe3sdik=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['536'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:51:13 GMT'] + date: ['Thu, 11 Jan 2018 20:06:54 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -401,7 +401,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -422,7 +422,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:51:29 GMT'] + date: ['Thu, 11 Jan 2018 20:07:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -449,7 +449,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:51:31 GMT'] + date: ['Thu, 11 Jan 2018 20:07:12 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] @@ -476,7 +476,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:52:02 GMT'] + date: ['Thu, 11 Jan 2018 20:07:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -503,11 +503,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:52:05 GMT'] + date: ['Thu, 11 Jan 2018 20:07:44 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZOQU1FU1BBQ0VSRUs0Qk9TTzc1S1VXNExEWERJQXxDQTdCMkUzRkUwMkY3RDZFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZOQU1FU1BBQ0VQWlBUNEdNTEQ0T0RUVURNSlNIUXxBQTkxNjI2Mzg3MTAyRkI3LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + 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 index 0e077091d14..ede4a3ae5b5 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml @@ -20,14 +20,14 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:52:07 GMT'] + date: ['Thu, 11 Jan 2018 20:07:46 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: - body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": + body: '{"location": "westus2", "tags": {"{tag2: value2,": "", "tag1: value1}": ""}, "sku": {"name": "Standard", "tier": "Standard"}}' headers: Accept: [application/json] @@ -43,12 +43,12 @@ interactions: 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-10T03:52:09.3Z","updatedAt":"2018-01-10T03:52:09.3Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:07:45.98Z","updatedAt":"2018-01-11T20:07:45.98Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['692'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:52:10 GMT'] + date: ['Thu, 11 Jan 2018 20:07:47 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,7 +56,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -73,12 +73,12 @@ interactions: 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-10T03:52:09.3Z","updatedAt":"2018-01-10T03:52:35.073Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:07:45.98Z","updatedAt":"2018-01-11T20:08:11.707Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['692'] + content-length: ['693'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:52:41 GMT'] + date: ['Thu, 11 Jan 2018 20:08:17 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -102,12 +102,12 @@ interactions: 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-10T03:52:09.3Z","updatedAt":"2018-01-10T03:52:35.073Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:07:45.98Z","updatedAt":"2018-01-11T20:08:11.707Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['692'] + content-length: ['693'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:52:43 GMT'] + date: ['Thu, 11 Jan 2018 20:08:19 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-10T03:52:47.99Z","updatedAt":"2018-01-10T03:52:48.087Z","accessedAt":"0001-01-01T00:00:00"}}'} + 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-11T20:08:24.79Z","updatedAt":"2018-01-11T20:08:24.87Z","accessedAt":"0001-01-01T00:00:00"}}'} headers: cache-control: [no-cache] - content-length: ['1032'] + content-length: ['1031'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:52:49 GMT'] + date: ['Thu, 11 Jan 2018 20:08:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -145,7 +145,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -162,12 +162,12 @@ interactions: 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-10T03:52:47.99Z","updatedAt":"2018-01-10T03:52:48.087Z","accessedAt":"0001-01-01T00:00:00Z"}}'} + 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-11T20:08:24.79Z","updatedAt":"2018-01-11T20:08:24.87Z","accessedAt":"0001-01-01T00:00:00Z"}}'} headers: cache-control: [no-cache] - content-length: ['1033'] + content-length: ['1032'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:52:50 GMT'] + date: ['Thu, 11 Jan 2018 20:08:26 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -191,12 +191,12 @@ interactions: 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-10T03:52:47.99Z","updatedAt":"2018-01-10T03:52:48.087Z","accessedAt":"0001-01-01T00:00:00Z"}}]}'} + 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-11T20:08:24.79Z","updatedAt":"2018-01-11T20:08:24.87Z","accessedAt":"0001-01-01T00:00:00Z"}}]}'} headers: cache-control: [no-cache] - content-length: ['1045'] + content-length: ['1044'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:52:52 GMT'] + date: ['Thu, 11 Jan 2018 20:08:27 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -227,7 +227,7 @@ interactions: cache-control: [no-cache] content-length: ['442'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:52:53 GMT'] + date: ['Thu, 11 Jan 2018 20:08:29 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -257,7 +257,7 @@ interactions: cache-control: [no-cache] content-length: ['442'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:52:55 GMT'] + date: ['Thu, 11 Jan 2018 20:08:29 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -281,12 +281,12 @@ interactions: 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=HEE2oBQ2K+dM/eSSEWQPMZ3JJ7WxrDBrlU1pcmHJLp0=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=1ZBgD8wprlPiuhtp6MqCnNWUtsHV4YGftQxHRCkxfW4=;EntityPath=sb-queuecli000004","primaryKey":"HEE2oBQ2K+dM/eSSEWQPMZ3JJ7WxrDBrlU1pcmHJLp0=","secondaryKey":"1ZBgD8wprlPiuhtp6MqCnNWUtsHV4YGftQxHRCkxfW4=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=pBDRz0xMsh8j+o9ViIrlUKRxzLtWCsN5iNqOKWKLMJ4=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=1y3ZhhMlvNjdbaBqfTJXxh8GoRBVAAm9htcZl4Y9vn8=;EntityPath=sb-queuecli000004","primaryKey":"pBDRz0xMsh8j+o9ViIrlUKRxzLtWCsN5iNqOKWKLMJ4=","secondaryKey":"1y3ZhhMlvNjdbaBqfTJXxh8GoRBVAAm9htcZl4Y9vn8=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:52:56 GMT'] + date: ['Thu, 11 Jan 2018 20:08:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -294,7 +294,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: '{"keyType": "PrimaryKey"}' @@ -311,12 +311,12 @@ interactions: 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=hm6ORjPfv4Bq14Te0AXXbUVPyTPylSuU5c5FcCuPK4M=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=1ZBgD8wprlPiuhtp6MqCnNWUtsHV4YGftQxHRCkxfW4=;EntityPath=sb-queuecli000004","primaryKey":"hm6ORjPfv4Bq14Te0AXXbUVPyTPylSuU5c5FcCuPK4M=","secondaryKey":"1ZBgD8wprlPiuhtp6MqCnNWUtsHV4YGftQxHRCkxfW4=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=cyQi30StY8HGFC/3fW2VhqsjkLlRIQ4Uzh8eIm0fOn8=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=1y3ZhhMlvNjdbaBqfTJXxh8GoRBVAAm9htcZl4Y9vn8=;EntityPath=sb-queuecli000004","primaryKey":"cyQi30StY8HGFC/3fW2VhqsjkLlRIQ4Uzh8eIm0fOn8=","secondaryKey":"1y3ZhhMlvNjdbaBqfTJXxh8GoRBVAAm9htcZl4Y9vn8=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:52:58 GMT'] + date: ['Thu, 11 Jan 2018 20:08:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -324,7 +324,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: '{"keyType": "SecondaryKey"}' @@ -341,12 +341,12 @@ interactions: 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=hm6ORjPfv4Bq14Te0AXXbUVPyTPylSuU5c5FcCuPK4M=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=6su+KkW29I9VXuqNFpk1HN2NviYfuIHZ/0CNAP1Q1CI=;EntityPath=sb-queuecli000004","primaryKey":"hm6ORjPfv4Bq14Te0AXXbUVPyTPylSuU5c5FcCuPK4M=","secondaryKey":"6su+KkW29I9VXuqNFpk1HN2NviYfuIHZ/0CNAP1Q1CI=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=cyQi30StY8HGFC/3fW2VhqsjkLlRIQ4Uzh8eIm0fOn8=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=z6yDW35BZJWED+zwiASIskmOGvgwT8mXBa8Jwq7GrOw=;EntityPath=sb-queuecli000004","primaryKey":"cyQi30StY8HGFC/3fW2VhqsjkLlRIQ4Uzh8eIm0fOn8=","secondaryKey":"z6yDW35BZJWED+zwiASIskmOGvgwT8mXBa8Jwq7GrOw=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:53:00 GMT'] + date: ['Thu, 11 Jan 2018 20:08:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -375,13 +375,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:53:02 GMT'] + date: ['Thu, 11 Jan 2018 20:08: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: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -402,13 +402,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:53:04 GMT'] + date: ['Thu, 11 Jan 2018 20: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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -429,14 +429,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:53:06 GMT'] + date: ['Thu, 11 Jan 2018 20:08:35 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: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -456,7 +456,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:53:36 GMT'] + date: ['Thu, 11 Jan 2018 20:09:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -483,11 +483,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:53:39 GMT'] + date: ['Thu, 11 Jan 2018 20:09:20 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZRVUVVRUdEUjQ2VjNUWjRHWkJRSkxLUU5DWUNKR3wzRDk4NjdDNjJFMzc4NkZDLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZRVUVVRUlRTlJDV0Y2MkJUNElGRFVIR1RJSkpTWXxFMUMzREQ4NjdFMjAwQzVGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] 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 index 1c1a4703620..2a80b654fe9 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml @@ -20,14 +20,14 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:53:46 GMT'] + date: ['Thu, 11 Jan 2018 20:09:22 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] status: {code: 201, message: Created} - request: - body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": + body: '{"location": "westus2", "tags": {"{tag2: value2,": "", "tag1: value1}": ""}, "sku": {"name": "Standard", "tier": "Standard"}}' headers: Accept: [application/json] @@ -43,12 +43,12 @@ interactions: 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-10T03:53:48.56Z","updatedAt":"2018-01-10T03:53:48.56Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:09:22.36Z","updatedAt":"2018-01-11T20:09:22.36Z","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: ['Wed, 10 Jan 2018 03:53:49 GMT'] + date: ['Thu, 11 Jan 2018 20:09:23 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,7 +56,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -73,12 +73,12 @@ interactions: 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-10T03:53:48.56Z","updatedAt":"2018-01-10T03:54:15.47Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:09:22.36Z","updatedAt":"2018-01-11T20:09:48.503Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['692'] + content-length: ['693'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:54:19 GMT'] + date: ['Thu, 11 Jan 2018 20:09:54 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -102,12 +102,12 @@ interactions: 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-10T03:53:48.56Z","updatedAt":"2018-01-10T03:54:15.47Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:09:22.36Z","updatedAt":"2018-01-11T20:09:48.503Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['692'] + content-length: ['693'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:54:22 GMT'] + date: ['Thu, 11 Jan 2018 20:09:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-10T03:54:25.82Z","updatedAt":"2018-01-10T03:54:25.88Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-11T20:09:57.12Z","updatedAt":"2018-01-11T20:09:57.15Z","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: ['Wed, 10 Jan 2018 03:54:26 GMT'] + date: ['Thu, 11 Jan 2018 20:09:58 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -145,7 +145,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -162,12 +162,12 @@ interactions: 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-10T03:54:25.82Z","updatedAt":"2018-01-10T03:54:25.88Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-11T20:09:57.12Z","updatedAt":"2018-01-11T20:09:57.15Z","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: ['Wed, 10 Jan 2018 03:54:28 GMT'] + date: ['Thu, 11 Jan 2018 20:09:58 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -192,12 +192,12 @@ interactions: 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-10T03:54:32.4379789Z","updatedAt":"2018-01-10T03:54:32.4379789Z","accessedAt":"0001-01-01T00:00:00","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-11T20:10:01.0492685Z","updatedAt":"2018-01-11T20:10:01.0492685Z","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: ['Wed, 10 Jan 2018 03:54:32 GMT'] + date: ['Thu, 11 Jan 2018 20:10:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -205,7 +205,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -222,12 +222,12 @@ interactions: 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-10T03:54:32.4374069Z","updatedAt":"2018-01-10T03:54:32.4374069Z","accessedAt":"2018-01-10T03:54:32.4374069Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-11T20:10:01.3436816Z","updatedAt":"2018-01-11T20:10:01.3436816Z","accessedAt":"2018-01-11T20:10:01.3436816Z","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: ['Wed, 10 Jan 2018 03:54:34 GMT'] + date: ['Thu, 11 Jan 2018 20:10:01 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -258,7 +258,7 @@ interactions: cache-control: [no-cache] content-length: ['563'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:54:37 GMT'] + date: ['Thu, 11 Jan 2018 20:10:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -266,7 +266,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -288,7 +288,7 @@ interactions: cache-control: [no-cache] content-length: ['579'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:54:39 GMT'] + date: ['Thu, 11 Jan 2018 20:10:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -317,7 +317,7 @@ interactions: cache-control: [no-cache] content-length: ['591'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:54:40 GMT'] + date: ['Thu, 11 Jan 2018 20:10:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -346,13 +346,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:54:43 GMT'] + date: ['Thu, 11 Jan 2018 20:10: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: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -373,13 +373,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:54:45 GMT'] + date: ['Thu, 11 Jan 2018 20:10: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: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -400,13 +400,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:54:47 GMT'] + date: ['Thu, 11 Jan 2018 20:10: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: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -427,14 +427,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:54:49 GMT'] + date: ['Thu, 11 Jan 2018 20:10: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: ['1195'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} - request: body: null @@ -454,7 +454,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:55:20 GMT'] + date: ['Thu, 11 Jan 2018 20:10:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -481,11 +481,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:55:22 GMT'] + date: ['Thu, 11 Jan 2018 20:10:42 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZSVUxFU1JQRlJINlNRQUZPQUtGMkhJWkU3TzJGVHw0MUM3OTE3Qzg3QUU3Q0I4LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZSVUxFU0ZSREk2MktUQk9PWkhXM05ETUtFMlU0NXw2NUQ4MjQ0NzQyRUJGNDJGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] 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 index ce087b499f2..81c347f4105 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml @@ -20,14 +20,14 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:55:24 GMT'] + date: ['Thu, 11 Jan 2018 20:10:45 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 201, message: Created} - request: - body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": + body: '{"location": "westus2", "tags": {"{tag2: value2,": "", "tag1: value1}": ""}, "sku": {"name": "Standard", "tier": "Standard"}}' headers: Accept: [application/json] @@ -43,12 +43,12 @@ interactions: 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-10T03:55:26.54Z","updatedAt":"2018-01-10T03:55:26.54Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:10:45.427Z","updatedAt":"2018-01-11T20:10:45.427Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['694'] + content-length: ['696'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:55:28 GMT'] + date: ['Thu, 11 Jan 2018 20:10:47 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,7 +56,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -73,12 +73,12 @@ interactions: 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-10T03:55:26.54Z","updatedAt":"2018-01-10T03:55:52.927Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:10:45.427Z","updatedAt":"2018-01-11T20:11:10.72Z","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: ['Wed, 10 Jan 2018 03:55:58 GMT'] + date: ['Thu, 11 Jan 2018 20:11:17 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -102,12 +102,12 @@ interactions: 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-10T03:55:26.54Z","updatedAt":"2018-01-10T03:55:52.927Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:10:45.427Z","updatedAt":"2018-01-11T20:11:10.72Z","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: ['Wed, 10 Jan 2018 03:56:00 GMT'] + date: ['Thu, 11 Jan 2018 20:11:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-10T03:56:03.46Z","updatedAt":"2018-01-10T03:56:03.52Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-11T20:11:20.887Z","updatedAt":"2018-01-11T20:11:20.98Z","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-length: ['1003'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:56:04 GMT'] + date: ['Thu, 11 Jan 2018 20:11:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -145,7 +145,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -162,12 +162,12 @@ interactions: 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-10T03:56:03.46Z","updatedAt":"2018-01-10T03:56:03.52Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-11T20:11:20.887Z","updatedAt":"2018-01-11T20:11:20.98Z","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-length: ['1004'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:56:05 GMT'] + date: ['Thu, 11 Jan 2018 20:11:23 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -192,12 +192,12 @@ interactions: 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-10T03:56:09.9992548Z","updatedAt":"2018-01-10T03:56:09.9992548Z","accessedAt":"0001-01-01T00:00:00","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-11T20:11:25.1602526Z","updatedAt":"2018-01-11T20:11:25.1602526Z","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: ['Wed, 10 Jan 2018 03:56:09 GMT'] + date: ['Thu, 11 Jan 2018 20:11:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -205,7 +205,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null @@ -222,12 +222,12 @@ interactions: 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-10T03:56:10.4294214Z","updatedAt":"2018-01-10T03:56:10.4294214Z","accessedAt":"2018-01-10T03:56:10.43Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-11T20:11:26.0489984Z","updatedAt":"2018-01-11T20:11:26.0489984Z","accessedAt":"2018-01-11T20:11:26.05Z","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: ['Wed, 10 Jan 2018 03:56:11 GMT'] + date: ['Thu, 11 Jan 2018 20:11:26 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -251,12 +251,12 @@ interactions: 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-10T03:56:10.4294214Z","updatedAt":"2018-01-10T03:56:10.4294214Z","accessedAt":"2018-01-10T03:56:10.43Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}]}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-11T20:11:26.0489984Z","updatedAt":"2018-01-11T20:11:26.0489984Z","accessedAt":"2018-01-11T20:11:26.05Z","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: ['Wed, 10 Jan 2018 03:56:13 GMT'] + date: ['Thu, 11 Jan 2018 20:11:27 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -285,13 +285,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:56:14 GMT'] + date: ['Thu, 11 Jan 2018 20:11: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: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -312,13 +312,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:56:16 GMT'] + date: ['Thu, 11 Jan 2018 20:11: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: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -339,14 +339,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:56:19 GMT'] + date: ['Thu, 11 Jan 2018 20:11:30 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: ['1195'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} - request: body: null @@ -366,7 +366,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:56:49 GMT'] + date: ['Thu, 11 Jan 2018 20:12:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -393,11 +393,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:56:51 GMT'] + date: ['Thu, 11 Jan 2018 20:12:02 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZTVUJTQ1JJUFRJT05LV1JNUFIzTUtWN1BYNlhTT3w5MDQ3MDk3QjYzOTNEMTNGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZTVUJTQ1JJUFRJT05NQUJIRkUyS0pFTlROSzNDVHxDMjhFRTM4ODJFOUYyRDE0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] 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 index c4bfcb56de3..45231be797d 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml @@ -20,14 +20,14 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:56:54 GMT'] + date: ['Thu, 11 Jan 2018 20:12:04 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: - body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": + body: '{"location": "westus2", "tags": {"{tag2: value2,": "", "tag1: value1}": ""}, "sku": {"name": "Standard", "tier": "Standard"}}' headers: Accept: [application/json] @@ -43,12 +43,12 @@ interactions: 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-10T03:56:55.223Z","updatedAt":"2018-01-10T03:56:55.223Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:12:04.943Z","updatedAt":"2018-01-11T20:12:04.943Z","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: ['Wed, 10 Jan 2018 03:56:56 GMT'] + date: ['Thu, 11 Jan 2018 20:12:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,7 +56,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -73,12 +73,12 @@ interactions: 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-10T03:56:55.223Z","updatedAt":"2018-01-10T03:57:20.52Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:12:04.943Z","updatedAt":"2018-01-11T20:12:32.417Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['693'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:57:27 GMT'] + date: ['Thu, 11 Jan 2018 20:12:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -102,12 +102,12 @@ interactions: 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-10T03:56:55.223Z","updatedAt":"2018-01-10T03:57:20.52Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:12:04.943Z","updatedAt":"2018-01-11T20:12:32.417Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['693'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:57:29 GMT'] + date: ['Thu, 11 Jan 2018 20:12:37 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-10T03:57:32.257Z","updatedAt":"2018-01-10T03:57:32.287Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-11T20:12:39.793Z","updatedAt":"2018-01-11T20:12:39.857Z","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: ['Wed, 10 Jan 2018 03:57:33 GMT'] + date: ['Thu, 11 Jan 2018 20:12:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -145,7 +145,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -162,12 +162,12 @@ interactions: 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-10T03:57:32.257Z","updatedAt":"2018-01-10T03:57:32.287Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-11T20:12:39.793Z","updatedAt":"2018-01-11T20:12:39.857Z","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: ['Wed, 10 Jan 2018 03:57:34 GMT'] + date: ['Thu, 11 Jan 2018 20:12:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -191,12 +191,12 @@ interactions: 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-10T03:57:32.257Z","updatedAt":"2018-01-10T03:57:32.287Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}]}'} + 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-11T20:12:39.793Z","updatedAt":"2018-01-11T20:12:39.857Z","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: ['1017'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:57:36 GMT'] + date: ['Thu, 11 Jan 2018 20:12:42 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -227,7 +227,7 @@ interactions: cache-control: [no-cache] content-length: ['440'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:57:38 GMT'] + date: ['Thu, 11 Jan 2018 20:12:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -235,7 +235,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] status: {code: 200, message: OK} - request: body: null @@ -257,7 +257,7 @@ interactions: cache-control: [no-cache] content-length: ['440'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:57:40 GMT'] + date: ['Thu, 11 Jan 2018 20:12:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -281,12 +281,12 @@ interactions: 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=UIvpWtZH0fiI2qVph2KDtqYj8wqPvoCruC03PUmu4B4=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ZFZoKYVSLyHwo4lNepoddS1UOpRQZQ+k43Is39vix1s=;EntityPath=sb-topiccli000004","primaryKey":"UIvpWtZH0fiI2qVph2KDtqYj8wqPvoCruC03PUmu4B4=","secondaryKey":"ZFZoKYVSLyHwo4lNepoddS1UOpRQZQ+k43Is39vix1s=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=YxOBsGX0qjXWYmEHDt55uPg41jYYXZBgBtsTLkR4SgM=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=/qU88jz3osM4JRTMRXcxj8BFTfVdtelztb0l4ujBEK4=;EntityPath=sb-topiccli000004","primaryKey":"YxOBsGX0qjXWYmEHDt55uPg41jYYXZBgBtsTLkR4SgM=","secondaryKey":"/qU88jz3osM4JRTMRXcxj8BFTfVdtelztb0l4ujBEK4=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:57:42 GMT'] + date: ['Thu, 11 Jan 2018 20:12:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -294,7 +294,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: '{"keyType": "PrimaryKey"}' @@ -311,12 +311,12 @@ interactions: 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=KDIyIPOUjqwPr2ExZCsejXxW/mRPVlOjdw3pM9wiSFk=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ZFZoKYVSLyHwo4lNepoddS1UOpRQZQ+k43Is39vix1s=;EntityPath=sb-topiccli000004","primaryKey":"KDIyIPOUjqwPr2ExZCsejXxW/mRPVlOjdw3pM9wiSFk=","secondaryKey":"ZFZoKYVSLyHwo4lNepoddS1UOpRQZQ+k43Is39vix1s=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=TYZtZ1TcG46A8BoePHuP+LdmDl5aj5UGoOD6lfruGY0=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=/qU88jz3osM4JRTMRXcxj8BFTfVdtelztb0l4ujBEK4=;EntityPath=sb-topiccli000004","primaryKey":"TYZtZ1TcG46A8BoePHuP+LdmDl5aj5UGoOD6lfruGY0=","secondaryKey":"/qU88jz3osM4JRTMRXcxj8BFTfVdtelztb0l4ujBEK4=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:57:44 GMT'] + date: ['Thu, 11 Jan 2018 20:12:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -324,7 +324,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: '{"keyType": "SecondaryKey"}' @@ -341,12 +341,12 @@ interactions: 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=KDIyIPOUjqwPr2ExZCsejXxW/mRPVlOjdw3pM9wiSFk=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=nXmJA/Ms4OWSdETEB92fP94mvOF82mAu1I2l25/f4fM=;EntityPath=sb-topiccli000004","primaryKey":"KDIyIPOUjqwPr2ExZCsejXxW/mRPVlOjdw3pM9wiSFk=","secondaryKey":"nXmJA/Ms4OWSdETEB92fP94mvOF82mAu1I2l25/f4fM=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=TYZtZ1TcG46A8BoePHuP+LdmDl5aj5UGoOD6lfruGY0=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=aJo+pK68mfrU+rtr2KKc+HIyMabc5Qh/IRwL1KpgcwI=;EntityPath=sb-topiccli000004","primaryKey":"TYZtZ1TcG46A8BoePHuP+LdmDl5aj5UGoOD6lfruGY0=","secondaryKey":"aJo+pK68mfrU+rtr2KKc+HIyMabc5Qh/IRwL1KpgcwI=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Wed, 10 Jan 2018 03:57:46 GMT'] + date: ['Thu, 11 Jan 2018 20:12:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -375,13 +375,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:57:48 GMT'] + date: ['Thu, 11 Jan 2018 20:12: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: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -402,13 +402,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:57:51 GMT'] + date: ['Thu, 11 Jan 2018 20:12: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: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -430,9 +430,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Wed, 10 Jan 2018 03:57:53 GMT'] + date: ['Thu, 11 Jan 2018 20:12:49 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZUT1BJQ1AyN0JIM1lST0hIQkk1WUxFNFVRUU5RV3xDMUZEOTJGNkQwOEFBQzg2LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZUT1BJQzdYTExFSUdSVklYUUtZVDUyN1hHN0Q0SXw4RkEzOTU3MTBDOTlFNDU3LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-ms-ratelimit-remaining-subscription-writes: ['1197'] diff --git a/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py b/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py index b8d81cad78b..e64c0052ed5 100644 --- a/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py +++ b/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py @@ -409,12 +409,12 @@ def test_sb_alias(self, resource_group): # Get Created Namespace - Secondary getnamespace2result = self.cmd('servicebus namespace show --resource-group {rg} --name {namespacenamesecondary}', - checks=[self.check('sku.name', self.kwargs['sku'])]).output + 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 = json.loads(getnamespace2result)['id'] + partnernamespaceid = getnamespace2result['id'] self.kwargs.update({'id': partnernamespaceid}) # Get Create Authorization Rule self.cmd('servicebus namespace authorizationrule show --resource-group {rg} --namespace-name {namespacenameprimary}' diff --git a/src/servicebus/setup.py b/src/servicebus/setup.py index dce565f2e08..1701e7d2fdb 100644 --- a/src/servicebus/setup.py +++ b/src/servicebus/setup.py @@ -30,12 +30,12 @@ name='servicebus', version=VERSION, description='An Azure CLI Extension to manage servicebus resources', - long_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(), + packages=find_packages(exclude=["tests"]), install_requires=DEPENDENCIES ) From 2291a743bfc2586c12321ab78bbcc66db9ad37f0 Mon Sep 17 00:00:00 2001 From: "Ajit Maruti Navasare (MINDTREE LIMITED)" Date: Sun, 14 Jan 2018 17:13:59 -0800 Subject: [PATCH 07/13] Review comments resolved --- src/servicebus/azext_servicebus/__init__.py | 3 +- src/servicebus/azext_servicebus/_help.py | 302 +++++++++--------- src/servicebus/azext_servicebus/_params.py | 16 +- src/servicebus/azext_servicebus/commands.py | 27 +- .../recordings/latest/test_sb_alias.yaml | 241 ++++++++------ .../recordings/latest/test_sb_namespace.yaml | 107 ++++--- .../recordings/latest/test_sb_queue.yaml | 82 ++--- .../recordings/latest/test_sb_rules.yaml | 70 ++-- .../latest/test_sb_subscription.yaml | 64 ++-- .../recordings/latest/test_sb_topic.yaml | 82 ++--- .../tests/test_servicebus_commands.py | 70 ++-- 11 files changed, 558 insertions(+), 506 deletions(-) diff --git a/src/servicebus/azext_servicebus/__init__.py b/src/servicebus/azext_servicebus/__init__.py index 3871c2c1b96..07162148bfb 100644 --- a/src/servicebus/azext_servicebus/__init__.py +++ b/src/servicebus/azext_servicebus/__init__.py @@ -6,8 +6,7 @@ # pylint: disable=unused-import from azure.cli.core import AzCommandsLoader -from azext_servicebus._help import helps - +from ._help import helps class ServicebusCommandsLoader(AzCommandsLoader): diff --git a/src/servicebus/azext_servicebus/_help.py b/src/servicebus/azext_servicebus/_help.py index 04105848c24..5cb07d51f23 100644 --- a/src/servicebus/azext_servicebus/_help.py +++ b/src/servicebus/azext_servicebus/_help.py @@ -13,58 +13,70 @@ helps['servicebus namespace'] = """ type: group - short-summary: Manage Azure Service Bus namespace and authorization-rule + short-summary: Manage Azure Service Bus Namespace """ -helps['servicebus queue'] = """ +helps['servicebus namespace authorizationrule'] = """ type: group - short-summary: Manage Azure Service Bus queue and authorization-rule + short-summary: Manage Azure Service Bus Namespace AuthorizationRule """ -helps['servicebus topic'] = """ +helps['servicebus queue'] = """ type: group - short-summary: Manage Azure Service Bus topic and authorization-rule + short-summary: Manage Azure Service Bus Queue and authorizationrule """ -helps['servicebus subscription'] = """ +helps['servicebus queue authorizationrule'] = """ type: group - short-summary: Manage Azure Service Bus subscription + short-summary: Manage Azure Service Bus Queue AuthorizationRule """ -helps['servicebus rule'] = """ +helps['servicebus topic'] = """ type: group - short-summary: Manage Azure Service Bus rule + 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 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 namespace check-name-availability'] = """ +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 check-name-availability --name mynamespace - - """ + text: az servicebus namespace exists --name mynamespace +""" helps['servicebus namespace create'] = """ type: command - short-summary: Creates the Service Bus Namespace + short-summary: Creates a Service Bus Namespace examples: - - name: Create a new Namespace. + - 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 - - """ + --tags ['tag1' 'value1', 'tag2' 'value2'] --sku-name Standard --sku-tier Standard +""" helps['servicebus namespace show'] = """ type: command @@ -72,8 +84,7 @@ examples: - name: shows the Namespace details. text: helps['az servicebus namespace show --resource-group myresourcegroup --name mynamespace'] - - """ +""" helps['servicebus namespace list'] = """ type: command @@ -83,8 +94,7 @@ text: helps['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 @@ -92,123 +102,110 @@ 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' + - 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 get'] = """ +helps['servicebus namespace authorizationrule show'] = """ type: command - short-summary: Shows the details of AuthorizationRule + short-summary: Shows the details of Service Bus Namespace AuthorizationRule examples: - - name: Shows the details of AuthorizationRule + - 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 Namespace + short-summary: Shows the list of AuthorizationRule by Service Bus Namespace examples: - - name: Shows the list of AuthorizationRule by Namespace + - 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 list-keys'] = """ +helps['servicebus namespace authorizationrule keys list'] = """ type: command - short-summary: Shows the connectionstrings of AuthorizationRule for the namespace + short-summary: Shows the connection strings of AuthorizationRule for the Service Bus Namespace examples: - - name: Shows the connectionstrings of AuthorizationRule for the namespace. + - 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 regenerate-keys'] = """ +helps['servicebus namespace authorizationrule keys renew'] = """ type: command - short-summary: Regenerate the connectionstrings of AuthorizationRule for the namespace. + short-summary: Regenerate the connection strings of AuthorizationRule for the Service Bus Namespace. examples: - - name: Regenerate the connectionstrings of AuthorizationRule for the namespace. + - 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 namespace. + short-summary: Deletes the AuthorizationRule of the Service Bus Namespace. examples: - - name: Deletes the AuthorizationRule of the namespace. + - name: Deletes the AuthorizationRule of the Service Bus Namespace. text: az servicebus namespace authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace --name myauthorule - - """ +""" helps['sb queue create'] = """ type: command short-summary: Creates the Service Bus Queue examples: - - name: Creates a new queue. + - name: Creates Service Bus Queue. text: az sb queue create --resource-group myresourcegroup --namespace-name mynamespace --name myqueue - - """ +""" helps['servicebus queue show'] = """ type: command - short-summary: shows the Queue Details + short-summary: shows the Service Bus Queue Details examples: - - name: Shows the queue details. + - 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 Namepsace + short-summary: List the Queue by Service Bus Namepsace examples: - - name: Get the Queues by Namespace. + - 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 Queue + 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 Queue + short-summary: Creates Authorization rule for the given Service Bus Queue examples: - - name: Creates Authorization rules + - 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 + 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 @@ -217,28 +214,25 @@ - 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 list-keys'] = """ +helps['servicebus queue authorizationrule keys list'] = """ type: command short-summary: Shows the connectionstrings of AuthorizationRule for the Queue. examples: - name: Shows the connectionstrings 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 regenerate-keys'] = """ +helps['servicebus queue authorizationrule keys renew'] = """ type: command - short-summary: Regenerate the connectionstrings of AuthorizationRule for the namespace. + short-summary: Regenerate the connection strings of AuthorizationRule for the namespace. examples: - name: Regenerate the connectionstrings 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 @@ -247,54 +241,48 @@ - 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 ServiceBus Topic + 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 {topicname} - - """ +""" helps['sb topic show'] = """ type: command - short-summary: Shows the Topic Details + short-summary: Shows the Service Bus Topic Details examples: - name: Shows the Topic details. text: az sb topic get --resource-group myresourcegroup --namespace-name mynamespace --name {topicname} - - """ +""" helps['servicebus topic list'] = """ type: command - short-summary: List the Topic by Namepsace + 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 Topic + short-summary: Deletes the Service Bus Topic examples: - name: Deletes the topic text: az servicebus topic delete --resource-group myresourcegroup --namespace-name mynamespace --name {topicname} - - """ +""" helps['servicebus topic authorizationrule create'] = """ type: command - short-summary: Creates Authorization rule for the given Topic + 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 {topicname} --name myauthorule --access-rights [Send, Listen] - - """ +""" helps['servicebus topic authorizationrule show'] = """ type: command @@ -303,38 +291,34 @@ - name: Shows the details of AuthorizationRule text: az servicebus topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --name myauthorule - - """ +""" helps['servicebus topic authorizationrule list'] = """ type: command - short-summary: Gets the list of AuthorizationRule by Topic + short-summary: shows list of AuthorizationRule by Topic examples: - - name: Gets the list of AuthorizationRule by Topic + - name: shows list of AuthorizationRule by Topic text: az servicebus topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} +""" - """ - -helps['servicebus topic authorizationrule list-keys'] = """ +helps['servicebus topic authorizationrule keys list'] = """ type: command - short-summary: shows the connectionstrings of AuthorizationRule for the Topic. + short-summary: shows connection strings of AuthorizationRule for the Topic. examples: - - name: Gets the connectionstrings of AuthorizationRule for the topic. + - name: shows connection strings of AuthorizationRule for the topic. text: az servicebus topic authorizationrule listkeys --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --name myauthorule +""" - """ - -helps['servicebus topic authorizationrule regenerate-keys'] = """ +helps['servicebus topic authorizationrule keys renew'] = """ type: command - short-summary: Regenerate the connectionstrings of AuthorizationRule for the Topic. + short-summary: Regenerate the connection strings of AuthorizationRule for the Topic. examples: - - name: Regenerate the connectionstrings of AuthorizationRule for the Topic. + - 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 {topicname} --name myauthorule --regeneratekey PrimaryKey - - """ + --topic-name {topicname} --name myauthorule --key PrimaryKey +""" helps['servicebus topic authorizationrule delete'] = """ type: command @@ -343,8 +327,8 @@ - name: Deletes the AuthorizationRule of the topic text: az servicebus topic authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --name myauthorule +""" - """ helps['servicebus subscription create'] = """ type: command short-summary: Creates the ServiceBus Subscription @@ -357,52 +341,47 @@ helps['servicebus subscription show'] = """ type: command - short-summary: Shows the Subscription Details + 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 {topicname} --name {subscriptionname} - - """ +""" helps['servicebus subscription list'] = """ type: command - short-summary: List the Subscription by Topic + short-summary: List the Subscription by Service Bus Topic examples: - - name: Shows the Subscription by Topic. + - 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 Subscription + 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 {topicname} --name {subscriptionname} - - """ +""" helps['servicebus rule create'] = """ type: command short-summary: Creates the ServiceBus Rule for Subscription examples: - - name: Create a new Rule. + - name: Creates Rule. text: az servicebus rule create --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --subscription-name {subscriptionname} --name {rulename} --filter-sql-expression {sqlexpression} - - """ +""" helps['servicebus rule show'] = """ type: command - short-summary: Shows the Rule Details + short-summary: Shows Rule Details examples: - name: Shows the Rule details. text: az servicebus rule show --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --subscription-name {subscriptionname} --name {rulename} - - """ +""" helps['sb rule list'] = """ type: command @@ -411,8 +390,7 @@ - name: Shows the Rule by Subscription. text: az sb rule list --resource-group myresourcegroup --namespace-name mynamespace --subscription-name {subscriptionname} - - """ +""" helps['servicebus rule delete'] = """ type: command @@ -421,32 +399,29 @@ - name: Deletes the Rule text: az servicebus rule delete --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} --subscription-name {subscriptionname} --name {rulename} +""" - """ - -helps['servicebus georecovery-alias check_name_availability'] = """ +helps['servicebus georecovery-alias exists'] = """ type: command - short-summary: Check the availability of the Geo Disaster Recovery configuration - Alias Name + 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 check_name_availability --resource-group myresourcegroup --namespace-name primarynamespace + text: az servicebus georecovery-alias exists --resource-group myresourcegroup --namespace-name primarynamespace --alias myaliasname - - """ +""" helps['servicebus georecovery-alias create'] = """ type: command - short-summary: Creates Geo Disaster Recovery configuration - Alias for the give Namespace + 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 - - """ + --alias myaliasname --partner-namespace +""" helps['servicebus georecovery-alias show'] = """ type: command - short-summary: shows details of Geo Disaster Recovery configuration - Alias for Primay/Secondary Namespace + 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 @@ -454,35 +429,48 @@ - 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 the Geo Disaster Recovery and stops replicating changes from primary to secondary namespaces + 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: Envokes Geo Disaster Recovery failover and reconfigure the alias to point to the secondary namespace + short-summary: Envokes Service Bus Geo Recovery Alias failover and re-configure the alias to point to the secondary namespace examples: - name: Envokes 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 Geo Disaster Recovery configuration - Alias request accepted + 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 index 7f7b92c68b4..14922c47ade 100644 --- a/src/servicebus/azext_servicebus/_params.py +++ b/src/servicebus/azext_servicebus/_params.py @@ -11,7 +11,7 @@ # pylint: disable=line-too-long def load_arguments_namespace(self, _): - with self.argument_context('servicebus namespace check-name-availability') as c: + with self.argument_context('servicebus namespace exists') as c: c.argument('namespace_name', options_list=['--name'], help='name of the Namespace') with self.argument_context('servicebus namespace create') as c: @@ -43,7 +43,7 @@ def load_arguments_namespace(self, _): c.argument('accessrights', options_list=['--access-rights'], help='Authorization rule rights of type list, allowed values are Send, Listen or Manage') - with self.argument_context('servicebus namespace authorizationrule regenerate-keys') as c: + 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'])) @@ -124,7 +124,7 @@ def load_arguments_queue(self, _): with self.argument_context('servicebus queue authorizationrule create') as c: c.argument('accessrights', options_list=['--access-rights'], help='Authorization rule rights of type list, allowed values are Send, Listen or Manage') - with self.argument_context('servicebus queue authorizationrule regenerate-keys') as c: + 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'])) @@ -195,7 +195,7 @@ def load_arguments_topic(self, _): with self.argument_context('servicebus topic authorizationrule create') as c: c.argument('accessrights', options_list=['--access-rights'], help='Authorization rule rights of type list, allowed values are Send, Listen or Manage') - with self.argument_context('servicebus topic authorizationrule regenerate-keys') as c: + 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'])) @@ -312,7 +312,7 @@ def load_arguments_rule(self, _): # # # # Geo DR - Disaster Recovery Configs - Alias : Region def load_arguments_geodr(self, _): - with self.argument_context('servicebus georecovery-alias check-name-availability') as c: + with self.argument_context('servicebus georecovery-alias exists') 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') c.argument('name', options_list=['--name'], @@ -338,7 +338,7 @@ def load_arguments_geodr(self, _): c.argument('resource_group_name', arg_type=resource_group_name_type) c.argument('namespace_name', options_list=['--namespace-name'], help='name of the Namespace') - for scope in ['servicebus georecovery-alias break-pairing', 'servicebus georecovery-alias fail_over', 'servicebus georecovery-alias list-authorization-rules']: + for scope in ['servicebus georecovery-alias break-pair', 'servicebus georecovery-alias fail-over', 'servicebus georecovery-alias authorizationrules list']: with self.argument_context(scope)as c: c.argument('resource_group_name', arg_type=resource_group_name_type) c.argument('namespace_name', options_list=['--namespace-name'], @@ -346,7 +346,7 @@ def load_arguments_geodr(self, _): c.argument('alias', options_list=['--alias'], help='Name of the Alias (Disaster Recovery)') - for scope in ['servicebus georecovery-alias show-authorization-rule', 'servicebus georecovery-alias list-keys']: + for scope in ['servicebus georecovery-alias authorizationrule show', 'servicebus georecovery-alias authorizationrule keys list']: with self.argument_context(scope)as c: c.argument('resource_group_name', arg_type=resource_group_name_type) c.argument('namespace_name', options_list=['--namespace-name'], @@ -354,4 +354,4 @@ def load_arguments_geodr(self, _): c.argument('alias', options_list=['--alias'], help='Name of the Alias (Disaster Recovery)') c.argument('authorization_rule_name', options_list=['--name'], - help='name of the Topic AuthorizationRule') + help='name of the Namespace AuthorizationRule') diff --git a/src/servicebus/azext_servicebus/commands.py b/src/servicebus/azext_servicebus/commands.py index fd74a1c35f5..5f2cdae52d6 100644 --- a/src/servicebus/azext_servicebus/commands.py +++ b/src/servicebus/azext_servicebus/commands.py @@ -59,14 +59,14 @@ def load_command_table(self, _): g.command('show', 'get') g.custom_command('list', 'cli_namespace_list') g.command('delete', 'delete') - g.command('check-name-availability', 'check_name_availability_method') + 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') g.command('list', 'list_authorization_rules') - g.command('list-keys', 'list_keys') - g.command('regenerate-keys', 'regenerate_keys') + g.command('keys list', 'list_keys') + g.command('keys renew', 'regenerate_keys') g.command('delete', 'delete_authorization_rule') # Queue Region @@ -80,8 +80,8 @@ def load_command_table(self, _): g.custom_command('create', 'cli_sbqueueautho_create',) g.command('show', 'get_authorization_rule') g.command('list', 'list_authorization_rules') - g.command('list-keys', 'list_keys') - g.command('regenerate-keys', 'regenerate_keys') + g.command('keys list', 'list_keys') + g.command('keys renew', 'regenerate_keys') g.command('delete', 'delete_authorization_rule') # Topic Region @@ -95,8 +95,8 @@ def load_command_table(self, _): g.custom_command('create', 'cli_sbtopicautho_create') g.command('show', 'get_authorization_rule') g.command('list', 'list_authorization_rules') - g.command('list-keys', 'list_keys') - g.command('regenerate-keys', 'regenerate_keys') + g.command('keys list', 'list_keys') + g.command('keys renew', 'regenerate_keys') g.command('delete', 'delete_authorization_rule') # Subscription Region @@ -118,10 +118,13 @@ def load_command_table(self, _): g.command('create', 'create_or_update') g.command('show', 'get') g.command('list', 'list') - g.command('break-pairing', 'break_pairing') + g.command('break-pair', 'break_pairing') g.command('fail-over', 'fail_over') - g.command('check-name-availability', 'check_name_availability_method') - g.command('list-authorization_rules', 'list_authorization_rules') - g.command('show-authorization-rule', 'get_authorization_rule') - g.command('list-keys', 'list_keys') + 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/tests/recordings/latest/test_sb_alias.yaml b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml index d27c49a4eae..1128ec57913 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml @@ -20,7 +20,7 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:50:25 GMT'] + date: ['Mon, 15 Jan 2018 00:32:47 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -31,7 +31,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace check-name-availability] + CommandName: [servicebus namespace exists] Connection: [keep-alive] Content-Length: ['32'] Content-Type: [application/json; charset=utf-8] @@ -46,7 +46,7 @@ interactions: cache-control: [no-cache] content-length: ['53'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:50:25 GMT'] + date: ['Mon, 15 Jan 2018 00:32:48 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -73,12 +73,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T19:50:25.177Z","updatedAt":"2018-01-11T19:50:25.177Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:32:49.633Z","updatedAt":"2018-01-15T00:32:49.633Z","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, 11 Jan 2018 19:50:26 GMT'] + date: ['Mon, 15 Jan 2018 00:32:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -86,7 +86,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -103,12 +103,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T19:50:25.177Z","updatedAt":"2018-01-11T19:50:25.177Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:32:49.633Z","updatedAt":"2018-01-15T00:32:49.633Z","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, 11 Jan 2018 19:50:56 GMT'] + date: ['Mon, 15 Jan 2018 00:33:20 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T19:50:25.177Z","updatedAt":"2018-01-11T19:51:08.797Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:32:49.633Z","updatedAt":"2018-01-15T00:33:34.857Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] content-length: ['712'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:51:27 GMT'] + date: ['Mon, 15 Jan 2018 00:33:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -161,12 +161,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T19:50:25.177Z","updatedAt":"2018-01-11T19:51:08.797Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:32:49.633Z","updatedAt":"2018-01-15T00:33:34.857Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] content-length: ['712'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:51:28 GMT'] + date: ['Mon, 15 Jan 2018 00:33:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -192,12 +192,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-11T19:51:28.46Z","updatedAt":"2018-01-11T19:51:28.46Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T00:33:54.107Z","updatedAt":"2018-01-15T00:33:54.107Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['712'] + content-length: ['714'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:51:29 GMT'] + date: ['Mon, 15 Jan 2018 00:33:54 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -205,7 +205,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null @@ -222,12 +222,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-11T19:51:28.46Z","updatedAt":"2018-01-11T19:51:28.46Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T00:33:54.107Z","updatedAt":"2018-01-15T00:33:54.107Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['712'] + content-length: ['714'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:51:59 GMT'] + date: ['Mon, 15 Jan 2018 00:34:24 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -251,12 +251,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-11T19:51:28.46Z","updatedAt":"2018-01-11T19:52:15.237Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T00:33:54.107Z","updatedAt":"2018-01-15T00:34:36.39Z","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, 11 Jan 2018 19:52:30 GMT'] + date: ['Mon, 15 Jan 2018 00:34:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -280,12 +280,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-11T19:51:28.46Z","updatedAt":"2018-01-11T19:52:15.237Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T00:33:54.107Z","updatedAt":"2018-01-15T00:34:36.39Z","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, 11 Jan 2018 19:52:31 GMT'] + date: ['Mon, 15 Jan 2018 00:34:57 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -315,7 +315,7 @@ interactions: cache-control: [no-cache] content-length: ['407'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:53:03 GMT'] + date: ['Mon, 15 Jan 2018 00:35:29 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -323,7 +323,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -345,7 +345,7 @@ interactions: cache-control: [no-cache] content-length: ['407'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:53:04 GMT'] + date: ['Mon, 15 Jan 2018 00:35:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -359,7 +359,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias check-name-availability] + CommandName: [servicebus georecovery-alias exists] Connection: [keep-alive] Content-Length: ['32'] Content-Type: [application/json; charset=utf-8] @@ -374,7 +374,7 @@ interactions: cache-control: [no-cache] content-length: ['38'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:53:04 GMT'] + date: ['Mon, 15 Jan 2018 00:35:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -382,7 +382,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] 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"}}\''''' @@ -404,7 +404,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:53:37 GMT'] + date: ['Mon, 15 Jan 2018 00:36:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -412,7 +412,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -433,7 +433,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:53:38 GMT'] + date: ['Mon, 15 Jan 2018 00:36:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -461,7 +461,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:53:37 GMT'] + date: ['Mon, 15 Jan 2018 00:36:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -489,7 +489,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:53:38 GMT'] + date: ['Mon, 15 Jan 2018 00:36:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -517,7 +517,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:54:08 GMT'] + date: ['Mon, 15 Jan 2018 00:36:37 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -545,7 +545,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:54:39 GMT'] + date: ['Mon, 15 Jan 2018 00:37:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -573,7 +573,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:55:10 GMT'] + date: ['Mon, 15 Jan 2018 00:37:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -601,7 +601,7 @@ interactions: cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:55:40 GMT'] + date: ['Mon, 15 Jan 2018 00:38:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -615,7 +615,36 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias break-pairing] + 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.24] + 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: ['Mon, 15 Jan 2018 00:38: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 authorizationrule keys list] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -623,18 +652,21 @@ interactions: msrest_azure/0.4.19 azure-mgmt-servicebus/0.1.0 Azure-SDK-For-Python AZURECLI/2.0.24] 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 + 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: ''} + body: {string: '{"aliasPrimaryConnectionString":"Endpoint=sb://clialiasvi4bwitqp7fn.servicebus.windows.net/;SharedAccessKeyName=cliAutho000004;SharedAccessKey=AZ/xtejvYcD3bHQrbmWBa0r9XrcZ5fAwMNA1gi07h1s=","aliasSecondaryConnectionString":"Endpoint=sb://clialiasvi4bwitqp7fn.servicebus.windows.net/;SharedAccessKeyName=cliAutho000004;SharedAccessKey=ZSis2yQQ8kSWVygNIycf9QCL12cwLvApm4meUY2ohVI=","primaryKey":"AZ/xtejvYcD3bHQrbmWBa0r9XrcZ5fAwMNA1gi07h1s=","secondaryKey":"ZSis2yQQ8kSWVygNIycf9QCL12cwLvApm4meUY2ohVI=","keyName":"cliAutho000004"}'} headers: cache-control: [no-cache] - content-length: ['0'] - date: ['Thu, 11 Jan 2018 19:55:41 GMT'] + content-length: ['546'] + content-type: [application/json; charset=utf-8] + date: ['Mon, 15 Jan 2018 00:38: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: @@ -642,21 +674,23 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias show] + 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.24] 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 + 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: '{"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"}}'} + 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: ['673'] + content-length: ['945'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:55:41 GMT'] + date: ['Mon, 15 Jan 2018 00:38:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -665,6 +699,33 @@ interactions: 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.24] + 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: ['Mon, 15 Jan 2018 00:38: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: @@ -684,7 +745,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:56:11 GMT'] + date: ['Mon, 15 Jan 2018 00:38:12 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -712,7 +773,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:56:42 GMT'] + date: ['Mon, 15 Jan 2018 00:38:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -735,12 +796,12 @@ interactions: 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"}}'} + 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: ['483'] + content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:57:13 GMT'] + date: ['Mon, 15 Jan 2018 00:39:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -750,26 +811,25 @@ interactions: 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"}}\''''' + body: null headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus georecovery-alias create] + CommandName: [servicebus georecovery-alias show] 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.24] accept-language: [en-US] - method: PUT + 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"}}'} + 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: ['673'] + content-length: ['483'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:57:29 GMT'] + date: ['Mon, 15 Jan 2018 00:39:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -777,20 +837,20 @@ interactions: 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 + 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 show] + 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.24] accept-language: [en-US] - method: GET + 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"}}'} @@ -798,7 +858,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:57:30 GMT'] + date: ['Mon, 15 Jan 2018 00:40:01 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -806,6 +866,7 @@ interactions: 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 @@ -826,7 +887,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:58:01 GMT'] + date: ['Mon, 15 Jan 2018 00:40:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -854,7 +915,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:58:30 GMT'] + date: ['Mon, 15 Jan 2018 00:40:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -882,7 +943,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:59:01 GMT'] + date: ['Mon, 15 Jan 2018 00:41:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -910,7 +971,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 19:59:32 GMT'] + date: ['Mon, 15 Jan 2018 00:41:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -938,7 +999,7 @@ interactions: cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:00:02 GMT'] + date: ['Mon, 15 Jan 2018 00:42:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -966,13 +1027,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:00:03 GMT'] + date: ['Mon, 15 Jan 2018 00:42: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'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -993,7 +1054,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:00:03 GMT'] + date: ['Mon, 15 Jan 2018 00:42:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1021,7 +1082,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:00:33 GMT'] + date: ['Mon, 15 Jan 2018 00:42:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1049,7 +1110,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:01:04 GMT'] + date: ['Mon, 15 Jan 2018 00:43:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1077,7 +1138,7 @@ interactions: cache-control: [no-cache] content-length: ['483'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:01:34 GMT'] + date: ['Mon, 15 Jan 2018 00:43:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1105,13 +1166,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:01:35 GMT'] + date: ['Mon, 15 Jan 2018 00:43: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -1132,14 +1193,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:02:06 GMT'] + date: ['Mon, 15 Jan 2018 00:44:09 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'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -1159,7 +1220,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:02:37 GMT'] + date: ['Mon, 15 Jan 2018 00:44:39 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] @@ -1185,7 +1246,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:03:06 GMT'] + date: ['Mon, 15 Jan 2018 00:45:10 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] @@ -1211,7 +1272,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:03:37 GMT'] + date: ['Mon, 15 Jan 2018 00:45:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1237,14 +1298,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:03:38 GMT'] + date: ['Mon, 15 Jan 2018 00:45:42 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: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} - request: body: null @@ -1264,7 +1325,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:04:08 GMT'] + date: ['Mon, 15 Jan 2018 00:46:12 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] @@ -1290,7 +1351,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:04:38 GMT'] + date: ['Mon, 15 Jan 2018 00:46:43 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] @@ -1316,7 +1377,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:05:09 GMT'] + date: ['Mon, 15 Jan 2018 00:47:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1343,9 +1404,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:05:11 GMT'] + date: ['Mon, 15 Jan 2018 00:47:13 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZBTElBU0hFMk9DS0VWU0VWV1MzN0RCS0w1SFpFTnxEQjAwRkNGN0UxNkFDMTNDLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZBTElBUzVTN1lKRUk0VUxGMzNLUkEyR1RaWUpOM3wxRkE3M0IzRjcyNkYzMzE0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-ms-ratelimit-remaining-subscription-writes: ['1198'] 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 index 9d11c822881..bd48b1d96f6 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml @@ -20,18 +20,18 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:05:13 GMT'] + date: ['Mon, 15 Jan 2018 00:47:16 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 201, message: Created} - request: body: 'b''{"name": "sb-nscli000002"}''' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace check-name-availability] + CommandName: [servicebus namespace exists] Connection: [keep-alive] Content-Length: ['32'] Content-Type: [application/json; charset=utf-8] @@ -46,7 +46,7 @@ interactions: cache-control: [no-cache] content-length: ['53'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:05:14 GMT'] + date: ['Mon, 15 Jan 2018 00:47:16 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -54,7 +54,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: '{"location": "westus2", "tags": {"{tag1: value1}": ""}, "sku": {"name": @@ -73,12 +73,12 @@ interactions: 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-11T20:05:13.46Z","updatedAt":"2018-01-11T20:05:13.46Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:47:18.34Z","updatedAt":"2018-01-15T00:47:18.34Z","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, 11 Jan 2018 20:05:15 GMT'] + date: ['Mon, 15 Jan 2018 00:47:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -86,7 +86,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -103,12 +103,12 @@ interactions: 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-11T20:05:13.46Z","updatedAt":"2018-01-11T20:05:38.263Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:47:18.34Z","updatedAt":"2018-01-15T00:47:42.093Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:05:45 GMT'] + date: ['Mon, 15 Jan 2018 00:47:48 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-11T20:05:13.46Z","updatedAt":"2018-01-11T20:05:38.263Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:47:18.34Z","updatedAt":"2018-01-15T00:47:42.093Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:05:46 GMT'] + date: ['Mon, 15 Jan 2018 00:47:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -160,8 +160,7 @@ interactions: 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":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespacegjlhejieresrpo6enemyd4ihktsmjhn4vofwwdkqjaxbro7ssr5qmp/providers/Microsoft.ServiceBus/namespaces/sb-nsclisooglao2gn6t","name":"sb-nsclisooglao2gn6t","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclisooglao2gn6t","createdAt":"2017-12-16T16:43:16.283Z","updatedAt":"2017-12-16T16:57:00.17Z","serviceBusEndpoint":"https://sb-nsclisooglao2gn6t.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 + body: {string: '{"value":[{"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":"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 @@ -170,23 +169,25 @@ interactions: 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":"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/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/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"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_aliasabkkbqxjz5cq6ok5unfar57hqiwwn35zjaugsrkky64bd4iaghl2f3jf6o/providers/Microsoft.ServiceBus/namespaces/sb-nsclitx7lxyb6ti3p","name":"sb-nsclitx7lxyb6ti3p","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclitx7lxyb6ti3p","createdAt":"2018-01-10T02:58:13.167Z","updatedAt":"2018-01-10T03:02:50.013Z","serviceBusEndpoint":"https://sb-nsclitx7lxyb6ti3p.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-11T20:05:13.46Z","updatedAt":"2018-01-11T20:05:38.263Z","serviceBusEndpoint":"https://sb-nscli000002.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":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespacecoxqc6ek6xgxrgdqkgp73ho6sorba6ljkz5mvntqxg2nsbo5pl2fic/providers/Microsoft.ServiceBus/namespaces/sb-nscli37xlt4h435ro","name":"sb-nscli37xlt4h435ro","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli37xlt4h435ro","createdAt":"2017-12-16T03:53:33.89Z","updatedAt":"2017-12-16T05:05:28.283Z","serviceBusEndpoint":"https://sb-nscli37xlt4h435ro.servicebus.windows.net:443/","status":"Active"}},{"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_namespaceokquronxzujxantrhghxnhrv4354fym75veryp23fzp7pix7hba4ib/providers/Microsoft.ServiceBus/namespaces/sb-nscli76spyj2vzwvy","name":"sb-nscli76spyj2vzwvy","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli76spyj2vzwvy","createdAt":"2017-12-16T17:09:08.33Z","updatedAt":"2017-12-16T17:21:20.247Z","serviceBusEndpoint":"https://sb-nscli76spyj2vzwvy.servicebus.windows.net:443/","status":"Active"}},{"sku":{"name":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_namespaceut5zqyzvptdw5hwkvesugbs6gyxh6ws5bsrmsbt7hee5khp2lgzlix/providers/Microsoft.ServiceBus/namespaces/sb-nsclisrwaze7yfrv3","name":"sb-nsclisrwaze7yfrv3","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nsclisrwaze7yfrv3","createdAt":"2017-12-16T17:28:36.46Z","updatedAt":"2017-12-16T18:40:44.037Z","serviceBusEndpoint":"https://sb-nsclisrwaze7yfrv3.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/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":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_aliasabkkbqxjz5cq6ok5unfar57hqiwwn35zjaugsrkky64bd4iaghl2f3jf6o/providers/Microsoft.ServiceBus/namespaces/sb-nscli2ij7cuaslcpq","name":"sb-nscli2ij7cuaslcpq","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli2ij7cuaslcpq","createdAt":"2018-01-10T02:57:07.753Z","updatedAt":"2018-01-10T03:02:59.09Z","serviceBusEndpoint":"https://sb-nscli2ij7cuaslcpq.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"}}]}'} + 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"}},{"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":"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/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/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":"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-15T00:47:18.34Z","updatedAt":"2018-01-15T00:47:42.093Z","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_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/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":"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-15T00:09:28.317Z","serviceBusEndpoint":"https://sb-nsclinxaxkdjcrrum.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":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_aliassjgzcbszebidt7lhuvnzqmz4y7gadz7lumfzdatacnqp6wbtsfk6dryoei/providers/Microsoft.ServiceBus/namespaces/sb-nscli3ypeyfeexaum","name":"sb-nscli3ypeyfeexaum","type":"Microsoft.ServiceBus/Namespaces","location":"North + Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli3ypeyfeexaum","createdAt":"2018-01-13T03:32:31.44Z","updatedAt":"2018-01-13T03:37:14.96Z","serviceBusEndpoint":"https://sb-nscli3ypeyfeexaum.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":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_aliassjgzcbszebidt7lhuvnzqmz4y7gadz7lumfzdatacnqp6wbtsfk6dryoei/providers/Microsoft.ServiceBus/namespaces/sb-nscligdxkfnocvlt5","name":"sb-nscligdxkfnocvlt5","type":"Microsoft.ServiceBus/Namespaces","location":"South + Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscligdxkfnocvlt5","createdAt":"2018-01-13T03:31:26.623Z","updatedAt":"2018-01-13T03:37:15.89Z","serviceBusEndpoint":"https://sb-nscligdxkfnocvlt5.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-nscligop72gtrm544","name":"sb-nscligop72gtrm544","type":"Microsoft.ServiceBus/Namespaces","location":"South + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscligop72gtrm544","createdAt":"2018-01-12T03:20:48.687Z","updatedAt":"2018-01-12T03:26:02.69Z","serviceBusEndpoint":"https://sb-nscligop72gtrm544.servicebus.windows.net:443/","status":"Active"}}]}'} headers: cache-control: [no-cache] - content-length: ['13554'] + content-length: ['14263'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:05:46 GMT'] + date: ['Mon, 15 Jan 2018 00:47:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -210,12 +211,12 @@ interactions: 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-11T20:05:13.46Z","updatedAt":"2018-01-11T20:05:38.263Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}]}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:47:18.34Z","updatedAt":"2018-01-15T00:47:42.093Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}]}'} headers: cache-control: [no-cache] content-length: ['686'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:05:46 GMT'] + date: ['Mon, 15 Jan 2018 00:47:52 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -245,7 +246,7 @@ interactions: cache-control: [no-cache] content-length: ['400'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:06:19 GMT'] + date: ['Mon, 15 Jan 2018 00:48:24 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -253,7 +254,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -275,7 +276,7 @@ interactions: cache-control: [no-cache] content-length: ['400'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:06:20 GMT'] + date: ['Mon, 15 Jan 2018 00:48:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -304,7 +305,7 @@ interactions: cache-control: [no-cache] content-length: ['428'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:06:21 GMT'] + date: ['Mon, 15 Jan 2018 00:48:26 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -318,7 +319,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus namespace authorizationrule list-keys] + CommandName: [servicebus namespace authorizationrule keys list] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -328,12 +329,12 @@ interactions: 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=6OPDSil84ck1Fd2CALTpoMKmv9VAcfluyRMLcHk8uBI=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=S+HHENFnivot+h2PhQcSGadz/NEeYdv2RWU8KxOS4wg=","primaryKey":"6OPDSil84ck1Fd2CALTpoMKmv9VAcfluyRMLcHk8uBI=","secondaryKey":"S+HHENFnivot+h2PhQcSGadz/NEeYdv2RWU8KxOS4wg=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=CfNtDuT2uW6oiYuIPTjNMGi3ZHMUR+Dexx2zSaPSODg=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=g3iDSpcKtOLdSnw37RP9Q9YylvvJGaZc+AaGSiuv1EE=","primaryKey":"CfNtDuT2uW6oiYuIPTjNMGi3ZHMUR+Dexx2zSaPSODg=","secondaryKey":"g3iDSpcKtOLdSnw37RP9Q9YylvvJGaZc+AaGSiuv1EE=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['536'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:06:22 GMT'] + date: ['Mon, 15 Jan 2018 00:48:27 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -341,14 +342,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + 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 namespace authorizationrule regenerate-keys] + CommandName: [servicebus namespace authorizationrule keys renew] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json; charset=utf-8] @@ -358,12 +359,12 @@ interactions: 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=2/Vx/3jc606agsKzxq0KYja3BE8bDYTSOYoTYqXRQXU=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=S+HHENFnivot+h2PhQcSGadz/NEeYdv2RWU8KxOS4wg=","primaryKey":"2/Vx/3jc606agsKzxq0KYja3BE8bDYTSOYoTYqXRQXU=","secondaryKey":"S+HHENFnivot+h2PhQcSGadz/NEeYdv2RWU8KxOS4wg=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=SCuF1Evb7ST12cEc3I84WLRHdH5Wfb9duGz/4724OXo=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=g3iDSpcKtOLdSnw37RP9Q9YylvvJGaZc+AaGSiuv1EE=","primaryKey":"SCuF1Evb7ST12cEc3I84WLRHdH5Wfb9duGz/4724OXo=","secondaryKey":"g3iDSpcKtOLdSnw37RP9Q9YylvvJGaZc+AaGSiuv1EE=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['536'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:06:39 GMT'] + date: ['Mon, 15 Jan 2018 00:48:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -371,14 +372,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + 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 namespace authorizationrule regenerate-keys] + CommandName: [servicebus namespace authorizationrule keys renew] Connection: [keep-alive] Content-Length: ['27'] Content-Type: [application/json; charset=utf-8] @@ -388,12 +389,12 @@ interactions: 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=2/Vx/3jc606agsKzxq0KYja3BE8bDYTSOYoTYqXRQXU=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=/6tRkuGc9RJWP6ESx6WT/lWrtDb0MX+umf6TVe3sdik=","primaryKey":"2/Vx/3jc606agsKzxq0KYja3BE8bDYTSOYoTYqXRQXU=","secondaryKey":"/6tRkuGc9RJWP6ESx6WT/lWrtDb0MX+umf6TVe3sdik=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=SCuF1Evb7ST12cEc3I84WLRHdH5Wfb9duGz/4724OXo=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=GyvmvRqpog3/qyA1Vpr71h8YSJnyy4RpCXZ8JaaQSCk=","primaryKey":"SCuF1Evb7ST12cEc3I84WLRHdH5Wfb9duGz/4724OXo=","secondaryKey":"GyvmvRqpog3/qyA1Vpr71h8YSJnyy4RpCXZ8JaaQSCk=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['536'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:06:54 GMT'] + date: ['Mon, 15 Jan 2018 00:48:59 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -422,13 +423,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:07:11 GMT'] + date: ['Mon, 15 Jan 2018 00:49: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -449,14 +450,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:07:12 GMT'] + date: ['Mon, 15 Jan 2018 00:49:18 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'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -476,7 +477,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:07:43 GMT'] + date: ['Mon, 15 Jan 2018 00:49:48 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -503,11 +504,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:07:44 GMT'] + date: ['Mon, 15 Jan 2018 00:49:50 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZOQU1FU1BBQ0VQWlBUNEdNTEQ0T0RUVURNSlNIUXxBQTkxNjI2Mzg3MTAyRkI3LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZOQU1FU1BBQ0VLQ1pESExJVDRSS0FVMkw1VEFFSnxERTZCQUQyNjg0MEVDNkZDLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] 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 index ede4a3ae5b5..00d60fbf364 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml @@ -20,7 +20,7 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:07:46 GMT'] + date: ['Mon, 15 Jan 2018 00:49:52 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -43,12 +43,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:07:45.98Z","updatedAt":"2018-01-11T20:07:45.98Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:49:53.187Z","updatedAt":"2018-01-15T00:49:53.187Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['694'] + content-length: ['696'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:07:47 GMT'] + date: ['Mon, 15 Jan 2018 00:49:52 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,7 +56,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -73,12 +73,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:07:45.98Z","updatedAt":"2018-01-11T20:08:11.707Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:49:53.187Z","updatedAt":"2018-01-15T00:50:14.717Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['693'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:08:17 GMT'] + date: ['Mon, 15 Jan 2018 00:50:23 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -102,12 +102,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:07:45.98Z","updatedAt":"2018-01-11T20:08:11.707Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:49:53.187Z","updatedAt":"2018-01-15T00:50:14.717Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['693'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:08:19 GMT'] + date: ['Mon, 15 Jan 2018 00:50:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-11T20:08:24.79Z","updatedAt":"2018-01-11T20:08:24.87Z","accessedAt":"0001-01-01T00:00:00"}}'} + 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-15T00:50:26.94Z","updatedAt":"2018-01-15T00:50:27.017Z","accessedAt":"0001-01-01T00:00:00"}}'} headers: cache-control: [no-cache] - content-length: ['1031'] + content-length: ['1032'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:08:25 GMT'] + date: ['Mon, 15 Jan 2018 00:50:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -145,7 +145,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -162,12 +162,12 @@ interactions: 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-11T20:08:24.79Z","updatedAt":"2018-01-11T20:08:24.87Z","accessedAt":"0001-01-01T00:00:00Z"}}'} + 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-15T00:50:26.94Z","updatedAt":"2018-01-15T00:50:27.017Z","accessedAt":"0001-01-01T00:00:00Z"}}'} headers: cache-control: [no-cache] - content-length: ['1032'] + content-length: ['1033'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:08:26 GMT'] + date: ['Mon, 15 Jan 2018 00:50:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -191,12 +191,12 @@ interactions: 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-11T20:08:24.79Z","updatedAt":"2018-01-11T20:08:24.87Z","accessedAt":"0001-01-01T00:00:00Z"}}]}'} + 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-15T00:50:26.94Z","updatedAt":"2018-01-15T00:50:27.017Z","accessedAt":"0001-01-01T00:00:00Z"}}]}'} headers: cache-control: [no-cache] - content-length: ['1044'] + content-length: ['1045'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:08:27 GMT'] + date: ['Mon, 15 Jan 2018 00:50:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -227,7 +227,7 @@ interactions: cache-control: [no-cache] content-length: ['442'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:08:29 GMT'] + date: ['Mon, 15 Jan 2018 00:50:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -235,7 +235,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null @@ -257,7 +257,7 @@ interactions: cache-control: [no-cache] content-length: ['442'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:08:29 GMT'] + date: ['Mon, 15 Jan 2018 00:50:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -271,7 +271,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue authorizationrule list-keys] + CommandName: [servicebus queue authorizationrule keys list] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -281,12 +281,12 @@ interactions: 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=pBDRz0xMsh8j+o9ViIrlUKRxzLtWCsN5iNqOKWKLMJ4=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=1y3ZhhMlvNjdbaBqfTJXxh8GoRBVAAm9htcZl4Y9vn8=;EntityPath=sb-queuecli000004","primaryKey":"pBDRz0xMsh8j+o9ViIrlUKRxzLtWCsN5iNqOKWKLMJ4=","secondaryKey":"1y3ZhhMlvNjdbaBqfTJXxh8GoRBVAAm9htcZl4Y9vn8=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=o5qisFzR1xbbnrWwxvd3MaFZ6l4Nub/aiCtb7SzENBI=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=dbPrkLAoeRVI8uAOlHBQlKUq2zWnhoMXElOctlC++Ks=;EntityPath=sb-queuecli000004","primaryKey":"o5qisFzR1xbbnrWwxvd3MaFZ6l4Nub/aiCtb7SzENBI=","secondaryKey":"dbPrkLAoeRVI8uAOlHBQlKUq2zWnhoMXElOctlC++Ks=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:08:30 GMT'] + date: ['Mon, 15 Jan 2018 00:50:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -301,7 +301,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue authorizationrule regenerate-keys] + CommandName: [servicebus queue authorizationrule keys renew] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json; charset=utf-8] @@ -311,12 +311,12 @@ interactions: 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=cyQi30StY8HGFC/3fW2VhqsjkLlRIQ4Uzh8eIm0fOn8=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=1y3ZhhMlvNjdbaBqfTJXxh8GoRBVAAm9htcZl4Y9vn8=;EntityPath=sb-queuecli000004","primaryKey":"cyQi30StY8HGFC/3fW2VhqsjkLlRIQ4Uzh8eIm0fOn8=","secondaryKey":"1y3ZhhMlvNjdbaBqfTJXxh8GoRBVAAm9htcZl4Y9vn8=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=mPoGTP/8aPVbQFEYYNkyRS32gckywn8gbNFsKeaG1uQ=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=dbPrkLAoeRVI8uAOlHBQlKUq2zWnhoMXElOctlC++Ks=;EntityPath=sb-queuecli000004","primaryKey":"mPoGTP/8aPVbQFEYYNkyRS32gckywn8gbNFsKeaG1uQ=","secondaryKey":"dbPrkLAoeRVI8uAOlHBQlKUq2zWnhoMXElOctlC++Ks=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:08:31 GMT'] + date: ['Mon, 15 Jan 2018 00:50:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -324,14 +324,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] status: {code: 200, message: OK} - request: body: '{"keyType": "SecondaryKey"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus queue authorizationrule regenerate-keys] + CommandName: [servicebus queue authorizationrule keys renew] Connection: [keep-alive] Content-Length: ['27'] Content-Type: [application/json; charset=utf-8] @@ -341,12 +341,12 @@ interactions: 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=cyQi30StY8HGFC/3fW2VhqsjkLlRIQ4Uzh8eIm0fOn8=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=z6yDW35BZJWED+zwiASIskmOGvgwT8mXBa8Jwq7GrOw=;EntityPath=sb-queuecli000004","primaryKey":"cyQi30StY8HGFC/3fW2VhqsjkLlRIQ4Uzh8eIm0fOn8=","secondaryKey":"z6yDW35BZJWED+zwiASIskmOGvgwT8mXBa8Jwq7GrOw=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=mPoGTP/8aPVbQFEYYNkyRS32gckywn8gbNFsKeaG1uQ=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=qbT/KqdNVp7pNehMCRm8O6tjkLt2fYgp/aVTlXt9J+4=;EntityPath=sb-queuecli000004","primaryKey":"mPoGTP/8aPVbQFEYYNkyRS32gckywn8gbNFsKeaG1uQ=","secondaryKey":"qbT/KqdNVp7pNehMCRm8O6tjkLt2fYgp/aVTlXt9J+4=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:08:31 GMT'] + date: ['Mon, 15 Jan 2018 00:50:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -354,7 +354,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -375,7 +375,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:08:33 GMT'] + date: ['Mon, 15 Jan 2018 00:50:35 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -402,7 +402,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:08:34 GMT'] + date: ['Mon, 15 Jan 2018 00:50:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -429,7 +429,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:08:35 GMT'] + date: ['Mon, 15 Jan 2018 00:50:37 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] @@ -456,7 +456,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:09:06 GMT'] + date: ['Mon, 15 Jan 2018 00:51:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -483,9 +483,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:09:20 GMT'] + date: ['Mon, 15 Jan 2018 00:51:09 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZRVUVVRUlRTlJDV0Y2MkJUNElGRFVIR1RJSkpTWXxFMUMzREQ4NjdFMjAwQzVGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZRVUVVRTZYSFFJNEtGVzNBQjNWSFBFUDc0SEtJVXw3MDgzOEQzRTZGMTU3NjhFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-ms-ratelimit-remaining-subscription-writes: ['1198'] 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 index 2a80b654fe9..458a9941c88 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:09:22 GMT'] + date: ['Mon, 15 Jan 2018 00:51:11 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 201, message: Created} - request: body: '{"location": "westus2", "tags": {"{tag2: value2,": "", "tag1: value1}": @@ -43,12 +43,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:09:22.36Z","updatedAt":"2018-01-11T20:09:22.36Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:51:12.61Z","updatedAt":"2018-01-15T00:51:12.61Z","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, 11 Jan 2018 20:09:23 GMT'] + date: ['Mon, 15 Jan 2018 00:51:12 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,7 +56,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -73,12 +73,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:09:22.36Z","updatedAt":"2018-01-11T20:09:48.503Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:51:12.61Z","updatedAt":"2018-01-15T00:51:35.787Z","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, 11 Jan 2018 20:09:54 GMT'] + date: ['Mon, 15 Jan 2018 00:51:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -102,12 +102,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:09:22.36Z","updatedAt":"2018-01-11T20:09:48.503Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:51:12.61Z","updatedAt":"2018-01-15T00:51:35.787Z","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, 11 Jan 2018 20:09:55 GMT'] + date: ['Mon, 15 Jan 2018 00:51:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-11T20:09:57.12Z","updatedAt":"2018-01-11T20:09:57.15Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-15T00:51:45.607Z","updatedAt":"2018-01-15T00:51:45.717Z","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-length: ['1004'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:09:58 GMT'] + date: ['Mon, 15 Jan 2018 00:51:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -162,12 +162,12 @@ interactions: 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-11T20:09:57.12Z","updatedAt":"2018-01-11T20:09:57.15Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-15T00:51:45.607Z","updatedAt":"2018-01-15T00:51:45.717Z","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-length: ['1005'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:09:58 GMT'] + date: ['Mon, 15 Jan 2018 00:51:47 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -192,12 +192,12 @@ interactions: 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-11T20:10:01.0492685Z","updatedAt":"2018-01-11T20:10:01.0492685Z","accessedAt":"0001-01-01T00:00:00","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-15T00:51:50.1813275Z","updatedAt":"2018-01-15T00:51:50.1813275Z","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, 11 Jan 2018 20:10:00 GMT'] + date: ['Mon, 15 Jan 2018 00:51:50 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -205,7 +205,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -222,12 +222,12 @@ interactions: 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-11T20:10:01.3436816Z","updatedAt":"2018-01-11T20:10:01.3436816Z","accessedAt":"2018-01-11T20:10:01.3436816Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-15T00:51:50.11486Z","updatedAt":"2018-01-15T00:51:50.11486Z","accessedAt":"2018-01-15T00:51:50.11486Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} headers: cache-control: [no-cache] - content-length: ['984'] + content-length: ['978'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:10:01 GMT'] + date: ['Mon, 15 Jan 2018 00:51:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -258,7 +258,7 @@ interactions: cache-control: [no-cache] content-length: ['563'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:10:04 GMT'] + date: ['Mon, 15 Jan 2018 00:51:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -266,7 +266,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -288,7 +288,7 @@ interactions: cache-control: [no-cache] content-length: ['579'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:10:04 GMT'] + date: ['Mon, 15 Jan 2018 00:51:54 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -317,7 +317,7 @@ interactions: cache-control: [no-cache] content-length: ['591'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:10:05 GMT'] + date: ['Mon, 15 Jan 2018 00:51:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -346,7 +346,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:10:07 GMT'] + date: ['Mon, 15 Jan 2018 00:51:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -373,13 +373,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:10:07 GMT'] + date: ['Mon, 15 Jan 2018 00:51: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'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -400,13 +400,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:10:09 GMT'] + date: ['Mon, 15 Jan 2018 00: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null @@ -427,14 +427,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:10:10 GMT'] + date: ['Mon, 15 Jan 2018 00:52:00 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: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 202, message: Accepted} - request: body: null @@ -454,7 +454,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:10:41 GMT'] + date: ['Mon, 15 Jan 2018 00:52:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -481,9 +481,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:10:42 GMT'] + date: ['Mon, 15 Jan 2018 00:52:32 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZSVUxFU0ZSREk2MktUQk9PWkhXM05ETUtFMlU0NXw2NUQ4MjQ0NzQyRUJGNDJGLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZSVUxFU0pQUEI1M1lYQjZRM0hNUkhFS1YySEtRQXxGQUJDQTMwNTFFQzJGRUZCLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-ms-ratelimit-remaining-subscription-writes: ['1197'] 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 index 81c347f4105..c2f8c91e942 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:10:45 GMT'] + date: ['Mon, 15 Jan 2018 00:52:34 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 201, message: Created} - request: body: '{"location": "westus2", "tags": {"{tag2: value2,": "", "tag1: value1}": @@ -43,12 +43,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:10:45.427Z","updatedAt":"2018-01-11T20:10:45.427Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:52:35.537Z","updatedAt":"2018-01-15T00:52:35.537Z","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, 11 Jan 2018 20:10:47 GMT'] + date: ['Mon, 15 Jan 2018 00:52:35 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -73,12 +73,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:10:45.427Z","updatedAt":"2018-01-11T20:11:10.72Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:52:35.537Z","updatedAt":"2018-01-15T00:53:02.173Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['693'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:11:17 GMT'] + date: ['Mon, 15 Jan 2018 00:53:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -102,12 +102,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:10:45.427Z","updatedAt":"2018-01-11T20:11:10.72Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:52:35.537Z","updatedAt":"2018-01-15T00:53:02.173Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['693'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:11:18 GMT'] + date: ['Mon, 15 Jan 2018 00:53:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-11T20:11:20.887Z","updatedAt":"2018-01-11T20:11:20.98Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-15T00:53:09.04Z","updatedAt":"2018-01-15T00:53:09.103Z","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, 11 Jan 2018 20:11:21 GMT'] + date: ['Mon, 15 Jan 2018 00:53:10 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -145,7 +145,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null @@ -162,12 +162,12 @@ interactions: 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-11T20:11:20.887Z","updatedAt":"2018-01-11T20:11:20.98Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-15T00:53:09.04Z","updatedAt":"2018-01-15T00:53:09.103Z","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, 11 Jan 2018 20:11:23 GMT'] + date: ['Mon, 15 Jan 2018 00:53:10 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -192,12 +192,12 @@ interactions: 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-11T20:11:25.1602526Z","updatedAt":"2018-01-11T20:11:25.1602526Z","accessedAt":"0001-01-01T00:00:00","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-15T00:53:13.7786418Z","updatedAt":"2018-01-15T00:53:13.7786418Z","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, 11 Jan 2018 20:11:25 GMT'] + date: ['Mon, 15 Jan 2018 00:53:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -205,7 +205,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -222,12 +222,12 @@ interactions: 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-11T20:11:26.0489984Z","updatedAt":"2018-01-11T20:11:26.0489984Z","accessedAt":"2018-01-11T20:11:26.05Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-15T00:53:14.096226Z","updatedAt":"2018-01-15T00:53:14.096226Z","accessedAt":"2018-01-15T00:53:14.097Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} headers: cache-control: [no-cache] - content-length: ['979'] + content-length: ['978'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:11:26 GMT'] + date: ['Mon, 15 Jan 2018 00:53:14 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -251,12 +251,12 @@ interactions: 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-11T20:11:26.0489984Z","updatedAt":"2018-01-11T20:11:26.0489984Z","accessedAt":"2018-01-11T20:11:26.05Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}]}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-15T00:53:14.096226Z","updatedAt":"2018-01-15T00:53:14.096226Z","accessedAt":"2018-01-15T00:53:14.097Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}]}'} headers: cache-control: [no-cache] - content-length: ['991'] + content-length: ['990'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:11:27 GMT'] + date: ['Mon, 15 Jan 2018 00:53:15 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -285,7 +285,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:11:27 GMT'] + date: ['Mon, 15 Jan 2018 00:53:15 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -312,13 +312,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:11:29 GMT'] + date: ['Mon, 15 Jan 2018 00:53: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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -339,14 +339,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:11:30 GMT'] + date: ['Mon, 15 Jan 2018 00:53:17 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'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 202, message: Accepted} - request: body: null @@ -366,7 +366,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:12:00 GMT'] + date: ['Mon, 15 Jan 2018 00:53:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -393,9 +393,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:12:02 GMT'] + date: ['Mon, 15 Jan 2018 00:53:52 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZTVUJTQ1JJUFRJT05NQUJIRkUyS0pFTlROSzNDVHxDMjhFRTM4ODJFOUYyRDE0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZTVUJTQ1JJUFRJT042RUlFSVo0TUlQM0EzUEFSVHwwRUU2Q0JFNjhEQzk1NUUzLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-ms-ratelimit-remaining-subscription-writes: ['1198'] 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 index 45231be797d..0bc8fed0e6d 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml @@ -20,7 +20,7 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:12:04 GMT'] + date: ['Mon, 15 Jan 2018 00:53:53 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -43,12 +43,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:12:04.943Z","updatedAt":"2018-01-11T20:12:04.943Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:53:56.477Z","updatedAt":"2018-01-15T00:53:56.477Z","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, 11 Jan 2018 20:12:06 GMT'] + date: ['Mon, 15 Jan 2018 00:53:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,7 +56,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -73,12 +73,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:12:04.943Z","updatedAt":"2018-01-11T20:12:32.417Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:53:56.477Z","updatedAt":"2018-01-15T00:54:23.09Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['694'] + content-length: ['693'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:12:36 GMT'] + date: ['Mon, 15 Jan 2018 00:54:27 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -102,12 +102,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-11T20:12:04.943Z","updatedAt":"2018-01-11T20:12:32.417Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:53:56.477Z","updatedAt":"2018-01-15T00:54:23.09Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['694'] + content-length: ['693'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:12:37 GMT'] + date: ['Mon, 15 Jan 2018 00:54:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-11T20:12:39.793Z","updatedAt":"2018-01-11T20:12:39.857Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-15T00:54:31.41Z","updatedAt":"2018-01-15T00:54:31.553Z","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-length: ['1003'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:12:41 GMT'] + date: ['Mon, 15 Jan 2018 00:54:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -145,7 +145,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -162,12 +162,12 @@ interactions: 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-11T20:12:39.793Z","updatedAt":"2018-01-11T20:12:39.857Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-15T00:54:31.41Z","updatedAt":"2018-01-15T00:54:31.553Z","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-length: ['1004'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:12:41 GMT'] + date: ['Mon, 15 Jan 2018 00:54:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -191,12 +191,12 @@ interactions: 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-11T20:12:39.793Z","updatedAt":"2018-01-11T20:12:39.857Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}]}'} + 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-15T00:54:31.41Z","updatedAt":"2018-01-15T00:54:31.553Z","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: ['1017'] + content-length: ['1016'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:12:42 GMT'] + date: ['Mon, 15 Jan 2018 00:54:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -227,7 +227,7 @@ interactions: cache-control: [no-cache] content-length: ['440'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:12:43 GMT'] + date: ['Mon, 15 Jan 2018 00:54:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -235,7 +235,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -257,7 +257,7 @@ interactions: cache-control: [no-cache] content-length: ['440'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:12:43 GMT'] + date: ['Mon, 15 Jan 2018 00:54:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -271,7 +271,7 @@ interactions: headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic authorizationrule list-keys] + CommandName: [servicebus topic authorizationrule keys list] Connection: [keep-alive] Content-Length: ['0'] Content-Type: [application/json; charset=utf-8] @@ -281,12 +281,12 @@ interactions: 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=YxOBsGX0qjXWYmEHDt55uPg41jYYXZBgBtsTLkR4SgM=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=/qU88jz3osM4JRTMRXcxj8BFTfVdtelztb0l4ujBEK4=;EntityPath=sb-topiccli000004","primaryKey":"YxOBsGX0qjXWYmEHDt55uPg41jYYXZBgBtsTLkR4SgM=","secondaryKey":"/qU88jz3osM4JRTMRXcxj8BFTfVdtelztb0l4ujBEK4=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=fut90/7u9aTD73Y4SsZIMSkTeqbJKeZyQJxW3bLDnaI=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=V37JGSZqrXgp+8bk4Z/T/kyLvI57FCvsFdkX6f27qE0=;EntityPath=sb-topiccli000004","primaryKey":"fut90/7u9aTD73Y4SsZIMSkTeqbJKeZyQJxW3bLDnaI=","secondaryKey":"V37JGSZqrXgp+8bk4Z/T/kyLvI57FCvsFdkX6f27qE0=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:12:44 GMT'] + date: ['Mon, 15 Jan 2018 00:54:42 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -294,14 +294,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + 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 topic authorizationrule regenerate-keys] + CommandName: [servicebus topic authorizationrule keys renew] Connection: [keep-alive] Content-Length: ['25'] Content-Type: [application/json; charset=utf-8] @@ -311,12 +311,12 @@ interactions: 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=TYZtZ1TcG46A8BoePHuP+LdmDl5aj5UGoOD6lfruGY0=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=/qU88jz3osM4JRTMRXcxj8BFTfVdtelztb0l4ujBEK4=;EntityPath=sb-topiccli000004","primaryKey":"TYZtZ1TcG46A8BoePHuP+LdmDl5aj5UGoOD6lfruGY0=","secondaryKey":"/qU88jz3osM4JRTMRXcxj8BFTfVdtelztb0l4ujBEK4=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=LbPxwq+Iuawlh+VjNp1QYc8hCiiSC4o3dXhGNH8eBqw=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=V37JGSZqrXgp+8bk4Z/T/kyLvI57FCvsFdkX6f27qE0=;EntityPath=sb-topiccli000004","primaryKey":"LbPxwq+Iuawlh+VjNp1QYc8hCiiSC4o3dXhGNH8eBqw=","secondaryKey":"V37JGSZqrXgp+8bk4Z/T/kyLvI57FCvsFdkX6f27qE0=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:12:44 GMT'] + date: ['Mon, 15 Jan 2018 00:54:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -324,14 +324,14 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] status: {code: 200, message: OK} - request: body: '{"keyType": "SecondaryKey"}' headers: Accept: [application/json] Accept-Encoding: ['gzip, deflate'] - CommandName: [servicebus topic authorizationrule regenerate-keys] + CommandName: [servicebus topic authorizationrule keys renew] Connection: [keep-alive] Content-Length: ['27'] Content-Type: [application/json; charset=utf-8] @@ -341,12 +341,12 @@ interactions: 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=TYZtZ1TcG46A8BoePHuP+LdmDl5aj5UGoOD6lfruGY0=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=aJo+pK68mfrU+rtr2KKc+HIyMabc5Qh/IRwL1KpgcwI=;EntityPath=sb-topiccli000004","primaryKey":"TYZtZ1TcG46A8BoePHuP+LdmDl5aj5UGoOD6lfruGY0=","secondaryKey":"aJo+pK68mfrU+rtr2KKc+HIyMabc5Qh/IRwL1KpgcwI=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=LbPxwq+Iuawlh+VjNp1QYc8hCiiSC4o3dXhGNH8eBqw=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=xZuFJIKGoTgdCz0Ah8Cm5fKDsFmxErOFNj8/Tql3CaM=;EntityPath=sb-topiccli000004","primaryKey":"LbPxwq+Iuawlh+VjNp1QYc8hCiiSC4o3dXhGNH8eBqw=","secondaryKey":"xZuFJIKGoTgdCz0Ah8Cm5fKDsFmxErOFNj8/Tql3CaM=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Thu, 11 Jan 2018 20:12:46 GMT'] + date: ['Mon, 15 Jan 2018 00:54:45 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -354,7 +354,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: null @@ -375,13 +375,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:12:46 GMT'] + date: ['Mon, 15 Jan 2018 00:54: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] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] status: {code: 200, message: OK} - request: body: null @@ -402,7 +402,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:12:48 GMT'] + date: ['Mon, 15 Jan 2018 00:54:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -430,11 +430,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Thu, 11 Jan 2018 20:12:49 GMT'] + date: ['Mon, 15 Jan 2018 00:54:51 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZUT1BJQzdYTExFSUdSVklYUUtZVDUyN1hHN0Q0SXw4RkEzOTU3MTBDOTlFNDU3LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZUT1BJQ0JTM0FFQzZQR0dFTURXWllIUVBFSk9TV3w1REMwMDQzRkFGOUU0QzRBLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] 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 index e64c0052ed5..8f6c2876cae 100644 --- a/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py +++ b/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py @@ -34,7 +34,7 @@ def test_sb_namespace(self, resource_group): # Check for the NameSpace name Availability - self.cmd('servicebus namespace check-name-availability --name {namespacename}', + self.cmd('servicebus namespace exists --name {namespacename}', checks=[self.check('nameAvailable', True)]) # Create Namespace @@ -69,14 +69,14 @@ def test_sb_namespace(self, resource_group): checks=[self.check('name', self.kwargs['defaultauthorizationrule'])]) # Get Authorization Rule Listkeys - self.cmd('servicebus namespace authorizationrule list-keys --resource-group {rg} --namespace-name {namespacename}' + self.cmd('servicebus namespace authorizationrule keys list --resource-group {rg} --namespace-name {namespacename}' ' --name {authoname}') # Regeneratekeys - Primary - self.cmd('servicebus namespace authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename} --name {authoname} --key-name {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 regenerate-keys --resource-group {rg}' + self.cmd('servicebus namespace authorizationrule keys renew --resource-group {rg}' ' --namespace-name {namespacename} --name {authoname} --key-name {secondary}') # Delete AuthorizationRule @@ -137,17 +137,17 @@ def test_sb_queue(self, resource_group): checks=[self.check('name', self.kwargs['authoname'])]) # Get Authorization Rule Listkeys - self.cmd('servicebus queue authorizationrule list-keys --resource-group {rg} --namespace-name {namespacename}' + 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 regenerate-keys --resource-group {rg} --namespace-name {namespacename} --queue-name {queuename} --name {authoname} --key-name {primary}') + '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 regenerate-keys --resource-group {rg} --namespace-name {namespacename}' + 'servicebus queue authorizationrule keys renew --resource-group {rg} --namespace-name {namespacename}' ' --queue-name {queuename} --name {authoname} --key-name {secondary}') self.assertIsNotNone(regenratesecondarykeyresult) @@ -214,17 +214,16 @@ def test_sb_topic(self, resource_group): # Get Authorization Rule Listkeys self.cmd( - 'servicebus topic authorizationrule list-keys --resource-group {rg} --namespace-name {namespacename}' + 'servicebus topic authorizationrule keys list --resource-group {rg} --namespace-name {namespacename}' ' --topic-name {topicname} --name {authoname}') # Regeneratekeys - Primary self.cmd( - 'servicebus topic authorizationrule regenerate-keys --resource-group {rg} --namespace-name {namespacename}' - ' --topic-name {topicname} --name {authoname} --key-name {primary}') + '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 regenerate-keys --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {authoname} --key-name {secondary}') + 'servicebus topic authorizationrule keys renew --resource-group {rg} --namespace-name {namespacename} --topic-name {topicname} --name {authoname} --key-name {secondary}') # Delete Topic AuthorizationRule self.cmd( @@ -391,7 +390,7 @@ def test_sb_alias(self, resource_group): 'test': '' }) - self.cmd('servicebus namespace check-name-availability --name {namespacenameprimary}', + self.cmd('servicebus namespace exists --name {namespacenameprimary}', checks=[self.check('nameAvailable', True)]) # Create Namespace - Primary @@ -403,8 +402,7 @@ def test_sb_alias(self, resource_group): 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}', + 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 @@ -422,7 +420,7 @@ def test_sb_alias(self, resource_group): # CheckNameAvailability - Alias - self.cmd('servicebus georecovery-alias check-name-availability --resource-group {rg} --namespace-name {namespacenameprimary} --name {aliasname}', checks=[self.check('nameAvailable', True)]) + 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}') @@ -433,53 +431,55 @@ def test_sb_alias(self, resource_group): # 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}').output + 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 json.loads(getaliasprimarynamespace)['provisioningState'] != ProvisioningStateDR.succeeded.value: + while getaliasprimarynamespace['provisioningState'] != ProvisioningStateDR.succeeded.value: time.sleep(30) - getaliasprimarynamespace = self.cmd( - 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + 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-pairing --resource-group {rg} --namespace-name {namespacenameprimary}' - ' --alias {aliasname}') + 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}').output + 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 json.loads(getaliasafterbreak)['provisioningState'] != ProvisioningStateDR.succeeded.value: + while getaliasafterbreak['provisioningState'] != ProvisioningStateDR.succeeded.value: time.sleep(30) - getaliasafterbreak = self.cmd( - 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + 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}').output + 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').get_output_in_json() # check for the Alias Provisioning succeeded - while json.loads(getaliasaftercreate)['provisioningState'] != ProvisioningStateDR.succeeded.value: + while getaliasaftercreate['provisioningState'] != ProvisioningStateDR.succeeded.value: time.sleep(30) - getaliasaftercreate = self.cmd( - 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenameprimary} --alias {aliasname}').output + 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}').output + 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}').get_output_in_json() # check for the Alias Provisioning succeeded - while json.loads(getaliasafterfail)['provisioningState'] != ProvisioningStateDR.succeeded.value: + while getaliasafterfail['provisioningState'] != ProvisioningStateDR.succeeded.value: time.sleep(30) - getaliasafterfail = self.cmd( - 'servicebus georecovery-alias show --resource-group {rg} --namespace-name {namespacenamesecondary} --alias {aliasname}').output + 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}') From 68e2c0ddc616ccbd3a48532ca8282800f165a3a3 Mon Sep 17 00:00:00 2001 From: "Ajit Maruti Navasare (MINDTREE LIMITED)" Date: Sun, 14 Jan 2018 17:35:22 -0800 Subject: [PATCH 08/13] fixed the lint error --- .../azext_servicebus/tests/test_servicebus_commands.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py b/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py index 8f6c2876cae..07e3043f5c1 100644 --- a/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py +++ b/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py @@ -5,7 +5,6 @@ # AZURE CLI SERVICEBUS - NAMESAPCE TEST DEFINITIONS -import json import time from azure.cli.testsdk import (ScenarioTest, ResourceGroupPreparer) from azext_servicebus.servicebus.models import ProvisioningStateDR From b55b9cf7541ad909033889badc599917f91e80ad Mon Sep 17 00:00:00 2001 From: "Ajit Maruti Navasare (MINDTREE LIMITED)" Date: Sun, 14 Jan 2018 18:30:35 -0800 Subject: [PATCH 09/13] lint error of trailing whitespace fixed --- src/servicebus/azext_servicebus/_help.py | 6 +++--- .../azext_servicebus/tests/test_servicebus_commands.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/servicebus/azext_servicebus/_help.py b/src/servicebus/azext_servicebus/_help.py index 5cb07d51f23..827305ae991 100644 --- a/src/servicebus/azext_servicebus/_help.py +++ b/src/servicebus/azext_servicebus/_help.py @@ -108,7 +108,7 @@ 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 + - 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] """ @@ -200,7 +200,7 @@ helps['servicebus queue authorizationrule show'] = """ type: command - short-summary: shows the details of AuthorizationRule + 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 @@ -403,7 +403,7 @@ helps['servicebus georecovery-alias exists'] = """ type: command - short-summary: Checks if Geo Recovery Alias Name is available + 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 diff --git a/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py b/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py index 07e3043f5c1..9795ae97919 100644 --- a/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py +++ b/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py @@ -37,7 +37,7 @@ def test_sb_namespace(self, resource_group): checks=[self.check('nameAvailable', True)]) # Create Namespace - self.cmd('servicebus namespace create --resource-group {rg} --name {namespacename} ' + 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'])]) From 4203d5c8f616e2370c14a8193663053f70321d32 Mon Sep 17 00:00:00 2001 From: "Ajit Maruti Navasare (MINDTREE LIMITED)" Date: Sun, 14 Jan 2018 19:16:31 -0800 Subject: [PATCH 10/13] test fixture --- .../recordings/latest/test_sb_alias.yaml | 148 +++++++++--------- .../recordings/latest/test_sb_namespace.yaml | 83 +++++----- .../recordings/latest/test_sb_queue.yaml | 84 +++++----- .../recordings/latest/test_sb_rules.yaml | 66 ++++---- .../latest/test_sb_subscription.yaml | 74 ++++----- .../recordings/latest/test_sb_topic.yaml | 78 ++++----- .../tests/test_servicebus_commands.py | 125 +++++---------- 7 files changed, 307 insertions(+), 351 deletions(-) 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 index 1128ec57913..caa386c1bc8 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:32:47 GMT'] + date: ['Mon, 15 Jan 2018 02:50:26 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: 'b''{"name": "sb-nscli000002"}''' @@ -46,7 +46,7 @@ interactions: cache-control: [no-cache] content-length: ['53'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:32:48 GMT'] + date: ['Mon, 15 Jan 2018 02:50:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -54,7 +54,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: '{"location": "SouthCentralUS", "tags": {"{tag2: value2,": "", "tag1: value1}": @@ -73,12 +73,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:32:49.633Z","updatedAt":"2018-01-15T00:32:49.633Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T02:50:31.47Z","updatedAt":"2018-01-15T02:50:31.47Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['714'] + content-length: ['712'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:32:49 GMT'] + date: ['Mon, 15 Jan 2018 02:50:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -103,12 +103,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:32:49.633Z","updatedAt":"2018-01-15T00:32:49.633Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T02:50:31.47Z","updatedAt":"2018-01-15T02:50:31.47Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['714'] + content-length: ['712'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:33:20 GMT'] + date: ['Mon, 15 Jan 2018 02:51:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:32:49.633Z","updatedAt":"2018-01-15T00:33:34.857Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T02:50:31.47Z","updatedAt":"2018-01-15T02:51:16.543Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['712'] + content-length: ['711'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:33:51 GMT'] + date: ['Mon, 15 Jan 2018 02:51:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -161,12 +161,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:32:49.633Z","updatedAt":"2018-01-15T00:33:34.857Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T02:50:31.47Z","updatedAt":"2018-01-15T02:51:16.543Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['712'] + content-length: ['711'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:33:51 GMT'] + date: ['Mon, 15 Jan 2018 02:51:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -192,12 +192,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T00:33:54.107Z","updatedAt":"2018-01-15T00:33:54.107Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T02:51:36.35Z","updatedAt":"2018-01-15T02:51:36.35Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['714'] + content-length: ['712'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:33:54 GMT'] + date: ['Mon, 15 Jan 2018 02:51:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -205,7 +205,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -222,12 +222,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T00:33:54.107Z","updatedAt":"2018-01-15T00:33:54.107Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T02:51:36.35Z","updatedAt":"2018-01-15T02:51:36.35Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['714'] + content-length: ['712'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:34:24 GMT'] + date: ['Mon, 15 Jan 2018 02:52:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -251,12 +251,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T00:33:54.107Z","updatedAt":"2018-01-15T00:34:36.39Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T02:51:36.35Z","updatedAt":"2018-01-15T02:52:20.373Z","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: ['Mon, 15 Jan 2018 00:34:55 GMT'] + date: ['Mon, 15 Jan 2018 02:52:37 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -280,12 +280,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T00:33:54.107Z","updatedAt":"2018-01-15T00:34:36.39Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} + Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T02:51:36.35Z","updatedAt":"2018-01-15T02:52:20.373Z","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: ['Mon, 15 Jan 2018 00:34:57 GMT'] + date: ['Mon, 15 Jan 2018 02:52:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -315,7 +315,7 @@ interactions: cache-control: [no-cache] content-length: ['407'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:35:29 GMT'] + date: ['Mon, 15 Jan 2018 02:53:12 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -345,7 +345,7 @@ interactions: cache-control: [no-cache] content-length: ['407'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:35:30 GMT'] + date: ['Mon, 15 Jan 2018 02:53:14 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -374,7 +374,7 @@ interactions: cache-control: [no-cache] content-length: ['38'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:35:30 GMT'] + date: ['Mon, 15 Jan 2018 02:53:16 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -382,7 +382,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + 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"}}\''''' @@ -404,7 +404,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:36:05 GMT'] + date: ['Mon, 15 Jan 2018 02:53:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -433,7 +433,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:36:05 GMT'] + date: ['Mon, 15 Jan 2018 02:53:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -461,7 +461,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:36:06 GMT'] + date: ['Mon, 15 Jan 2018 02:53:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -489,7 +489,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:36:06 GMT'] + date: ['Mon, 15 Jan 2018 02:53:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -517,7 +517,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:36:37 GMT'] + date: ['Mon, 15 Jan 2018 02:54:24 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -545,7 +545,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:37:07 GMT'] + date: ['Mon, 15 Jan 2018 02:54:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -573,7 +573,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:37:38 GMT'] + date: ['Mon, 15 Jan 2018 02:55:27 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -601,7 +601,7 @@ interactions: cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:38:08 GMT'] + date: ['Mon, 15 Jan 2018 02:55:58 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -630,7 +630,7 @@ interactions: cache-control: [no-cache] content-length: ['452'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:38:09 GMT'] + date: ['Mon, 15 Jan 2018 02:56:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -654,12 +654,12 @@ interactions: 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://clialiasvi4bwitqp7fn.servicebus.windows.net/;SharedAccessKeyName=cliAutho000004;SharedAccessKey=AZ/xtejvYcD3bHQrbmWBa0r9XrcZ5fAwMNA1gi07h1s=","aliasSecondaryConnectionString":"Endpoint=sb://clialiasvi4bwitqp7fn.servicebus.windows.net/;SharedAccessKeyName=cliAutho000004;SharedAccessKey=ZSis2yQQ8kSWVygNIycf9QCL12cwLvApm4meUY2ohVI=","primaryKey":"AZ/xtejvYcD3bHQrbmWBa0r9XrcZ5fAwMNA1gi07h1s=","secondaryKey":"ZSis2yQQ8kSWVygNIycf9QCL12cwLvApm4meUY2ohVI=","keyName":"cliAutho000004"}'} + body: {string: '{"aliasPrimaryConnectionString":"Endpoint=sb://clialiaste3ztyauw7wp.servicebus.windows.net/;SharedAccessKeyName=cliAutho000004;SharedAccessKey=mDkDgtCwFKSiUt58HlkuWmLwe7OVq4Y6Kfu01kKIaSI=","aliasSecondaryConnectionString":"Endpoint=sb://clialiaste3ztyauw7wp.servicebus.windows.net/;SharedAccessKeyName=cliAutho000004;SharedAccessKey=awx7nufIBqLj3sJtMa39ZE3upl7AnwR8Klgg6grBHM0=","primaryKey":"mDkDgtCwFKSiUt58HlkuWmLwe7OVq4Y6Kfu01kKIaSI=","secondaryKey":"awx7nufIBqLj3sJtMa39ZE3upl7AnwR8Klgg6grBHM0=","keyName":"cliAutho000004"}'} headers: cache-control: [no-cache] content-length: ['546'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:38:10 GMT'] + date: ['Mon, 15 Jan 2018 02:56:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -690,7 +690,7 @@ interactions: cache-control: [no-cache] content-length: ['945'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:38:11 GMT'] + date: ['Mon, 15 Jan 2018 02:56:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -718,13 +718,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:38:11 GMT'] + date: ['Mon, 15 Jan 2018 02:56: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: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -745,7 +745,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:38:12 GMT'] + date: ['Mon, 15 Jan 2018 02:56:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -773,7 +773,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:38:43 GMT'] + date: ['Mon, 15 Jan 2018 02:56:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -801,7 +801,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:39:13 GMT'] + date: ['Mon, 15 Jan 2018 02:57:10 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -829,7 +829,7 @@ interactions: cache-control: [no-cache] content-length: ['483'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:39:44 GMT'] + date: ['Mon, 15 Jan 2018 02:57:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -858,7 +858,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:40:01 GMT'] + date: ['Mon, 15 Jan 2018 02:57:59 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -866,7 +866,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -887,7 +887,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:40:02 GMT'] + date: ['Mon, 15 Jan 2018 02:58:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -915,7 +915,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:40:33 GMT'] + date: ['Mon, 15 Jan 2018 02:58:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -943,7 +943,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:41:04 GMT'] + date: ['Mon, 15 Jan 2018 02:59:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -971,7 +971,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:41:34 GMT'] + date: ['Mon, 15 Jan 2018 02:59:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -999,7 +999,7 @@ interactions: cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:42:04 GMT'] + date: ['Mon, 15 Jan 2018 03:00:10 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1027,7 +1027,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:42:05 GMT'] + date: ['Mon, 15 Jan 2018 03:00:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1054,7 +1054,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:42:05 GMT'] + date: ['Mon, 15 Jan 2018 03:00:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1082,7 +1082,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:42:36 GMT'] + date: ['Mon, 15 Jan 2018 03:00:45 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1110,7 +1110,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:43:06 GMT'] + date: ['Mon, 15 Jan 2018 03:01:17 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1138,7 +1138,7 @@ interactions: cache-control: [no-cache] content-length: ['483'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:43:36 GMT'] + date: ['Mon, 15 Jan 2018 03:01:47 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1166,13 +1166,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:43:37 GMT'] + date: ['Mon, 15 Jan 2018 03:01: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: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -1193,7 +1193,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:44:09 GMT'] + date: ['Mon, 15 Jan 2018 03:02: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] @@ -1220,7 +1220,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:44:39 GMT'] + date: ['Mon, 15 Jan 2018 03:02:52 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] @@ -1246,7 +1246,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:45:10 GMT'] + date: ['Mon, 15 Jan 2018 03:03: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] @@ -1272,7 +1272,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:45:40 GMT'] + date: ['Mon, 15 Jan 2018 03:03:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1298,14 +1298,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:45:42 GMT'] + date: ['Mon, 15 Jan 2018 03:03:55 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: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -1325,7 +1325,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:46:12 GMT'] + date: ['Mon, 15 Jan 2018 03:04:25 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] @@ -1351,7 +1351,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:46:43 GMT'] + date: ['Mon, 15 Jan 2018 03:04:56 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] @@ -1377,7 +1377,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:47:13 GMT'] + date: ['Mon, 15 Jan 2018 03:05:26 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1404,9 +1404,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:47:13 GMT'] + date: ['Mon, 15 Jan 2018 03:05:29 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZBTElBUzVTN1lKRUk0VUxGMzNLUkEyR1RaWUpOM3wxRkE3M0IzRjcyNkYzMzE0LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZBTElBU0ZOU0xPSkVQUzZPTUJCSFdYN1hSUVYzNnw0RDk3N0UxMTUyRTUxQUY4LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-ms-ratelimit-remaining-subscription-writes: ['1198'] 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 index bd48b1d96f6..82fb95859b3 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:47:16 GMT'] + date: ['Mon, 15 Jan 2018 03:05:31 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: body: 'b''{"name": "sb-nscli000002"}''' @@ -46,7 +46,7 @@ interactions: cache-control: [no-cache] content-length: ['53'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:47:16 GMT'] + date: ['Mon, 15 Jan 2018 03:05:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -54,7 +54,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: '{"location": "westus2", "tags": {"{tag1: value1}": ""}, "sku": {"name": @@ -73,12 +73,12 @@ interactions: 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-15T00:47:18.34Z","updatedAt":"2018-01-15T00:47:18.34Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:05:34.99Z","updatedAt":"2018-01-15T03:05:34.99Z","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: ['Mon, 15 Jan 2018 00:47:18 GMT'] + date: ['Mon, 15 Jan 2018 03:05:35 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -86,7 +86,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -103,12 +103,12 @@ interactions: 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-15T00:47:18.34Z","updatedAt":"2018-01-15T00:47:42.093Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:05:34.99Z","updatedAt":"2018-01-15T03:06:01.607Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:47:48 GMT'] + date: ['Mon, 15 Jan 2018 03:06:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-15T00:47:18.34Z","updatedAt":"2018-01-15T00:47:42.093Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:05:34.99Z","updatedAt":"2018-01-15T03:06:01.607Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:47:51 GMT'] + date: ['Mon, 15 Jan 2018 03:06:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -161,7 +161,8 @@ interactions: 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/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":"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 + 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":"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-15T03:05:34.99Z","updatedAt":"2018-01-15T03:06:01.607Z","serviceBusEndpoint":"https://sb-nscli000002.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 @@ -173,21 +174,17 @@ interactions: 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":"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/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/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":"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-15T00:47:18.34Z","updatedAt":"2018-01-15T00:47:42.093Z","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_alias2tinyjvsn4mama6b2cczzzxqaswwbnv7eo6lxlaiyikys2exxli6ifemmv/providers/Microsoft.ServiceBus/namespaces/sb-nsclizrw46v5dyqbx","name":"sb-nsclizrw46v5dyqbx","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_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/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":"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-15T00:09:28.317Z","serviceBusEndpoint":"https://sb-nsclinxaxkdjcrrum.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":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_aliassjgzcbszebidt7lhuvnzqmz4y7gadz7lumfzdatacnqp6wbtsfk6dryoei/providers/Microsoft.ServiceBus/namespaces/sb-nscli3ypeyfeexaum","name":"sb-nscli3ypeyfeexaum","type":"Microsoft.ServiceBus/Namespaces","location":"North - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli3ypeyfeexaum","createdAt":"2018-01-13T03:32:31.44Z","updatedAt":"2018-01-13T03:37:14.96Z","serviceBusEndpoint":"https://sb-nscli3ypeyfeexaum.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":"Premium","tier":"Premium","capacity":1},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cli_test_sb_aliassjgzcbszebidt7lhuvnzqmz4y7gadz7lumfzdatacnqp6wbtsfk6dryoei/providers/Microsoft.ServiceBus/namespaces/sb-nscligdxkfnocvlt5","name":"sb-nscligdxkfnocvlt5","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag1: value1,":"","tag2: value2}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscligdxkfnocvlt5","createdAt":"2018-01-13T03:31:26.623Z","updatedAt":"2018-01-13T03:37:15.89Z","serviceBusEndpoint":"https://sb-nscligdxkfnocvlt5.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-nscligop72gtrm544","name":"sb-nscligop72gtrm544","type":"Microsoft.ServiceBus/Namespaces","location":"South - Central US","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscligop72gtrm544","createdAt":"2018-01-12T03:20:48.687Z","updatedAt":"2018-01-12T03:26:02.69Z","serviceBusEndpoint":"https://sb-nscligop72gtrm544.servicebus.windows.net:443/","status":"Active"}}]}'} + 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":"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":"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"}}]}'} headers: cache-control: [no-cache] - content-length: ['14263'] + content-length: ['12128'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:47:51 GMT'] + date: ['Mon, 15 Jan 2018 03:06:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -211,12 +208,12 @@ interactions: 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-15T00:47:18.34Z","updatedAt":"2018-01-15T00:47:42.093Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}]}'} + US 2","tags":{"{tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:05:34.99Z","updatedAt":"2018-01-15T03:06:01.607Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}]}'} headers: cache-control: [no-cache] content-length: ['686'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:47:52 GMT'] + date: ['Mon, 15 Jan 2018 03:06:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -246,7 +243,7 @@ interactions: cache-control: [no-cache] content-length: ['400'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:48:24 GMT'] + date: ['Mon, 15 Jan 2018 03:06:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -254,7 +251,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -276,7 +273,7 @@ interactions: cache-control: [no-cache] content-length: ['400'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:48:25 GMT'] + date: ['Mon, 15 Jan 2018 03:06:45 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -305,7 +302,7 @@ interactions: cache-control: [no-cache] content-length: ['428'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:48:26 GMT'] + date: ['Mon, 15 Jan 2018 03:06:47 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -329,12 +326,12 @@ interactions: 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=CfNtDuT2uW6oiYuIPTjNMGi3ZHMUR+Dexx2zSaPSODg=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=g3iDSpcKtOLdSnw37RP9Q9YylvvJGaZc+AaGSiuv1EE=","primaryKey":"CfNtDuT2uW6oiYuIPTjNMGi3ZHMUR+Dexx2zSaPSODg=","secondaryKey":"g3iDSpcKtOLdSnw37RP9Q9YylvvJGaZc+AaGSiuv1EE=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=1zrN+zKQFOSJ25FUtXiS8hvoZQxzwhBMuC5Zc3AOXlA=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=PPeGbFR9P3ncloA3DwW3cPLQH58Rl82x74XJLUNFYxI=","primaryKey":"1zrN+zKQFOSJ25FUtXiS8hvoZQxzwhBMuC5Zc3AOXlA=","secondaryKey":"PPeGbFR9P3ncloA3DwW3cPLQH58Rl82x74XJLUNFYxI=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['536'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:48:27 GMT'] + date: ['Mon, 15 Jan 2018 03:06:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -342,7 +339,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: '{"keyType": "PrimaryKey"}' @@ -359,12 +356,12 @@ interactions: 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=SCuF1Evb7ST12cEc3I84WLRHdH5Wfb9duGz/4724OXo=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=g3iDSpcKtOLdSnw37RP9Q9YylvvJGaZc+AaGSiuv1EE=","primaryKey":"SCuF1Evb7ST12cEc3I84WLRHdH5Wfb9duGz/4724OXo=","secondaryKey":"g3iDSpcKtOLdSnw37RP9Q9YylvvJGaZc+AaGSiuv1EE=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=5fD37BLLYMzNNnvKJ12evW5lrDYKqL4VieO+XcnPkUk=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=PPeGbFR9P3ncloA3DwW3cPLQH58Rl82x74XJLUNFYxI=","primaryKey":"5fD37BLLYMzNNnvKJ12evW5lrDYKqL4VieO+XcnPkUk=","secondaryKey":"PPeGbFR9P3ncloA3DwW3cPLQH58Rl82x74XJLUNFYxI=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['536'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:48:43 GMT'] + date: ['Mon, 15 Jan 2018 03:07:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -389,12 +386,12 @@ interactions: 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=SCuF1Evb7ST12cEc3I84WLRHdH5Wfb9duGz/4724OXo=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=GyvmvRqpog3/qyA1Vpr71h8YSJnyy4RpCXZ8JaaQSCk=","primaryKey":"SCuF1Evb7ST12cEc3I84WLRHdH5Wfb9duGz/4724OXo=","secondaryKey":"GyvmvRqpog3/qyA1Vpr71h8YSJnyy4RpCXZ8JaaQSCk=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=5fD37BLLYMzNNnvKJ12evW5lrDYKqL4VieO+XcnPkUk=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=mtfyM9z1GjPhHZcVPOAxhmebey0XRq6PLmm15bUMPro=","primaryKey":"5fD37BLLYMzNNnvKJ12evW5lrDYKqL4VieO+XcnPkUk=","secondaryKey":"mtfyM9z1GjPhHZcVPOAxhmebey0XRq6PLmm15bUMPro=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['536'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:48:59 GMT'] + date: ['Mon, 15 Jan 2018 03:07:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -423,13 +420,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:49:17 GMT'] + date: ['Mon, 15 Jan 2018 03:07: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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -450,14 +447,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:49:18 GMT'] + date: ['Mon, 15 Jan 2018 03:07:47 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'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} - request: body: null @@ -477,7 +474,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:49:48 GMT'] + date: ['Mon, 15 Jan 2018 03:08:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -504,11 +501,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:49:50 GMT'] + date: ['Mon, 15 Jan 2018 03:08:21 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZOQU1FU1BBQ0VLQ1pESExJVDRSS0FVMkw1VEFFSnxERTZCQUQyNjg0MEVDNkZDLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZOQU1FU1BBQ0VWWVdVTktVNkZWTVNMRkpKTU9DSHw0M0I5QTg4MDc1Q0I2N0UxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] 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 index 00d60fbf364..f3961cd5c07 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:49:52 GMT'] + date: ['Mon, 15 Jan 2018 03:08:23 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: '{"location": "westus2", "tags": {"{tag2: value2,": "", "tag1: value1}": @@ -43,12 +43,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:49:53.187Z","updatedAt":"2018-01-15T00:49:53.187Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:08:25.307Z","updatedAt":"2018-01-15T03:08:25.307Z","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: ['Mon, 15 Jan 2018 00:49:52 GMT'] + date: ['Mon, 15 Jan 2018 03:08:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,7 +56,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -73,12 +73,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:49:53.187Z","updatedAt":"2018-01-15T00:50:14.717Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:08:25.307Z","updatedAt":"2018-01-15T03:08:48.63Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['694'] + content-length: ['693'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:50:23 GMT'] + date: ['Mon, 15 Jan 2018 03:08:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -102,12 +102,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:49:53.187Z","updatedAt":"2018-01-15T00:50:14.717Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:08:25.307Z","updatedAt":"2018-01-15T03:08:48.63Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['694'] + content-length: ['693'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:50:25 GMT'] + date: ['Mon, 15 Jan 2018 03:08:58 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-15T00:50:26.94Z","updatedAt":"2018-01-15T00:50:27.017Z","accessedAt":"0001-01-01T00:00:00"}}'} + 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-15T03:09:00.723Z","updatedAt":"2018-01-15T03:09:00.847Z","accessedAt":"0001-01-01T00:00:00"}}'} headers: cache-control: [no-cache] - content-length: ['1032'] + content-length: ['1033'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:50:28 GMT'] + date: ['Mon, 15 Jan 2018 03:09:01 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -145,7 +145,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -162,12 +162,12 @@ interactions: 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-15T00:50:26.94Z","updatedAt":"2018-01-15T00:50:27.017Z","accessedAt":"0001-01-01T00:00:00Z"}}'} + 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-15T03:09:00.723Z","updatedAt":"2018-01-15T03:09:00.847Z","accessedAt":"0001-01-01T00:00:00Z"}}'} headers: cache-control: [no-cache] - content-length: ['1033'] + content-length: ['1034'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:50:28 GMT'] + date: ['Mon, 15 Jan 2018 03:09:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -191,12 +191,12 @@ interactions: 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-15T00:50:26.94Z","updatedAt":"2018-01-15T00:50:27.017Z","accessedAt":"0001-01-01T00:00:00Z"}}]}'} + 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-15T03:09:00.723Z","updatedAt":"2018-01-15T03:09:00.847Z","accessedAt":"0001-01-01T00:00:00Z"}}]}'} headers: cache-control: [no-cache] - content-length: ['1045'] + content-length: ['1046'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:50:30 GMT'] + date: ['Mon, 15 Jan 2018 03:09:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -227,7 +227,7 @@ interactions: cache-control: [no-cache] content-length: ['442'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:50:31 GMT'] + date: ['Mon, 15 Jan 2018 03:09:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -235,7 +235,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -257,7 +257,7 @@ interactions: cache-control: [no-cache] content-length: ['442'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:50:31 GMT'] + date: ['Mon, 15 Jan 2018 03:09:12 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -281,12 +281,12 @@ interactions: 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=o5qisFzR1xbbnrWwxvd3MaFZ6l4Nub/aiCtb7SzENBI=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=dbPrkLAoeRVI8uAOlHBQlKUq2zWnhoMXElOctlC++Ks=;EntityPath=sb-queuecli000004","primaryKey":"o5qisFzR1xbbnrWwxvd3MaFZ6l4Nub/aiCtb7SzENBI=","secondaryKey":"dbPrkLAoeRVI8uAOlHBQlKUq2zWnhoMXElOctlC++Ks=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=uyW1ejbyjysXPW04gKrTp7d12iHBI/1iXEHp45PTk2s=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Iyta46Mp/QiGEyX1zemdynxGXG/+jrw5YYJ5n0dGWAk=;EntityPath=sb-queuecli000004","primaryKey":"uyW1ejbyjysXPW04gKrTp7d12iHBI/1iXEHp45PTk2s=","secondaryKey":"Iyta46Mp/QiGEyX1zemdynxGXG/+jrw5YYJ5n0dGWAk=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:50:32 GMT'] + date: ['Mon, 15 Jan 2018 03:09:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -294,7 +294,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: '{"keyType": "PrimaryKey"}' @@ -311,12 +311,12 @@ interactions: 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=mPoGTP/8aPVbQFEYYNkyRS32gckywn8gbNFsKeaG1uQ=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=dbPrkLAoeRVI8uAOlHBQlKUq2zWnhoMXElOctlC++Ks=;EntityPath=sb-queuecli000004","primaryKey":"mPoGTP/8aPVbQFEYYNkyRS32gckywn8gbNFsKeaG1uQ=","secondaryKey":"dbPrkLAoeRVI8uAOlHBQlKUq2zWnhoMXElOctlC++Ks=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=vYr+YKB276iqtUThKIEVobx/kUGhF3Cs8GkDHWlyRAI=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Iyta46Mp/QiGEyX1zemdynxGXG/+jrw5YYJ5n0dGWAk=;EntityPath=sb-queuecli000004","primaryKey":"vYr+YKB276iqtUThKIEVobx/kUGhF3Cs8GkDHWlyRAI=","secondaryKey":"Iyta46Mp/QiGEyX1zemdynxGXG/+jrw5YYJ5n0dGWAk=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:50:33 GMT'] + date: ['Mon, 15 Jan 2018 03:09:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -324,7 +324,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: '{"keyType": "SecondaryKey"}' @@ -341,12 +341,12 @@ interactions: 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=mPoGTP/8aPVbQFEYYNkyRS32gckywn8gbNFsKeaG1uQ=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=qbT/KqdNVp7pNehMCRm8O6tjkLt2fYgp/aVTlXt9J+4=;EntityPath=sb-queuecli000004","primaryKey":"mPoGTP/8aPVbQFEYYNkyRS32gckywn8gbNFsKeaG1uQ=","secondaryKey":"qbT/KqdNVp7pNehMCRm8O6tjkLt2fYgp/aVTlXt9J+4=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=vYr+YKB276iqtUThKIEVobx/kUGhF3Cs8GkDHWlyRAI=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=QMeA0Qz6yxs+YnG13ORbFX8DlsRQYoGexPl2E8fYCrU=;EntityPath=sb-queuecli000004","primaryKey":"vYr+YKB276iqtUThKIEVobx/kUGhF3Cs8GkDHWlyRAI=","secondaryKey":"QMeA0Qz6yxs+YnG13ORbFX8DlsRQYoGexPl2E8fYCrU=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:50:34 GMT'] + date: ['Mon, 15 Jan 2018 03:09:19 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -354,7 +354,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -375,7 +375,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:50:35 GMT'] + date: ['Mon, 15 Jan 2018 03:09:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -402,13 +402,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:50:36 GMT'] + date: ['Mon, 15 Jan 2018 03:09: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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -429,14 +429,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:50:37 GMT'] + date: ['Mon, 15 Jan 2018 03:09:26 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'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} - request: body: null @@ -456,7 +456,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:51:07 GMT'] + date: ['Mon, 15 Jan 2018 03:09:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -483,11 +483,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:51:09 GMT'] + date: ['Mon, 15 Jan 2018 03:09:58 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZRVUVVRTZYSFFJNEtGVzNBQjNWSFBFUDc0SEtJVXw3MDgzOEQzRTZGMTU3NjhFLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZRVUVVRU9ESkZWQ1RBVkdKWFVLVkc3S1ZPWlNLRnw0QTVCQ0RGNUUwQjk1N0ExLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + 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 index 458a9941c88..0f575704979 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:51:11 GMT'] + date: ['Mon, 15 Jan 2018 03:10:01 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: '{"location": "westus2", "tags": {"{tag2: value2,": "", "tag1: value1}": @@ -43,12 +43,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:51:12.61Z","updatedAt":"2018-01-15T00:51:12.61Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:10:03.67Z","updatedAt":"2018-01-15T03:10:03.67Z","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: ['Mon, 15 Jan 2018 00:51:12 GMT'] + date: ['Mon, 15 Jan 2018 03:10:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,7 +56,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -73,12 +73,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:51:12.61Z","updatedAt":"2018-01-15T00:51:35.787Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:10:03.67Z","updatedAt":"2018-01-15T03:10:28.967Z","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: ['Mon, 15 Jan 2018 00:51:43 GMT'] + date: ['Mon, 15 Jan 2018 03:10:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -102,12 +102,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:51:12.61Z","updatedAt":"2018-01-15T00:51:35.787Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:10:03.67Z","updatedAt":"2018-01-15T03:10:28.967Z","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: ['Mon, 15 Jan 2018 00:51:43 GMT'] + date: ['Mon, 15 Jan 2018 03:10:35 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-15T00:51:45.607Z","updatedAt":"2018-01-15T00:51:45.717Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-15T03:10:38.82Z","updatedAt":"2018-01-15T03:10:38.943Z","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-length: ['1003'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:51:46 GMT'] + date: ['Mon, 15 Jan 2018 03:10:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -162,12 +162,12 @@ interactions: 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-15T00:51:45.607Z","updatedAt":"2018-01-15T00:51:45.717Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-15T03:10:38.82Z","updatedAt":"2018-01-15T03:10:38.943Z","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-length: ['1004'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:51:47 GMT'] + date: ['Mon, 15 Jan 2018 03:10:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -192,12 +192,12 @@ interactions: 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-15T00:51:50.1813275Z","updatedAt":"2018-01-15T00:51:50.1813275Z","accessedAt":"0001-01-01T00:00:00","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-15T03:10:44.9052693Z","updatedAt":"2018-01-15T03:10:44.9052693Z","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: ['Mon, 15 Jan 2018 00:51:50 GMT'] + date: ['Mon, 15 Jan 2018 03:10:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -222,12 +222,12 @@ interactions: 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-15T00:51:50.11486Z","updatedAt":"2018-01-15T00:51:50.11486Z","accessedAt":"2018-01-15T00:51:50.11486Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-15T03:10:44.9172171Z","updatedAt":"2018-01-15T03:10:44.9172171Z","accessedAt":"2018-01-15T03:10:44.9172171Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} headers: cache-control: [no-cache] - content-length: ['978'] + content-length: ['984'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:51:51 GMT'] + date: ['Mon, 15 Jan 2018 03:10:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -258,7 +258,7 @@ interactions: cache-control: [no-cache] content-length: ['563'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:51:53 GMT'] + date: ['Mon, 15 Jan 2018 03:10:50 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -266,7 +266,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -288,7 +288,7 @@ interactions: cache-control: [no-cache] content-length: ['579'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:51:54 GMT'] + date: ['Mon, 15 Jan 2018 03:10:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -317,7 +317,7 @@ interactions: cache-control: [no-cache] content-length: ['591'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:51:55 GMT'] + date: ['Mon, 15 Jan 2018 03:10:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -346,13 +346,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:51:56 GMT'] + date: ['Mon, 15 Jan 2018 03:10: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] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -373,7 +373,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:51:58 GMT'] + date: ['Mon, 15 Jan 2018 03:10:57 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -400,7 +400,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:51:59 GMT'] + date: ['Mon, 15 Jan 2018 03:11:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -427,14 +427,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:52:00 GMT'] + date: ['Mon, 15 Jan 2018 03:11:01 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: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} - request: body: null @@ -454,7 +454,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:52:31 GMT'] + date: ['Mon, 15 Jan 2018 03:11:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -481,9 +481,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:52:32 GMT'] + date: ['Mon, 15 Jan 2018 03:11:34 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZSVUxFU0pQUEI1M1lYQjZRM0hNUkhFS1YySEtRQXxGQUJDQTMwNTFFQzJGRUZCLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZSVUxFU05MS0FYWldVRFJaRUVEQkpaNFFKV0VZWnwyQjk0MUM3RTJGRDU3MTQxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] x-ms-ratelimit-remaining-subscription-writes: ['1197'] 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 index c2f8c91e942..2fe5136a029 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:52:34 GMT'] + date: ['Mon, 15 Jan 2018 03:11:36 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: '{"location": "westus2", "tags": {"{tag2: value2,": "", "tag1: value1}": @@ -43,12 +43,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:52:35.537Z","updatedAt":"2018-01-15T00:52:35.537Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:11:38.28Z","updatedAt":"2018-01-15T03:11:38.28Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} headers: cache-control: [no-cache] - content-length: ['696'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:52:35 GMT'] + date: ['Mon, 15 Jan 2018 03:11:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,7 +56,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -73,12 +73,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:52:35.537Z","updatedAt":"2018-01-15T00:53:02.173Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:11:38.28Z","updatedAt":"2018-01-15T03:12:00.097Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['694'] + content-length: ['693'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:53:06 GMT'] + date: ['Mon, 15 Jan 2018 03:12:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -102,12 +102,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:52:35.537Z","updatedAt":"2018-01-15T00:53:02.173Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:11:38.28Z","updatedAt":"2018-01-15T03:12:00.097Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['694'] + content-length: ['693'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:53:06 GMT'] + date: ['Mon, 15 Jan 2018 03:12:10 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-15T00:53:09.04Z","updatedAt":"2018-01-15T00:53:09.103Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-15T03:12:13.57Z","updatedAt":"2018-01-15T03:12:13.65Z","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-length: ['1002'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:53:10 GMT'] + date: ['Mon, 15 Jan 2018 03:12:13 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -145,7 +145,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -162,12 +162,12 @@ interactions: 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-15T00:53:09.04Z","updatedAt":"2018-01-15T00:53:09.103Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-15T03:12:13.57Z","updatedAt":"2018-01-15T03:12:13.65Z","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-length: ['1003'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:53:10 GMT'] + date: ['Mon, 15 Jan 2018 03:12:15 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -192,12 +192,12 @@ interactions: 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-15T00:53:13.7786418Z","updatedAt":"2018-01-15T00:53:13.7786418Z","accessedAt":"0001-01-01T00:00:00","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-15T03:12:19.2390576Z","updatedAt":"2018-01-15T03:12:19.2390576Z","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: ['Mon, 15 Jan 2018 00:53:13 GMT'] + date: ['Mon, 15 Jan 2018 03:12:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -222,12 +222,12 @@ interactions: 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-15T00:53:14.096226Z","updatedAt":"2018-01-15T00:53:14.096226Z","accessedAt":"2018-01-15T00:53:14.097Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-15T03:12:19.4122041Z","updatedAt":"2018-01-15T03:12:19.4122041Z","accessedAt":"2018-01-15T03:12:19.413Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} headers: cache-control: [no-cache] - content-length: ['978'] + content-length: ['980'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:53:14 GMT'] + date: ['Mon, 15 Jan 2018 03:12:20 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -251,12 +251,12 @@ interactions: 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-15T00:53:14.096226Z","updatedAt":"2018-01-15T00:53:14.096226Z","accessedAt":"2018-01-15T00:53:14.097Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}]}'} + US 2","properties":{"lockDuration":"PT1M","requiresSession":false,"defaultMessageTimeToLive":"P10675199DT2H48M5.4775807S","deadLetteringOnMessageExpiration":false,"messageCount":0,"maxDeliveryCount":10,"status":"Active","enableBatchedOperations":true,"createdAt":"2018-01-15T03:12:19.4122041Z","updatedAt":"2018-01-15T03:12:19.4122041Z","accessedAt":"2018-01-15T03:12:19.413Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}]}'} headers: cache-control: [no-cache] - content-length: ['990'] + content-length: ['992'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:53:15 GMT'] + date: ['Mon, 15 Jan 2018 03:12:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -285,13 +285,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:53:15 GMT'] + date: ['Mon, 15 Jan 2018 03:12: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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -312,13 +312,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:53:17 GMT'] + date: ['Mon, 15 Jan 2018 03:12: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: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -339,14 +339,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:53:17 GMT'] + date: ['Mon, 15 Jan 2018 03:12:28 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'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -366,7 +366,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:53:49 GMT'] + date: ['Mon, 15 Jan 2018 03:12:58 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -393,11 +393,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:53:52 GMT'] + date: ['Mon, 15 Jan 2018 03:13:00 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZTVUJTQ1JJUFRJT042RUlFSVo0TUlQM0EzUEFSVHwwRUU2Q0JFNjhEQzk1NUUzLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZTVUJTQ1JJUFRJT05WSkVDR0oyTElJUVZKRFFBVnwxNzNFMkRCRDNCQjAyMkIyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + 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 index 0bc8fed0e6d..d97a8ba65cb 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:53:53 GMT'] + date: ['Mon, 15 Jan 2018 03:13:03 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: '{"location": "westus2", "tags": {"{tag2: value2,": "", "tag1: value1}": @@ -43,12 +43,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:53:56.477Z","updatedAt":"2018-01-15T00:53:56.477Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:13:05.297Z","updatedAt":"2018-01-15T03:13:05.297Z","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: ['Mon, 15 Jan 2018 00:53:56 GMT'] + date: ['Mon, 15 Jan 2018 03:13:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,7 +56,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -73,12 +73,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:53:56.477Z","updatedAt":"2018-01-15T00:54:23.09Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:13:05.297Z","updatedAt":"2018-01-15T03:13:28.437Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['693'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:54:27 GMT'] + date: ['Mon, 15 Jan 2018 03:13:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -102,12 +102,12 @@ interactions: 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T00:53:56.477Z","updatedAt":"2018-01-15T00:54:23.09Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + US 2","tags":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:13:05.297Z","updatedAt":"2018-01-15T03:13:28.437Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} headers: cache-control: [no-cache] - content-length: ['693'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:54:28 GMT'] + date: ['Mon, 15 Jan 2018 03:13:37 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -132,12 +132,12 @@ interactions: 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-15T00:54:31.41Z","updatedAt":"2018-01-15T00:54:31.553Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-15T03:13:40.5Z","updatedAt":"2018-01-15T03:13:40.563Z","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-length: ['1002'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:54:33 GMT'] + date: ['Mon, 15 Jan 2018 03:13:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -162,12 +162,12 @@ interactions: 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-15T00:54:31.41Z","updatedAt":"2018-01-15T00:54:31.553Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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-15T03:13:40.5Z","updatedAt":"2018-01-15T03:13:40.563Z","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-length: ['1003'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:54:34 GMT'] + date: ['Mon, 15 Jan 2018 03:13:42 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -191,12 +191,12 @@ interactions: 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-15T00:54:31.41Z","updatedAt":"2018-01-15T00:54:31.553Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}]}'} + 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-15T03:13:40.5Z","updatedAt":"2018-01-15T03:13:40.563Z","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-length: ['1015'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:54:36 GMT'] + date: ['Mon, 15 Jan 2018 03:13:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -227,7 +227,7 @@ interactions: cache-control: [no-cache] content-length: ['440'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:54:38 GMT'] + date: ['Mon, 15 Jan 2018 03:13:46 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -235,7 +235,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -257,7 +257,7 @@ interactions: cache-control: [no-cache] content-length: ['440'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:54:40 GMT'] + date: ['Mon, 15 Jan 2018 03:13:47 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -281,12 +281,12 @@ interactions: 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=fut90/7u9aTD73Y4SsZIMSkTeqbJKeZyQJxW3bLDnaI=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=V37JGSZqrXgp+8bk4Z/T/kyLvI57FCvsFdkX6f27qE0=;EntityPath=sb-topiccli000004","primaryKey":"fut90/7u9aTD73Y4SsZIMSkTeqbJKeZyQJxW3bLDnaI=","secondaryKey":"V37JGSZqrXgp+8bk4Z/T/kyLvI57FCvsFdkX6f27qE0=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=cZwmf5xHeuMfIoB/JTaAeKKW7EzmolLD9aHSQMNRxEk=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Dl6S/5lnh41hauaxmCwLnrICZC7zidBxmuCiKTKP6FM=;EntityPath=sb-topiccli000004","primaryKey":"cZwmf5xHeuMfIoB/JTaAeKKW7EzmolLD9aHSQMNRxEk=","secondaryKey":"Dl6S/5lnh41hauaxmCwLnrICZC7zidBxmuCiKTKP6FM=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:54:42 GMT'] + date: ['Mon, 15 Jan 2018 03:13:49 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -294,7 +294,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: '{"keyType": "PrimaryKey"}' @@ -311,12 +311,12 @@ interactions: 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=LbPxwq+Iuawlh+VjNp1QYc8hCiiSC4o3dXhGNH8eBqw=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=V37JGSZqrXgp+8bk4Z/T/kyLvI57FCvsFdkX6f27qE0=;EntityPath=sb-topiccli000004","primaryKey":"LbPxwq+Iuawlh+VjNp1QYc8hCiiSC4o3dXhGNH8eBqw=","secondaryKey":"V37JGSZqrXgp+8bk4Z/T/kyLvI57FCvsFdkX6f27qE0=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ZEOxowKUHFAkGtAMLCrAlLg8Y5LPbqhaMP+uik1/NcE=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Dl6S/5lnh41hauaxmCwLnrICZC7zidBxmuCiKTKP6FM=;EntityPath=sb-topiccli000004","primaryKey":"ZEOxowKUHFAkGtAMLCrAlLg8Y5LPbqhaMP+uik1/NcE=","secondaryKey":"Dl6S/5lnh41hauaxmCwLnrICZC7zidBxmuCiKTKP6FM=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:54:43 GMT'] + date: ['Mon, 15 Jan 2018 03:13:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -324,7 +324,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: '{"keyType": "SecondaryKey"}' @@ -341,12 +341,12 @@ interactions: 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=LbPxwq+Iuawlh+VjNp1QYc8hCiiSC4o3dXhGNH8eBqw=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=xZuFJIKGoTgdCz0Ah8Cm5fKDsFmxErOFNj8/Tql3CaM=;EntityPath=sb-topiccli000004","primaryKey":"LbPxwq+Iuawlh+VjNp1QYc8hCiiSC4o3dXhGNH8eBqw=","secondaryKey":"xZuFJIKGoTgdCz0Ah8Cm5fKDsFmxErOFNj8/Tql3CaM=","keyName":"cliAutho000003"}'} + body: {string: '{"primaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=ZEOxowKUHFAkGtAMLCrAlLg8Y5LPbqhaMP+uik1/NcE=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=vImTC1tm2Nz0mwvzBuH29wziDLlvQydwyXR+bdL3+Fg=;EntityPath=sb-topiccli000004","primaryKey":"ZEOxowKUHFAkGtAMLCrAlLg8Y5LPbqhaMP+uik1/NcE=","secondaryKey":"vImTC1tm2Nz0mwvzBuH29wziDLlvQydwyXR+bdL3+Fg=","keyName":"cliAutho000003"}'} headers: cache-control: [no-cache] content-length: ['610'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 00:54:45 GMT'] + date: ['Mon, 15 Jan 2018 03:13:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -354,7 +354,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -375,13 +375,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:54:47 GMT'] + date: ['Mon, 15 Jan 2018 03: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] - x-ms-ratelimit-remaining-subscription-writes: ['1195'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -402,13 +402,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:54:49 GMT'] + date: ['Mon, 15 Jan 2018 03:13: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] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -430,11 +430,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 00:54:51 GMT'] + date: ['Mon, 15 Jan 2018 03:13:58 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZUT1BJQ0JTM0FFQzZQR0dFTURXWllIUVBFSk9TV3w1REMwMDQzRkFGOUU0QzRBLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZUT1BJQ1NUNTc3Vkk1RkRMVTVPNFNKRzdZNU8yN3xDNDU3QzQ5MjNGMzQ2NzI2LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] - x-ms-ratelimit-remaining-subscription-writes: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1195'] 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 index 9795ae97919..00945e2820b 100644 --- a/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py +++ b/src/servicebus/azext_servicebus/tests/test_servicebus_commands.py @@ -37,8 +37,7 @@ def test_sb_namespace(self, resource_group): 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}', + 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 @@ -54,33 +53,27 @@ def test_sb_namespace(self, resource_group): 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}', + 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'])]) + 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}', + 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}') + 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}') + 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}') + 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}') @@ -106,8 +99,7 @@ def test_sb_queue(self, resource_group): }) # Create Namespace - self.cmd('servicebus namespace create --resource-group {rg} --name {namespacename} --location {loc} --tags {tags}' - ' --sku-name {sku} --sku-tier {tier}', + 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 @@ -115,8 +107,7 @@ def test_sb_queue(self, resource_group): 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'])]) + 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}', @@ -126,33 +117,27 @@ def test_sb_queue(self, resource_group): 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}', + 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}', + 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}') + 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}') + 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}') + '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}') + 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}') @@ -180,8 +165,7 @@ def test_sb_topic(self, resource_group): # Create Namespace self.cmd( - 'servicebus namespace create --resource-group {rg} --name {namespacename} ' - '--location {loc} --tags {tags} --sku-name {sku} --sku-tier {tier}', + '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 @@ -190,44 +174,35 @@ def test_sb_topic(self, resource_group): # Create Topic self.cmd( - 'servicebus topic create --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', + '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} ', + '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}', + 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'])]) + 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}') + 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}') + 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}') + 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}') + 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}') @@ -252,8 +227,7 @@ def test_sb_subscription(self, resource_group): }) # Create Namespace - self.cmd('servicebus namespace create --resource-group {rg} --name {namespacename} ' - '--location {loc} --tags {tags} --sku-name {sku} --sku-tier {tier}', + 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 @@ -261,29 +235,26 @@ def test_sb_subscription(self, resource_group): checks=[self.check('sku.name', self.kwargs['sku'])]) # Create Topic - self.cmd('servicebus topic create --resource-group {rg} --namespace-name {namespacename} --name {topicname} ', + 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} ', + 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}', + 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}', + 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}') + 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}') @@ -313,8 +284,7 @@ def test_sb_rules(self, resource_group): }) # Create Namespace - self.cmd('servicebus namespace create --resource-group {rg} --name {namespacename} ' - '--location {loc} --tags {tags} --sku-name {sku} --sku-tier {tier}', + 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 @@ -330,35 +300,28 @@ def test_sb_rules(self, resource_group): 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}', + 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'])]) + 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}', + 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}', + 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}') + 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}') + 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}') + 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}') @@ -397,8 +360,7 @@ def test_sb_alias(self, resource_group): 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'])]) + 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}', @@ -414,8 +376,7 @@ def test_sb_alias(self, resource_group): 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'])]) + self.cmd('servicebus namespace authorizationrule show --resource-group {rg} --namespace-name {namespacenameprimary} --name {authoname}', checks=[self.check('name', self.kwargs['authoname'])]) # CheckNameAvailability - Alias @@ -457,8 +418,7 @@ def test_sb_alias(self, resource_group): 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}') + 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() @@ -469,8 +429,7 @@ def test_sb_alias(self, resource_group): 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}') + 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() From 0b686be80390a8e008311c109e81e681c139226e Mon Sep 17 00:00:00 2001 From: "Ajit Maruti Navasare (MINDTREE LIMITED)" Date: Wed, 17 Jan 2018 10:54:45 -0800 Subject: [PATCH 11/13] resolved help review comments --- src/servicebus/azext_servicebus/_help.py | 56 ++++++++++++------------ 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/src/servicebus/azext_servicebus/_help.py b/src/servicebus/azext_servicebus/_help.py index 827305ae991..96511b7a5d6 100644 --- a/src/servicebus/azext_servicebus/_help.py +++ b/src/servicebus/azext_servicebus/_help.py @@ -75,7 +75,7 @@ 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 + --tags tag1=value1 tag2=value2 --sku-name Standard --sku-tier Standard """ helps['servicebus namespace show'] = """ @@ -83,15 +83,15 @@ short-summary: Shows the Service Bus Namespace details examples: - name: shows the Namespace details. - text: helps['az servicebus namespace show --resource-group myresourcegroup --name mynamespace'] + text: az servicebus namespace show --resource-group myresourcegroup --name mynamespace """ helps['servicebus namespace list'] = """ type: command - short-summary: List the Service Bus Namespaces by ResourceGroup or by subscription + short-summary: List the Service Bus Namespaces examples: - - name: Get the Service Bus Namespaces by resource Group. - text: helps['az servicebus namespace list --resource-group myresourcegroup'] + - 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 """ @@ -110,7 +110,7 @@ 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] + --name myauthorule --access-rights Send Listen """ helps['servicebus namespace authorizationrule show'] = """ @@ -162,7 +162,7 @@ short-summary: Creates the Service Bus Queue examples: - name: Creates Service Bus Queue. - text: az sb queue create --resource-group myresourcegroup --namespace-name mynamespace --name myqueue + text: az servicebus queue create --resource-group myresourcegroup --namespace-name mynamespace --name myqueue """ helps['servicebus queue show'] = """ @@ -195,7 +195,7 @@ 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] + --queue-name myqueue --name myauthorule --access-rights Listen """ helps['servicebus queue authorizationrule show'] = """ @@ -248,7 +248,7 @@ 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 {topicname} + text: az servicebus topic create --resource-group myresourcegroup --namespace-name mynamespace --name mytopic """ helps['sb topic show'] = """ @@ -256,7 +256,7 @@ short-summary: Shows the Service Bus Topic Details examples: - name: Shows the Topic details. - text: az sb topic get --resource-group myresourcegroup --namespace-name mynamespace --name {topicname} + text: az servicebus topic show --resource-group myresourcegroup --namespace-name mynamespace --name mytopic """ helps['servicebus topic list'] = """ @@ -272,7 +272,7 @@ short-summary: Deletes the Service Bus Topic examples: - name: Deletes the topic - text: az servicebus topic delete --resource-group myresourcegroup --namespace-name mynamespace --name {topicname} + text: az servicebus topic delete --resource-group myresourcegroup --namespace-name mynamespace --name mytopic """ helps['servicebus topic authorizationrule create'] = """ @@ -281,7 +281,7 @@ examples: - name: Creates Authorization rules text: az servicebus topic authorizationrule create --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} --name myauthorule --access-rights [Send, Listen] + --topic-name mytopic --name myauthorule --access-rights Send Listen """ helps['servicebus topic authorizationrule show'] = """ @@ -290,7 +290,7 @@ examples: - name: Shows the details of AuthorizationRule text: az servicebus topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} --name myauthorule + --topic-name mytopic --name myauthorule """ helps['servicebus topic authorizationrule list'] = """ @@ -299,7 +299,7 @@ examples: - name: shows list of AuthorizationRule by Topic text: az servicebus topic authorizationrule get --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} + --topic-name mytopic """ helps['servicebus topic authorizationrule keys list'] = """ @@ -308,7 +308,7 @@ examples: - name: shows connection strings of AuthorizationRule for the topic. text: az servicebus topic authorizationrule listkeys --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} --name myauthorule + --topic-name mytopic --name myauthorule """ helps['servicebus topic authorizationrule keys renew'] = """ @@ -317,7 +317,7 @@ 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 {topicname} --name myauthorule --key PrimaryKey + --topic-name mytopic --name myauthorule --key PrimaryKey """ helps['servicebus topic authorizationrule delete'] = """ @@ -326,7 +326,7 @@ examples: - name: Deletes the AuthorizationRule of the topic text: az servicebus topic authorizationrule delete --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} --name myauthorule + --topic-name mytopic --name myauthorule """ helps['servicebus subscription create'] = """ @@ -335,7 +335,7 @@ examples: - name: Create a new Subscription. text: az servicebus subscription create --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} --name {subscriptionname} + --topic-name mytopic --name mysubscription """ @@ -345,7 +345,7 @@ examples: - name: Shows the Subscription details. text: az servicebus subscription get --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} --name {subscriptionname} + --topic-name mytopic --name mysubscription """ helps['servicebus subscription list'] = """ @@ -362,7 +362,7 @@ examples: - name: Deletes the Subscription text: az servicebus subscription delete --resource-group myresourcegroup --namespace-name mynamespace - --topic-name {topicname} --name {subscriptionname} + --topic-name mytopic --name mysubscription """ helps['servicebus rule create'] = """ @@ -370,8 +370,8 @@ 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 {topicname} - --subscription-name {subscriptionname} --name {rulename} --filter-sql-expression {sqlexpression} + 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'] = """ @@ -379,8 +379,8 @@ short-summary: Shows Rule Details examples: - name: Shows the Rule details. - text: az servicebus rule show --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} - --subscription-name {subscriptionname} --name {rulename} + text: az servicebus rule show --resource-group myresourcegroup --namespace-name mynamespace --topic-name mytopic + --subscription-name mysubscription --name myrule """ helps['sb rule list'] = """ @@ -388,8 +388,8 @@ short-summary: List the Rule by Subscription examples: - name: Shows the Rule by Subscription. - text: az sb rule list --resource-group myresourcegroup --namespace-name mynamespace - --subscription-name {subscriptionname} + text: az servicebus rule list --resource-group myresourcegroup --namespace-name mynamespace + --subscription-name mysubscription """ helps['servicebus rule delete'] = """ @@ -397,8 +397,8 @@ short-summary: Deletes the Rule examples: - name: Deletes the Rule - text: az servicebus rule delete --resource-group myresourcegroup --namespace-name mynamespace --topic-name {topicname} - --subscription-name {subscriptionname} --name {rulename} + text: az servicebus rule delete --resource-group myresourcegroup --namespace-name mynamespace --topic-name mytopic + --subscription-name mysubscription --name myrule """ helps['servicebus georecovery-alias exists'] = """ From c65326dcb5bb8ca8686226668cf39242050b535a Mon Sep 17 00:00:00 2001 From: "Ajit Maruti Navasare (MINDTREE LIMITED)" Date: Thu, 18 Jan 2018 13:18:19 -0800 Subject: [PATCH 12/13] Review comments for help and params --- src/servicebus/azext_servicebus/_help.py | 12 +- src/servicebus/azext_servicebus/_params.py | 326 ++++-------------- .../recordings/latest/test_sb_alias.yaml | 244 ++++++------- .../recordings/latest/test_sb_namespace.yaml | 140 ++++---- .../recordings/latest/test_sb_queue.yaml | 100 +++--- .../recordings/latest/test_sb_rules.yaml | 106 +++--- .../latest/test_sb_subscription.yaml | 98 +++--- .../recordings/latest/test_sb_topic.yaml | 102 +++--- 8 files changed, 474 insertions(+), 654 deletions(-) diff --git a/src/servicebus/azext_servicebus/_help.py b/src/servicebus/azext_servicebus/_help.py index 96511b7a5d6..6dbca19b57e 100644 --- a/src/servicebus/azext_servicebus/_help.py +++ b/src/servicebus/azext_servicebus/_help.py @@ -157,7 +157,7 @@ --name myauthorule """ -helps['sb queue create'] = """ +helps['servicebus queue create'] = """ type: command short-summary: Creates the Service Bus Queue examples: @@ -218,9 +218,9 @@ helps['servicebus queue authorizationrule keys list'] = """ type: command - short-summary: Shows the connectionstrings of AuthorizationRule for the Queue. + short-summary: Shows the connection strings of AuthorizationRule for the Queue. examples: - - name: Shows the connectionstrings of AuthorizationRule for the queue. + - 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 """ @@ -229,7 +229,7 @@ type: command short-summary: Regenerate the connection strings of AuthorizationRule for the namespace. examples: - - name: Regenerate the connectionstrings of AuthorizationRule for the namespace. + - 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 """ @@ -251,7 +251,7 @@ text: az servicebus topic create --resource-group myresourcegroup --namespace-name mynamespace --name mytopic """ -helps['sb topic show'] = """ +helps['servicebus topic show'] = """ type: command short-summary: Shows the Service Bus Topic Details examples: @@ -383,7 +383,7 @@ --subscription-name mysubscription --name myrule """ -helps['sb rule list'] = """ +helps['servicebus rule list'] = """ type: command short-summary: List the Rule by Subscription examples: diff --git a/src/servicebus/azext_servicebus/_params.py b/src/servicebus/azext_servicebus/_params.py index 14922c47ade..97ae9673613 100644 --- a/src/servicebus/azext_servicebus/_params.py +++ b/src/servicebus/azext_servicebus/_params.py @@ -11,12 +11,13 @@ # pylint: disable=line-too-long def load_arguments_namespace(self, _): - with self.argument_context('servicebus namespace exists') as c: - c.argument('namespace_name', options_list=['--name'], help='name of the Namespace') - with self.argument_context('servicebus namespace create') as c: + with self.argument_context('servicebus') as c: c.argument('resource_group_name', arg_type=resource_group_name_type) - c.argument('namespace_name', options_list=['--name'], help='name of the Namespace') + 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'])) @@ -27,17 +28,11 @@ def load_arguments_namespace(self, _): # region Namespace Get for scope in ['servicebus namespace show', 'servicebus namespace delete']: with self.argument_context(scope) as c: - c.argument('resource_group_name', arg_type=resource_group_name_type) c.argument('namespace_name', options_list=['--name', '-n'], help='name of the Namespace') - with self.argument_context('servicebus namespace list') as c: - c.argument('resource_group_name', arg_type=resource_group_name_type) - # region Namespace Authorizationrule with self.argument_context('servicebus namespace authorizationrule') 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') - c.argument('authorization_rule_name', options_list=['--name'], help='name of the Namespace AuthorizationRule') + 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'], @@ -48,78 +43,31 @@ def load_arguments_namespace(self, _): 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('resource_group_name', arg_type=resource_group_name_type, required=True) - c.argument('namespace_name', options_list=['--namespace-name'], required=True, help='name of the Namespace') - c.argument('queue_name', options_list=['--name', '-n'], required=True, help='Queue Name') - 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 Get - for scope in ['servicebus queue show', 'servicebus queue delete']: - with self.argument_context(scope) 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') - c.argument('queue_name', options_list=['--name', '-n'], help='Queue Name') - - # region Queue Get - with self.argument_context('servicebus queue list') 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') + 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'], help='name of the Queue AuthorizationRule') - c.argument('namespace', options_list=['--namespace-name'], help='name of the Namespace') - c.argument('queuename', options_list=['--queue-name'], help='name of the Queue') + 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'], help='Authorization rule rights of type list, allowed values are Send, Listen or Manage') @@ -130,66 +78,26 @@ def load_arguments_queue(self, _): # - Topic Region def load_arguments_topic(self, _): - # region - Topic Create - with self.argument_context('servicebus topic create') as c: - c.argument('resource_group_name', arg_type=resource_group_name_type, required=True) - c.argument('namespace_name', options_list=['--namespace-name'], required=True, help='name of the Namespace') - c.argument('topic_name', options_list=['--name', '-n'], required=True, help='Topic Name') - 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 Get - for scope in ['servicebus topic show', 'servicebus topic delete']: - with self.argument_context(scope) 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') - c.argument('topic_name', options_list=['--name', '-n'], - help='Topic Name') + with self.argument_context('servicebus topic') as c: + c.argument('topic_name', options_list=['--name', '-n'], help='Topic Name') - with self.argument_context('servicebus topic list') as c: - c.argument('resource_group_name', arg_type=resource_group_name_type) - c.argument('namespace_name', options_list=['--namespace-name', '-n'], - help='name of the Namespace') + # 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'], help='name of the Topic AuthorizationRule') - c.argument('namespace_name', options_list=['--namespace-name'], help='name of the Namespace') + 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: @@ -201,157 +109,69 @@ def load_arguments_topic(self, _): # 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('resource_group_name', arg_type=resource_group_name_type) - c.argument('namespace_name', options_list=['--namespace-name'], help='name of the Namespace') - c.argument('topic_name', options_list=['--topic-name'], help='Topic Name') - c.argument('subscription_name', options_list=['--name'], help='Subscription Name') - 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('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 Get - for scope in ['servicebus subscription show', 'servicebus subscription delete']: - with self.argument_context(scope) as c: - c.argument('namespacename', options_list=['--namespace-name'], help='name of the Namespace') - c.argument('topic_name', options_list=['--topic-name'], help='name of the Topic') - c.argument('subscription_name', options_list=['--name'], help='name of the Subscription of Topic') - - with self.argument_context('servicebus subscription list') as c: - c.argument('namespace_name', options_list=['--namespace-name'], help='name of the Namespace') - c.argument('topic_name', options_list=['--topic-name'], help='name of the Topic') - + 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 create') 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 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('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('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.') - - for scope in ['servicebus rule show', 'servicebus rule delete']: - with self.argument_context(scope) 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') - 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'], help='Rule Name') + 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('resource_group_name', arg_type=resource_group_name_type) - c.argument('namespace_name', options_list=['--namespace-name'], - help='name of the Namespace') c.argument('topic_name', options_list=['--topic-name'], help='Topic Name') - c.argument('subscription_name', options_list=['--subscription-name'], - help='Subscription 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('resource_group_name', arg_type=resource_group_name_type) - c.argument('namespace_name', options_list=['--namespace-name'], help='name of the Namespace') - c.argument('name', options_list=['--name'], - help='Name of the Alias (Disaster Recovery) to check availability') + c.argument('name', options_list=['--name', '-n'], help='Name of the Alias (Disaster Recovery) to check availability') - with self.argument_context('servicebus georecovery-alias create') 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 georecovery-alias') 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 show', 'servicebus georecovery-alias delete']: - with self.argument_context(scope) 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') - c.argument('alias', options_list=['--alias'], help='Name of the Alias (Disaster Recovery)') - with self.argument_context('servicebus georecovery-alias list') 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') - - for scope in ['servicebus georecovery-alias break-pair', 'servicebus georecovery-alias fail-over', 'servicebus georecovery-alias authorizationrules list']: - with self.argument_context(scope)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') - 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('resource_group_name', arg_type=resource_group_name_type) - c.argument('namespace_name', options_list=['--namespace-name'], - help='name of the Namespace') - c.argument('alias', options_list=['--alias'], - help='Name of the Alias (Disaster Recovery)') - c.argument('authorization_rule_name', options_list=['--name'], - help='name of the Namespace AuthorizationRule') + c.argument('authorization_rule_name', options_list=['--name', '-n'], help='name of the Namespace AuthorizationRule') 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 index caa386c1bc8..b569f6110b2 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_alias.yaml @@ -10,7 +10,7 @@ interactions: Content-Type: [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.24] + 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 @@ -20,7 +20,7 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:50:26 GMT'] + date: ['Thu, 18 Jan 2018 20:44:32 GMT'] expires: ['-1'] pragma: [no-cache] strict-transport-security: [max-age=31536000; includeSubDomains] @@ -36,7 +36,7 @@ interactions: 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.24] + 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 @@ -46,7 +46,7 @@ interactions: cache-control: [no-cache] content-length: ['53'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:50:28 GMT'] + date: ['Thu, 18 Jan 2018 20:44:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -57,7 +57,7 @@ interactions: x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: - body: '{"location": "SouthCentralUS", "tags": {"{tag2: value2,": "", "tag1: value1}": + body: '{"location": "SouthCentralUS", "tags": {"{tag1: value1,": "", "tag2: value2}": ""}, "sku": {"name": "Premium", "tier": "Premium"}}' headers: Accept: [application/json] @@ -67,18 +67,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T02:50:31.47Z","updatedAt":"2018-01-15T02:50:31.47Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + 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: ['712'] + content-length: ['714'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:50:31 GMT'] + date: ['Thu, 18 Jan 2018 20:44:35 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -97,18 +97,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T02:50:31.47Z","updatedAt":"2018-01-15T02:50:31.47Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + 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: ['712'] + content-length: ['714'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:51:02 GMT'] + date: ['Thu, 18 Jan 2018 20:45:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -126,18 +126,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T02:50:31.47Z","updatedAt":"2018-01-15T02:51:16.543Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + 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: ['Mon, 15 Jan 2018 02:51:32 GMT'] + date: ['Thu, 18 Jan 2018 20:45:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -155,18 +155,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T02:50:31.47Z","updatedAt":"2018-01-15T02:51:16.543Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + 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: ['Mon, 15 Jan 2018 02:51:34 GMT'] + date: ['Thu, 18 Jan 2018 20:45:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -176,7 +176,7 @@ interactions: vary: [Accept-Encoding] status: {code: 200, message: OK} - request: - body: '{"location": "NorthCentralUS", "tags": {"{tag2: value2,": "", "tag1: value1}": + body: '{"location": "NorthCentralUS", "tags": {"{tag1: value1,": "", "tag2: value2}": ""}, "sku": {"name": "Premium", "tier": "Premium"}}' headers: Accept: [application/json] @@ -186,18 +186,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T02:51:36.35Z","updatedAt":"2018-01-15T02:51:36.35Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} + 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: ['712'] + content-length: ['714'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:51:36 GMT'] + date: ['Thu, 18 Jan 2018 20:45:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -216,18 +216,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T02:51:36.35Z","updatedAt":"2018-01-15T02:51:36.35Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Activating"}}'} + 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: ['712'] + content-length: ['714'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:52:07 GMT'] + date: ['Thu, 18 Jan 2018 20:46:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -245,18 +245,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T02:51:36.35Z","updatedAt":"2018-01-15T02:52:20.373Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} + 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: ['711'] + content-length: ['712'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:52:37 GMT'] + date: ['Thu, 18 Jan 2018 20:46:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -274,18 +274,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000003","createdAt":"2018-01-15T02:51:36.35Z","updatedAt":"2018-01-15T02:52:20.373Z","serviceBusEndpoint":"https://sb-nscli000003.servicebus.windows.net:443/","status":"Active"}}'} + 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: ['711'] + content-length: ['712'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:52:40 GMT'] + date: ['Thu, 18 Jan 2018 20:46:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -304,7 +304,7 @@ interactions: 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.24] + 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 @@ -315,7 +315,7 @@ interactions: cache-control: [no-cache] content-length: ['407'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:53:12 GMT'] + date: ['Thu, 18 Jan 2018 20:47:14 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -323,7 +323,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -334,7 +334,7 @@ interactions: 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.24] + 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 @@ -345,7 +345,7 @@ interactions: cache-control: [no-cache] content-length: ['407'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:53:14 GMT'] + date: ['Thu, 18 Jan 2018 20:47:16 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -364,7 +364,7 @@ interactions: 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.24] + 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 @@ -374,7 +374,7 @@ interactions: cache-control: [no-cache] content-length: ['38'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:53:16 GMT'] + date: ['Thu, 18 Jan 2018 20:47:17 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -394,7 +394,7 @@ interactions: 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.24] + 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 @@ -404,7 +404,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:53:49 GMT'] + date: ['Thu, 18 Jan 2018 20:47:51 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -423,7 +423,7 @@ interactions: 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.24] + 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 @@ -433,7 +433,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:53:51 GMT'] + date: ['Thu, 18 Jan 2018 20:47:52 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -451,7 +451,7 @@ interactions: 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.24] + 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 @@ -461,7 +461,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:53:51 GMT'] + date: ['Thu, 18 Jan 2018 20:47:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -479,7 +479,7 @@ interactions: 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.24] + 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 @@ -489,7 +489,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:53:53 GMT'] + date: ['Thu, 18 Jan 2018 20:47:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -507,7 +507,7 @@ interactions: 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.24] + 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 @@ -517,7 +517,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:54:24 GMT'] + date: ['Thu, 18 Jan 2018 20:48:25 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -535,7 +535,7 @@ interactions: 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.24] + 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 @@ -545,7 +545,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:54:56 GMT'] + date: ['Thu, 18 Jan 2018 20:48:56 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -563,7 +563,7 @@ interactions: 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.24] + 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 @@ -573,7 +573,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:55:27 GMT'] + date: ['Thu, 18 Jan 2018 20:49:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -591,7 +591,7 @@ interactions: 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.24] + 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 @@ -601,7 +601,7 @@ interactions: cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:55:58 GMT'] + date: ['Thu, 18 Jan 2018 20:49:59 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -619,7 +619,7 @@ interactions: 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.24] + 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 @@ -630,7 +630,7 @@ interactions: cache-control: [no-cache] content-length: ['452'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:56:00 GMT'] + date: ['Thu, 18 Jan 2018 20:50:01 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -649,17 +649,17 @@ interactions: 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.24] + 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://clialiaste3ztyauw7wp.servicebus.windows.net/;SharedAccessKeyName=cliAutho000004;SharedAccessKey=mDkDgtCwFKSiUt58HlkuWmLwe7OVq4Y6Kfu01kKIaSI=","aliasSecondaryConnectionString":"Endpoint=sb://clialiaste3ztyauw7wp.servicebus.windows.net/;SharedAccessKeyName=cliAutho000004;SharedAccessKey=awx7nufIBqLj3sJtMa39ZE3upl7AnwR8Klgg6grBHM0=","primaryKey":"mDkDgtCwFKSiUt58HlkuWmLwe7OVq4Y6Kfu01kKIaSI=","secondaryKey":"awx7nufIBqLj3sJtMa39ZE3upl7AnwR8Klgg6grBHM0=","keyName":"cliAutho000004"}'} + 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: ['Mon, 15 Jan 2018 02:56:02 GMT'] + date: ['Thu, 18 Jan 2018 20:50:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -667,7 +667,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -678,7 +678,7 @@ interactions: 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.24] + 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 @@ -690,7 +690,7 @@ interactions: cache-control: [no-cache] content-length: ['945'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:56:04 GMT'] + date: ['Thu, 18 Jan 2018 20:50:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -709,7 +709,7 @@ interactions: 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.24] + 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 @@ -718,7 +718,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 02:56:06 GMT'] + date: ['Thu, 18 Jan 2018 20:50:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -735,7 +735,7 @@ interactions: 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.24] + 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 @@ -745,7 +745,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:56:08 GMT'] + date: ['Thu, 18 Jan 2018 20:50:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -763,7 +763,7 @@ interactions: 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.24] + 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 @@ -773,7 +773,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:56:39 GMT'] + date: ['Thu, 18 Jan 2018 20:50:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -791,7 +791,7 @@ interactions: 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.24] + 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 @@ -801,7 +801,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:57:10 GMT'] + date: ['Thu, 18 Jan 2018 20:51:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -819,7 +819,7 @@ interactions: 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.24] + 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 @@ -829,7 +829,7 @@ interactions: cache-control: [no-cache] content-length: ['483'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:57:41 GMT'] + date: ['Thu, 18 Jan 2018 20:51:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -848,7 +848,7 @@ interactions: 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.24] + 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 @@ -858,7 +858,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:57:59 GMT'] + date: ['Thu, 18 Jan 2018 20:51:59 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -877,7 +877,7 @@ interactions: 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.24] + 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 @@ -887,7 +887,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:58:05 GMT'] + date: ['Thu, 18 Jan 2018 20:52:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -905,7 +905,7 @@ interactions: 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.24] + 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 @@ -915,7 +915,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:58:36 GMT'] + date: ['Thu, 18 Jan 2018 20:52:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -933,7 +933,7 @@ interactions: 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.24] + 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 @@ -943,7 +943,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:59:07 GMT'] + date: ['Thu, 18 Jan 2018 20:53:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -961,7 +961,7 @@ interactions: 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.24] + 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 @@ -971,7 +971,7 @@ interactions: cache-control: [no-cache] content-length: ['673'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 02:59:39 GMT'] + date: ['Thu, 18 Jan 2018 20:53:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -989,7 +989,7 @@ interactions: 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.24] + 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 @@ -999,7 +999,7 @@ interactions: cache-control: [no-cache] content-length: ['674'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:00:10 GMT'] + date: ['Thu, 18 Jan 2018 20:54:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1018,7 +1018,7 @@ interactions: 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.24] + 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 @@ -1027,13 +1027,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:00:11 GMT'] + 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: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -1044,7 +1044,7 @@ interactions: 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.24] + 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 @@ -1054,7 +1054,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:00:13 GMT'] + date: ['Thu, 18 Jan 2018 20:54:08 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1072,7 +1072,7 @@ interactions: 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.24] + 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 @@ -1082,7 +1082,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:00:45 GMT'] + date: ['Thu, 18 Jan 2018 20:54:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1100,7 +1100,7 @@ interactions: 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.24] + 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 @@ -1110,7 +1110,7 @@ interactions: cache-control: [no-cache] content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:01:17 GMT'] + date: ['Thu, 18 Jan 2018 20:55:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1128,7 +1128,7 @@ interactions: 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.24] + 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 @@ -1138,7 +1138,7 @@ interactions: cache-control: [no-cache] content-length: ['483'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:01:47 GMT'] + date: ['Thu, 18 Jan 2018 20:55:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1157,7 +1157,7 @@ interactions: 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.24] + 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 @@ -1166,7 +1166,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:01:50 GMT'] + date: ['Thu, 18 Jan 2018 20:55:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1184,7 +1184,7 @@ interactions: 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.24] + 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 @@ -1193,7 +1193,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:02:21 GMT'] + 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] @@ -1211,7 +1211,7 @@ interactions: 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.24] + 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 @@ -1220,7 +1220,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:02:52 GMT'] + 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] @@ -1237,7 +1237,7 @@ interactions: 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.24] + 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 @@ -1246,7 +1246,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:03:22 GMT'] + 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] @@ -1263,7 +1263,7 @@ interactions: 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.24] + 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 @@ -1272,7 +1272,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:03:53 GMT'] + date: ['Thu, 18 Jan 2018 20:57:47 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1289,7 +1289,7 @@ interactions: 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.24] + 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 @@ -1298,7 +1298,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:03:55 GMT'] + 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] @@ -1316,7 +1316,7 @@ interactions: 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.24] + 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 @@ -1325,7 +1325,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:04:25 GMT'] + 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] @@ -1342,7 +1342,7 @@ interactions: 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.24] + 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 @@ -1351,7 +1351,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:04:56 GMT'] + 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] @@ -1368,7 +1368,7 @@ interactions: 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.24] + 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 @@ -1377,7 +1377,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:05:26 GMT'] + date: ['Thu, 18 Jan 2018 20:59:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -1395,7 +1395,7 @@ interactions: Content-Type: [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.24] + 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 @@ -1404,11 +1404,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:05:29 GMT'] + date: ['Thu, 18 Jan 2018 21:00:24 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZBTElBU0ZOU0xPSkVQUzZPTUJCSFdYN1hSUVYzNnw0RDk3N0UxMTUyRTUxQUY4LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + 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: ['1198'] + 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 index 82fb95859b3..830619988b9 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_namespace.yaml @@ -10,7 +10,7 @@ interactions: Content-Type: [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.24] + 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 @@ -20,11 +20,11 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:05:31 GMT'] + 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: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 201, message: Created} - request: body: 'b''{"name": "sb-nscli000002"}''' @@ -36,7 +36,7 @@ interactions: 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.24] + 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 @@ -46,7 +46,7 @@ interactions: cache-control: [no-cache] content-length: ['53'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:05:32 GMT'] + date: ['Thu, 18 Jan 2018 21:00:27 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -67,18 +67,18 @@ interactions: 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.24] + 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-15T03:05:34.99Z","updatedAt":"2018-01-15T03:05:34.99Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + 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: ['675'] + content-length: ['677'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:05:35 GMT'] + date: ['Thu, 18 Jan 2018 21:00:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -97,18 +97,18 @@ interactions: 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.24] + 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-15T03:05:34.99Z","updatedAt":"2018-01-15T03:06:01.607Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + 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: ['674'] + content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:06:05 GMT'] + date: ['Thu, 18 Jan 2018 21:00:59 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -126,18 +126,18 @@ interactions: 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.24] + 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-15T03:05:34.99Z","updatedAt":"2018-01-15T03:06:01.607Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + 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: ['674'] + content-length: ['675'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:06:07 GMT'] + date: ['Thu, 18 Jan 2018 21:01:01 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -155,36 +155,36 @@ interactions: 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.24] + 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/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":"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-15T03:05:34.99Z","updatedAt":"2018-01-15T03:06:01.607Z","serviceBusEndpoint":"https://sb-nscli000002.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 + 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":"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/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/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"}},{"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":"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/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/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_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/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":"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":"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":"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"}}]}'} + 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: ['12128'] + content-length: ['12129'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:06:08 GMT'] + date: ['Thu, 18 Jan 2018 21:01:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -202,18 +202,18 @@ interactions: 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.24] + 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-15T03:05:34.99Z","updatedAt":"2018-01-15T03:06:01.607Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}]}'} + 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: ['686'] + content-length: ['687'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:06:09 GMT'] + date: ['Thu, 18 Jan 2018 21:01:04 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -232,7 +232,7 @@ interactions: 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.24] + 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 @@ -243,7 +243,7 @@ interactions: cache-control: [no-cache] content-length: ['400'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:06:44 GMT'] + date: ['Thu, 18 Jan 2018 21:01:39 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -262,7 +262,7 @@ interactions: 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.24] + 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 @@ -273,7 +273,7 @@ interactions: cache-control: [no-cache] content-length: ['400'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:06:45 GMT'] + date: ['Thu, 18 Jan 2018 21:01:41 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -291,7 +291,7 @@ interactions: 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.24] + 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 @@ -302,7 +302,7 @@ interactions: cache-control: [no-cache] content-length: ['428'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:06:47 GMT'] + date: ['Thu, 18 Jan 2018 21:01:42 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -321,17 +321,17 @@ interactions: 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.24] + 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=1zrN+zKQFOSJ25FUtXiS8hvoZQxzwhBMuC5Zc3AOXlA=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=PPeGbFR9P3ncloA3DwW3cPLQH58Rl82x74XJLUNFYxI=","primaryKey":"1zrN+zKQFOSJ25FUtXiS8hvoZQxzwhBMuC5Zc3AOXlA=","secondaryKey":"PPeGbFR9P3ncloA3DwW3cPLQH58Rl82x74XJLUNFYxI=","keyName":"cliAutho000003"}'} + 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: ['Mon, 15 Jan 2018 03:06:49 GMT'] + date: ['Thu, 18 Jan 2018 21:01:44 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -339,7 +339,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: '{"keyType": "PrimaryKey"}' @@ -351,17 +351,17 @@ interactions: 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.24] + 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=5fD37BLLYMzNNnvKJ12evW5lrDYKqL4VieO+XcnPkUk=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=PPeGbFR9P3ncloA3DwW3cPLQH58Rl82x74XJLUNFYxI=","primaryKey":"5fD37BLLYMzNNnvKJ12evW5lrDYKqL4VieO+XcnPkUk=","secondaryKey":"PPeGbFR9P3ncloA3DwW3cPLQH58Rl82x74XJLUNFYxI=","keyName":"cliAutho000003"}'} + 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: ['Mon, 15 Jan 2018 03:07:08 GMT'] + date: ['Thu, 18 Jan 2018 21:02:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -369,7 +369,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: '{"keyType": "SecondaryKey"}' @@ -381,17 +381,17 @@ interactions: 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.24] + 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=5fD37BLLYMzNNnvKJ12evW5lrDYKqL4VieO+XcnPkUk=","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=mtfyM9z1GjPhHZcVPOAxhmebey0XRq6PLmm15bUMPro=","primaryKey":"5fD37BLLYMzNNnvKJ12evW5lrDYKqL4VieO+XcnPkUk=","secondaryKey":"mtfyM9z1GjPhHZcVPOAxhmebey0XRq6PLmm15bUMPro=","keyName":"cliAutho000003"}'} + 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: ['Mon, 15 Jan 2018 03:07:28 GMT'] + date: ['Thu, 18 Jan 2018 21:02:20 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -399,7 +399,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -411,7 +411,7 @@ interactions: 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.24] + 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 @@ -420,13 +420,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:07:45 GMT'] + 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: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -438,7 +438,7 @@ interactions: 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.24] + 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 @@ -447,14 +447,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:07:47 GMT'] + 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: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -465,7 +465,7 @@ interactions: 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.24] + 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 @@ -474,7 +474,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:08:18 GMT'] + date: ['Thu, 18 Jan 2018 21:03:11 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -492,7 +492,7 @@ interactions: Content-Type: [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.24] + 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 @@ -501,11 +501,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:08:21 GMT'] + date: ['Thu, 18 Jan 2018 21:03:13 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZOQU1FU1BBQ0VWWVdVTktVNkZWTVNMRkpKTU9DSHw0M0I5QTg4MDc1Q0I2N0UxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + 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: ['1198'] + 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 index f3961cd5c07..a5668e7bd60 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_queue.yaml @@ -10,7 +10,7 @@ interactions: Content-Type: [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.24] + 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 @@ -20,14 +20,14 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:08:23 GMT'] + 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": {"{tag2: value2,": "", "tag1: value1}": + body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": ""}, "sku": {"name": "Standard", "tier": "Standard"}}' headers: Accept: [application/json] @@ -37,18 +37,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:08:25.307Z","updatedAt":"2018-01-15T03:08:25.307Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + 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: ['696'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:08:25 GMT'] + date: ['Thu, 18 Jan 2018 21:03:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -67,18 +67,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:08:25.307Z","updatedAt":"2018-01-15T03:08:48.63Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + 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: ['693'] + content-length: ['692'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:08:55 GMT'] + date: ['Thu, 18 Jan 2018 21:03:48 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -96,18 +96,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:08:25.307Z","updatedAt":"2018-01-15T03:08:48.63Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + 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: ['693'] + content-length: ['692'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:08:58 GMT'] + date: ['Thu, 18 Jan 2018 21:03:50 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -126,18 +126,18 @@ interactions: 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.24] + 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-15T03:09:00.723Z","updatedAt":"2018-01-15T03:09:00.847Z","accessedAt":"0001-01-01T00:00:00"}}'} + 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: ['Mon, 15 Jan 2018 03:09:01 GMT'] + date: ['Thu, 18 Jan 2018 21:03:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -156,18 +156,18 @@ interactions: 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.24] + 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-15T03:09:00.723Z","updatedAt":"2018-01-15T03:09:00.847Z","accessedAt":"0001-01-01T00:00:00Z"}}'} + 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: ['Mon, 15 Jan 2018 03:09:02 GMT'] + date: ['Thu, 18 Jan 2018 21:03:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -185,18 +185,18 @@ interactions: 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.24] + 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-15T03:09:00.723Z","updatedAt":"2018-01-15T03:09:00.847Z","accessedAt":"0001-01-01T00:00:00Z"}}]}'} + 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: ['Mon, 15 Jan 2018 03:09:04 GMT'] + date: ['Thu, 18 Jan 2018 21:03:57 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -216,7 +216,7 @@ interactions: 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.24] + 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 @@ -227,7 +227,7 @@ interactions: cache-control: [no-cache] content-length: ['442'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:09:06 GMT'] + date: ['Thu, 18 Jan 2018 21:03:58 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -235,7 +235,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -246,7 +246,7 @@ interactions: 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.24] + 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 @@ -257,7 +257,7 @@ interactions: cache-control: [no-cache] content-length: ['442'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:09:12 GMT'] + date: ['Thu, 18 Jan 2018 21:04:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -276,17 +276,17 @@ interactions: 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.24] + 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=uyW1ejbyjysXPW04gKrTp7d12iHBI/1iXEHp45PTk2s=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Iyta46Mp/QiGEyX1zemdynxGXG/+jrw5YYJ5n0dGWAk=;EntityPath=sb-queuecli000004","primaryKey":"uyW1ejbyjysXPW04gKrTp7d12iHBI/1iXEHp45PTk2s=","secondaryKey":"Iyta46Mp/QiGEyX1zemdynxGXG/+jrw5YYJ5n0dGWAk=","keyName":"cliAutho000003"}'} + 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: ['Mon, 15 Jan 2018 03:09:13 GMT'] + date: ['Thu, 18 Jan 2018 21:04:02 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -306,17 +306,17 @@ interactions: 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.24] + 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=vYr+YKB276iqtUThKIEVobx/kUGhF3Cs8GkDHWlyRAI=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Iyta46Mp/QiGEyX1zemdynxGXG/+jrw5YYJ5n0dGWAk=;EntityPath=sb-queuecli000004","primaryKey":"vYr+YKB276iqtUThKIEVobx/kUGhF3Cs8GkDHWlyRAI=","secondaryKey":"Iyta46Mp/QiGEyX1zemdynxGXG/+jrw5YYJ5n0dGWAk=","keyName":"cliAutho000003"}'} + 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: ['Mon, 15 Jan 2018 03:09:18 GMT'] + date: ['Thu, 18 Jan 2018 21:04:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -336,17 +336,17 @@ interactions: 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.24] + 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=vYr+YKB276iqtUThKIEVobx/kUGhF3Cs8GkDHWlyRAI=;EntityPath=sb-queuecli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=QMeA0Qz6yxs+YnG13ORbFX8DlsRQYoGexPl2E8fYCrU=;EntityPath=sb-queuecli000004","primaryKey":"vYr+YKB276iqtUThKIEVobx/kUGhF3Cs8GkDHWlyRAI=","secondaryKey":"QMeA0Qz6yxs+YnG13ORbFX8DlsRQYoGexPl2E8fYCrU=","keyName":"cliAutho000003"}'} + 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: ['Mon, 15 Jan 2018 03:09:19 GMT'] + date: ['Thu, 18 Jan 2018 21:04:05 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -366,7 +366,7 @@ interactions: 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.24] + 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 @@ -375,13 +375,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:09:21 GMT'] + 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: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -393,7 +393,7 @@ interactions: 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.24] + 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 @@ -402,7 +402,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:09:23 GMT'] + date: ['Thu, 18 Jan 2018 21:04:09 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -420,7 +420,7 @@ interactions: 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.24] + 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 @@ -429,7 +429,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:09:26 GMT'] + 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] @@ -447,7 +447,7 @@ interactions: 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.24] + 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 @@ -456,7 +456,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:09:56 GMT'] + date: ['Thu, 18 Jan 2018 21:04:42 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -474,7 +474,7 @@ interactions: Content-Type: [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.24] + 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 @@ -483,9 +483,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:09:58 GMT'] + date: ['Thu, 18 Jan 2018 21:04:44 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZRVUVVRU9ESkZWQ1RBVkdKWFVLVkc3S1ZPWlNLRnw0QTVCQ0RGNUUwQjk1N0ExLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + 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'] 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 index 0f575704979..6eca7531792 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_rules.yaml @@ -10,7 +10,7 @@ interactions: Content-Type: [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.24] + 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 @@ -20,14 +20,14 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:10:01 GMT'] + 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": {"{tag2: value2,": "", "tag1: value1}": + body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": ""}, "sku": {"name": "Standard", "tier": "Standard"}}' headers: Accept: [application/json] @@ -37,18 +37,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:10:03.67Z","updatedAt":"2018-01-15T03:10:03.67Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + 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: ['694'] + content-length: ['696'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:10:03 GMT'] + date: ['Thu, 18 Jan 2018 21:04:48 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -67,18 +67,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:10:03.67Z","updatedAt":"2018-01-15T03:10:28.967Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + 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: ['693'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:10:34 GMT'] + date: ['Thu, 18 Jan 2018 21:05:18 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -96,18 +96,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:10:03.67Z","updatedAt":"2018-01-15T03:10:28.967Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + 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: ['693'] + content-length: ['694'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:10:35 GMT'] + date: ['Thu, 18 Jan 2018 21:05:20 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -126,18 +126,18 @@ interactions: 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.24] + 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-15T03:10:38.82Z","updatedAt":"2018-01-15T03:10:38.943Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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: ['Mon, 15 Jan 2018 03:10:39 GMT'] + date: ['Thu, 18 Jan 2018 21:05:24 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -145,7 +145,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -156,18 +156,18 @@ interactions: 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.24] + 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-15T03:10:38.82Z","updatedAt":"2018-01-15T03:10:38.943Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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: ['Mon, 15 Jan 2018 03:10:40 GMT'] + date: ['Thu, 18 Jan 2018 21:05:26 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -186,18 +186,18 @@ interactions: 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.24] + 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-15T03:10:44.9052693Z","updatedAt":"2018-01-15T03:10:44.9052693Z","accessedAt":"0001-01-01T00:00:00","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + 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: ['Mon, 15 Jan 2018 03:10:44 GMT'] + date: ['Thu, 18 Jan 2018 21:05:28 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -205,7 +205,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -216,18 +216,18 @@ interactions: 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.24] + 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-15T03:10:44.9172171Z","updatedAt":"2018-01-15T03:10:44.9172171Z","accessedAt":"2018-01-15T03:10:44.9172171Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + 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: ['Mon, 15 Jan 2018 03:10:46 GMT'] + date: ['Thu, 18 Jan 2018 21:05:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -247,7 +247,7 @@ interactions: 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.24] + 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 @@ -258,7 +258,7 @@ interactions: cache-control: [no-cache] content-length: ['563'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:10:50 GMT'] + date: ['Thu, 18 Jan 2018 21:05:33 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -266,7 +266,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 200, message: OK} - request: body: null @@ -277,7 +277,7 @@ interactions: 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.24] + 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 @@ -288,7 +288,7 @@ interactions: cache-control: [no-cache] content-length: ['579'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:10:51 GMT'] + date: ['Thu, 18 Jan 2018 21:05:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -306,7 +306,7 @@ interactions: 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.24] + 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 @@ -317,7 +317,7 @@ interactions: cache-control: [no-cache] content-length: ['591'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:10:53 GMT'] + date: ['Thu, 18 Jan 2018 21:05:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -337,7 +337,7 @@ interactions: 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.24] + 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 @@ -346,7 +346,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:10:54 GMT'] + date: ['Thu, 18 Jan 2018 21:05:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -364,7 +364,7 @@ interactions: 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.24] + 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 @@ -373,13 +373,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:10:57 GMT'] + 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: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -391,7 +391,7 @@ interactions: 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.24] + 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 @@ -400,13 +400,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:11:00 GMT'] + 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: ['1196'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -418,7 +418,7 @@ interactions: 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.24] + 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 @@ -427,14 +427,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:11:01 GMT'] + 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: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1199'] status: {code: 202, message: Accepted} - request: body: null @@ -445,7 +445,7 @@ interactions: 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.24] + 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 @@ -454,7 +454,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:11:32 GMT'] + date: ['Thu, 18 Jan 2018 21:06:14 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -472,7 +472,7 @@ interactions: Content-Type: [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.24] + 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 @@ -481,11 +481,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:11:34 GMT'] + date: ['Thu, 18 Jan 2018 21:06:16 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZSVUxFU05MS0FYWldVRFJaRUVEQkpaNFFKV0VZWnwyQjk0MUM3RTJGRDU3MTQxLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + 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: ['1197'] + 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 index 2fe5136a029..eb18359d757 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_subscription.yaml @@ -10,7 +10,7 @@ interactions: Content-Type: [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.24] + 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 @@ -20,14 +20,14 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:11:36 GMT'] + 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: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: - body: '{"location": "westus2", "tags": {"{tag2: value2,": "", "tag1: value1}": + body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": ""}, "sku": {"name": "Standard", "tier": "Standard"}}' headers: Accept: [application/json] @@ -37,18 +37,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:11:38.28Z","updatedAt":"2018-01-15T03:11:38.28Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + 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: ['Mon, 15 Jan 2018 03:11:38 GMT'] + date: ['Thu, 18 Jan 2018 21:06:23 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -56,7 +56,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -67,18 +67,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:11:38.28Z","updatedAt":"2018-01-15T03:12:00.097Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + 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: ['Mon, 15 Jan 2018 03:12:08 GMT'] + date: ['Thu, 18 Jan 2018 21:06:53 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -96,18 +96,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:11:38.28Z","updatedAt":"2018-01-15T03:12:00.097Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + 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: ['Mon, 15 Jan 2018 03:12:10 GMT'] + date: ['Thu, 18 Jan 2018 21:06:55 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -126,18 +126,18 @@ interactions: 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.24] + 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-15T03:12:13.57Z","updatedAt":"2018-01-15T03:12:13.65Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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: ['1002'] + content-length: ['1003'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:12:13 GMT'] + date: ['Thu, 18 Jan 2018 21:06:58 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -145,7 +145,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -156,18 +156,18 @@ interactions: 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.24] + 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-15T03:12:13.57Z","updatedAt":"2018-01-15T03:12:13.65Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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: ['1003'] + content-length: ['1004'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:12:15 GMT'] + date: ['Thu, 18 Jan 2018 21:07:00 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -186,18 +186,18 @@ interactions: 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.24] + 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-15T03:12:19.2390576Z","updatedAt":"2018-01-15T03:12:19.2390576Z","accessedAt":"0001-01-01T00:00:00","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + 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: ['Mon, 15 Jan 2018 03:12:18 GMT'] + date: ['Thu, 18 Jan 2018 21:07:03 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -205,7 +205,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -216,18 +216,18 @@ interactions: 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.24] + 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-15T03:12:19.4122041Z","updatedAt":"2018-01-15T03:12:19.4122041Z","accessedAt":"2018-01-15T03:12:19.413Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}'} + 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: ['980'] + content-length: ['984'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:12:20 GMT'] + date: ['Thu, 18 Jan 2018 21:07:06 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -245,18 +245,18 @@ interactions: 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.24] + 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-15T03:12:19.4122041Z","updatedAt":"2018-01-15T03:12:19.4122041Z","accessedAt":"2018-01-15T03:12:19.413Z","countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0},"autoDeleteOnIdle":"P10675199DT2H48M5.4775807S"}}]}'} + 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: ['992'] + content-length: ['996'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:12:21 GMT'] + date: ['Thu, 18 Jan 2018 21:07:07 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -276,7 +276,7 @@ interactions: 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.24] + 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 @@ -285,13 +285,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:12:23 GMT'] + 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: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -303,7 +303,7 @@ interactions: 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.24] + 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 @@ -312,13 +312,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:12:26 GMT'] + 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: ['1197'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -330,7 +330,7 @@ interactions: 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.24] + 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 @@ -339,14 +339,14 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:12:28 GMT'] + 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: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 202, message: Accepted} - request: body: null @@ -357,7 +357,7 @@ interactions: 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.24] + 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 @@ -366,7 +366,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:12:58 GMT'] + date: ['Thu, 18 Jan 2018 21:07:43 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -384,7 +384,7 @@ interactions: Content-Type: [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.24] + 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 @@ -393,9 +393,9 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:13:00 GMT'] + date: ['Thu, 18 Jan 2018 21:07:45 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZTVUJTQ1JJUFRJT05WSkVDR0oyTElJUVZKRFFBVnwxNzNFMkRCRDNCQjAyMkIyLVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + 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'] 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 index d97a8ba65cb..15144bd4e67 100644 --- a/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml +++ b/src/servicebus/azext_servicebus/tests/recordings/latest/test_sb_topic.yaml @@ -10,7 +10,7 @@ interactions: Content-Type: [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.24] + 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 @@ -20,14 +20,14 @@ interactions: cache-control: [no-cache] content-length: ['328'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:13:03 GMT'] + 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: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 201, message: Created} - request: - body: '{"location": "westus2", "tags": {"{tag2: value2,": "", "tag1: value1}": + body: '{"location": "westus2", "tags": {"{tag1: value1,": "", "tag2: value2}": ""}, "sku": {"name": "Standard", "tier": "Standard"}}' headers: Accept: [application/json] @@ -37,18 +37,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Created","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:13:05.297Z","updatedAt":"2018-01-15T03:13:05.297Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Activating"}}'} + 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: ['Mon, 15 Jan 2018 03:13:05 GMT'] + date: ['Thu, 18 Jan 2018 21:07:50 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -67,18 +67,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:13:05.297Z","updatedAt":"2018-01-15T03:13:28.437Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + 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: ['Mon, 15 Jan 2018 03:13:36 GMT'] + date: ['Thu, 18 Jan 2018 21:08:21 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -96,18 +96,18 @@ interactions: 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.24] + 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":{"{tag2: value2,":"","tag1: value1}":""},"properties":{"provisioningState":"Succeeded","metricId":"55f3dcd4-cac7-43b4-990b-a139d62a1eb2:sb-nscli000002","createdAt":"2018-01-15T03:13:05.297Z","updatedAt":"2018-01-15T03:13:28.437Z","serviceBusEndpoint":"https://sb-nscli000002.servicebus.windows.net:443/","status":"Active"}}'} + 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: ['Mon, 15 Jan 2018 03:13:37 GMT'] + date: ['Thu, 18 Jan 2018 21:08:22 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -126,18 +126,18 @@ interactions: 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.24] + 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-15T03:13:40.5Z","updatedAt":"2018-01-15T03:13:40.563Z","accessedAt":"0001-01-01T00:00:00","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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: ['1002'] + content-length: ['1003'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:13:41 GMT'] + date: ['Thu, 18 Jan 2018 21:08:26 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -145,7 +145,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1198'] status: {code: 200, message: OK} - request: body: null @@ -156,18 +156,18 @@ interactions: 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.24] + 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-15T03:13:40.5Z","updatedAt":"2018-01-15T03:13:40.563Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}'} + 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: ['1003'] + content-length: ['1004'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:13:42 GMT'] + date: ['Thu, 18 Jan 2018 21:08:27 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -185,18 +185,18 @@ interactions: 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.24] + 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-15T03:13:40.5Z","updatedAt":"2018-01-15T03:13:40.563Z","accessedAt":"0001-01-01T00:00:00Z","subscriptionCount":0,"countDetails":{"activeMessageCount":0,"deadLetterMessageCount":0,"scheduledMessageCount":0,"transferMessageCount":0,"transferDeadLetterMessageCount":0}}}]}'} + 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: ['1015'] + content-length: ['1016'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:13:44 GMT'] + date: ['Thu, 18 Jan 2018 21:08:30 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -216,7 +216,7 @@ interactions: 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.24] + 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 @@ -227,7 +227,7 @@ interactions: cache-control: [no-cache] content-length: ['440'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:13:46 GMT'] + date: ['Thu, 18 Jan 2018 21:08:31 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -235,7 +235,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -246,7 +246,7 @@ interactions: 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.24] + 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 @@ -257,7 +257,7 @@ interactions: cache-control: [no-cache] content-length: ['440'] content-type: [application/json; charset=utf-8] - date: ['Mon, 15 Jan 2018 03:13:47 GMT'] + date: ['Thu, 18 Jan 2018 21:08:32 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -276,17 +276,17 @@ interactions: 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.24] + 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=cZwmf5xHeuMfIoB/JTaAeKKW7EzmolLD9aHSQMNRxEk=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Dl6S/5lnh41hauaxmCwLnrICZC7zidBxmuCiKTKP6FM=;EntityPath=sb-topiccli000004","primaryKey":"cZwmf5xHeuMfIoB/JTaAeKKW7EzmolLD9aHSQMNRxEk=","secondaryKey":"Dl6S/5lnh41hauaxmCwLnrICZC7zidBxmuCiKTKP6FM=","keyName":"cliAutho000003"}'} + 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: ['Mon, 15 Jan 2018 03:13:49 GMT'] + date: ['Thu, 18 Jan 2018 21:08:34 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -294,7 +294,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1196'] status: {code: 200, message: OK} - request: body: '{"keyType": "PrimaryKey"}' @@ -306,17 +306,17 @@ interactions: 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.24] + 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=ZEOxowKUHFAkGtAMLCrAlLg8Y5LPbqhaMP+uik1/NcE=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=Dl6S/5lnh41hauaxmCwLnrICZC7zidBxmuCiKTKP6FM=;EntityPath=sb-topiccli000004","primaryKey":"ZEOxowKUHFAkGtAMLCrAlLg8Y5LPbqhaMP+uik1/NcE=","secondaryKey":"Dl6S/5lnh41hauaxmCwLnrICZC7zidBxmuCiKTKP6FM=","keyName":"cliAutho000003"}'} + 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: ['Mon, 15 Jan 2018 03:13:51 GMT'] + date: ['Thu, 18 Jan 2018 21:08:36 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -324,7 +324,7 @@ interactions: strict-transport-security: [max-age=31536000; includeSubDomains] transfer-encoding: [chunked] vary: [Accept-Encoding] - x-ms-ratelimit-remaining-subscription-writes: ['1199'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: '{"keyType": "SecondaryKey"}' @@ -336,17 +336,17 @@ interactions: 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.24] + 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=ZEOxowKUHFAkGtAMLCrAlLg8Y5LPbqhaMP+uik1/NcE=;EntityPath=sb-topiccli000004","secondaryConnectionString":"Endpoint=sb://sb-nscli000002.servicebus.windows.net/;SharedAccessKeyName=cliAutho000003;SharedAccessKey=vImTC1tm2Nz0mwvzBuH29wziDLlvQydwyXR+bdL3+Fg=;EntityPath=sb-topiccli000004","primaryKey":"ZEOxowKUHFAkGtAMLCrAlLg8Y5LPbqhaMP+uik1/NcE=","secondaryKey":"vImTC1tm2Nz0mwvzBuH29wziDLlvQydwyXR+bdL3+Fg=","keyName":"cliAutho000003"}'} + 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: ['Mon, 15 Jan 2018 03:13:53 GMT'] + date: ['Thu, 18 Jan 2018 21:08:38 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -366,7 +366,7 @@ interactions: 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.24] + 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 @@ -375,7 +375,7 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:13:55 GMT'] + date: ['Thu, 18 Jan 2018 21:08:40 GMT'] expires: ['-1'] pragma: [no-cache] server: [Service-Bus-Resource-Provider/SN1, Microsoft-HTTPAPI/2.0] @@ -393,7 +393,7 @@ interactions: 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.24] + 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 @@ -402,13 +402,13 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:13:56 GMT'] + 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: ['1198'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 200, message: OK} - request: body: null @@ -421,7 +421,7 @@ interactions: Content-Type: [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.24] + 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 @@ -430,11 +430,11 @@ interactions: headers: cache-control: [no-cache] content-length: ['0'] - date: ['Mon, 15 Jan 2018 03:13:58 GMT'] + date: ['Thu, 18 Jan 2018 21:08:44 GMT'] expires: ['-1'] - location: ['https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1DTEk6NUZURVNUOjVGU0I6NUZUT1BJQ1NUNTc3Vkk1RkRMVTVPNFNKRzdZNU8yN3xDNDU3QzQ5MjNGMzQ2NzI2LVdFU1RVUyIsImpvYkxvY2F0aW9uIjoid2VzdHVzIn0?api-version=2017-05-10'] + 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: ['1195'] + x-ms-ratelimit-remaining-subscription-writes: ['1197'] status: {code: 202, message: Accepted} version: 1 From 3c5bac29eb43f72cbcff8a62a3eced5a08e2157d Mon Sep 17 00:00:00 2001 From: "Ajit Maruti Navasare (MINDTREE LIMITED)" Date: Thu, 18 Jan 2018 14:37:20 -0800 Subject: [PATCH 13/13] Added Matadat file --- src/servicebus/azext_servicebus/azext_metadata.json | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 src/servicebus/azext_servicebus/azext_metadata.json diff --git a/src/servicebus/azext_servicebus/azext_metadata.json b/src/servicebus/azext_servicebus/azext_metadata.json new file mode 100644 index 00000000000..bbe67260f34 --- /dev/null +++ b/src/servicebus/azext_servicebus/azext_metadata.json @@ -0,0 +1,3 @@ +{ + "azext.minCliCoreVersion": "2.0.24" +} \ No newline at end of file