From dfd0ac4a584e718d2f63d1672434160a6cba517a Mon Sep 17 00:00:00 2001 From: Ajit Navasare Date: Mon, 27 Mar 2017 10:56:26 -0700 Subject: [PATCH] ServiceBus property changes reverted (#1057) * Merge branch 'master' of https://github.com/Azure/azure-rest-api-specs into SBReviewChecklist # Conflicts: # arm-servicebus/2015-08-01/swagger/servicebus.json * Operations Examples added * Spel corrected * update Queue,topic and subscriptions examples * Examples updated * Renamed conflicting entities * Reverted properties changes and update examples * updated Examples * Corrected syntax error * Fixed syntax errors * Property and model rename changes reverted and added examples and Namespace patch operation * corrected delete examples * Removed extra comma * Fix for Validation error of examples * Fix for Validation errors of examples * example validation fixes * Queue example --- .../SBNameSpaceAuthorizationRuleCreate.json | 28 ++ .../SBNameSpaceAuthorizationRuleListKey.json | 20 + ...ameSpaceAuthorizationRuleRegenrateKey.json | 23 + .../SBNameSpaceAuthorizationRuleUpdate.json | 27 ++ .../SBNameSpaceAutorizationRuleDelete.json | 13 + .../SBNameSpaceAutorizationRuleGet.json | 19 + .../SBNameSpaceAutorizationRuleListAll.json | 29 ++ .../SBNameSpaceCheckNameAvailability.json | 18 + .../NameSpaces/SBNameSpaceCreate.json | 60 +++ .../NameSpaces/SBNameSpaceDelete.json | 13 + .../examples/NameSpaces/SBNameSpaceGet.json | 33 ++ .../examples/NameSpaces/SBNameSpaceList.json | 51 ++ .../SBNameSpaceListByResourceGroup.json | 51 ++ .../NameSpaces/SBNameSpaceUpdate.json | 54 +++ .../SBQueueAuthorizationRuleCreate.json | 28 ++ .../SBQueueAuthorizationRuleListKey.json | 21 + .../SBQueueAuthorizationRuleRegenrateKey.json | 24 + .../SBQueueAuthorizationRuleUpdate.json | 28 ++ .../Queues/SBQueueAutorizationRuleDelete.json | 14 + .../Queues/SBQueueAutorizationRuleGet.json | 20 + .../SBQueueAutorizationRuleListAll.json | 23 + .../examples/Queues/SBQueueCreate.json | 45 ++ .../examples/Queues/SBQueueDelete.json | 13 + .../examples/Queues/SBQueueGet.json | 46 ++ .../Queues/SBQueueListByNameSpace.json | 49 ++ .../examples/Queues/SBQueueUpdate.json | 25 + .../examples/SBOperations_List.json | 337 +++++++++++++ .../Subscriptions/SBSubscriptionCreate.json | 37 ++ .../Subscriptions/SBSubscriptionDelete.json | 14 + .../Subscriptions/SBSubscriptionGet.json | 41 ++ .../SBSubscriptionListByTopic.json | 44 ++ .../Subscriptions/SBSubscriptionUpdate.json | 37 ++ .../SBTopicAuthorizationRuleCreate.json | 28 ++ .../SBTopicAuthorizationRuleListKey.json | 21 + .../SBTopicAuthorizationRuleRegenrateKey.json | 24 + .../SBTopicAuthorizationRuleUpdate.json | 28 ++ .../Topics/SBTopicAutorizationRuleDelete.json | 14 + .../Topics/SBTopicAutorizationRuleGet.json | 20 + .../SBTopicAutorizationRuleListAll.json | 23 + .../examples/Topics/SBTopicCreate.json | 36 ++ .../examples/Topics/SBTopicDelete.json | 13 + .../examples/Topics/SBTopicGet.json | 42 ++ .../Topics/SBTopicListByNameSpace.json | 45 ++ .../examples/Topics/SBTopicUpdate.json | 25 + .../2015-08-01/swagger/servicebus.json | 458 ++++++++++++++---- 45 files changed, 1981 insertions(+), 81 deletions(-) create mode 100644 arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleCreate.json create mode 100644 arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleListKey.json create mode 100644 arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleRegenrateKey.json create mode 100644 arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleUpdate.json create mode 100644 arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAutorizationRuleDelete.json create mode 100644 arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAutorizationRuleGet.json create mode 100644 arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAutorizationRuleListAll.json create mode 100644 arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceCheckNameAvailability.json create mode 100644 arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceCreate.json create mode 100644 arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceDelete.json create mode 100644 arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceGet.json create mode 100644 arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceList.json create mode 100644 arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceListByResourceGroup.json create mode 100644 arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceUpdate.json create mode 100644 arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleCreate.json create mode 100644 arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleListKey.json create mode 100644 arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleRegenrateKey.json create mode 100644 arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleUpdate.json create mode 100644 arm-servicebus/2015-08-01/examples/Queues/SBQueueAutorizationRuleDelete.json create mode 100644 arm-servicebus/2015-08-01/examples/Queues/SBQueueAutorizationRuleGet.json create mode 100644 arm-servicebus/2015-08-01/examples/Queues/SBQueueAutorizationRuleListAll.json create mode 100644 arm-servicebus/2015-08-01/examples/Queues/SBQueueCreate.json create mode 100644 arm-servicebus/2015-08-01/examples/Queues/SBQueueDelete.json create mode 100644 arm-servicebus/2015-08-01/examples/Queues/SBQueueGet.json create mode 100644 arm-servicebus/2015-08-01/examples/Queues/SBQueueListByNameSpace.json create mode 100644 arm-servicebus/2015-08-01/examples/Queues/SBQueueUpdate.json create mode 100644 arm-servicebus/2015-08-01/examples/SBOperations_List.json create mode 100644 arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionCreate.json create mode 100644 arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionDelete.json create mode 100644 arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionGet.json create mode 100644 arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionListByTopic.json create mode 100644 arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionUpdate.json create mode 100644 arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleCreate.json create mode 100644 arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleListKey.json create mode 100644 arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleRegenrateKey.json create mode 100644 arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleUpdate.json create mode 100644 arm-servicebus/2015-08-01/examples/Topics/SBTopicAutorizationRuleDelete.json create mode 100644 arm-servicebus/2015-08-01/examples/Topics/SBTopicAutorizationRuleGet.json create mode 100644 arm-servicebus/2015-08-01/examples/Topics/SBTopicAutorizationRuleListAll.json create mode 100644 arm-servicebus/2015-08-01/examples/Topics/SBTopicCreate.json create mode 100644 arm-servicebus/2015-08-01/examples/Topics/SBTopicDelete.json create mode 100644 arm-servicebus/2015-08-01/examples/Topics/SBTopicGet.json create mode 100644 arm-servicebus/2015-08-01/examples/Topics/SBTopicListByNameSpace.json create mode 100644 arm-servicebus/2015-08-01/examples/Topics/SBTopicUpdate.json diff --git a/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleCreate.json b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleCreate.json new file mode 100644 index 000000000000..abd499e27289 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleCreate.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace8341", + "authorizationRuleName": "sdk-Authrules9875", + "resourceGroupName": "Default-ServiceBus-WestUS", + "api-version": "2016-07-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "parameters": { + "location": "West US", + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace8341/AuthorizationRules/sdk-Authrules9875", + "name": "sdk-Authrules9875", + "type": "Microsoft.ServiceBus/AuthorizationRules", + "properties": { "rights": [ "Listen", "Send" ] } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleListKey.json b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleListKey.json new file mode 100644 index 000000000000..785b6401bd02 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleListKey.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace8341", + "authorizationRuleName": "sdk-RelayAuthRules-01", + "resourceGroupName": "Default-ServiceBus-WestUS", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://sdk-namespace8341.servicebus.windows.net/;SharedAccessKeyName=sdk-Authrules9875;SharedAccessKey=############################################", + "secondaryConnectionString": "Endpoint=sb://sdk-namespace8341.servicebus.windows.net/;SharedAccessKeyName=sdk-Authrules9875;SharedAccessKey=############################################", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "keyName": "sdk-Authrules9875" + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleRegenrateKey.json b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleRegenrateKey.json new file mode 100644 index 000000000000..6ab1e549e9e0 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleRegenrateKey.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace8341", + "authorizationRuleName": "sdk-RelayAuthRules-01", + "resourceGroupName": "Default-ServiceBus-WestUS", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "parameters": { + "Policykey": "PrimaryKey" + } + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://sdk-namespace8341.servicebus.windows.net/;SharedAccessKeyName=sdk-Authrules9875;SharedAccessKey=############################################", + "secondaryConnectionString": "Endpoint=sb://sdk-namespace8341.servicebus.windows.net/;SharedAccessKeyName=sdk-Authrules9875;SharedAccessKey=############################################", + "primaryKey": "############################################", + "secondaryKey": "############################################", + "keyName": "sdk-Authrules9875" + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleUpdate.json b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleUpdate.json new file mode 100644 index 000000000000..f0bb23ec943d --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAuthorizationRuleUpdate.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace8341", + "authorizationRuleName": "sdk-Authrules9875", + "resourceGroupName": "Default-ServiceBus-WestUS", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "parameters": { + "location": "West US", + "properties": { + "rights": [ + "Listen" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace8341/AuthorizationRules/sdk-Authrules9875", + "name": "sdk-Authrules9875", + "type": "Microsoft.ServiceBus/AuthorizationRules", + "properties": { "rights": [ "Listen" ] } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAutorizationRuleDelete.json b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAutorizationRuleDelete.json new file mode 100644 index 000000000000..0ebf2251245c --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAutorizationRuleDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace8341", + "authorizationRuleName": "sdk-RelayAuthRules-01", + "resourceGroupName": "Default-ServiceBus-WestUS", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAutorizationRuleGet.json b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAutorizationRuleGet.json new file mode 100644 index 000000000000..100d6fcc4ff2 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAutorizationRuleGet.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace8341", + "authorizationRuleName": "sdk-Authrules9875", + "resourceGroupName": "sdk-Namespace8341", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace8341/AuthorizationRules/sdk-Authrules9875", + "name": "sdk-Authrules9875", + "type": "Microsoft.ServiceBus/AuthorizationRules", + "properties": { "rights": [ "Listen", "Send" ] } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAutorizationRuleListAll.json b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAutorizationRuleListAll.json new file mode 100644 index 000000000000..30c0d3a3a1e6 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceAutorizationRuleListAll.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace8341", + "resourceGroupName": "Default-ServiceBus-WestUS", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace8341/AuthorizationRules/RootManageSharedAccessKey", + "name": "RootManageSharedAccessKey", + "type": "Microsoft.ServiceBus/AuthorizationRules", + "properties": { "rights": [ "Listen", "Manage", "Send" ] } + }, + { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace8341/AuthorizationRules/sdk-Authrules9875", + "name": "sdk-Authrules9875", + "type": "Microsoft.ServiceBus/AuthorizationRules", + "properties": { "rights": [ "Listen", "Send" ] } + } + ], + "nextLink": "" + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceCheckNameAvailability.json b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceCheckNameAvailability.json new file mode 100644 index 000000000000..184ad6f5d6d2 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceCheckNameAvailability.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "parameters": { + "name": "sdk-Namespace1321" + } + }, + "responses": { + "200": { + "body": { + "nameAvailable": true, + "reason": "None", + "message": "" + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceCreate.json b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceCreate.json new file mode 100644 index 000000000000..9cbce0bed97b --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceCreate.json @@ -0,0 +1,60 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace7816", + "resourceGroupName": "Default-ServiceBus-WestUS", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "parameters": { + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "location": "West US", + "tags": { + "tag1": "value1", + "tag2": "value2" + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace7816", + "name": "sdk-Namespace7816", + "type": "Microsoft.ServiceBus/namespaces", + "location": "West US", + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Unknown" + } + } + }, + "201": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace7816", + "name": "sdk-Namespace7816", + "type": "Microsoft.ServiceBus/namespaces", + "location": "West US", + "sku": { + "name": "Standard", + "tier": "Standard" + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Unknown" + } + } + }, + "202" : {} + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceDelete.json b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceDelete.json new file mode 100644 index 000000000000..9a65be51f554 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace1471", + "resourceGroupName": "Default-ServiceBus-WestUS", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": {}, + "202": {}, + "204": {} + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceGet.json b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceGet.json new file mode 100644 index 000000000000..2a302772335d --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceGet.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace1471", + "resourceGroupName": "RG-eg", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace1471", + "name": "sdk-Namespace1471", + "type": "Microsoft.ServiceBus/namespaces", + "location": "West US", + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "tags": { + "tag1": "value1", + "tag2": "value2" + }, + "properties": { + "provisioningState": "Succeeded", + "createdAt": "2017-03-12T07:39:13.31Z", + "serviceBusEndpoint": "https://sdk-Namespace1471.servicebus.windows.net:443/", + "updatedAt": "2017-03-12T07:39:35.443Z" + } + } + } + } +} diff --git a/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceList.json b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceList.json new file mode 100644 index 000000000000..52f80d1572f2 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceList.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-5018", + "name": "sdk-Namespace-5018", + "type": "Microsoft.ServiceBus/namespaces", + "location": "Australia East", + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "createdAt": "2017-02-15T19:09:40.8Z", + "serviceBusEndpoint": "https://sdk-Namespace-5018.servicebus.windows.net:443/", + "updatedAt": "2017-02-15T19:10:05.193Z" + } + }, + { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-3458", + "name": "sdk-Namespace-3458", + "type": "Microsoft.ServiceBus/namespaces", + "location": "West US", + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "provisioningState": "Succeeded", + "createdAt": "2017-02-01T00:07:07.54Z", + "serviceBusEndpoint": "https://sdk-Namespace-3458.servicebus.windows.net:443/", + "updatedAt": "2017-02-01T00:07:31.14Z" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceListByResourceGroup.json b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceListByResourceGroup.json new file mode 100644 index 000000000000..5379169a5654 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceListByResourceGroup.json @@ -0,0 +1,51 @@ +{ + "parameters": { + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "resourceGroupName": "Default-ServiceBus-WestUS" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-5018", + "name": "sdk-Namespace-5018", + "type": "Microsoft.ServiceBus/namespaces", + "location": "Australia East", + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "createdAt": "2017-02-15T19:09:40.8Z", + "serviceBusEndpoint": "https://sdk-Namespace-5018.servicebus.windows.net:443/", + "updatedAt": "2017-02-15T19:10:05.193Z" + } + }, + { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace-3458", + "name": "sdk-Namespace-3458", + "type": "Microsoft.ServiceBus/namespaces", + "location": "West US", + "sku": { + "name": "Standard", + "tier": "Standard", + "capacity": 1 + }, + "tags": {}, + "properties": { + "provisioningState": "Succeeded", + "createdAt": "2017-02-01T00:07:07.54Z", + "serviceBusEndpoint": "https://sdk-Namespace-3458.servicebus.windows.net:443/", + "updatedAt": "2017-02-01T00:07:31.14Z" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceUpdate.json b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceUpdate.json new file mode 100644 index 000000000000..446840260125 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/NameSpaces/SBNameSpaceUpdate.json @@ -0,0 +1,54 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace1471", + "resourceGroupName": "Default-ServiceBus-WestUS", + "api-version": "2015-08-01", + "subscriptionId": "8c246e6a-cbc6-4a87-aff1-d6a886f376ef", + "location": "West US", + "parameters":{ + "tags": { + "tag3": "value3", + "tag4": "value4" + } + } + }, + "responses": { + "200": { + "body": { + "id": "", + "name": "", + "type": "", + "location": "", + "tags": { + "tag3": "value3", + "tag4": "value4" + }, + "properties": { + "provisioningState": "", + "createdAt": "2017-03-12T07:39:13.31Z", + "serviceBusEndpoint": "https://sdk-Namespace1471.servicebus.windows.net:443/", + "updatedAt": "2017-03-12T07:39:35.443Z" + } + } + }, + "201": { + "body": { + "id": "", + "name": "", + "type": "", + "location": "", + "tags": { + "tag3": "value3", + "tag4": "value4" + }, + "properties": { + "provisioningState": "", + "createdAt": "2017-03-12T07:39:13.31Z", + "serviceBusEndpoint": "https://sdk-Namespace1471.servicebus.windows.net:443/", + "updatedAt": "2017-03-12T07:39:35.443Z" + } + } + }, + "202": {} + } + } \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleCreate.json b/arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleCreate.json new file mode 100644 index 000000000000..64dad98ea0dd --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleCreate.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "resourceGroupName": "Default-ServiceBus-WestUS", + "namespaceName": "sdk-Namespace6556", + "queueName": "sdk-Queues3136", + "authorizationRuleName": "sdk-Authrules7319", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "parameters": { + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace6556/queues/sdk-Queues3136/authorizationRules/sdk-Authrules7319", + "name": "sdk-Authrules7319", + "type": "Microsoft.ServiceBus/AuthorizationRules", + "properties": { "rights": [ "Listen", "Send" ] } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleListKey.json b/arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleListKey.json new file mode 100644 index 000000000000..b93fa183d393 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleListKey.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "resourceGroupName": "Default-ServiceBus-WestUS", + "namespaceName": "sdk-Namespace6556", + "queueName": "sdk-Queues3136", + "authorizationRuleName": "sdk-Authrules7319", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://sdk-namespace6556.servicebus.windows.net/;SharedAccessKeyName=sdk-Authrules7319;SharedAccessKey=###########################################;EntityPath=sdk-Queues3136", + "secondaryConnectionString": "Endpoint=sb://sdk-namespace6556.servicebus.windows.net/;SharedAccessKeyName=sdk-Authrules7319;SharedAccessKey=###########################################;EntityPath=sdk-Queues3136", + "primaryKey": "###########################################", + "secondaryKey": "###########################################", + "keyName": "sdk-Authrules7319" + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleRegenrateKey.json b/arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleRegenrateKey.json new file mode 100644 index 000000000000..d8c7c628115e --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleRegenrateKey.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "resourceGroupName": "Default-ServiceBus-WestUS", + "namespaceName": "sdk-Namespace6556", + "queueName": "sdk-Queues3136", + "authorizationRuleName": "sdk-Authrules7319", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "parameters": { + "Policykey": "PrimaryKey" + } + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://sdk-namespace6556.servicebus.windows.net/;SharedAccessKeyName=sdk-Authrules7319;SharedAccessKey=###########################################;EntityPath=sdk-Queues3136", + "secondaryConnectionString": "Endpoint=sb://sdk-namespace6556.servicebus.windows.net/;SharedAccessKeyName=sdk-Authrules7319;SharedAccessKey=###########################################;EntityPath=sdk-Queues3136", + "primaryKey": "###########################################", + "secondaryKey": "###########################################", + "keyName": "sdk-Authrules7319" + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleUpdate.json b/arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleUpdate.json new file mode 100644 index 000000000000..150d233fbe18 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Queues/SBQueueAuthorizationRuleUpdate.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "resourceGroupName": "Default-ServiceBus-WestUS", + "namespaceName": "sdk-Namespace6556", + "queueName": "sdk-Queues3136", + "authorizationRuleName": "sdk-Authrules7319", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "parameters": { + "location": "West US", + "properties": { + "rights": [ + "Listen" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace6556/queues/sdk-Queues3136/authorizationRules/sdk-Authrules7319", + "name": "sdk-Authrules7319", + "type": "Microsoft.ServiceBus/AuthorizationRules", + "properties": { "rights": [ "Listen" ] } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Queues/SBQueueAutorizationRuleDelete.json b/arm-servicebus/2015-08-01/examples/Queues/SBQueueAutorizationRuleDelete.json new file mode 100644 index 000000000000..93817e771830 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Queues/SBQueueAutorizationRuleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "resourceGroupName": "Default-ServiceBus-WestUS", + "namespaceName": "sdk-Namespace6556", + "queueName": "sdk-Queues3136", + "authorizationRuleName": "sdk-Authrules7319", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Queues/SBQueueAutorizationRuleGet.json b/arm-servicebus/2015-08-01/examples/Queues/SBQueueAutorizationRuleGet.json new file mode 100644 index 000000000000..3a5e2451bd81 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Queues/SBQueueAutorizationRuleGet.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "resourceGroupName": "Default-ServiceBus-WestUS", + "namespaceName": "sdk-Namespace6556", + "queueName": "sdk-Queues3136", + "authorizationRuleName": "sdk-Authrules7319", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace6556/queues/sdk-Queues3136/authorizationRules/sdk-Authrules7319", + "name": "sdk-Authrules7319", + "type": "Microsoft.ServiceBus/AuthorizationRules", + "properties": { "rights": [ "Listen", "Send" ] } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Queues/SBQueueAutorizationRuleListAll.json b/arm-servicebus/2015-08-01/examples/Queues/SBQueueAutorizationRuleListAll.json new file mode 100644 index 000000000000..eff7ff0d3631 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Queues/SBQueueAutorizationRuleListAll.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "resourceGroupName": "Default-ServiceBus-WestUS", + "namespaceName": "sdk-Namespace6556", + "queueName": "sdk-Queues3136", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace6556/queues/sdk-Queues3136/authorizationRules/sdk-Authrules7319", + "name": "sdk-Authrules7319", + "type": "Microsoft.ServiceBus/AuthorizationRules", + "properties": { "rights": [ "Listen", "Send" ] } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Queues/SBQueueCreate.json b/arm-servicebus/2015-08-01/examples/Queues/SBQueueCreate.json new file mode 100644 index 000000000000..76c6d197808e --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Queues/SBQueueCreate.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace3082", + "resourceGroupName": "Default-ServiceBus-WestUS", + "queueName": "sdk-Queues8544", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "parameters":{ + "properties": { + "enableExpress": false, + "enablePartitioning": false + }, + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace3082/queues/sdk-Queues8544", + "name": "sdk-Queues8544", + "type": "Microsoft.ServiceBus/Queues", + "properties": { + "lockDuration": "00:01:00", + "maxSizeInMegabytes": 1024, + "requiresDuplicateDetection": false, + "requiresSession": false, + "defaultMessageTimeToLive": "10675199.02:48:05.4775807", + "deadLetteringOnMessageExpiration": false, + "duplicateDetectionHistoryTimeWindow": "00:10:00", + "maxDeliveryCount": 10, + "enableBatchedOperations": true, + "sizeInBytes": 0, + "messageCount": 0, + "status": "Active", + "createdAt": "2017-03-12T09:16:03.577Z", + "updatedAt": "2017-03-12T09:16:03.623Z", + "supportOrdering": true, + "autoDeleteOnIdle": "10675199.02:48:05.4775807", + "enablePartitioning": false, + "enableExpress": false + } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Queues/SBQueueDelete.json b/arm-servicebus/2015-08-01/examples/Queues/SBQueueDelete.json new file mode 100644 index 000000000000..0c3a814a3430 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Queues/SBQueueDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace3082", + "resourceGroupName": "Default-ServiceBus-WestUS", + "queueName": "sdk-Queues8544", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Queues/SBQueueGet.json b/arm-servicebus/2015-08-01/examples/Queues/SBQueueGet.json new file mode 100644 index 000000000000..975b8807255d --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Queues/SBQueueGet.json @@ -0,0 +1,46 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace3082", + "resourceGroupName": "Default-ServiceBus-WestUS", + "queueName": "sdk-Queues8544", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace3082/queues/sdk-Queues8544", + "name": "sdk-Queues8544", + "type": "Microsoft.ServiceBus/Queues", + "properties": { + "lockDuration": "00:01:00", + "maxSizeInMegabytes": 1024, + "requiresDuplicateDetection": false, + "requiresSession": false, + "defaultMessageTimeToLive": "10675199.02:48:05.4775807", + "deadLetteringOnMessageExpiration": false, + "duplicateDetectionHistoryTimeWindow": "00:10:00", + "maxDeliveryCount": 10, + "enableBatchedOperations": true, + "sizeInBytes": 0, + "messageCount": 0, + "status": "Active", + "createdAt": "2017-03-12T09:16:03.577Z", + "updatedAt": "2017-03-12T09:16:03.623Z", + "accessedAt": "0001-01-01T00:00:00Z", + "supportOrdering": true, + "countDetails": { + "activeMessageCount": 0, + "deadLetterMessageCount": 0, + "scheduledMessageCount": 0, + "transferMessageCount": 0, + "transferDeadLetterMessageCount": 0 + }, + "autoDeleteOnIdle": "10675199.02:48:05.4775807", + "enablePartitioning": false, + "enableExpress": false + } + } + } + } +} diff --git a/arm-servicebus/2015-08-01/examples/Queues/SBQueueListByNameSpace.json b/arm-servicebus/2015-08-01/examples/Queues/SBQueueListByNameSpace.json new file mode 100644 index 000000000000..46ded725ab55 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Queues/SBQueueListByNameSpace.json @@ -0,0 +1,49 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace7626", + "resourceGroupName": "Default-ServiceBus-WestUS", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace7626/queues/sdk-queues7173", + "name": "sdk-queues7173", + "type": "Microsoft.ServiceBus/Queues", + "properties": { + "lockDuration": "00:01:00", + "maxSizeInMegabytes": 1024, + "requiresDuplicateDetection": false, + "requiresSession": false, + "defaultMessageTimeToLive": "10675199.02:48:05.4775807", + "deadLetteringOnMessageExpiration": false, + "duplicateDetectionHistoryTimeWindow": "00:10:00", + "maxDeliveryCount": 10, + "enableBatchedOperations": true, + "sizeInBytes": 0, + "messageCount": 0, + "status": "Active", + "createdAt": "2017-03-12T10:11:38.87Z", + "updatedAt": "2017-03-12T10:11:38.917Z", + "accessedAt": "0001-01-01T00:00:00Z", + "supportOrdering": true, + "countDetails": { + "activeMessageCount": 0, + "deadLetterMessageCount": 0, + "scheduledMessageCount": 0, + "transferMessageCount": 0, + "transferDeadLetterMessageCount": 0 + }, + "autoDeleteOnIdle": "10675199.02:48:05.4775807", + "enablePartitioning": false, + "enableExpress": false + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Queues/SBQueueUpdate.json b/arm-servicebus/2015-08-01/examples/Queues/SBQueueUpdate.json new file mode 100644 index 000000000000..ec21b6579692 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Queues/SBQueueUpdate.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace3082", + "resourceGroupName": "Default-ServiceBus-WestUS", + "queueName": "sdk-Queues8544", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "properties": { + "enableExpress": true + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace3082/queues/sdk-Queues8544", + "name": "sdk-Queues8544", + "type": "Microsoft.ServiceBus/Queues", + "properties": { + "maxSizeInMegabytes": 1024, + "enableExpress": true + } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/SBOperations_List.json b/arm-servicebus/2015-08-01/examples/SBOperations_List.json new file mode 100644 index 000000000000..91fd78e770ce --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/SBOperations_List.json @@ -0,0 +1,337 @@ +{ + "parameters": { + "api-version": "2016-07-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.ServiceBus/checkNameAvailability/action", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Non Resource Operation", + "operation": "Get namespace availability.", + "description": "Checks availability of namespace under given subscription." + } + }, + { + "name": "Microsoft.ServiceBus/register/action", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "ServiceBus Resource Provider", + "operation": "Registers the ServiceBus Resource Provider", + "description": "Registers the subscription for the ServiceBus resource provider and enables the creation of ServiceBus resources" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/write", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Namespace", + "operation": "Create Or Update Namespace ", + "description": "Create a Namespace Resource and Update its properties. Tags and status of the Namespace are the properties which can be updated." + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/read", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Namespace", + "operation": "Get Namespace Resource", + "description": "Get the list of Namespace Resource Description" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/Delete", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Namespace", + "operation": "Delete Namespace", + "description": "Delete Namespace Resource" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/authorizationRules/write", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "AuthorizationRules", + "operation": "Create or Update Namespace Authorization Rules", + "description": "Create a Namespace level Authorization Rules and update its properties. The Authorization Rules Access Rights, the Primary and Secondary Keys can be updated." + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/authorizationRules/read", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "AuthorizationRules", + "operation": "Get Namespace Authorization Rules", + "description": "Get the list of Namespaces Authorization Rules description." + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/authorizationRules/delete", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "AuthorizationRules", + "operation": "Delete Namespace Authorization Rule", + "description": "Delete Namespace Authorization Rule. The Default Namespace Authorization Rule cannot be deleted. " + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/authorizationRules/listkeys/action", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "AuthorizationRules", + "operation": "Get Namespace Listkeys", + "description": "Get the Connection String to the Namespace" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/authorizationRules/regenerateKeys/action", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "AuthorizationRules", + "operation": "Resource Regeneratekeys", + "description": "Regenerate the Primary or Secondary key to the Resource" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/queues/write", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Queue", + "operation": "Create or Update Queue", + "description": "Create or Update Queue properties." + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/queues/read", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Queue", + "operation": "Get Queue", + "description": "Get list of Queue Resource Descriptions" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/queues/Delete", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Queue", + "operation": "Delete Queue", + "description": "Operation to delete Queue Resource" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/queues/authorizationRules/write", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Queue AuthorizationRules", + "operation": "Create or Update Queue Authorization Rule", + "description": "Create Queue Authorization Rules and Update its properties. The Authorization Rules Access Rights, the Primary and Secondary Keys can be updated." + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/queues/authorizationRules/read", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Queue AuthorizationRules", + "operation": " Get Queue Authorization Rules", + "description": " Get the list of Queue Authorization Rules" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/queues/authorizationRules/delete", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Queue AuthorizationRules", + "operation": "Delete Queue Authorization Rules", + "description": "Operation to delete Queue Authorization Rules" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/queues/authorizationRules/listkeys/action", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Queue AuthorizationRules", + "operation": "List Queue keys", + "description": "Get the Connection String to Queue" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/queues/authorizationRules/regenerateKeys/action", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Queue AuthorizationRules", + "operation": "Resource Regeneratekeys", + "description": "Regenerate the Primary or Secondary key to the Resource" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/topics/write", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Topic", + "operation": "Create or Update Topic", + "description": "Create or Update Topic properties." + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/topics/read", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Topic", + "operation": "Get Topic", + "description": "Get list of Topic Resource Descriptions" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/topics/Delete", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Topic", + "operation": "Delete Topic", + "description": "Operation to delete Topic Resource" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/topics/authorizationRules/write", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Topic AuthorizationRules", + "operation": "Create or Update Topic Authorization Rule", + "description": "Create Topic Authorization Rules and Update its properties. The Authorization Rules Access Rights, the Primary and Secondary Keys can be updated." + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/topics/authorizationRules/read", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Topic AuthorizationRules", + "operation": " Get Topic Authorization Rules", + "description": " Get the list of Topic Authorization Rules" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/topics/authorizationRules/delete", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Topic AuthorizationRules", + "operation": "Delete Topic Authorization Rules", + "description": "Operation to delete Topic Authorization Rules" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/topics/authorizationRules/listkeys/action", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Topic AuthorizationRules", + "operation": "List Topic keys", + "description": "Get the Connection String to Topic" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/topics/authorizationRules/regenerateKeys/action", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Topic AuthorizationRules", + "operation": "Resource Regeneratekeys", + "description": "Regenerate the Primary or Secondary key to the Resource" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/topics/subscriptions/write", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "TopicSubscription", + "operation": "Create or Update TopicSubscription", + "description": "Create or Update TopicSubscription properties." + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/topics/subscriptions/read", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "TopicSubscription", + "operation": "Get TopicSubscription", + "description": "Get list of TopicSubscription Resource Descriptions" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/topics/subscriptions/Delete", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "TopicSubscription", + "operation": "Delete TopicSubscription", + "description": "Operation to delete TopicSubscription Resource" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/topics/subscriptions/rules/write", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Rule", + "operation": "Create or Update Rule", + "description": "Create or Update Rule properties." + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/topics/subscriptions/rules/read", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Rule", + "operation": "Get Rule", + "description": "Get list of Rule Resource Descriptions" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/topics/subscriptions/rules/Delete", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Rule", + "operation": "Delete Rule", + "description": "Operation to delete Rule Resource" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/metricDefinitions/read", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Namespace metrics", + "operation": "Get Namespace metrics", + "description": "Get list of Namespace metrics Resource Descriptions" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/diagnosticSettings/read", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Namespace diagnostic settings", + "operation": "Get Namespace diagnostic settings", + "description": "Get list of Namespace diagnostic settings Resource Descriptions" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/diagnosticSettings/write", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Namespace diagnostic settings", + "operation": "Create or Update Namespace diagnostic settings", + "description": "Get list of Namespace diagnostic settings Resource Descriptions" + } + }, + { + "name": "Microsoft.ServiceBus/namespaces/logDefinitions/read", + "display": { + "provider": "Microsoft Azure ServiceBus", + "resource": "Namespace logs", + "operation": "Get Namespace logs", + "description": "Get list of Namespace logs Resource Descriptions" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionCreate.json b/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionCreate.json new file mode 100644 index 000000000000..035ecb847425 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionCreate.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace2500", + "resourceGroupName": "Default-ServiceBus-WestUS", + "topicName": "sdk-Topics2565", + "subscriptionName": "sdk-Subscriptions3374", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "parameters": { + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace2500/topics/sdk-Topics2565/subscriptions/sdk-Subscriptions3374", + "name": "sdk-Subscriptions3374", + "type": "Microsoft.ServiceBus/TopicSubscriptions", + "properties": { + "lockDuration": "00:01:00", + "requiresSession": false, + "defaultMessageTimeToLive": "10675199.02:48:05.4775807", + "deadLetteringOnMessageExpiration": false, + "deadLetteringOnFilterEvaluationExceptions": true, + "messageCount": 0, + "maxDeliveryCount": 10, + "enableBatchedOperations": true, + "status": "Active", + "createdAt": "2017-03-12T16:54:30.4Z", + "updatedAt": "2017-03-12T16:54:30.45Z", + "accessedAt": "2017-03-12T16:54:30.45Z", + "autoDeleteOnIdle": "10675199.02:48:05.4775807" + } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionDelete.json b/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionDelete.json new file mode 100644 index 000000000000..00273dc27ab8 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace4191", + "resourceGroupName": "Default-ServiceBus-WestUS", + "topicName": "sdk-Topics1377", + "subscriptionName": "sdk-Subscriptions3374", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionGet.json b/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionGet.json new file mode 100644 index 000000000000..3d26530690bb --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionGet.json @@ -0,0 +1,41 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace2500", + "resourceGroupName": "Default-ServiceBus-WestUS", + "topicName": "sdk-Topics2565", + "subscriptionName": "sdk-Subscriptions3374", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace2500/topics/sdk-Topics2565/subscriptions/sdk-Subscriptions3374", + "name": "sdk-Subscriptions3374", + "type": "Microsoft.ServiceBus/TopicSubscriptions", + "properties": { + "lockDuration": "00:01:00", + "requiresSession": false, + "defaultMessageTimeToLive": "10675199.02:48:05.4775807", + "deadLetteringOnMessageExpiration": false, + "deadLetteringOnFilterEvaluationExceptions": true, + "messageCount": 0, + "maxDeliveryCount": 10, + "enableBatchedOperations": true, + "status": "Active", + "createdAt": "2017-03-12T17:38:55.969348Z", + "updatedAt": "2017-03-12T17:38:55.969348Z", + "accessedAt": "2017-03-12T17:38:55.97Z", + "countDetails": { + "activeMessageCount": 0, + "deadLetterMessageCount": 0, + "scheduledMessageCount": 0, + "transferMessageCount": 0, + "transferDeadLetterMessageCount": 0 + }, + "autoDeleteOnIdle": "10675199.02:48:05.4775807" + } + } + } + } +} diff --git a/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionListByTopic.json b/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionListByTopic.json new file mode 100644 index 000000000000..4376f8b5d938 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionListByTopic.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace2500", + "resourceGroupName": "Default-ServiceBus-WestUS", + "topicName": "sdk-Topics2565", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace2500/topics/sdk-Topics2565/subscriptions/sdk-Subscriptions3374", + "name": "sdk-Subscriptions3374", + "type": "Microsoft.ServiceBus/TopicSubscriptions", + "properties": { + "lockDuration": "00:01:00", + "requiresSession": false, + "defaultMessageTimeToLive": "10675199.02:48:05.4775807", + "deadLetteringOnMessageExpiration": false, + "deadLetteringOnFilterEvaluationExceptions": true, + "messageCount": 0, + "maxDeliveryCount": 10, + "enableBatchedOperations": true, + "status": "Active", + "createdAt": "2017-03-12T17:38:55.969348Z", + "updatedAt": "2017-03-12T17:38:55.969348Z", + "accessedAt": "2017-03-12T17:38:55.97Z", + "countDetails": { + "activeMessageCount": 0, + "deadLetterMessageCount": 0, + "scheduledMessageCount": 0, + "transferMessageCount": 0, + "transferDeadLetterMessageCount": 0 + }, + "autoDeleteOnIdle": "10675199.02:48:05.4775807" + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionUpdate.json b/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionUpdate.json new file mode 100644 index 000000000000..21e227be2313 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Subscriptions/SBSubscriptionUpdate.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace2500", + "resourceGroupName": "Default-ServiceBus-WestUS", + "topicName": "sdk-Topics2565", + "subscriptionName": "sdk-Subscriptions3374", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "properties": { + "enableBatchedOperations": true + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace2500/topics/sdk-Topics2565/subscriptions/sdk-Subscriptions3374", + "name": "sdk-Subscriptions3374", + "type": "Microsoft.ServiceBus/TopicSubscriptions", + "properties": { + "lockDuration": "00:01:00", + "requiresSession": false, + "defaultMessageTimeToLive": "10675199.02:48:05.4775807", + "deadLetteringOnMessageExpiration": false, + "deadLetteringOnFilterEvaluationExceptions": true, + "messageCount": 0, + "maxDeliveryCount": 10, + "enableBatchedOperations": true, + "status": "Active", + "createdAt": "2017-03-12T17:38:57.3377413Z", + "updatedAt": "2017-03-12T17:38:57.3377413Z", + "accessedAt": "0001-01-01T00:00:00", + "autoDeleteOnIdle": "10675199.02:48:05.4775807" + } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleCreate.json b/arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleCreate.json new file mode 100644 index 000000000000..f4fb14de9c31 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleCreate.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "resourceGroupName": "Default-ServiceBus-WestUS", + "namespaceName": "sdk-Namespace8408", + "topicName": "sdk-Topics2075", + "authorizationRuleName": "sdk-Authrules5067", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "parameters": { + "properties": { + "rights": [ + "Listen", + "Send" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace8408/topics/sdk-Topics2075/authorizationRules/sdk-Authrules5067", + "name": "sdk-Authrules5067", + "type": "Microsoft.ServiceBus/AuthorizationRules", + "properties": { "rights": [ "Listen", "Send" ] } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleListKey.json b/arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleListKey.json new file mode 100644 index 000000000000..42cf41b75c26 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleListKey.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "resourceGroupName": "Default-ServiceBus-WestUS", + "namespaceName": "sdk-Namespace8408", + "topicName": "sdk-Topics2075", + "authorizationRuleName": "sdk-Authrules5067", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://sdk-namespace8408.servicebus.windows.net/;SharedAccessKeyName=sdk-Authrules5067;SharedAccessKey=###########################################;EntityPath=sdk-Topics2075", + "secondaryConnectionString": "Endpoint=sb://sdk-namespace8408.servicebus.windows.net/;SharedAccessKeyName=sdk-Authrules5067;SharedAccessKey=###########################################;EntityPath=sdk-Topics2075", + "primaryKey": "###########################################", + "secondaryKey": "###########################################", + "keyName": "sdk-Authrules5067" + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleRegenrateKey.json b/arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleRegenrateKey.json new file mode 100644 index 000000000000..c27dcd53bd82 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleRegenrateKey.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "resourceGroupName": "Default-ServiceBus-WestUS", + "namespaceName": "sdk-Namespace8408", + "topicName": "sdk-Topics2075", + "authorizationRuleName": "sdk-Authrules5067", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "parameters": { + "Policykey": "PrimaryKey" + } + }, + "responses": { + "200": { + "body": { + "primaryConnectionString": "Endpoint=sb://sdk-namespace8408.servicebus.windows.net/;SharedAccessKeyName=sdk-Authrules5067;SharedAccessKey=###########################################;EntityPath=sdk-Topics2075", + "secondaryConnectionString": "Endpoint=sb://sdk-namespace8408.servicebus.windows.net/;SharedAccessKeyName=sdk-Authrules5067;SharedAccessKey=###########################################;EntityPath=sdk-Topics2075", + "primaryKey": "###########################################", + "secondaryKey": "###########################################", + "keyName": "sdk-Authrules5067" + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleUpdate.json b/arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleUpdate.json new file mode 100644 index 000000000000..50ea6013de35 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Topics/SBTopicAuthorizationRuleUpdate.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "resourceGroupName": "Default-ServiceBus-WestUS", + "namespaceName": "sdk-Namespace8408", + "topicName": "sdk-Topics2075", + "authorizationRuleName": "sdk-Authrules5067", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "parameters": { + "location": "West US", + "properties": { + "rights": [ + "Listen" + ] + } + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace8408/topics/sdk-Topics2075/authorizationRules/sdk-Authrules5067", + "name": "sdk-Authrules5067", + "type": "Microsoft.ServiceBus/AuthorizationRules", + "properties": { "rights": [ "Listen" ] } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Topics/SBTopicAutorizationRuleDelete.json b/arm-servicebus/2015-08-01/examples/Topics/SBTopicAutorizationRuleDelete.json new file mode 100644 index 000000000000..746170ed79f0 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Topics/SBTopicAutorizationRuleDelete.json @@ -0,0 +1,14 @@ +{ + "parameters": { + "resourceGroupName": "Default-ServiceBus-WestUS", + "namespaceName": "sdk-Namespace8408", + "topicName": "sdk-Topics2075", + "authorizationRuleName": "sdk-Authrules5067", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Topics/SBTopicAutorizationRuleGet.json b/arm-servicebus/2015-08-01/examples/Topics/SBTopicAutorizationRuleGet.json new file mode 100644 index 000000000000..b12709cbc763 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Topics/SBTopicAutorizationRuleGet.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "resourceGroupName": "Default-ServiceBus-WestUS", + "namespaceName": "sdk-Namespace8408", + "topicName": "sdk-Topics2075", + "authorizationRuleName": "sdk-Authrules5067", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace8408/topics/sdk-Topics2075/authorizationRules/sdk-Authrules5067", + "name": "sdk-Authrules5067", + "type": "Microsoft.ServiceBus/AuthorizationRules", + "properties": { "rights": [ "Listen", "Send" ] } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Topics/SBTopicAutorizationRuleListAll.json b/arm-servicebus/2015-08-01/examples/Topics/SBTopicAutorizationRuleListAll.json new file mode 100644 index 000000000000..755364298715 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Topics/SBTopicAutorizationRuleListAll.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "resourceGroupName": "Default-ServiceBus-WestUS", + "namespaceName": "sdk-Namespace8408", + "topicName": "sdk-Topics2075", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace8408/topics/sdk-Topics2075/authorizationRules/sdk-Authrules5067", + "name": "sdk-Authrules5067", + "type": "Microsoft.ServiceBus/AuthorizationRules", + "properties": { "rights": [ "Listen", "Send" ] } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Topics/SBTopicCreate.json b/arm-servicebus/2015-08-01/examples/Topics/SBTopicCreate.json new file mode 100644 index 000000000000..d832734ba991 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Topics/SBTopicCreate.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace4191", + "resourceGroupName": "Default-ServiceBus-WestUS", + "topicName": "sdk-Topics1377", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "parameters": { + "location": "West US" + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace4191/topics/sdk-Topics1377", + "name": "sdk-Topics1377", + "type": "Microsoft.ServiceBus/Topic", + "properties": { + "defaultMessageTimeToLive": "10675199.02:48:05.4775807", + "maxSizeInMegabytes": 1024, + "requiresDuplicateDetection": false, + "duplicateDetectionHistoryTimeWindow": "00:10:00", + "enableBatchedOperations": true, + "sizeInBytes": 0, + "status": "Active", + "createdAt": "2017-03-12T16:54:30.4Z", + "updatedAt": "2017-03-12T16:54:30.45Z", + "supportOrdering": true, + "autoDeleteOnIdle": "10675199.02:48:05.4775807", + "enablePartitioning": false, + "enableExpress": false + } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Topics/SBTopicDelete.json b/arm-servicebus/2015-08-01/examples/Topics/SBTopicDelete.json new file mode 100644 index 000000000000..5db3b7df9596 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Topics/SBTopicDelete.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace3082", + "resourceGroupName": "Default-ServiceBus-WestUS", + "topicName": "sdk-Topics1377", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": {}, + "204": {} + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Topics/SBTopicGet.json b/arm-servicebus/2015-08-01/examples/Topics/SBTopicGet.json new file mode 100644 index 000000000000..f1fd4a6c0ff8 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Topics/SBTopicGet.json @@ -0,0 +1,42 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace4191", + "resourceGroupName": "Default-ServiceBus-WestUS", + "topicName": "sdk-Topics1377", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace4191/topics/sdk-Topics1377", + "name": "sdk-Topics1377", + "type": "Microsoft.ServiceBus/Topic", + "properties": { + "defaultMessageTimeToLive": "10675199.02:48:05.4775807", + "maxSizeInMegabytes": 1024, + "requiresDuplicateDetection": false, + "duplicateDetectionHistoryTimeWindow": "00:10:00", + "enableBatchedOperations": true, + "sizeInBytes": 0, + "status": "Active", + "createdAt": "2017-03-12T16:54:30.4Z", + "updatedAt": "2017-03-12T16:54:30.45Z", + "accessedAt": "0001-01-01T00:00:00Z", + "supportOrdering": true, + "countDetails": { + "activeMessageCount": 0, + "deadLetterMessageCount": 0, + "scheduledMessageCount": 0, + "transferMessageCount": 0, + "transferDeadLetterMessageCount": 0 + }, + "subscriptionCount": 0, + "autoDeleteOnIdle": "10675199.02:48:05.4775807", + "enablePartitioning": false, + "enableExpress": false + } + } + } + } +} diff --git a/arm-servicebus/2015-08-01/examples/Topics/SBTopicListByNameSpace.json b/arm-servicebus/2015-08-01/examples/Topics/SBTopicListByNameSpace.json new file mode 100644 index 000000000000..dbf4665179e8 --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Topics/SBTopicListByNameSpace.json @@ -0,0 +1,45 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace4191", + "resourceGroupName": "Default-ServiceBus-WestUS", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace4191/topics/sdk-topics1377", + "name": "sdk-topics1377", + "type": "Microsoft.ServiceBus/Topic", + "properties": { + "defaultMessageTimeToLive": "10675199.02:48:05.4775807", + "maxSizeInMegabytes": 1024, + "requiresDuplicateDetection": false, + "duplicateDetectionHistoryTimeWindow": "00:10:00", + "enableBatchedOperations": true, + "sizeInBytes": 0, + "status": "Active", + "createdAt": "2017-03-12T16:54:30.4Z", + "updatedAt": "2017-03-12T16:54:30.45Z", + "accessedAt": "0001-01-01T00:00:00Z", + "supportOrdering": true, + "countDetails": { + "activeMessageCount": 0, + "deadLetterMessageCount": 0, + "scheduledMessageCount": 0, + "transferMessageCount": 0, + "transferDeadLetterMessageCount": 0 + }, + "subscriptionCount": 0, + "autoDeleteOnIdle": "10675199.02:48:05.4775807", + "enablePartitioning": false, + "enableExpress": false + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/examples/Topics/SBTopicUpdate.json b/arm-servicebus/2015-08-01/examples/Topics/SBTopicUpdate.json new file mode 100644 index 000000000000..8fd7e747e79a --- /dev/null +++ b/arm-servicebus/2015-08-01/examples/Topics/SBTopicUpdate.json @@ -0,0 +1,25 @@ +{ + "parameters": { + "namespaceName": "sdk-Namespace4191", + "resourceGroupName": "Default-ServiceBus-WestUS", + "topicName": "sdk-Topics1377", + "api-version": "2015-08-01", + "subscriptionId": "e2f361f0-3b27-4503-a9cc-21cfba380093", + "properties": { + "enableExpress": true + } + }, + "responses": { + "200": { + "body": { + "id": "/subscriptions/e2f361f0-3b27-4503-a9cc-21cfba380093/resourceGroups/Default-ServiceBus-WestUS/providers/Microsoft.ServiceBus/namespaces/sdk-Namespace4191/topics/sdk-Topics1377", + "name": "sdk-Topics1377", + "type": "Microsoft.ServiceBus/Topic", + "properties": { + "maxSizeInMegabytes": 1024, + "enableExpress": true + } + } + } + } +} \ No newline at end of file diff --git a/arm-servicebus/2015-08-01/swagger/servicebus.json b/arm-servicebus/2015-08-01/swagger/servicebus.json index 71c5f94a0a80..73964a62bfae 100644 --- a/arm-servicebus/2015-08-01/swagger/servicebus.json +++ b/arm-servicebus/2015-08-01/swagger/servicebus.json @@ -40,6 +40,9 @@ "Operations" ], "operationId": "Operations_List", + "x-ms-examples": { + "OperationsList": { "$ref": "../examples/SBOperations_List.json" } + }, "description": "Lists all of the available ServiceBus REST API operations.", "parameters": [ { @@ -65,6 +68,9 @@ "Namespaces" ], "operationId": "Namespaces_CheckNameAvailability", + "x-ms-examples": { + "NameSpaceCheckNameAvailability": { "$ref": "../examples/NameSpaces/SBNameSpaceCheckNameAvailability.json" } + }, "description": "Check the give namespace name availability.", "parameters": [ { @@ -98,7 +104,10 @@ "tags": [ "Namespaces" ], - "operationId": "Namespaces_List", + "operationId": "Namespaces_ListBySubscription", + "x-ms-examples": { + "NameSpaceList": { "$ref": "../examples/NameSpaces/SBNameSpaceList.json" } + }, "description": "Gets all the available namespaces within the subscription, irrespective of the resource groups.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639412.aspx" @@ -130,6 +139,9 @@ "Namespaces" ], "operationId": "Namespaces_ListByResourceGroup", + "x-ms-examples": { + "NameSpaceListByResourceGroup": { "$ref": "../examples/NameSpaces/SBNameSpaceListByResourceGroup.json" } + }, "description": "Gets the available namespaces within a resource group.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639412.aspx" @@ -164,6 +176,9 @@ "Namespaces" ], "operationId": "Namespaces_CreateOrUpdate", + "x-ms-examples": { + "NameSpaceCreate": { "$ref": "../examples/NameSpaces/SBNameSpaceCreate.json" } + }, "description": "Creates or updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639408.aspx" @@ -173,14 +188,18 @@ "$ref": "#/parameters/resourceGroupNameParameter" }, { - "$ref": "#/parameters/namespaceNameParameter" + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." }, { "name": "parameters", "in": "body", "required": true, "schema": { - "$ref": "#/definitions/Namespace" + "$ref": "#/definitions/NamespaceCreateOrUpdateParameters" }, "description": "Parameters supplied to create a namespace resource." }, @@ -195,13 +214,13 @@ "201": { "description": "Namespace create request accepted.", "schema": { - "$ref": "#/definitions/Namespace" + "$ref": "#/definitions/NamespaceResource" } }, "200": { "description": "Namespace created successfully.", "schema": { - "$ref": "#/definitions/Namespace" + "$ref": "#/definitions/NamespaceResource" } }, "202": { @@ -215,6 +234,9 @@ "Namespaces" ], "operationId": "Namespaces_Delete", + "x-ms-examples": { + "NameSpaceDelete": { "$ref": "../examples/NameSpaces/SBNameSpaceDelete.json" } + }, "description": "Deletes an existing namespace. This operation also removes all associated resources under the namespace.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639389.aspx" @@ -251,6 +273,9 @@ "Namespaces" ], "operationId": "Namespaces_Get", + "x-ms-examples": { + "NameSpaceGet": { "$ref": "../examples/NameSpaces/SBNameSpaceGet.json" } + }, "description": "Gets a description for the specified namespace.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639379.aspx" @@ -273,7 +298,7 @@ "200": { "description": "Namespace successfully returned.", "schema": { - "$ref": "#/definitions/Namespace" + "$ref": "#/definitions/NamespaceResource" } } } @@ -283,6 +308,9 @@ "Namespaces" ], "operationId": "Namespaces_Update", + "x-ms-examples": { + "NameSpaceUpdate": { "$ref": "../examples/NameSpaces/SBNameSpaceUpdate.json" } + }, "description": "Updates a service namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.", "parameters": [ { @@ -311,13 +339,13 @@ "201": { "description": "Namespace update request accepted.", "schema": { - "$ref": "#/definitions/Namespace" + "$ref": "#/definitions/NamespaceResource" } }, "200": { "description": "Namespace updated successfully.", "schema": { - "$ref": "#/definitions/Namespace" + "$ref": "#/definitions/NamespaceResource" } }, "202": { @@ -332,6 +360,9 @@ "Namespaces" ], "operationId": "Namespaces_ListAuthorizationRules", + "x-ms-examples": { + "NameSpaceAutorizationRuleListAll": { "$ref": "../examples/NameSpaces/SBNameSpaceAutorizationRuleListAll.json" } + }, "description": "Gets the authorization rules for a namespace.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639376.aspx" @@ -369,6 +400,9 @@ "Namespaces" ], "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", + "x-ms-examples": { + "NameSpaceAuthorizationRuleCreate": { "$ref": "../examples/NameSpaces/SBNameSpaceAuthorizationRuleCreate.json" } + }, "description": "Creates or updates an authorization rule for a namespace.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639410.aspx" @@ -388,7 +422,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRule" + "$ref": "#/definitions/SharedAccessAuthorizationRuleCreateOrUpdateParameters" }, "description": "The shared access authorization rule." }, @@ -403,7 +437,7 @@ "200": { "description": "Namespace authorization rule created.", "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRule" + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } } } @@ -413,6 +447,9 @@ "Namespaces" ], "operationId": "Namespaces_DeleteAuthorizationRule", + "x-ms-examples": { + "NameSpaceAutorizationRuleDelete": { "$ref": "../examples/NameSpaces/SBNameSpaceAutorizationRuleDelete.json" } + }, "description": "Deletes a namespace authorization rule.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639417.aspx" @@ -448,6 +485,9 @@ "Namespaces" ], "operationId": "Namespaces_GetAuthorizationRule", + "x-ms-examples": { + "NameSpaceAutorizationRuleGet": { "$ref": "../examples/NameSpaces/SBNameSpaceAutorizationRuleGet.json" } + }, "description": "Gets an authorization rule for a namespace by rule name.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639392.aspx" @@ -473,7 +513,7 @@ "200": { "description": "Namespace authorization rule returned successfully.", "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRule" + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } } } @@ -485,6 +525,9 @@ "Namespaces" ], "operationId": "Namespaces_ListKeys", + "x-ms-examples": { + "NameSpaceAuthorizationRuleListKey": { "$ref": "../examples/NameSpaces/SBNameSpaceAuthorizationRuleListKey.json" } + }, "description": "Gets the primary and secondary connection strings for the namespace.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639398.aspx" @@ -522,6 +565,9 @@ "Namespaces" ], "operationId": "Namespaces_RegenerateKeys", + "x-ms-examples": { + "NameSpaceAuthorizationRuleRegenrateKey": { "$ref": "../examples/NameSpaces/SBNameSpaceAuthorizationRuleRegenrateKey.json" } + }, "description": "Regenerates the primary or secondary connection strings for the namespace.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt718977.aspx" @@ -567,7 +613,10 @@ "tags": [ "Queues" ], - "operationId": "Queues_ListByNamespace", + "operationId": "Queues_ListAll", + "x-ms-examples": { + "QueueListByNameSpace": { "$ref": "../examples/Queues/SBQueueListByNameSpace.json" } + }, "description": "Gets the queues within a namespace.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639415.aspx" @@ -605,6 +654,9 @@ "Queues" ], "operationId": "Queues_CreateOrUpdate", + "x-ms-examples": { + "QueueCreate": { "$ref": "../examples/Queues/SBQueueCreate.json" } + }, "description": "Creates or updates a Service Bus queue. This operation is idempotent.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639395.aspx" @@ -624,7 +676,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/Queue" + "$ref": "#/definitions/QueueCreateOrUpdateParameters" }, "description": "Parameters supplied to create or update a queue resource." }, @@ -639,7 +691,7 @@ "200": { "description": "Queue successfully created.", "schema": { - "$ref": "#/definitions/Queue" + "$ref": "#/definitions/QueueResource" } } } @@ -649,6 +701,9 @@ "Queues" ], "operationId": "Queues_Delete", + "x-ms-examples": { + "QueueDelete": { "$ref": "../examples/Queues/SBQueueDelete.json" } + }, "description": "Deletes a queue from the specified namespace in a resource group.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639411.aspx" @@ -684,6 +739,9 @@ "Queues" ], "operationId": "Queues_Get", + "x-ms-examples": { + "QueueGet": { "$ref": "../examples/Queues/SBQueueGet.json" } + }, "description": "Returns a description for the specified queue.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639380.aspx" @@ -709,7 +767,7 @@ "200": { "description": "Queue description successfully returned.", "schema": { - "$ref": "#/definitions/Queue" + "$ref": "#/definitions/QueueResource" } } } @@ -721,6 +779,9 @@ "Queues" ], "operationId": "Queues_ListAuthorizationRules", + "x-ms-examples": { + "QueueAutorizationRuleListAll": { "$ref": "../examples/Queues/SBQueueAutorizationRuleListAll.json" } + }, "description": "Gets all authorization rules for a queue.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt705607.aspx" @@ -761,6 +822,9 @@ "Queues" ], "operationId": "Queues_CreateOrUpdateAuthorizationRule", + "x-ms-examples": { + "QueueAuthorizationRuleCreate": { "$ref": "../examples/Queues/SBQueueAuthorizationRuleCreate.json" } + }, "description": "Creates an authorization rule for a queue.", "parameters": [ { @@ -780,7 +844,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRule" + "$ref": "#/definitions/SharedAccessAuthorizationRuleCreateOrUpdateParameters" }, "description": "The shared access authorization rule." }, @@ -795,7 +859,7 @@ "200": { "description": "Authorization rule successfully created.", "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRule" + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } } } @@ -805,6 +869,9 @@ "Queues" ], "operationId": "Queues_DeleteAuthorizationRule", + "x-ms-examples": { + "QueueAutorizationRuleDelete": { "$ref": "../examples/Queues/SBQueueAutorizationRuleDelete.json" } + }, "description": "Deletes a queue authorization rule.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt705609.aspx" @@ -843,6 +910,9 @@ "Queues" ], "operationId": "Queues_GetAuthorizationRule", + "x-ms-examples": { + "QueueAutorizationRuleGet": { "$ref": "../examples/Queues/SBQueueAutorizationRuleGet.json" } + }, "description": "Gets an authorization rule for a queue by rule name.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt705611.aspx" @@ -871,7 +941,7 @@ "200": { "description": "Authorization rule successfully returned.", "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRule" + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } } } @@ -883,6 +953,9 @@ "Queues" ], "operationId": "Queues_ListKeys", + "x-ms-examples": { + "QueueAuthorizationRuleListKey": { "$ref": "../examples/Queues/SBQueueAuthorizationRuleListKey.json" } + }, "description": "Primary and secondary connection strings to the queue.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt705608.aspx" @@ -923,6 +996,9 @@ "Queues" ], "operationId": "Queues_RegenerateKeys", + "x-ms-examples": { + "QueueAuthorizationRuleRegenrateKey": { "$ref": "../examples/Queues/SBQueueAuthorizationRuleRegenrateKey.json" } + }, "description": "Regenerates the primary or secondary connection strings to the queue.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt705606.aspx" @@ -971,7 +1047,10 @@ "tags": [ "Topics" ], - "operationId": "Topics_ListByNamespace", + "operationId": "Topics_ListAll", + "x-ms-examples": { + "TopicGet": { "$ref": "../examples/Topics/SBTopicListByNameSpace.json" } + }, "description": "Gets all the topics in a namespace.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639388.aspx" @@ -1009,6 +1088,9 @@ "Topics" ], "operationId": "Topics_CreateOrUpdate", + "x-ms-examples": { + "TopicCreate": { "$ref": "../examples/Topics/SBTopicCreate.json" } + }, "description": "Creates a topic in the specified namespace.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639409.aspx" @@ -1028,7 +1110,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/Topic" + "$ref": "#/definitions/TopicCreateOrUpdateParameters" }, "description": "Parameters supplied to create a topic resource." }, @@ -1043,7 +1125,7 @@ "200": { "description": "Topic successfully created.", "schema": { - "$ref": "#/definitions/Topic" + "$ref": "#/definitions/TopicResource" } } } @@ -1053,6 +1135,9 @@ "Topics" ], "operationId": "Topics_Delete", + "x-ms-examples": { + "TopicDelete": { "$ref": "../examples/Topics/SBTopicDelete.json" } + }, "description": "Deletes a topic from the specified namespace and resource group.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639404.aspx" @@ -1088,6 +1173,9 @@ "Topics" ], "operationId": "Topics_Get", + "x-ms-examples": { + "TopicGet": { "$ref": "../examples/Topics/SBTopicGet.json" } + }, "description": "Returns a description for the specified topic.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639399.aspx" @@ -1113,7 +1201,7 @@ "200": { "description": "Topic description successfully retrieved.", "schema": { - "$ref": "#/definitions/Topic" + "$ref": "#/definitions/TopicResource" } } } @@ -1125,6 +1213,9 @@ "Topics" ], "operationId": "Topics_ListAuthorizationRules", + "x-ms-examples": { + "TopicAutorizationRuleListAll": { "$ref": "../examples/Topics/SBTopicAutorizationRuleListAll.json" } + }, "description": "Gets authorization rules for a topic.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt720681.aspx" @@ -1165,6 +1256,9 @@ "Topics" ], "operationId": "Topics_CreateOrUpdateAuthorizationRule", + "x-ms-examples": { + "TopicAuthorizationRuleCreate": { "$ref": "../examples/Topics/SBTopicAuthorizationRuleCreate.json" } + }, "description": "Creates an authorizatio rule for the specified topic.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt720678.aspx" @@ -1187,7 +1281,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRule" + "$ref": "#/definitions/SharedAccessAuthorizationRuleCreateOrUpdateParameters" }, "description": "The shared access authorization rule." }, @@ -1202,7 +1296,7 @@ "200": { "description": "Topic authorization rule successfully created.", "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRule" + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } } } @@ -1212,6 +1306,9 @@ "Topics" ], "operationId": "Topics_GetAuthorizationRule", + "x-ms-examples": { + "TopicAutorizationRuleGet": { "$ref": "../examples/Topics/SBTopicAutorizationRuleGet.json" } + }, "description": "Returns the specified authorization rule.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt720676.aspx" @@ -1240,7 +1337,7 @@ "200": { "description": "Topic authorization rule returned successfully.", "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRule" + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" } } } @@ -1250,6 +1347,9 @@ "Topics" ], "operationId": "Topics_DeleteAuthorizationRule", + "x-ms-examples": { + "TopicAutorizationRuleDelete": { "$ref": "../examples/Topics/SBTopicAutorizationRuleDelete.json" } + }, "description": "Deletes a topic authorization rule.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt720681.aspx" @@ -1290,6 +1390,9 @@ "Topics" ], "operationId": "Topics_ListKeys", + "x-ms-examples": { + "TopicAuthorizationRuleListKey": { "$ref": "../examples/Topics/SBTopicAuthorizationRuleListKey.json" } + }, "description": "Gets the primary and secondary connection strings for the topic.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt720677.aspx" @@ -1330,6 +1433,9 @@ "Topics" ], "operationId": "Topics_RegenerateKeys", + "x-ms-examples": { + "TopicAuthorizationRuleRegenrateKey": { "$ref": "../examples/Topics/SBTopicAuthorizationRuleRegenrateKey.json" } + }, "description": "Regenerates primary or secondary connection strings for the topic.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt720679.aspx" @@ -1378,7 +1484,10 @@ "tags": [ "Subscriptions" ], - "operationId": "Subscriptions_ListByTopic", + "operationId": "Subscriptions_ListAll", + "x-ms-examples": { + "SubscriptionListByTopic": { "$ref": "../examples/Subscriptions/SBSubscriptionListByTopic.json" } + }, "description": "List all the subscriptions under a specified topic.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639400.aspx" @@ -1419,6 +1528,9 @@ "Subscriptions" ], "operationId": "Subscriptions_CreateOrUpdate", + "x-ms-examples": { + "SubscriptionCreate": { "$ref": "../examples/Subscriptions/SBSubscriptionCreate.json" } + }, "description": "Creates a topic subscription.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639385.aspx" @@ -1441,7 +1553,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/Subscription" + "$ref": "#/definitions/SubscriptionCreateOrUpdateParameters" }, "description": "Parameters supplied to create a subscription resource." }, @@ -1456,7 +1568,7 @@ "200": { "description": "Subscription create request accepted.", "schema": { - "$ref": "#/definitions/Subscription" + "$ref": "#/definitions/SubscriptionResource" } } } @@ -1466,6 +1578,9 @@ "Subscriptions" ], "operationId": "Subscriptions_Delete", + "x-ms-examples": { + "SubscriptionDelete": { "$ref": "../examples/Subscriptions/SBSubscriptionDelete.json" } + }, "description": "Deletes a subscription from the specified topic.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639381.aspx" @@ -1504,6 +1619,9 @@ "Subscriptions" ], "operationId": "Subscriptions_Get", + "x-ms-examples": { + "SubscriptionGet": { "$ref": "../examples/Subscriptions/SBSubscriptionGet.json" } + }, "description": "Returns a subscription description for the specified topic.", "externalDocs": { "url": "https://msdn.microsoft.com/en-us/library/azure/mt639402.aspx" @@ -1532,7 +1650,7 @@ "200": { "description": "Successfully retrieved subscription description.", "schema": { - "$ref": "#/definitions/Subscription" + "$ref": "#/definitions/SubscriptionResource" } } } @@ -1585,12 +1703,38 @@ "x-ms-azure-resource": true, "description": "The Resource definition for other than namespace." }, + "NamespaceCreateOrUpdateParameters": { + "properties": { + "location": { + "type": "string", + "description": "Namespace location." + }, + "sku": { + "$ref": "#/definitions/Sku" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Namespace tags." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NamespaceProperties" + } + }, + "required": [ + "location" + ], + "description": "Parameters supplied to the Create Or Update Namespace operation." + }, "NamespaceListResult": { "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/Namespace" + "$ref": "#/definitions/NamespaceResource" }, "description": "Result of the List Namespace operation." }, @@ -1601,7 +1745,7 @@ }, "description": "The response of the List Namespace operation." }, - "Namespace": { + "NamespaceResource": { "properties": { "sku": { "$ref": "#/definitions/Sku" @@ -1618,22 +1762,6 @@ ], "description": "Description of a namespace resource." }, - "NamespaceUpdateParameters": { - "properties": { - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - }, - "sku": { - "$ref": "#/definitions/Sku", - "description": "The sku of the created namespace" - } - }, - "description": "Parameters supplied to the Patch Namespace operation." - }, "NamespaceProperties": { "properties": { "provisioningState": { @@ -1641,6 +1769,29 @@ "readOnly": true, "description": "Provisioning state of the namespace." }, + "status": { + "type": "string", + "description": "State of the namespace.", + "enum": [ + "Unknown", + "Creating", + "Created", + "Activating", + "Enabling", + "Active", + "Disabling", + "Disabled", + "SoftDeleting", + "SoftDeleted", + "Removing", + "Removed", + "Failed" + ], + "x-ms-enum": { + "name": "NamespaceState", + "modelAsString": false + } + }, "createdAt": { "type": "string", "format": "date-time", @@ -1658,14 +1809,33 @@ "readOnly": true, "description": "Endpoint you can use to perform Service Bus operations." }, - "metricId": { - "type": "string", - "readOnly": true, - "description": "Identifier for Azure Insights metrics" + "createACSNamespace": { + "type": "boolean", + "description": "Indicates whether to create an ACS namespace." + }, + "enabled": { + "type": "boolean", + "description": "Specifies whether this instance is enabled." } }, "description": "Properties of the namespace." }, + "NamespaceUpdateParameters": { + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + }, + "sku": { + "$ref": "#/definitions/Sku", + "description": "The sku of the created namespace" + } + }, + "description": "Parameters supplied to the Patch Namespace operation." + }, "Sku": { "type": "object", "properties": { @@ -1698,7 +1868,7 @@ "capacity": { "format": "int32", "type": "integer", - "description": "The specified messaging units for the tier. For Premium tier, capacity are 1,2 and 4." + "description": "The specified messaging units for the tier." } }, "required": [ @@ -1706,12 +1876,29 @@ ], "description": "SKU of the namespace." }, + "SharedAccessAuthorizationRuleCreateOrUpdateParameters": { + "properties": { + "location": { + "type": "string", + "description": "data center location." + }, + "name": { + "type": "string", + "description": "Name of the authorization rule." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" + } + }, + "description": "Parameters supplied to the Create Or Update Authorization Rules operation." + }, "SharedAccessAuthorizationRuleListResult": { "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/SharedAccessAuthorizationRule" + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" }, "description": "Result of the List Authorization Rules operation." }, @@ -1722,7 +1909,7 @@ }, "description": "The response to the List Namespace operation." }, - "SharedAccessAuthorizationRule": { + "SharedAccessAuthorizationRuleResource": { "properties": { "properties": { "x-ms-client-flatten": true, @@ -1776,7 +1963,7 @@ }, "secondaryKey": { "type": "string", - "description": "A base64-encoded 256-bit secondary key for signing and validating the SAS token." + "description": "A base64-encoded 256-bit primary key for signing and validating the SAS token." }, "keyName": { "type": "string", @@ -1787,7 +1974,7 @@ }, "RegenerateKeysParameters": { "properties": { - "policykey": { + "Policykey": { "type": "string", "description": "Key that needs to be regenerated.", "enum": [ @@ -1802,12 +1989,32 @@ }, "description": "Parameters supplied to the Regenerate Authorization Rule operation." }, + "QueueCreateOrUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Queue name." + }, + "location": { + "type": "string", + "description": "location of the resource." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/QueueProperties" + } + }, + "required": [ + "location" + ], + "description": "Parameters supplied to the Create Or Update Queue operation." + }, "QueueListResult": { "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/Queue" + "$ref": "#/definitions/QueueResource" }, "description": "Result of the List Queues operation." }, @@ -1818,7 +2025,7 @@ }, "description": "The response to the List Queues operation." }, - "Queue": { + "QueueResource": { "properties": { "properties": { "x-ms-client-flatten": true, @@ -1836,7 +2043,7 @@ "properties": { "lockDuration": { "type": "string", - "description": "The 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. The service accepts a C# Standard TimeSpan Format for loc duration https://msdn.microsoft.com/en-us/library/ee372286(v=vs.110).aspx" + "description": "The 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." }, "accessedAt": { "type": "string", @@ -1846,21 +2053,25 @@ }, "autoDeleteOnIdle": { "type": "string", - "description": "the TimeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes. The service accepts a C# Standard TimeSpan Format for loc duration https://msdn.microsoft.com/en-us/library/ee372286(v=vs.110).aspx. Format is 'DD.HH:MM:SS' and default value of this property is 10675199 days." + "description": "the TimeSpan idle interval after which the queue is automatically deleted. The minimum duration is 5 minutes." + }, + "entityAvailabilityStatus": { + "$ref": "#/definitions/EntityAvailabilityStatus", + "description": "Entity availability status for the queue." }, "createdAt": { "type": "string", "format": "date-time", "readOnly": true, - "description": "The exact time the Queue was created." + "description": "The exact time the message was created." }, "defaultMessageTimeToLive": { "type": "string", - "description": "The default message time 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. Format is 'DD.HH:MM:SS' and default value of this property is 10675199 days. The service accepts a C# Standard TimeSpan Format for loc duration https://msdn.microsoft.com/en-us/library/ee372286(v=vs.110).aspx " + "description": "The default message time 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." }, "duplicateDetectionHistoryTimeWindow": { "type": "string", - "description": "TimeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes. The service accepts a C# Standard TimeSpan Format for loc duration https://msdn.microsoft.com/en-us/library/ee372286(v=vs.110).aspx . Format is 'DD.HH:MM:SS' and default value of this property is 10675199 days" + "description": "TimeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes." }, "enableBatchedOperations": { "type": "boolean", @@ -1878,6 +2089,10 @@ "type": "boolean", "description": "A value that indicates whether the queue is to be partitioned across multiple message brokers." }, + "isAnonymousAccessible": { + "type": "boolean", + "description": "A value that indicates whether the message is accessible anonymously." + }, "maxDeliveryCount": { "format": "int32", "type": "integer", @@ -1914,7 +2129,6 @@ }, "status": { "$ref": "#/definitions/EntityStatus", - "readOnly": true, "description": "Enumerates the possible values for the status of a messaging entity." }, "supportOrdering": { @@ -1925,7 +2139,7 @@ "type": "string", "format": "date-time", "readOnly": true, - "description": "The exact time the Queue was updated." + "description": "The exact time the message was updated." } }, "description": "The Queue Properties definition." @@ -1966,12 +2180,32 @@ }, "description": "Message Count Details." }, + "TopicCreateOrUpdateParameters": { + "properties": { + "name": { + "type": "string", + "description": "Topic name." + }, + "location": { + "type": "string", + "description": "Location of the resource." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/TopicProperties" + } + }, + "required": [ + "location" + ], + "description": "Parameters supplied to the Create Or Update Topic operation." + }, "TopicListResult": { "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/Topic" + "$ref": "#/definitions/TopicResource" }, "description": "Result of the List Topics operation." }, @@ -1982,7 +2216,7 @@ }, "description": "The response to the List Topics operation." }, - "Topic": { + "TopicResource": { "properties": { "properties": { "x-ms-client-flatten": true, @@ -2006,13 +2240,17 @@ }, "autoDeleteOnIdle": { "type": "string", - "description": "TimeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes. The service accepts a C# Standard TimeSpan Format for loc duration https://msdn.microsoft.com/en-us/library/ee372286(v=vs.110).aspx . Format is 'DD.HH:MM:SS' and default value of this property is 10675199 days" + "description": "TimeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes." + }, + "entityAvailabilityStatus": { + "$ref": "#/definitions/EntityAvailabilityStatus", + "description": "Entity availability status for the topic." }, "createdAt": { "type": "string", "format": "date-time", "readOnly": true, - "description": "Exact time the Tpoic was created." + "description": "Exact time the message was created." }, "countDetails": { "readOnly": true, @@ -2020,11 +2258,11 @@ }, "defaultMessageTimeToLive": { "type": "string", - "description": "Default message time 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. The service accepts a C# Standard TimeSpan Format for loc duration https://msdn.microsoft.com/en-us/library/ee372286(v=vs.110).aspx . Format is 'DD.HH:MM:SS' and default value of this property is 10675199 days" + "description": "Default message time 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." }, "duplicateDetectionHistoryTimeWindow": { "type": "string", - "description": "TimeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes. The service accepts a C# Standard TimeSpan Format for loc duration https://msdn.microsoft.com/en-us/library/ee372286(v=vs.110).aspx . Format is 'DD.HH:MM:SS' and default value of this property is 10675199 days" + "description": "TimeSpan structure that defines the duration of the duplicate detection history. The default value is 10 minutes." }, "enableBatchedOperations": { "type": "boolean", @@ -2038,6 +2276,22 @@ "type": "boolean", "description": "Value that indicates whether the topic to be partitioned across multiple message brokers is enabled." }, + "enableSubscriptionPartitioning": { + "type": "boolean", + "description": "Value that indicates whether partitioning is enabled or disabled." + }, + "filteringMessagesBeforePublishing": { + "type": "boolean", + "description": "Whether messages should be filtered before publishing." + }, + "isAnonymousAccessible": { + "type": "boolean", + "description": "Value that indicates whether the message is accessible anonymously." + }, + "isExpress": { + "type": "boolean", + "description": "" + }, "maxSizeInMegabytes": { "format": "int64", "type": "integer", @@ -2055,7 +2309,6 @@ }, "status": { "$ref": "#/definitions/EntityStatus", - "readOnly": true, "description": "Enumerates the possible values for the status of a messaging entity." }, "subscriptionCount": { @@ -2072,17 +2325,37 @@ "type": "string", "format": "date-time", "readOnly": true, - "description": "The exact time the Topic was updated." + "description": "The exact time the message was updated." } }, "description": "The Tpoic Properties definition." }, + "SubscriptionCreateOrUpdateParameters": { + "properties": { + "location": { + "type": "string", + "description": "Subscription data center location." + }, + "type": { + "type": "string", + "description": "Resource manager type of the resource." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SubscriptionProperties" + } + }, + "required": [ + "location" + ], + "description": "Parameters supplied to the Create Or Update Subscription operation." + }, "SubscriptionListResult": { "properties": { "value": { "type": "array", "items": { - "$ref": "#/definitions/Subscription" + "$ref": "#/definitions/SubscriptionResource" }, "description": "Result of the List Subscriptions operation." }, @@ -2093,7 +2366,7 @@ }, "description": "The response to the List Subscriptions operation." }, - "Subscription": { + "SubscriptionResource": { "properties": { "properties": { "x-ms-client-flatten": true, @@ -2117,7 +2390,7 @@ }, "autoDeleteOnIdle": { "type": "string", - "description": "TimeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes. The service accepts a C# Standard TimeSpan Format for loc duration https://msdn.microsoft.com/en-us/library/ee372286(v=vs.110).aspx. Format is 'DD.HH:MM:SS' and default value of this property is 10675199 days" + "description": "TimeSpan idle interval after which the topic is automatically deleted. The minimum duration is 5 minutes." }, "countDetails": { "readOnly": true, @@ -2127,11 +2400,11 @@ "type": "string", "format": "date-time", "readOnly": true, - "description": "Exact time the Subscription was created." + "description": "Exact time the message was created." }, "defaultMessageTimeToLive": { "type": "string", - "description": "Default message time 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. The service accepts a C# Standard TimeSpan Format for loc duration https://msdn.microsoft.com/en-us/library/ee372286(v=vs.110).aspx . Format is 'DD.HH:MM:SS' and default value of this property is 10675199 days" + "description": "Default message time 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." }, "deadLetteringOnFilterEvaluationExceptions": { "type": "boolean", @@ -2145,9 +2418,17 @@ "type": "boolean", "description": "Value that indicates whether server-side batched operations are enabled." }, + "entityAvailabilityStatus": { + "$ref": "#/definitions/EntityAvailabilityStatus", + "description": "Entity availability status for the topic." + }, + "isReadOnly": { + "type": "boolean", + "description": "Value that indicates whether the entity description is read-only." + }, "lockDuration": { "type": "string", - "description": "The lock duration time span for the subscription. The service accepts a C# Standard TimeSpan Format for loc duration https://msdn.microsoft.com/en-us/library/ee372286(v=vs.110).aspx" + "description": "The lock duration time span for the subscription." }, "maxDeliveryCount": { "format": "int32", @@ -2172,11 +2453,26 @@ "type": "string", "format": "date-time", "readOnly": true, - "description": "The exact time the subscription was updated." + "description": "The exact time the message was updated." } }, "description": "Description of Subscription Resource." }, + "EntityAvailabilityStatus": { + "type": "string", + "enum": [ + "Available", + "Limited", + "Renaming", + "Restoring", + "Unknown" + ], + "x-ms-enum": { + "name": "EntityAvailabilityStatus", + "modelAsString": false + }, + "description": "Entity availability status." + }, "EntityStatus": { "type": "string", "enum": [ @@ -2368,4 +2664,4 @@ "description": "The subscription name." } } -} +} \ No newline at end of file