diff --git a/arm-eventhub/2015-08-01/swagger/EventHub.json b/arm-eventhub/2015-08-01/swagger/EventHub.json index 5427f6aa0c79..40d5846e3f4b 100644 --- a/arm-eventhub/2015-08-01/swagger/EventHub.json +++ b/arm-eventhub/2015-08-01/swagger/EventHub.json @@ -1,1788 +1,1773 @@ -{ - "swagger": "2.0", - "info": { - "title": "EventHubManagementClient", - "description": "Azure Event Hubs client", - "version": "2015-08-01" - }, - "host": "management.azure.com", - "schemes": [ - "https" - ], - "consumes": [ - "application/json", - "text/json" - ], - "produces": [ - "application/json", - "text/json" - ], - "security": [ - { - "azure_auth": [ - "user_impersonation" - ] - } - ], - "securityDefinitions": { - "azure_auth": { - "type": "oauth2", - "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", - "flow": "implicit", - "description": "Azure Active Directory OAuth2 Flow", - "scopes": { - "user_impersonation": "impersonate your user account" - } - } - }, - "paths": { - "/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/namespaces": { - "get": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_ListBySubscription", - "description": "Lists all the available namespaces within a subscription, irrespective of the resource groups.", - "parameters": [ - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Namespaces returned successfully.", - "schema": { - "$ref": "#/definitions/NamespaceListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces": { - "get": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_ListByResourceGroup", - "description": "Lists the available namespaces within a resource group.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Namespaces returned successfully.", - "schema": { - "$ref": "#/definitions/NamespaceListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}": { - "put": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_CreateOrUpdate", - "description": "Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/NamespaceCreateOrUpdateParameters" - }, - "description": "Parameters for creating a namespace resource." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "201": { - "description": "Namespace create request accepted.", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - }, - "200": { - "description": "Namespace successfuly created.", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - } - }, - "x-ms-long-running-operation": true - }, - "delete": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_Delete", - "description": "Deletes an existing namespace. This operation also removes all associated resources under the namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group in which the namespace lives." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the namespace to delete." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "204": { - "description": "No content." - }, - "200": { - "description": "Namespace successfuly deleted." - }, - "202": { - "description": "Namespace delete request accepted." - } - }, - "x-ms-long-running-operation": true - }, - "get": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_Get", - "description": "Gets the description of the specified namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group in which the namespace lives." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the specified namespace." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Namespace returned successfully.", - "schema": { - "$ref": "#/definitions/NamespaceResource" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules": { - "get": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_ListAuthorizationRules", - "description": "Gets a list of authorization rules for a namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group in which the namespace lives." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Namespace authorization rule successfully returned.", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}": { - "put": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", - "description": "Creates or updates an authorization rule for a namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group in which the namespace lives." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "Namespace authorization rule name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleCreateOrUpdateParameters" - }, - "description": "The shared access authorization rule." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Namespace authorization rule created", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - } - } - }, - "delete": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_DeleteAuthorizationRule", - "description": "Deletes an authorization rule for a namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group in which the namespace lives." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "Authorization rule name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "204": { - "description": "No content." - }, - "200": { - "description": "Namespace authorization rule successfully deleted." - } - } - }, - "get": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_GetAuthorizationRule", - "description": "Gets an authorization rule for a namespace by rule name.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group in which the namespace lives." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "Authorization rule name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Namespace authorization rule returned successfully.", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys": { - "post": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_ListKeys", - "description": "Gets the primary and secondary connection strings for the namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group in which the namespace lives." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "The authorization rule name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Connection strings returned successfully.", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys": { - "post": { - "tags": [ - "Namespaces" - ], - "operationId": "Namespaces_RegenerateKeys", - "description": "Regenerates the primary or secondary connection strings for the specified namespace.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group in which the namespace lives." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "The authorization rule name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/RegenerateKeysParameters" - }, - "description": "Parameters required to regenerate the connection string." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Connection strings regenerated successfully.", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs": { - "get": { - "tags": [ - "EventHubs" - ], - "operationId": "EventHubs_ListAll", - "description": "Gets all the Event Hubs in a namespace.", - "externalDocs": { - "url": "https://msdn.microsoft.com/en-us/library/azure/mt639493.aspx" - }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the list of Event Hubs.", - "schema": { - "$ref": "#/definitions/EventHubListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}": { - "put": { - "tags": [ - "EventHubs" - ], - "operationId": "EventHubs_CreateOrUpdate", - "description": "Creates or updates a new Event Hub as a nested resource within a namespace.", - "externalDocs": { - "url": "https://msdn.microsoft.com/en-us/library/azure/mt639497.aspx" - }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "eventHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The Event Hub name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/EventHubCreateOrUpdateParameters" - }, - "description": "Parameters supplied to create an Event Hub resource." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Event Hub successfully created.", - "schema": { - "$ref": "#/definitions/EventHubResource" - } - } - } - }, - "delete": { - "tags": [ - "EventHubs" - ], - "operationId": "EventHubs_Delete", - "description": "Deletes an Event Hub from the specified namespace and resource group.", - "externalDocs": { - "url": "https://msdn.microsoft.com/en-us/library/azure/mt639496.aspx" - }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "eventHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the Event Hub to delete." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "204": { - "description": "No content." - }, - "200": { - "description": "Event Hub successfully deleted." - } - } - }, - "get": { - "tags": [ - "EventHubs" - ], - "operationId": "EventHubs_Get", - "description": "Gets an Event Hubs description for the specified Event Hub.", - "externalDocs": { - "url": "https://msdn.microsoft.com/en-us/library/azure/mt639501.aspx" - }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "eventHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The Event Hub name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the Event Hub description.", - "schema": { - "$ref": "#/definitions/EventHubResource" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules": { - "get": { - "tags": [ - "EventHubs" - ], - "operationId": "EventHubs_ListAuthorizationRules", - "description": "Gets the authorization rules for an Event Hub.", - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name" - }, - { - "name": "eventHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The Event Hub name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Event Hub authorization rule returned successfully.", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}": { - "put": { - "tags": [ - "EventHubs" - ], - "operationId": "EventHubs_CreateOrUpdateAuthorizationRule", - "description": "Creates or updates an authorization rule for the specified Event Hub.", - "externalDocs": { - "url": "https://msdn.microsoft.com/en-us/library/azure/mt706096.aspx" - }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "eventHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The Event Hub name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "The authorization rule name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleCreateOrUpdateParameters" - }, - "description": "The shared access authorization rule." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Event Hubs authorization rule successfully created.", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - } - } - }, - "get": { - "tags": [ - "EventHubs" - ], - "operationId": "EventHubs_GetAuthorizationRule", - "description": "Gets an authorization rule for an Event Hub by rule name.", - "externalDocs": { - "url": "https://msdn.microsoft.com/en-us/library/azure/mt706097.aspx" - }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "eventHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The Event Hub name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "The authorization rule name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Event Hub authorization rule successfully returned.", - "schema": { - "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" - } - } - } - }, - "delete": { - "tags": [ - "EventHubs" - ], - "operationId": "EventHubs_DeleteAuthorizationRule", - "description": "Deletes an Event Hubs authorization rule.", - "externalDocs": { - "url": "https://msdn.microsoft.com/en-us/library/azure/mt706100.aspx" - }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "eventHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The Event Hub name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "The authorization rule name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "204": { - "description": "No content." - }, - "200": { - "description": "Event Hub authorization rule successfully deleted." - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/ListKeys": { - "post": { - "tags": [ - "EventHubs" - ], - "operationId": "EventHubs_ListKeys", - "description": "Gets the ACS and SAS connection strings for the Event Hub.", - "externalDocs": { - "url": "https://msdn.microsoft.com/en-us/library/azure/mt706098.aspx" - }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "eventHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The Event Hub name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "The connection string of the namespace for the specified authorization rule." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Connection strings successfully returned.", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { - "post": { - "tags": [ - "EventHubs" - ], - "operationId": "EventHubs_RegenerateKeys", - "description": "Regenerates the ACS and SAS connection strings for the Event Hub.", - "externalDocs": { - "url": "https://msdn.microsoft.com/en-us/library/azure/mt706099.aspx" - }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "eventHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The Event Hub name." - }, - { - "name": "authorizationRuleName", - "in": "path", - "required": true, - "type": "string", - "description": "The connection string of the Event Hub for the specified authorization rule." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/RegenerateKeysParameters" - }, - "description": "Parameters supplied to regenerate the authorization rule." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Connection strings successfully regenerated.", - "schema": { - "$ref": "#/definitions/ResourceListKeys" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}": { - "put": { - "tags": [ - "ConsumerGroups" - ], - "operationId": "ConsumerGroups_CreateOrUpdate", - "description": "Creates or updates an Event Hubs consumer group as a nested resource within a namespace.", - "externalDocs": { - "url": "https://msdn.microsoft.com/en-us/library/azure/mt639498.aspx" - }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "eventHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The Event Hub name." - }, - { - "name": "consumerGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The consumer group name." - }, - { - "name": "parameters", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/ConsumerGroupCreateOrUpdateParameters" - }, - "description": "Parameters supplied to create a consumer group resource." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Consumer group successfully created.", - "schema": { - "$ref": "#/definitions/ConsumerGroupResource" - } - } - } - }, - "delete": { - "tags": [ - "ConsumerGroups" - ], - "operationId": "ConsumerGroups_Delete", - "description": "Deletes a consumer group from the specified Event Hub and resource group.", - "externalDocs": { - "url": "https://msdn.microsoft.com/en-us/library/azure/mt639491.aspx" - }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "eventHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The Event Hub name." - }, - { - "name": "consumerGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The Cconsumer group name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "204": { - "description": "No content." - }, - "200": { - "description": "Consumer group deleted." - } - } - }, - "get": { - "tags": [ - "ConsumerGroups" - ], - "operationId": "ConsumerGroups_Get", - "description": "Gets a description for the specified consumer group.", - "externalDocs": { - "url": "https://msdn.microsoft.com/en-us/library/azure/mt639488.aspx" - }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "eventHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The Event Hub name." - }, - { - "name": "consumerGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The consumer group name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the consumer group description.", - "schema": { - "$ref": "#/definitions/ConsumerGroupResource" - } - } - } - } - }, - "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups": { - "get": { - "tags": [ - "ConsumerGroups" - ], - "operationId": "ConsumerGroups_ListAll", - "description": "Gets all the consumer groups in a namespace. An empty feed is returned if no consumer group exists in the namespace.", - "externalDocs": { - "url": "https://msdn.microsoft.com/en-us/library/azure/mt639503.aspx" - }, - "parameters": [ - { - "name": "resourceGroupName", - "in": "path", - "required": true, - "type": "string", - "description": "The name of the resource group." - }, - { - "name": "namespaceName", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace name." - }, - { - "name": "eventHubName", - "in": "path", - "required": true, - "type": "string", - "description": "The Event Hub name." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/SubscriptionIdParameter" - } - ], - "responses": { - "200": { - "description": "Successfully retrieved the list of consumer groups.", - "schema": { - "$ref": "#/definitions/ConsumerGroupListResult" - } - } - }, - "x-ms-pageable": { - "nextLinkName": "nextLink" - } - } - } - }, - "definitions": { - "Resource": { - "properties": { - "id": { - "readOnly": true, - "type": "string", - "description": "Resource Id" - }, - "name": { - "readOnly": true, - "type": "string", - "description": "Resource name" - }, - "type": { - "readOnly": true, - "type": "string", - "description": "Resource type" - }, - "location": { - "type": "string", - "description": "Resource location" - }, - "tags": { - "type": "object", - "additionalProperties": { - "type": "string" - }, - "description": "Resource tags" - } - }, - "required": [ - "location" - ], - "x-ms-azure-resource": true - }, - "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/NamespaceResource" - }, - "description": "Result of the List Namespace operation." - }, - "nextLink": { - "type": "string", - "description": "Link to the next set of results. Not empty if Value contains incomplete list of namespaces." - } - }, - "description": "The response of the List Namespace operation." - }, - "NamespaceResource": { - "properties": { - "sku": { - "$ref": "#/definitions/Sku" - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/NamespaceProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Description of a namespace resource." - }, - "NamespaceProperties": { - "properties": { - "provisioningState": { - "type": "string", - "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", - "description": "The time the namespace was created." - }, - "updatedAt": { - "type": "string", - "format": "date-time", - "description": "The time the namespace was updated." - }, - "serviceBusEndpoint": { - "externalDocs": { - "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx" - }, - "type": "string", - "description": "Endpoint you can use to perform Service Bus operations." - }, - "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." - }, - "Sku": { - "type": "object", - "properties": { - "name": { - "type": "string", - "description": "Name of this SKU.", - "enum": [ - "Basic", - "Standard", - "Premium" - ], - "x-ms-enum": { - "name": "SkuName", - "modelAsString": true - } - }, - "tier": { - "type": "string", - "description": "The billing tier of this particular SKU.", - "enum": [ - "Basic", - "Standard", - "Premium" - ], - "x-ms-enum": { - "name": "SkuTier", - "modelAsString": true - } - }, - "capacity": { - "format": "int32", - "type": "integer", - "description": "The Event Hubs throughput units." - } - }, - "required": [ - "tier" - ], - "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/SharedAccessAuthorizationRuleResource" - }, - "description": "Result of the List Authorization Rules operation." - }, - "nextLink": { - "type": "string", - "description": "Link to the next set of results. Not empty if Value contains an incomplete list of Authorization Rules" - } - }, - "description": "The response from the List Namespace operation." - }, - "SharedAccessAuthorizationRuleResource": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Description of a namespace authorization rule." - }, - "SharedAccessAuthorizationRuleProperties": { - "properties": { - "rights": { - "type": "array", - "items": { - "type": "string", - "enum": [ - "Manage", - "Send", - "Listen" - ], - "x-ms-enum": { - "name": "AccessRights", - "modelAsString": false - } - }, - "description": "The rights associated with the rule." - } - }, - "required": [ - "rights" - ], - "description": "SharedAccessAuthorizationRule properties." - }, - "ResourceListKeys": { - "properties": { - "primaryConnectionString": { - "type": "string", - "description": "Primary connection string of the created namespace authorization rule." - }, - "secondaryConnectionString": { - "type": "string", - "description": "Secondary connection string of the created namespace authorization rule." - }, - "primaryKey": { - "type": "string", - "description": "A base64-encoded 256-bit primary key for signing and validating the SAS token." - }, - "secondaryKey": { - "type": "string", - "description": "A base64-encoded 256-bit primary key for signing and validating the SAS token." - }, - "keyName": { - "type": "string", - "description": "A string that describes the authorization rule." - } - }, - "description": "Namespace/EventHub Connection String" - }, - "RegenerateKeysParameters": { - "properties": { - "Policykey": { - "type": "string", - "description": "Key that needs to be regenerated.", - "enum": [ - "PrimaryKey", - "SecondaryKey" - ], - "x-ms-enum": { - "name": "Policykey", - "modelAsString": false - } - } - }, - "description": "Parameters supplied to the Regenerate Authorization Rule operation." - }, - "EventHubCreateOrUpdateParameters": { - "properties": { - "location": { - "type": "string", - "description": "Location of the resource." - }, - "type": { - "type": "string", - "description": "ARM type of the namespace." - }, - "name": { - "type": "string", - "description": "Name of the Event Hub." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/EventHubProperties" - } - }, - "required": [ - "location" - ], - "description": "Parameters supplied to the Create Or Update Event Hub operation." - }, - "EventHubProperties": { - "properties": { - "createdAt": { - "type": "string", - "format": "date-time", - "description": "Exact time the Event Hub was created." - }, - "messageRetentionInDays": { - "format": "int64", - "type": "integer", - "description": "Number of days to retain the events for this Event Hub." - }, - "partitionCount": { - "format": "int64", - "type": "integer", - "description": "Number of partitions created for the Event Hub." - }, - "partitionIds": { - "type": "array", - "items": { - "type": "string" - }, - "description": "Current number of shards on the Event Hub." - }, - "status": { - "type": "string", - "description": "Enumerates the possible values for the status of the Event Hub.", - "enum": [ - "Active", - "Disabled", - "Restoring", - "SendDisabled", - "ReceiveDisabled", - "Creating", - "Deleting", - "Renaming", - "Unknown" - ], - "x-ms-enum": { - "name": "EntityStatus", - "modelAsString": false - } - }, - "updatedAt": { - "type": "string", - "format": "date-time", - "description": "The exact time the message was updated." - } - } - }, - "EventHubResource": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/EventHubProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Description of the Event Hub resource." - }, - "EventHubListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/EventHubResource" - }, - "description": "Result of the List Event Hubs operation." - }, - "nextLink": { - "type": "string", - "description": "Link to the next set of results. Not empty if Value contains incomplete list of Event Hubs." - } - }, - "description": "The response of the List Event Hubs operation." - }, - "ConsumerGroupCreateOrUpdateParameters": { - "properties": { - "location": { - "type": "string", - "description": "Location of the resource." - }, - "type": { - "type": "string", - "description": "ARM type of the namespace." - }, - "name": { - "type": "string", - "description": "Name of the consumer group." - }, - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ConsumerGroupProperties" - } - }, - "required": [ - "location" - ], - "description": "Parameters supplied to the Create Or Update Consumer Group operation." - }, - "ConsumerGroupProperties": { - "properties": { - "createdAt": { - "type": "string", - "format": "date-time", - "description": "Exact time the message was created." - }, - "eventHubPath": { - "type": "string", - "description": "The path of the Event Hub." - }, - "updatedAt": { - "type": "string", - "format": "date-time", - "description": "The exact time the message was updated." - }, - "userMetadata": { - "type": "string", - "description": "The user metadata." - } - } - }, - "ConsumerGroupResource": { - "properties": { - "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ConsumerGroupProperties" - } - }, - "allOf": [ - { - "$ref": "#/definitions/Resource" - } - ], - "description": "Description of the consumer group resource." - }, - "ConsumerGroupListResult": { - "properties": { - "value": { - "type": "array", - "items": { - "$ref": "#/definitions/ConsumerGroupResource" - }, - "description": "Result of the List Consumer Group operation." - }, - "nextLink": { - "type": "string", - "description": "Link to the next set of results. Not empty if Value contains incomplete list of Consumer Group" - } - }, - "description": "The response to the List Consumer Group operation." - } - }, - "parameters": { - "SubscriptionIdParameter": { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "Client API Version." - } - } +{ + "swagger": "2.0", + "info": { + "title": "EventHubManagementClient", + "description": "Azure Event Hubs client", + "version": "2015-08-01" + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json", + "text/json" + ], + "produces": [ + "application/json", + "text/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/subscriptions/{subscriptionId}/providers/Microsoft.EventHub/namespaces": { + "get": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_ListBySubscription", + "description": "Lists all the available namespaces within a subscription, irrespective of the resource groups.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Namespaces returned successfully.", + "schema": { + "$ref": "#/definitions/NamespaceListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces": { + "get": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_ListByResourceGroup", + "description": "Lists the available namespaces within a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Namespaces returned successfully.", + "schema": { + "$ref": "#/definitions/NamespaceListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}": { + "put": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_CreateOrUpdate", + "description": "Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/NamespaceCreateOrUpdateParameters" + }, + "description": "Parameters for creating a namespace resource." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Namespace create request accepted.", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "200": { + "description": "Namespace successfuly created.", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + }, + "202": { + "description": "Namespace create or update request accepted." + } + }, + "x-ms-long-running-operation": true + }, + "delete": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_Delete", + "description": "Deletes an existing namespace. This operation also removes all associated resources under the namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group in which the namespace lives." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the namespace to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No content." + }, + "200": { + "description": "Namespace successfuly deleted." + }, + "202": { + "description": "Namespace delete request accepted." + } + }, + "x-ms-long-running-operation": true + }, + "get": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_Get", + "description": "Gets the description of the specified namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group in which the namespace lives." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the specified namespace." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Namespace returned successfully.", + "schema": { + "$ref": "#/definitions/NamespaceResource" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules": { + "get": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_ListAuthorizationRules", + "description": "Gets a list of authorization rules for a namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group in which the namespace lives." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Namespace authorization rule successfully returned.", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}": { + "put": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_CreateOrUpdateAuthorizationRule", + "description": "Creates or updates an authorization rule for a namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group in which the namespace lives." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "Namespace authorization rule name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleCreateOrUpdateParameters" + }, + "description": "The shared access authorization rule." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Namespace authorization rule created", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + } + } + }, + "delete": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_DeleteAuthorizationRule", + "description": "Deletes an authorization rule for a namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group in which the namespace lives." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "Authorization rule name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No content." + }, + "200": { + "description": "Namespace authorization rule successfully deleted." + } + } + }, + "get": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_GetAuthorizationRule", + "description": "Gets an authorization rule for a namespace by rule name.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group in which the namespace lives." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "Authorization rule name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Namespace authorization rule returned successfully.", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/listKeys": { + "post": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_ListKeys", + "description": "Gets the primary and secondary connection strings for the namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group in which the namespace lives." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The authorization rule name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Connection strings returned successfully.", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/AuthorizationRules/{authorizationRuleName}/regenerateKeys": { + "post": { + "tags": [ + "Namespaces" + ], + "operationId": "Namespaces_RegenerateKeys", + "description": "Regenerates the primary or secondary connection strings for the specified namespace.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group in which the namespace lives." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The authorization rule name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RegenerateKeysParameters" + }, + "description": "Parameters required to regenerate the connection string." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Connection strings regenerated successfully.", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs": { + "get": { + "tags": [ + "EventHubs" + ], + "operationId": "EventHubs_ListAll", + "description": "Gets all the Event Hubs in a namespace.", + "externalDocs": { + "url": "https://msdn.microsoft.com/en-us/library/azure/mt639493.aspx" + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of Event Hubs.", + "schema": { + "$ref": "#/definitions/EventHubListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}": { + "put": { + "tags": [ + "EventHubs" + ], + "operationId": "EventHubs_CreateOrUpdate", + "description": "Creates or updates a new Event Hub as a nested resource within a namespace.", + "externalDocs": { + "url": "https://msdn.microsoft.com/en-us/library/azure/mt639497.aspx" + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "eventHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The Event Hub name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/EventHubCreateOrUpdateParameters" + }, + "description": "Parameters supplied to create an Event Hub resource." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Event Hub successfully created.", + "schema": { + "$ref": "#/definitions/EventHubResource" + } + } + } + }, + "delete": { + "tags": [ + "EventHubs" + ], + "operationId": "EventHubs_Delete", + "description": "Deletes an Event Hub from the specified namespace and resource group.", + "externalDocs": { + "url": "https://msdn.microsoft.com/en-us/library/azure/mt639496.aspx" + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "eventHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the Event Hub to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No content." + }, + "200": { + "description": "Event Hub successfully deleted." + } + } + }, + "get": { + "tags": [ + "EventHubs" + ], + "operationId": "EventHubs_Get", + "description": "Gets an Event Hubs description for the specified Event Hub.", + "externalDocs": { + "url": "https://msdn.microsoft.com/en-us/library/azure/mt639501.aspx" + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "eventHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The Event Hub name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the Event Hub description.", + "schema": { + "$ref": "#/definitions/EventHubResource" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules": { + "get": { + "tags": [ + "EventHubs" + ], + "operationId": "EventHubs_ListAuthorizationRules", + "description": "Gets the authorization rules for an Event Hub.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name" + }, + { + "name": "eventHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The Event Hub name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Event Hub authorization rule returned successfully.", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}": { + "put": { + "tags": [ + "EventHubs" + ], + "operationId": "EventHubs_CreateOrUpdateAuthorizationRule", + "description": "Creates or updates an authorization rule for the specified Event Hub.", + "externalDocs": { + "url": "https://msdn.microsoft.com/en-us/library/azure/mt706096.aspx" + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "eventHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The Event Hub name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The authorization rule name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleCreateOrUpdateParameters" + }, + "description": "The shared access authorization rule." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Event Hubs authorization rule successfully created.", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + } + } + }, + "get": { + "tags": [ + "EventHubs" + ], + "operationId": "EventHubs_GetAuthorizationRule", + "description": "Gets an authorization rule for an Event Hub by rule name.", + "externalDocs": { + "url": "https://msdn.microsoft.com/en-us/library/azure/mt706097.aspx" + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "eventHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The Event Hub name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The authorization rule name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Event Hub authorization rule successfully returned.", + "schema": { + "$ref": "#/definitions/SharedAccessAuthorizationRuleResource" + } + } + } + }, + "delete": { + "tags": [ + "EventHubs" + ], + "operationId": "EventHubs_DeleteAuthorizationRule", + "description": "Deletes an Event Hubs authorization rule.", + "externalDocs": { + "url": "https://msdn.microsoft.com/en-us/library/azure/mt706100.aspx" + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "eventHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The Event Hub name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The authorization rule name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No content." + }, + "200": { + "description": "Event Hub authorization rule successfully deleted." + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/ListKeys": { + "post": { + "tags": [ + "EventHubs" + ], + "operationId": "EventHubs_ListKeys", + "description": "Gets the ACS and SAS connection strings for the Event Hub.", + "externalDocs": { + "url": "https://msdn.microsoft.com/en-us/library/azure/mt706098.aspx" + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "eventHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The Event Hub name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The connection string of the namespace for the specified authorization rule." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Connection strings successfully returned.", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/authorizationRules/{authorizationRuleName}/regenerateKeys": { + "post": { + "tags": [ + "EventHubs" + ], + "operationId": "EventHubs_RegenerateKeys", + "description": "Regenerates the ACS and SAS connection strings for the Event Hub.", + "externalDocs": { + "url": "https://msdn.microsoft.com/en-us/library/azure/mt706099.aspx" + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "eventHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The Event Hub name." + }, + { + "name": "authorizationRuleName", + "in": "path", + "required": true, + "type": "string", + "description": "The connection string of the Event Hub for the specified authorization rule." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/RegenerateKeysParameters" + }, + "description": "Parameters supplied to regenerate the authorization rule." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Connection strings successfully regenerated.", + "schema": { + "$ref": "#/definitions/ResourceListKeys" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups/{consumerGroupName}": { + "put": { + "tags": [ + "ConsumerGroups" + ], + "operationId": "ConsumerGroups_CreateOrUpdate", + "description": "Creates or updates an Event Hubs consumer group as a nested resource within a namespace.", + "externalDocs": { + "url": "https://msdn.microsoft.com/en-us/library/azure/mt639498.aspx" + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "eventHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The Event Hub name." + }, + { + "name": "consumerGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The consumer group name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ConsumerGroupCreateOrUpdateParameters" + }, + "description": "Parameters supplied to create a consumer group resource." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Consumer group successfully created.", + "schema": { + "$ref": "#/definitions/ConsumerGroupResource" + } + } + } + }, + "delete": { + "tags": [ + "ConsumerGroups" + ], + "operationId": "ConsumerGroups_Delete", + "description": "Deletes a consumer group from the specified Event Hub and resource group.", + "externalDocs": { + "url": "https://msdn.microsoft.com/en-us/library/azure/mt639491.aspx" + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "eventHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The Event Hub name." + }, + { + "name": "consumerGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The Cconsumer group name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "No content." + }, + "200": { + "description": "Consumer group deleted." + } + } + }, + "get": { + "tags": [ + "ConsumerGroups" + ], + "operationId": "ConsumerGroups_Get", + "description": "Gets a description for the specified consumer group.", + "externalDocs": { + "url": "https://msdn.microsoft.com/en-us/library/azure/mt639488.aspx" + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "eventHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The Event Hub name." + }, + { + "name": "consumerGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The consumer group name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the consumer group description.", + "schema": { + "$ref": "#/definitions/ConsumerGroupResource" + } + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}/eventhubs/{eventHubName}/consumergroups": { + "get": { + "tags": [ + "ConsumerGroups" + ], + "operationId": "ConsumerGroups_ListAll", + "description": "Gets all the consumer groups in a namespace. An empty feed is returned if no consumer group exists in the namespace.", + "externalDocs": { + "url": "https://msdn.microsoft.com/en-us/library/azure/mt639503.aspx" + }, + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group." + }, + { + "name": "namespaceName", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace name." + }, + { + "name": "eventHubName", + "in": "path", + "required": true, + "type": "string", + "description": "The Event Hub name." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "Successfully retrieved the list of consumer groups.", + "schema": { + "$ref": "#/definitions/ConsumerGroupListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + } + } + } + }, + "definitions": { + "Resource": { + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Resource Id" + }, + "name": { + "readOnly": true, + "type": "string", + "description": "Resource name" + }, + "type": { + "readOnly": true, + "type": "string", + "description": "Resource type" + }, + "location": { + "type": "string", + "description": "Resource location" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "Resource tags" + } + }, + "required": [ + "location" + ], + "description": "The Resource definition.", + "x-ms-azure-resource": true + }, + "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/NamespaceResource" + }, + "description": "Result of the List Namespace operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results. Not empty if Value contains incomplete list of namespaces." + } + }, + "description": "The response of the List Namespace operation." + }, + "NamespaceResource": { + "properties": { + "sku": { + "$ref": "#/definitions/Sku" + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/NamespaceProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Description of a namespace resource." + }, + "NamespaceProperties": { + "properties": { + "provisioningState": { + "type": "string", + "description": "Provisioning state of the namespace." + }, + "createdAt": { + "type": "string", + "format": "date-time", + "description": "The time the namespace was created." + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "description": "The time the namespace was updated." + }, + "serviceBusEndpoint": { + "externalDocs": { + "url": "http://msdn.microsoft.com/en-us/library/windowsazure/jj873988.aspx" + }, + "type": "string", + "description": "Endpoint you can use to perform Service Bus operations." + } + }, + "description": "Properties of the namespace." + }, + "Sku": { + "type": "object", + "properties": { + "name": { + "type": "string", + "description": "Name of this SKU.", + "enum": [ + "Basic", + "Standard" + ], + "x-ms-enum": { + "name": "SkuName", + "modelAsString": true + } + }, + "tier": { + "type": "string", + "description": "The billing tier of this particular SKU.", + "enum": [ + "Basic", + "Standard", + "Premium" + ], + "x-ms-enum": { + "name": "SkuTier", + "modelAsString": true + } + }, + "capacity": { + "format": "int32", + "type": "integer", + "description": "The Event Hubs throughput units." + } + }, + "required": [ + "tier" + ], + "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/SharedAccessAuthorizationRuleResource" + }, + "description": "Result of the List Authorization Rules operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results. Not empty if Value contains an incomplete list of Authorization Rules" + } + }, + "description": "The response from the List Namespace operation." + }, + "SharedAccessAuthorizationRuleResource": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/SharedAccessAuthorizationRuleProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Description of a namespace authorization rule." + }, + "SharedAccessAuthorizationRuleProperties": { + "properties": { + "rights": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "Manage", + "Send", + "Listen" + ], + "x-ms-enum": { + "name": "AccessRights", + "modelAsString": false + } + }, + "description": "The rights associated with the rule." + } + }, + "required": [ + "rights" + ], + "description": "SharedAccessAuthorizationRule properties." + }, + "ResourceListKeys": { + "properties": { + "primaryConnectionString": { + "type": "string", + "readOnly": true, + "description": "Primary connection string of the created namespace authorization rule." + }, + "secondaryConnectionString": { + "type": "string", + "readOnly": true, + "description": "Secondary connection string of the created namespace authorization rule." + }, + "primaryKey": { + "type": "string", + "readOnly": true, + "description": "A base64-encoded 256-bit primary key for signing and validating the SAS token." + }, + "secondaryKey": { + "type": "string", + "readOnly": true, + "description": "A base64-encoded 256-bit primary key for signing and validating the SAS token." + }, + "keyName": { + "type": "string", + "readOnly": true, + "description": "A string that describes the authorization rule." + } + }, + "description": "Namespace/EventHub Connection String" + }, + "RegenerateKeysParameters": { + "properties": { + "Policykey": { + "type": "string", + "description": "Key that needs to be regenerated.", + "enum": [ + "PrimaryKey", + "SecondaryKey" + ], + "x-ms-enum": { + "name": "Policykey", + "modelAsString": false + } + } + }, + "description": "Parameters supplied to the Regenerate Authorization Rule operation." + }, + "EventHubCreateOrUpdateParameters": { + "properties": { + "location": { + "type": "string", + "description": "Location of the resource." + }, + "type": { + "type": "string", + "description": "ARM type of the namespace." + }, + "name": { + "type": "string", + "description": "Name of the Event Hub." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EventHubProperties" + } + }, + "required": [ + "location" + ], + "description": "Parameters supplied to the Create Or Update Event Hub operation." + }, + "EventHubProperties": { + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Exact time the Event Hub was created." + }, + "messageRetentionInDays": { + "format": "int64", + "type": "integer", + "description": "Number of days to retain the events for this Event Hub." + }, + "partitionCount": { + "format": "int64", + "type": "integer", + "description": "Number of partitions created for the Event Hub." + }, + "partitionIds": { + "type": "array", + "readOnly": true, + "items": { + "type": "string" + }, + "description": "Current number of shards on the Event Hub." + }, + "status": { + "type": "string", + "description": "Enumerates the possible values for the status of the Event Hub.", + "enum": [ + "Active", + "Disabled", + "Restoring", + "SendDisabled", + "ReceiveDisabled", + "Creating", + "Deleting", + "Renaming", + "Unknown" + ], + "x-ms-enum": { + "name": "EntityStatus", + "modelAsString": false + } + }, + "updatedAt": { + "type": "string", + "readOnly": true, + "format": "date-time", + "description": "The exact time the message was updated." + } + }, + "description": "Description of a EventHub Properties." + }, + "EventHubResource": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/EventHubProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Description of the Event Hub resource." + }, + "EventHubListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/EventHubResource" + }, + "description": "Result of the List Event Hubs operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results. Not empty if Value contains incomplete list of Event Hubs." + } + }, + "description": "The response of the List Event Hubs operation." + }, + "ConsumerGroupCreateOrUpdateParameters": { + "properties": { + "location": { + "type": "string", + "description": "Location of the resource." + }, + "type": { + "type": "string", + "description": "ARM type of the namespace." + }, + "name": { + "type": "string", + "description": "Name of the consumer group." + }, + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ConsumerGroupProperties" + } + }, + "required": [ + "location" + ], + "description": "Parameters supplied to the Create Or Update Consumer Group operation." + }, + "ConsumerGroupProperties": { + "properties": { + "createdAt": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "Exact time the message was created." + }, + "eventHubPath": { + "type": "string", + "readOnly": true, + "description": "The path of the Event Hub." + }, + "updatedAt": { + "type": "string", + "format": "date-time", + "readOnly": true, + "description": "The exact time the message was updated." + }, + "userMetadata": { + "type": "string", + "description": "The user metadata." + } + }, + "description": "Description of a Consumer Group properties." + }, + "ConsumerGroupResource": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ConsumerGroupProperties" + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ], + "description": "Description of the consumer group resource." + }, + "ConsumerGroupListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ConsumerGroupResource" + }, + "description": "Result of the List Consumer Group operation." + }, + "nextLink": { + "type": "string", + "description": "Link to the next set of results. Not empty if Value contains incomplete list of Consumer Group" + } + }, + "description": "The response to the List Consumer Group operation." + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "Client API Version." + } + } } \ No newline at end of file