diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/DisasterRecoveryConfigsOperations.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/DisasterRecoveryConfigsOperations.cs
index 428bc0be3b817..66f13993e44fe 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/DisasterRecoveryConfigsOperations.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/DisasterRecoveryConfigsOperations.cs
@@ -1413,6 +1413,9 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client)
///
/// The Disaster Recovery configuration name
///
+ ///
+ /// Parameters required to create an Alias(Disaster Recovery configuration)
+ ///
///
/// Headers that will be added to request.
///
@@ -1431,7 +1434,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task FailOverWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task FailOverWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, FailoverProperties parameters = default(FailoverProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -1496,6 +1499,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client)
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("namespaceName", namespaceName);
tracingParameters.Add("alias", alias);
+ tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
ServiceClientTracing.Enter(_invocationId, this, "FailOver", tracingParameters);
}
@@ -1549,6 +1553,12 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client)
// Serialize Request
string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
// Set Credentials
if (Client.Credentials != null)
{
@@ -1717,7 +1727,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{namespaceName}", System.Uri.EscapeDataString(namespaceName));
_url = _url.Replace("{alias}", System.Uri.EscapeDataString(alias));
@@ -1970,7 +1980,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules/{authorizationRuleName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{namespaceName}", System.Uri.EscapeDataString(namespaceName));
_url = _url.Replace("{alias}", System.Uri.EscapeDataString(alias));
@@ -2224,7 +2234,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client)
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/AuthorizationRules/{authorizationRuleName}/listKeys").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/authorizationRules/{authorizationRuleName}/listKeys").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{namespaceName}", System.Uri.EscapeDataString(namespaceName));
_url = _url.Replace("{alias}", System.Uri.EscapeDataString(alias));
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/DisasterRecoveryConfigsOperationsExtensions.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/DisasterRecoveryConfigsOperationsExtensions.cs
index c7740f80f9f9e..1c5c147b3800c 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/DisasterRecoveryConfigsOperationsExtensions.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/DisasterRecoveryConfigsOperationsExtensions.cs
@@ -311,9 +311,12 @@ public static void BreakPairing(this IDisasterRecoveryConfigsOperations operatio
///
/// The Disaster Recovery configuration name
///
- public static void FailOver(this IDisasterRecoveryConfigsOperations operations, string resourceGroupName, string namespaceName, string alias)
+ ///
+ /// Parameters required to create an Alias(Disaster Recovery configuration)
+ ///
+ public static void FailOver(this IDisasterRecoveryConfigsOperations operations, string resourceGroupName, string namespaceName, string alias, FailoverProperties parameters = default(FailoverProperties))
{
- operations.FailOverAsync(resourceGroupName, namespaceName, alias).GetAwaiter().GetResult();
+ operations.FailOverAsync(resourceGroupName, namespaceName, alias, parameters).GetAwaiter().GetResult();
}
///
@@ -332,12 +335,15 @@ public static void FailOver(this IDisasterRecoveryConfigsOperations operations,
///
/// The Disaster Recovery configuration name
///
+ ///
+ /// Parameters required to create an Alias(Disaster Recovery configuration)
+ ///
///
/// The cancellation token.
///
- public static async Task FailOverAsync(this IDisasterRecoveryConfigsOperations operations, string resourceGroupName, string namespaceName, string alias, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task FailOverAsync(this IDisasterRecoveryConfigsOperations operations, string resourceGroupName, string namespaceName, string alias, FailoverProperties parameters = default(FailoverProperties), CancellationToken cancellationToken = default(CancellationToken))
{
- (await operations.FailOverWithHttpMessagesAsync(resourceGroupName, namespaceName, alias, null, cancellationToken).ConfigureAwait(false)).Dispose();
+ (await operations.FailOverWithHttpMessagesAsync(resourceGroupName, namespaceName, alias, parameters, null, cancellationToken).ConfigureAwait(false)).Dispose();
}
///
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IDisasterRecoveryConfigsOperations.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IDisasterRecoveryConfigsOperations.cs
index a51700fe49ae5..14236bca7280d 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IDisasterRecoveryConfigsOperations.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IDisasterRecoveryConfigsOperations.cs
@@ -201,6 +201,10 @@ public partial interface IDisasterRecoveryConfigsOperations
///
/// The Disaster Recovery configuration name
///
+ ///
+ /// Parameters required to create an Alias(Disaster Recovery
+ /// configuration)
+ ///
///
/// The headers that will be added to request.
///
@@ -213,7 +217,7 @@ public partial interface IDisasterRecoveryConfigsOperations
///
/// Thrown when a required parameter is null
///
- Task FailOverWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task FailOverWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, FailoverProperties parameters = default(FailoverProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets the authorization rules for a namespace.
///
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/INamespacesOperations.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/INamespacesOperations.cs
index 29a4a7d572bc4..f169ca782c5e7 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/INamespacesOperations.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/INamespacesOperations.cs
@@ -24,10 +24,44 @@ namespace Microsoft.Azure.Management.ServiceBus
public partial interface INamespacesOperations
{
///
- /// Check the give namespace name availability.
+ /// Gets a list of IP Filter rules for a Namespace.
///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListIpFilterRulesWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Creates or updates an IpFilterRule for a Namespace.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The IP Filter Rule name.
+ ///
///
- /// Parameters to check availability of the given namespace name
+ /// The Namespace IpFilterRule.
///
///
/// The headers that will be added to request.
@@ -44,7 +78,60 @@ public partial interface INamespacesOperations
///
/// Thrown when a required parameter is null
///
- Task> CheckNameAvailabilityMethodWithHttpMessagesAsync(CheckNameAvailability parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateIpFilterRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string ipFilterRuleName, IpFilterRule parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes an IpFilterRule for a Namespace.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The IP Filter Rule name.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteIpFilterRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string ipFilterRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets an IpFilterRule for a Namespace by rule name.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The IP Filter Rule name.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetIpFilterRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string ipFilterRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Gets all the available namespaces within the subscription,
/// irrespective of the resource groups.
@@ -200,6 +287,115 @@ public partial interface INamespacesOperations
///
Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string namespaceName, SBNamespaceUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Gets a list of VirtualNetwork rules for a Namespace.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListVirtualNetworkRulesWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Creates or updates an VirtualNetworkRule for a Namespace.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The Virtual Network Rule name.
+ ///
+ ///
+ /// The Namespace VirtualNetworkRule.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateOrUpdateVirtualNetworkRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string virtualNetworkRuleName, VirtualNetworkRule parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes an VirtualNetworkRule for a Namespace.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The Virtual Network Rule name.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteVirtualNetworkRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string virtualNetworkRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets an VirtualNetworkRule for a Namespace by rule name.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The Virtual Network Rule name.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetVirtualNetworkRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string virtualNetworkRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Gets the authorization rules for a namespace.
///
///
@@ -376,16 +572,10 @@ public partial interface INamespacesOperations
///
Task> RegenerateKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string authorizationRuleName, RegenerateAccessKeyParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// This operation Migrate the given namespace to provided name type
+ /// Check the give namespace name availability.
///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// The namespace name
- ///
///
- /// Parameters supplied to migrate namespace type.
+ /// Parameters to check availability of the given namespace name
///
///
/// The headers that will be added to request.
@@ -396,10 +586,13 @@ public partial interface INamespacesOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task MigrateWithHttpMessagesAsync(string resourceGroupName, string namespaceName, SBNamespaceMigrate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CheckNameAvailabilityMethodWithHttpMessagesAsync(CheckNameAvailability parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// Create or update NetworkRuleSet for a Namespace.
///
@@ -454,6 +647,56 @@ public partial interface INamespacesOperations
///
Task> GetNetworkRuleSetWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Gets list of NetworkRuleSet for a Namespace.
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListNetworkRuleSetsWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// This operation Migrate the given namespace to provided name type
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// Parameters supplied to migrate namespace type.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task MigrateWithHttpMessagesAsync(string resourceGroupName, string namespaceName, SBNamespaceMigrate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Creates or updates a service namespace. Once created, this
/// namespace's resource manifest is immutable. This operation is
/// idempotent.
@@ -509,6 +752,28 @@ public partial interface INamespacesOperations
///
Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Gets a list of IP Filter rules for a Namespace.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListIpFilterRulesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Gets all the available namespaces within the subscription,
/// irrespective of the resource groups.
///
@@ -556,6 +821,28 @@ public partial interface INamespacesOperations
///
Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
+ /// Gets a list of VirtualNetwork rules for a Namespace.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListVirtualNetworkRulesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
/// Gets the authorization rules for a namespace.
///
///
@@ -578,5 +865,27 @@ public partial interface INamespacesOperations
/// Thrown when a required parameter is null
///
Task>> ListAuthorizationRulesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets list of NetworkRuleSet for a Namespace.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListNetworkRuleSetsNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IPrivateEndpointConnectionsOperations.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IPrivateEndpointConnectionsOperations.cs
new file mode 100644
index 0000000000000..fdd0192812a9b
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IPrivateEndpointConnectionsOperations.cs
@@ -0,0 +1,190 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// PrivateEndpointConnectionsOperations operations.
+ ///
+ public partial interface IPrivateEndpointConnectionsOperations
+ {
+ ///
+ /// Gets the available PrivateEndpointConnections within a namespace.
+ ///
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Creates or updates PrivateEndpointConnections of service namespace.
+ ///
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The PrivateEndpointConnection name
+ ///
+ ///
+ /// Parameters supplied to update Status of PrivateEndPoint Connection
+ /// to namespace resource.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string privateEndpointConnectionName, PrivateEndpointConnection parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes an existing Private Endpoint Connection.
+ ///
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The PrivateEndpointConnection name
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string privateEndpointConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets a description for the specified Private Endpoint Connection.
+ ///
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The PrivateEndpointConnection name
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string privateEndpointConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Deletes an existing Private Endpoint Connection.
+ ///
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The PrivateEndpointConnection name
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string privateEndpointConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// Gets the available PrivateEndpointConnections within a namespace.
+ ///
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IPrivateLinkResourcesOperations.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IPrivateLinkResourcesOperations.cs
new file mode 100644
index 0000000000000..11d369649a60a
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IPrivateLinkResourcesOperations.cs
@@ -0,0 +1,53 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Azure;
+ using Models;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Threading;
+ using System.Threading.Tasks;
+
+ ///
+ /// PrivateLinkResourcesOperations operations.
+ ///
+ public partial interface IPrivateLinkResourcesOperations
+ {
+ ///
+ /// Gets lists of resources that supports Privatelinks.
+ ///
+ ///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IQueuesOperations.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IQueuesOperations.cs
index 656db53f110d2..16bd9448484ac 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IQueuesOperations.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IQueuesOperations.cs
@@ -24,8 +24,8 @@ namespace Microsoft.Azure.Management.ServiceBus
public partial interface IQueuesOperations
{
///
- /// Gets the queues within a namespace.
- ///
+ /// Gets all authorization rules for a queue.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -33,15 +33,8 @@ public partial interface IQueuesOperations
///
/// The namespace name
///
- ///
- /// Skip is only used if a previous operation returned a partial
- /// result. If a previous response contains a nextLink element, the
- /// value of the nextLink element will include a skip parameter that
- /// specifies a starting point to use for subsequent calls.
- ///
- ///
- /// May be used to limit the number of results to the most recent N
- /// usageDetails.
+ ///
+ /// The queue name.
///
///
/// The headers that will be added to request.
@@ -58,11 +51,9 @@ public partial interface IQueuesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByNamespaceWithHttpMessagesAsync(string resourceGroupName, string namespaceName, int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListAuthorizationRulesWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates or updates a Service Bus queue. This operation is
- /// idempotent.
- ///
+ /// Creates an authorization rule for a queue.
///
///
/// Name of the Resource group within the Azure subscription.
@@ -73,8 +64,11 @@ public partial interface IQueuesOperations
///
/// The queue name.
///
+ ///
+ /// The authorization rule name.
+ ///
///
- /// Parameters supplied to create or update a queue resource.
+ /// The shared access authorization rule.
///
///
/// The headers that will be added to request.
@@ -91,10 +85,10 @@ public partial interface IQueuesOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, SBQueue parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateAuthorizationRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, SBAuthorizationRule parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes a queue from the specified namespace in a resource group.
- ///
+ /// Deletes a queue authorization rule.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -105,6 +99,9 @@ public partial interface IQueuesOperations
///
/// The queue name.
///
+ ///
+ /// The authorization rule name.
+ ///
///
/// The headers that will be added to request.
///
@@ -117,10 +114,10 @@ public partial interface IQueuesOperations
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteAuthorizationRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Returns a description for the specified queue.
- ///
+ /// Gets an authorization rule for a queue by rule name.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -131,6 +128,9 @@ public partial interface IQueuesOperations
///
/// The queue name.
///
+ ///
+ /// The authorization rule name.
+ ///
///
/// The headers that will be added to request.
///
@@ -146,10 +146,10 @@ public partial interface IQueuesOperations
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetAuthorizationRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets all authorization rules for a queue.
- ///
+ /// Primary and secondary connection strings to the queue.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -160,6 +160,9 @@ public partial interface IQueuesOperations
///
/// The queue name.
///
+ ///
+ /// The authorization rule name.
+ ///
///
/// The headers that will be added to request.
///
@@ -175,9 +178,11 @@ public partial interface IQueuesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListAuthorizationRulesWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates an authorization rule for a queue.
+ /// Regenerates the primary or secondary connection strings to the
+ /// queue.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -192,7 +197,7 @@ public partial interface IQueuesOperations
/// The authorization rule name.
///
///
- /// The shared access authorization rule.
+ /// Parameters supplied to regenerate the authorization rule.
///
///
/// The headers that will be added to request.
@@ -209,10 +214,10 @@ public partial interface IQueuesOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateAuthorizationRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, SBAuthorizationRule parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> RegenerateKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, RegenerateAccessKeyParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes a queue authorization rule.
- ///
+ /// Gets the queues within a namespace.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -220,11 +225,15 @@ public partial interface IQueuesOperations
///
/// The namespace name
///
- ///
- /// The queue name.
+ ///
+ /// Skip is only used if a previous operation returned a partial
+ /// result. If a previous response contains a nextLink element, the
+ /// value of the nextLink element will include a skip parameter that
+ /// specifies a starting point to use for subsequent calls.
///
- ///
- /// The authorization rule name.
+ ///
+ /// May be used to limit the number of results to the most recent N
+ /// usageDetails.
///
///
/// The headers that will be added to request.
@@ -235,13 +244,17 @@ public partial interface IQueuesOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task DeleteAuthorizationRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByNamespaceWithHttpMessagesAsync(string resourceGroupName, string namespaceName, int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets an authorization rule for a queue by rule name.
- ///
+ /// Creates or updates a Service Bus queue. This operation is
+ /// idempotent.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -252,8 +265,8 @@ public partial interface IQueuesOperations
///
/// The queue name.
///
- ///
- /// The authorization rule name.
+ ///
+ /// Parameters supplied to create or update a queue resource.
///
///
/// The headers that will be added to request.
@@ -270,10 +283,10 @@ public partial interface IQueuesOperations
///
/// Thrown when a required parameter is null
///
- Task> GetAuthorizationRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, SBQueue parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Primary and secondary connection strings to the queue.
- ///
+ /// Deletes a queue from the specified namespace in a resource group.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -284,9 +297,6 @@ public partial interface IQueuesOperations
///
/// The queue name.
///
- ///
- /// The authorization rule name.
- ///
///
/// The headers that will be added to request.
///
@@ -296,17 +306,13 @@ public partial interface IQueuesOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Regenerates the primary or secondary connection strings to the
- /// queue.
- ///
+ /// Returns a description for the specified queue.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -317,12 +323,6 @@ public partial interface IQueuesOperations
///
/// The queue name.
///
- ///
- /// The authorization rule name.
- ///
- ///
- /// Parameters supplied to regenerate the authorization rule.
- ///
///
/// The headers that will be added to request.
///
@@ -338,10 +338,10 @@ public partial interface IQueuesOperations
///
/// Thrown when a required parameter is null
///
- Task> RegenerateKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, string authorizationRuleName, RegenerateAccessKeyParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string queueName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets the queues within a namespace.
- ///
+ /// Gets all authorization rules for a queue.
+ ///
///
///
/// The NextLink from the previous successful call to List operation.
@@ -361,10 +361,10 @@ public partial interface IQueuesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByNamespaceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListAuthorizationRulesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets all authorization rules for a queue.
- ///
+ /// Gets the queues within a namespace.
+ ///
///
///
/// The NextLink from the previous successful call to List operation.
@@ -384,6 +384,6 @@ public partial interface IQueuesOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListAuthorizationRulesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByNamespaceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IServiceBusManagementClient.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IServiceBusManagementClient.cs
index 03c3dd9a4c8f0..d893888c5a70c 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IServiceBusManagementClient.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IServiceBusManagementClient.cs
@@ -16,7 +16,6 @@ namespace Microsoft.Azure.Management.ServiceBus
using Newtonsoft.Json;
///
- /// Azure Service Bus client
///
public partial interface IServiceBusManagementClient : System.IDisposable
{
@@ -72,24 +71,24 @@ public partial interface IServiceBusManagementClient : System.IDisposable
///
- /// Gets the IOperations.
+ /// Gets the INamespacesOperations.
///
- IOperations Operations { get; }
+ INamespacesOperations Namespaces { get; }
///
- /// Gets the INamespacesOperations.
+ /// Gets the IPrivateEndpointConnectionsOperations.
///
- INamespacesOperations Namespaces { get; }
+ IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; }
///
- /// Gets the IDisasterRecoveryConfigsOperations.
+ /// Gets the IPrivateLinkResourcesOperations.
///
- IDisasterRecoveryConfigsOperations DisasterRecoveryConfigs { get; }
+ IPrivateLinkResourcesOperations PrivateLinkResources { get; }
///
- /// Gets the IMigrationConfigsOperations.
+ /// Gets the IDisasterRecoveryConfigsOperations.
///
- IMigrationConfigsOperations MigrationConfigs { get; }
+ IDisasterRecoveryConfigsOperations DisasterRecoveryConfigs { get; }
///
/// Gets the IQueuesOperations.
@@ -102,14 +101,19 @@ public partial interface IServiceBusManagementClient : System.IDisposable
ITopicsOperations Topics { get; }
///
- /// Gets the ISubscriptionsOperations.
+ /// Gets the IEventHubsOperations.
///
- ISubscriptionsOperations Subscriptions { get; }
+ IEventHubsOperations EventHubs { get; }
///
- /// Gets the IRulesOperations.
+ /// Gets the IMigrationConfigsOperations.
///
- IRulesOperations Rules { get; }
+ IMigrationConfigsOperations MigrationConfigs { get; }
+
+ ///
+ /// Gets the IPremiumMessagingRegionsOperations.
+ ///
+ IPremiumMessagingRegionsOperations PremiumMessagingRegions { get; }
///
/// Gets the IRegionsOperations.
@@ -117,14 +121,19 @@ public partial interface IServiceBusManagementClient : System.IDisposable
IRegionsOperations Regions { get; }
///
- /// Gets the IPremiumMessagingRegionsOperations.
+ /// Gets the ISubscriptionsOperations.
///
- IPremiumMessagingRegionsOperations PremiumMessagingRegions { get; }
+ ISubscriptionsOperations Subscriptions { get; }
///
- /// Gets the IEventHubsOperations.
+ /// Gets the IRulesOperations.
///
- IEventHubsOperations EventHubs { get; }
+ IRulesOperations Rules { get; }
+
+ ///
+ /// Gets the IOperations.
+ ///
+ IOperations Operations { get; }
}
}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/ITopicsOperations.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/ITopicsOperations.cs
index b30a0a5184fd5..fd5ceea7c7b8e 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/ITopicsOperations.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/ITopicsOperations.cs
@@ -24,8 +24,8 @@ namespace Microsoft.Azure.Management.ServiceBus
public partial interface ITopicsOperations
{
///
- /// Gets all the topics in a namespace.
- ///
+ /// Gets authorization rules for a topic.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -33,15 +33,8 @@ public partial interface ITopicsOperations
///
/// The namespace name
///
- ///
- /// Skip is only used if a previous operation returned a partial
- /// result. If a previous response contains a nextLink element, the
- /// value of the nextLink element will include a skip parameter that
- /// specifies a starting point to use for subsequent calls.
- ///
- ///
- /// May be used to limit the number of results to the most recent N
- /// usageDetails.
+ ///
+ /// The topic name.
///
///
/// The headers that will be added to request.
@@ -58,10 +51,10 @@ public partial interface ITopicsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByNamespaceWithHttpMessagesAsync(string resourceGroupName, string namespaceName, int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListAuthorizationRulesWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates a topic in the specified namespace.
- ///
+ /// Creates an authorization rule for the specified topic.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -72,8 +65,11 @@ public partial interface ITopicsOperations
///
/// The topic name.
///
+ ///
+ /// The authorization rule name.
+ ///
///
- /// Parameters supplied to create a topic resource.
+ /// The shared access authorization rule.
///
///
/// The headers that will be added to request.
@@ -90,10 +86,10 @@ public partial interface ITopicsOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, SBTopic parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateAuthorizationRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName, SBAuthorizationRule parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes a topic from the specified namespace and resource group.
- ///
+ /// Returns the specified authorization rule.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -104,6 +100,9 @@ public partial interface ITopicsOperations
///
/// The topic name.
///
+ ///
+ /// The authorization rule name.
+ ///
///
/// The headers that will be added to request.
///
@@ -113,13 +112,16 @@ public partial interface ITopicsOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task DeleteWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetAuthorizationRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Returns a description for the specified topic.
- ///
+ /// Deletes a topic authorization rule.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -130,6 +132,9 @@ public partial interface ITopicsOperations
///
/// The topic name.
///
+ ///
+ /// The authorization rule name.
+ ///
///
/// The headers that will be added to request.
///
@@ -139,16 +144,13 @@ public partial interface ITopicsOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> GetWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteAuthorizationRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets authorization rules for a topic.
- ///
+ /// Gets the primary and secondary connection strings for the topic.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -159,6 +161,9 @@ public partial interface ITopicsOperations
///
/// The topic name.
///
+ ///
+ /// The authorization rule name.
+ ///
///
/// The headers that will be added to request.
///
@@ -174,10 +179,10 @@ public partial interface ITopicsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListAuthorizationRulesWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Creates an authorization rule for the specified topic.
- ///
+ /// Regenerates primary or secondary connection strings for the topic.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -192,7 +197,7 @@ public partial interface ITopicsOperations
/// The authorization rule name.
///
///
- /// The shared access authorization rule.
+ /// Parameters supplied to regenerate the authorization rule.
///
///
/// The headers that will be added to request.
@@ -209,10 +214,10 @@ public partial interface ITopicsOperations
///
/// Thrown when a required parameter is null
///
- Task> CreateOrUpdateAuthorizationRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName, SBAuthorizationRule parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> RegenerateKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName, RegenerateAccessKeyParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Returns the specified authorization rule.
- ///
+ /// Gets all the topics in a namespace.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -220,11 +225,15 @@ public partial interface ITopicsOperations
///
/// The namespace name
///
- ///
- /// The topic name.
+ ///
+ /// Skip is only used if a previous operation returned a partial
+ /// result. If a previous response contains a nextLink element, the
+ /// value of the nextLink element will include a skip parameter that
+ /// specifies a starting point to use for subsequent calls.
///
- ///
- /// The authorization rule name.
+ ///
+ /// May be used to limit the number of results to the most recent N
+ /// usageDetails.
///
///
/// The headers that will be added to request.
@@ -241,10 +250,10 @@ public partial interface ITopicsOperations
///
/// Thrown when a required parameter is null
///
- Task> GetAuthorizationRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByNamespaceWithHttpMessagesAsync(string resourceGroupName, string namespaceName, int? skip = default(int?), int? top = default(int?), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Deletes a topic authorization rule.
- ///
+ /// Creates a topic in the specified namespace.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -255,8 +264,8 @@ public partial interface ITopicsOperations
///
/// The topic name.
///
- ///
- /// The authorization rule name.
+ ///
+ /// Parameters supplied to create a topic resource.
///
///
/// The headers that will be added to request.
@@ -267,13 +276,16 @@ public partial interface ITopicsOperations
///
/// Thrown when the operation returned an invalid status code
///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
///
/// Thrown when a required parameter is null
///
- Task DeleteAuthorizationRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, SBTopic parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets the primary and secondary connection strings for the topic.
- ///
+ /// Deletes a topic from the specified namespace and resource group.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -284,9 +296,6 @@ public partial interface ITopicsOperations
///
/// The topic name.
///
- ///
- /// The authorization rule name.
- ///
///
/// The headers that will be added to request.
///
@@ -296,16 +305,13 @@ public partial interface ITopicsOperations
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
- Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task DeleteWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Regenerates primary or secondary connection strings for the topic.
- ///
+ /// Returns a description for the specified topic.
+ ///
///
///
/// Name of the Resource group within the Azure subscription.
@@ -316,12 +322,6 @@ public partial interface ITopicsOperations
///
/// The topic name.
///
- ///
- /// The authorization rule name.
- ///
- ///
- /// Parameters supplied to regenerate the authorization rule.
- ///
///
/// The headers that will be added to request.
///
@@ -337,10 +337,10 @@ public partial interface ITopicsOperations
///
/// Thrown when a required parameter is null
///
- Task> RegenerateKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, string authorizationRuleName, RegenerateAccessKeyParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> GetWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string topicName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets all the topics in a namespace.
- ///
+ /// Gets authorization rules for a topic.
+ ///
///
///
/// The NextLink from the previous successful call to List operation.
@@ -360,10 +360,10 @@ public partial interface ITopicsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListByNamespaceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListAuthorizationRulesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// Gets authorization rules for a topic.
- ///
+ /// Gets all the topics in a namespace.
+ ///
///
///
/// The NextLink from the previous successful call to List operation.
@@ -383,6 +383,6 @@ public partial interface ITopicsOperations
///
/// Thrown when a required parameter is null
///
- Task>> ListAuthorizationRulesNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task>> ListByNamespaceNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ConnectionState.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ConnectionState.cs
new file mode 100644
index 0000000000000..d127f68ed9527
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ConnectionState.cs
@@ -0,0 +1,62 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// ConnectionState information.
+ ///
+ public partial class ConnectionState
+ {
+ ///
+ /// Initializes a new instance of the ConnectionState class.
+ ///
+ public ConnectionState()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ConnectionState class.
+ ///
+ /// Status of the connection. Possible values
+ /// include: 'Pending', 'Approved', 'Rejected', 'Disconnected'
+ /// Description of the connection
+ /// state.
+ public ConnectionState(string status = default(string), string description = default(string))
+ {
+ Status = status;
+ Description = description;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets status of the connection. Possible values include:
+ /// 'Pending', 'Approved', 'Rejected', 'Disconnected'
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public string Status { get; set; }
+
+ ///
+ /// Gets or sets description of the connection state.
+ ///
+ [JsonProperty(PropertyName = "description")]
+ public string Description { get; set; }
+
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Encryption.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Encryption.cs
new file mode 100644
index 0000000000000..29d09cb83e896
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Encryption.cs
@@ -0,0 +1,62 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Properties to configure Encryption
+ ///
+ public partial class Encryption
+ {
+ ///
+ /// Initializes a new instance of the Encryption class.
+ ///
+ public Encryption()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the Encryption class.
+ ///
+ /// Properties of KeyVault
+ /// Enumerates the possible value of keySource
+ /// for Encryption. Possible values include:
+ /// 'Microsoft.KeyVault'
+ public Encryption(KeyVaultProperties keyVaultProperties = default(KeyVaultProperties), KeySource? keySource = default(KeySource?))
+ {
+ KeyVaultProperties = keyVaultProperties;
+ KeySource = keySource;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets properties of KeyVault
+ ///
+ [JsonProperty(PropertyName = "keyVaultProperties")]
+ public KeyVaultProperties KeyVaultProperties { get; set; }
+
+ ///
+ /// Gets or sets enumerates the possible value of keySource for
+ /// Encryption. Possible values include: 'Microsoft.KeyVault'
+ ///
+ [JsonProperty(PropertyName = "keySource")]
+ public KeySource? KeySource { get; set; }
+
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/EndPointProvisioningState.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/EndPointProvisioningState.cs
new file mode 100644
index 0000000000000..cba32e7eb0f09
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/EndPointProvisioningState.cs
@@ -0,0 +1,26 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+
+ ///
+ /// Defines values for EndPointProvisioningState.
+ ///
+ public static class EndPointProvisioningState
+ {
+ public const string Creating = "Creating";
+ public const string Updating = "Updating";
+ public const string Deleting = "Deleting";
+ public const string Succeeded = "Succeeded";
+ public const string Canceled = "Canceled";
+ public const string Failed = "Failed";
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ErrorAdditionalInfo.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ErrorAdditionalInfo.cs
new file mode 100644
index 0000000000000..fd751f17b153a
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ErrorAdditionalInfo.cs
@@ -0,0 +1,59 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// The resource management error additional info.
+ ///
+ public partial class ErrorAdditionalInfo
+ {
+ ///
+ /// Initializes a new instance of the ErrorAdditionalInfo class.
+ ///
+ public ErrorAdditionalInfo()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ErrorAdditionalInfo class.
+ ///
+ /// The additional info type.
+ /// The additional info.
+ public ErrorAdditionalInfo(string type = default(string), object info = default(object))
+ {
+ Type = type;
+ Info = info;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the additional info type.
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; private set; }
+
+ ///
+ /// Gets the additional info.
+ ///
+ [JsonProperty(PropertyName = "info")]
+ public object Info { get; private set; }
+
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ErrorResponse.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ErrorResponse.cs
index 406a594906dc7..292bd0bf818d2 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ErrorResponse.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ErrorResponse.cs
@@ -14,8 +14,7 @@ namespace Microsoft.Azure.Management.ServiceBus.Models
using System.Linq;
///
- /// Error response indicates ServiceBus service is not able to process the
- /// incoming request. The reason is provided in the error message.
+ /// The resource management error response.
///
public partial class ErrorResponse
{
@@ -30,13 +29,10 @@ public ErrorResponse()
///
/// Initializes a new instance of the ErrorResponse class.
///
- /// Error code.
- /// Error message indicating why the operation
- /// failed.
- public ErrorResponse(string code = default(string), string message = default(string))
+ /// The error object.
+ public ErrorResponse(ErrorResponseError error = default(ErrorResponseError))
{
- Code = code;
- Message = message;
+ Error = error;
CustomInit();
}
@@ -46,16 +42,10 @@ public ErrorResponse()
partial void CustomInit();
///
- /// Gets or sets error code.
+ /// Gets or sets the error object.
///
- [JsonProperty(PropertyName = "code")]
- public string Code { get; set; }
-
- ///
- /// Gets or sets error message indicating why the operation failed.
- ///
- [JsonProperty(PropertyName = "message")]
- public string Message { get; set; }
+ [JsonProperty(PropertyName = "error")]
+ public ErrorResponseError Error { get; set; }
}
}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ErrorResponseError.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ErrorResponseError.cs
new file mode 100644
index 0000000000000..841d0af339c0e
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ErrorResponseError.cs
@@ -0,0 +1,85 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The error object.
+ ///
+ public partial class ErrorResponseError
+ {
+ ///
+ /// Initializes a new instance of the ErrorResponseError class.
+ ///
+ public ErrorResponseError()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ErrorResponseError class.
+ ///
+ /// The error code.
+ /// The error message.
+ /// The error target.
+ /// The error details.
+ /// The error additional info.
+ public ErrorResponseError(string code = default(string), string message = default(string), string target = default(string), IList details = default(IList), IList additionalInfo = default(IList))
+ {
+ Code = code;
+ Message = message;
+ Target = target;
+ Details = details;
+ AdditionalInfo = additionalInfo;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the error code.
+ ///
+ [JsonProperty(PropertyName = "code")]
+ public string Code { get; private set; }
+
+ ///
+ /// Gets the error message.
+ ///
+ [JsonProperty(PropertyName = "message")]
+ public string Message { get; private set; }
+
+ ///
+ /// Gets the error target.
+ ///
+ [JsonProperty(PropertyName = "target")]
+ public string Target { get; private set; }
+
+ ///
+ /// Gets the error details.
+ ///
+ [JsonProperty(PropertyName = "details")]
+ public IList Details { get; private set; }
+
+ ///
+ /// Gets the error additional info.
+ ///
+ [JsonProperty(PropertyName = "additionalInfo")]
+ public IList AdditionalInfo { get; private set; }
+
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Eventhub.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Eventhub.cs
index 64bc02a84e906..b6848ea06c192 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Eventhub.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Eventhub.cs
@@ -48,7 +48,7 @@ public Eventhub()
/// Number of partitions created for the
/// Event Hub, allowed values are from 1 to 32 partitions.
/// Enumerates the possible values for the status
- /// of the Event Hub. Possible values include: 'Active', 'Disabled',
+ /// of a Event Hub. Possible values include: 'Active', 'Disabled',
/// 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating',
/// 'Deleting', 'Renaming', 'Unknown'
/// Properties of capture
@@ -104,7 +104,7 @@ public Eventhub()
public long? PartitionCount { get; set; }
///
- /// Gets or sets enumerates the possible values for the status of the
+ /// Gets or sets enumerates the possible values for the status of a
/// Event Hub. Possible values include: 'Active', 'Disabled',
/// 'Restoring', 'SendDisabled', 'ReceiveDisabled', 'Creating',
/// 'Deleting', 'Renaming', 'Unknown'
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/FailoverProperties.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/FailoverProperties.cs
new file mode 100644
index 0000000000000..dece71d080154
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/FailoverProperties.cs
@@ -0,0 +1,59 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Safe failover is to indicate the service should wait for pending
+ /// replication to finish before switching to the secondary.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class FailoverProperties
+ {
+ ///
+ /// Initializes a new instance of the FailoverProperties class.
+ ///
+ public FailoverProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the FailoverProperties class.
+ ///
+ /// Safe failover is to indicate the
+ /// service should wait for pending replication to finish before
+ /// switching to the secondary.
+ public FailoverProperties(bool? isSafeFailover = default(bool?))
+ {
+ IsSafeFailover = isSafeFailover;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets safe failover is to indicate the service should wait
+ /// for pending replication to finish before switching to the
+ /// secondary.
+ ///
+ [JsonProperty(PropertyName = "properties.IsSafeFailover")]
+ public bool? IsSafeFailover { get; set; }
+
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/IPAction.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/IPAction.cs
new file mode 100644
index 0000000000000..4c91f25430e8d
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/IPAction.cs
@@ -0,0 +1,22 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+
+ ///
+ /// Defines values for IPAction.
+ ///
+ public static class IPAction
+ {
+ public const string Accept = "Accept";
+ public const string Reject = "Reject";
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Identity.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Identity.cs
new file mode 100644
index 0000000000000..bf1b5cad13b82
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Identity.cs
@@ -0,0 +1,71 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Properties to configure Identity for Bring your Own Keys
+ ///
+ public partial class Identity
+ {
+ ///
+ /// Initializes a new instance of the Identity class.
+ ///
+ public Identity()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the Identity class.
+ ///
+ /// ObjectId from the KeyVault
+ /// TenantId from the KeyVault
+ /// Enumerates the possible value Identity type,
+ /// which currently supports only 'SystemAssigned'. Possible values
+ /// include: 'SystemAssigned'
+ public Identity(string principalId = default(string), string tenantId = default(string), IdentityType? type = default(IdentityType?))
+ {
+ PrincipalId = principalId;
+ TenantId = tenantId;
+ Type = type;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets objectId from the KeyVault
+ ///
+ [JsonProperty(PropertyName = "principalId")]
+ public string PrincipalId { get; set; }
+
+ ///
+ /// Gets or sets tenantId from the KeyVault
+ ///
+ [JsonProperty(PropertyName = "tenantId")]
+ public string TenantId { get; set; }
+
+ ///
+ /// Gets or sets enumerates the possible value Identity type, which
+ /// currently supports only 'SystemAssigned'. Possible values include:
+ /// 'SystemAssigned'
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public IdentityType? Type { get; set; }
+
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/IdentityType.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/IdentityType.cs
new file mode 100644
index 0000000000000..79fa9cd87eeaa
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/IdentityType.cs
@@ -0,0 +1,54 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using System.Runtime;
+ using System.Runtime.Serialization;
+
+ ///
+ /// Defines values for IdentityType.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum IdentityType
+ {
+ [EnumMember(Value = "SystemAssigned")]
+ SystemAssigned
+ }
+ internal static class IdentityTypeEnumExtension
+ {
+ internal static string ToSerializedValue(this IdentityType? value)
+ {
+ return value == null ? null : ((IdentityType)value).ToSerializedValue();
+ }
+
+ internal static string ToSerializedValue(this IdentityType value)
+ {
+ switch( value )
+ {
+ case IdentityType.SystemAssigned:
+ return "SystemAssigned";
+ }
+ return null;
+ }
+
+ internal static IdentityType? ParseIdentityType(this string value)
+ {
+ switch( value )
+ {
+ case "SystemAssigned":
+ return IdentityType.SystemAssigned;
+ }
+ return null;
+ }
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/IpFilterRule.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/IpFilterRule.cs
new file mode 100644
index 0000000000000..c23b32ab53d82
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/IpFilterRule.cs
@@ -0,0 +1,76 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Single item in a List or Get IpFilterRules operation
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class IpFilterRule : Resource
+ {
+ ///
+ /// Initializes a new instance of the IpFilterRule class.
+ ///
+ public IpFilterRule()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the IpFilterRule class.
+ ///
+ /// Resource Id
+ /// Resource name
+ /// Resource type
+ /// IP Mask
+ /// The IP Filter Action. Possible values include:
+ /// 'Accept', 'Reject'
+ /// IP Filter name
+ public IpFilterRule(string id = default(string), string name = default(string), string type = default(string), string ipMask = default(string), string action = default(string), string filterName = default(string))
+ : base(id, name, type)
+ {
+ IpMask = ipMask;
+ Action = action;
+ FilterName = filterName;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets IP Mask
+ ///
+ [JsonProperty(PropertyName = "properties.ipMask")]
+ public string IpMask { get; set; }
+
+ ///
+ /// Gets or sets the IP Filter Action. Possible values include:
+ /// 'Accept', 'Reject'
+ ///
+ [JsonProperty(PropertyName = "properties.action")]
+ public string Action { get; set; }
+
+ ///
+ /// Gets or sets IP Filter name
+ ///
+ [JsonProperty(PropertyName = "properties.filterName")]
+ public string FilterName { get; set; }
+
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/KeySource.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/KeySource.cs
new file mode 100644
index 0000000000000..27ec583001a3b
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/KeySource.cs
@@ -0,0 +1,54 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using System.Runtime;
+ using System.Runtime.Serialization;
+
+ ///
+ /// Defines values for KeySource.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum KeySource
+ {
+ [EnumMember(Value = "Microsoft.KeyVault")]
+ MicrosoftKeyVault
+ }
+ internal static class KeySourceEnumExtension
+ {
+ internal static string ToSerializedValue(this KeySource? value)
+ {
+ return value == null ? null : ((KeySource)value).ToSerializedValue();
+ }
+
+ internal static string ToSerializedValue(this KeySource value)
+ {
+ switch( value )
+ {
+ case KeySource.MicrosoftKeyVault:
+ return "Microsoft.KeyVault";
+ }
+ return null;
+ }
+
+ internal static KeySource? ParseKeySource(this string value)
+ {
+ switch( value )
+ {
+ case "Microsoft.KeyVault":
+ return KeySource.MicrosoftKeyVault;
+ }
+ return null;
+ }
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/KeyVaultProperties.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/KeyVaultProperties.cs
new file mode 100644
index 0000000000000..3181c2e5fe44a
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/KeyVaultProperties.cs
@@ -0,0 +1,59 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Properties to configure keyVault Properties
+ ///
+ public partial class KeyVaultProperties
+ {
+ ///
+ /// Initializes a new instance of the KeyVaultProperties class.
+ ///
+ public KeyVaultProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the KeyVaultProperties class.
+ ///
+ /// Name of the Key from KeyVault
+ /// Uri of KeyVault
+ public KeyVaultProperties(string keyName = default(string), string keyVaultUri = default(string))
+ {
+ KeyName = keyName;
+ KeyVaultUri = keyVaultUri;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets name of the Key from KeyVault
+ ///
+ [JsonProperty(PropertyName = "keyName")]
+ public string KeyName { get; set; }
+
+ ///
+ /// Gets or sets uri of KeyVault
+ ///
+ [JsonProperty(PropertyName = "keyVaultUri")]
+ public string KeyVaultUri { get; set; }
+
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateEndpoint.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateEndpoint.cs
new file mode 100644
index 0000000000000..b65afca3ac38a
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateEndpoint.cs
@@ -0,0 +1,51 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// PrivateEndpoint information.
+ ///
+ public partial class PrivateEndpoint
+ {
+ ///
+ /// Initializes a new instance of the PrivateEndpoint class.
+ ///
+ public PrivateEndpoint()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateEndpoint class.
+ ///
+ /// The ARM identifier for Private Endpoint.
+ public PrivateEndpoint(string id = default(string))
+ {
+ Id = id;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the ARM identifier for Private Endpoint.
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; set; }
+
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateEndpointConnection.cs
new file mode 100644
index 0000000000000..312aa9f8ff469
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateEndpointConnection.cs
@@ -0,0 +1,80 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Properties of the PrivateEndpointConnection.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class PrivateEndpointConnection : Resource
+ {
+ ///
+ /// Initializes a new instance of the PrivateEndpointConnection class.
+ ///
+ public PrivateEndpointConnection()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateEndpointConnection class.
+ ///
+ /// Resource Id
+ /// Resource name
+ /// Resource type
+ /// The Private Endpoint resource for
+ /// this Connection.
+ /// Details about the
+ /// state of the connection.
+ /// Provisioning state of the Private
+ /// Endpoint Connection. Possible values include: 'Creating',
+ /// 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed'
+ public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), ConnectionState privateLinkServiceConnectionState = default(ConnectionState), string provisioningState = default(string))
+ : base(id, name, type)
+ {
+ PrivateEndpoint = privateEndpoint;
+ PrivateLinkServiceConnectionState = privateLinkServiceConnectionState;
+ ProvisioningState = provisioningState;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the Private Endpoint resource for this Connection.
+ ///
+ [JsonProperty(PropertyName = "properties.privateEndpoint")]
+ public PrivateEndpoint PrivateEndpoint { get; set; }
+
+ ///
+ /// Gets or sets details about the state of the connection.
+ ///
+ [JsonProperty(PropertyName = "properties.privateLinkServiceConnectionState")]
+ public ConnectionState PrivateLinkServiceConnectionState { get; set; }
+
+ ///
+ /// Gets or sets provisioning state of the Private Endpoint Connection.
+ /// Possible values include: 'Creating', 'Updating', 'Deleting',
+ /// 'Succeeded', 'Canceled', 'Failed'
+ ///
+ [JsonProperty(PropertyName = "properties.provisioningState")]
+ public string ProvisioningState { get; set; }
+
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateLinkConnectionStatus.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateLinkConnectionStatus.cs
new file mode 100644
index 0000000000000..f90627d7a43cf
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateLinkConnectionStatus.cs
@@ -0,0 +1,24 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+
+ ///
+ /// Defines values for PrivateLinkConnectionStatus.
+ ///
+ public static class PrivateLinkConnectionStatus
+ {
+ public const string Pending = "Pending";
+ public const string Approved = "Approved";
+ public const string Rejected = "Rejected";
+ public const string Disconnected = "Disconnected";
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateLinkResource.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateLinkResource.cs
new file mode 100644
index 0000000000000..ca1c33cf9a041
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateLinkResource.cs
@@ -0,0 +1,95 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Information of the private link resource.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class PrivateLinkResource
+ {
+ ///
+ /// Initializes a new instance of the PrivateLinkResource class.
+ ///
+ public PrivateLinkResource()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PrivateLinkResource class.
+ ///
+ /// Required Members
+ /// Required Zone Names
+ /// Fully qualified identifier of the
+ /// resource.
+ /// Name of the resource
+ /// Type of the resource
+ public PrivateLinkResource(string groupId = default(string), IList requiredMembers = default(IList), IList requiredZoneNames = default(IList), string id = default(string), string name = default(string), string type = default(string))
+ {
+ GroupId = groupId;
+ RequiredMembers = requiredMembers;
+ RequiredZoneNames = requiredZoneNames;
+ Id = id;
+ Name = name;
+ Type = type;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ ///
+ [JsonProperty(PropertyName = "properties.groupId")]
+ public string GroupId { get; set; }
+
+ ///
+ /// Gets or sets required Members
+ ///
+ [JsonProperty(PropertyName = "properties.requiredMembers")]
+ public IList RequiredMembers { get; set; }
+
+ ///
+ /// Gets or sets required Zone Names
+ ///
+ [JsonProperty(PropertyName = "properties.requiredZoneNames")]
+ public IList RequiredZoneNames { get; set; }
+
+ ///
+ /// Gets or sets fully qualified identifier of the resource.
+ ///
+ [JsonProperty(PropertyName = "id")]
+ public string Id { get; set; }
+
+ ///
+ /// Gets or sets name of the resource
+ ///
+ [JsonProperty(PropertyName = "name")]
+ public string Name { get; set; }
+
+ ///
+ /// Gets or sets type of the resource
+ ///
+ [JsonProperty(PropertyName = "type")]
+ public string Type { get; set; }
+
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/AuthorizationRuleProperties.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateLinkResourcesListResult.cs
similarity index 50%
rename from sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/AuthorizationRuleProperties.cs
rename to sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateLinkResourcesListResult.cs
index 4d89d1c093da1..8c7c20f477e14 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/AuthorizationRuleProperties.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateLinkResourcesListResult.cs
@@ -10,34 +10,36 @@
namespace Microsoft.Azure.Management.ServiceBus.Models
{
- using Microsoft.Rest;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
///
- /// AuthorizationRule properties.
+ /// Result of the List private link resources operation.
///
- public partial class AuthorizationRuleProperties
+ public partial class PrivateLinkResourcesListResult
{
///
- /// Initializes a new instance of the AuthorizationRuleProperties
+ /// Initializes a new instance of the PrivateLinkResourcesListResult
/// class.
///
- public AuthorizationRuleProperties()
+ public PrivateLinkResourcesListResult()
{
CustomInit();
}
///
- /// Initializes a new instance of the AuthorizationRuleProperties
+ /// Initializes a new instance of the PrivateLinkResourcesListResult
/// class.
///
- /// The rights associated with the rule.
- public AuthorizationRuleProperties(IList rights)
+ /// A collection of private link resources
+ /// A link for the next page of private link
+ /// resources.
+ public PrivateLinkResourcesListResult(IList value = default(IList), string nextLink = default(string))
{
- Rights = rights;
+ Value = value;
+ NextLink = nextLink;
CustomInit();
}
@@ -47,23 +49,16 @@ public AuthorizationRuleProperties(IList rights)
partial void CustomInit();
///
- /// Gets or sets the rights associated with the rule.
+ /// Gets or sets a collection of private link resources
///
- [JsonProperty(PropertyName = "rights")]
- public IList Rights { get; set; }
+ [JsonProperty(PropertyName = "value")]
+ public IList Value { get; set; }
///
- /// Validate the object.
+ /// Gets or sets a link for the next page of private link resources.
///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (Rights == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "Rights");
- }
- }
+ [JsonProperty(PropertyName = "nextLink")]
+ public string NextLink { get; set; }
+
}
}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Rule.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Rule.cs
index bc710c0eae42b..7cfe24bb11328 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Rule.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Rule.cs
@@ -87,5 +87,18 @@ public Rule()
[JsonProperty(PropertyName = "properties.correlationFilter")]
public CorrelationFilter CorrelationFilter { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (SqlFilter != null)
+ {
+ SqlFilter.Validate();
+ }
+ }
}
}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBNamespace.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBNamespace.cs
index 3e7ed947e2357..07590e5994c8e 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBNamespace.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBNamespace.cs
@@ -40,24 +40,36 @@ public SBNamespace()
/// Resource name
/// Resource type
/// Resource tags
- /// Properties of Sku
+ /// Properties of SKU
+ /// Properties of BYOK Identity
+ /// description
/// Provisioning state of the
/// namespace.
- /// The time the namespace was created.
+ /// Status of the namespace.
+ /// The time the namespace was created
/// The time the namespace was updated.
/// Endpoint you can use to perform
/// Service Bus operations.
/// Identifier for Azure Insights
/// metrics
- public SBNamespace(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), SBSku sku = default(SBSku), string provisioningState = default(string), System.DateTime? createdAt = default(System.DateTime?), System.DateTime? updatedAt = default(System.DateTime?), string serviceBusEndpoint = default(string), string metricId = default(string))
+ /// Enabling this property creates a
+ /// Premium Service Bus Namespace in regions supported availability
+ /// zones.
+ /// Properties of BYOK Encryption
+ /// description
+ public SBNamespace(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), SBSku sku = default(SBSku), Identity identity = default(Identity), string provisioningState = default(string), string status = default(string), System.DateTime? createdAt = default(System.DateTime?), System.DateTime? updatedAt = default(System.DateTime?), string serviceBusEndpoint = default(string), string metricId = default(string), bool? zoneRedundant = default(bool?), Encryption encryption = default(Encryption))
: base(location, id, name, type, tags)
{
Sku = sku;
+ Identity = identity;
ProvisioningState = provisioningState;
+ Status = status;
CreatedAt = createdAt;
UpdatedAt = updatedAt;
ServiceBusEndpoint = serviceBusEndpoint;
MetricId = metricId;
+ ZoneRedundant = zoneRedundant;
+ Encryption = encryption;
CustomInit();
}
@@ -67,11 +79,17 @@ public SBNamespace()
partial void CustomInit();
///
- /// Gets or sets properties of Sku
+ /// Gets or sets properties of SKU
///
[JsonProperty(PropertyName = "sku")]
public SBSku Sku { get; set; }
+ ///
+ /// Gets or sets properties of BYOK Identity description
+ ///
+ [JsonProperty(PropertyName = "identity")]
+ public Identity Identity { get; set; }
+
///
/// Gets provisioning state of the namespace.
///
@@ -79,7 +97,13 @@ public SBNamespace()
public string ProvisioningState { get; private set; }
///
- /// Gets the time the namespace was created.
+ /// Gets status of the namespace.
+ ///
+ [JsonProperty(PropertyName = "properties.status")]
+ public string Status { get; private set; }
+
+ ///
+ /// Gets the time the namespace was created
///
[JsonProperty(PropertyName = "properties.createdAt")]
public System.DateTime? CreatedAt { get; private set; }
@@ -102,6 +126,19 @@ public SBNamespace()
[JsonProperty(PropertyName = "properties.metricId")]
public string MetricId { get; private set; }
+ ///
+ /// Gets or sets enabling this property creates a Premium Service Bus
+ /// Namespace in regions supported availability zones.
+ ///
+ [JsonProperty(PropertyName = "properties.zoneRedundant")]
+ public bool? ZoneRedundant { get; set; }
+
+ ///
+ /// Gets or sets properties of BYOK Encryption description
+ ///
+ [JsonProperty(PropertyName = "properties.encryption")]
+ public Encryption Encryption { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBNamespaceUpdateParameters.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBNamespaceUpdateParameters.cs
index b127de4e01b6d..8c34da10c5ca1 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBNamespaceUpdateParameters.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBNamespaceUpdateParameters.cs
@@ -41,24 +41,36 @@ public SBNamespaceUpdateParameters()
/// Resource type
/// Resource location
/// Resource tags
- /// Properties of Sku
+ /// Properties of SKU
/// Provisioning state of the
/// namespace.
- /// The time the namespace was created.
+ /// Status of the namespace.
+ /// The time the namespace was created
/// The time the namespace was updated.
/// Endpoint you can use to perform
/// Service Bus operations.
/// Identifier for Azure Insights
/// metrics
- public SBNamespaceUpdateParameters(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), SBSku sku = default(SBSku), string provisioningState = default(string), System.DateTime? createdAt = default(System.DateTime?), System.DateTime? updatedAt = default(System.DateTime?), string serviceBusEndpoint = default(string), string metricId = default(string))
+ /// Enabling this property creates a
+ /// Premium Service Bus Namespace in regions supported availability
+ /// zones.
+ /// Properties of BYOK Encryption
+ /// description
+ /// Properties of BYOK Identity
+ /// description
+ public SBNamespaceUpdateParameters(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary tags = default(IDictionary), SBSku sku = default(SBSku), string provisioningState = default(string), string status = default(string), System.DateTime? createdAt = default(System.DateTime?), System.DateTime? updatedAt = default(System.DateTime?), string serviceBusEndpoint = default(string), string metricId = default(string), bool? zoneRedundant = default(bool?), Encryption encryption = default(Encryption), Identity identity = default(Identity))
: base(id, name, type, location, tags)
{
Sku = sku;
ProvisioningState = provisioningState;
+ Status = status;
CreatedAt = createdAt;
UpdatedAt = updatedAt;
ServiceBusEndpoint = serviceBusEndpoint;
MetricId = metricId;
+ ZoneRedundant = zoneRedundant;
+ Encryption = encryption;
+ Identity = identity;
CustomInit();
}
@@ -68,7 +80,7 @@ public SBNamespaceUpdateParameters()
partial void CustomInit();
///
- /// Gets or sets properties of Sku
+ /// Gets or sets properties of SKU
///
[JsonProperty(PropertyName = "sku")]
public SBSku Sku { get; set; }
@@ -80,7 +92,13 @@ public SBNamespaceUpdateParameters()
public string ProvisioningState { get; private set; }
///
- /// Gets the time the namespace was created.
+ /// Gets status of the namespace.
+ ///
+ [JsonProperty(PropertyName = "properties.status")]
+ public string Status { get; private set; }
+
+ ///
+ /// Gets the time the namespace was created
///
[JsonProperty(PropertyName = "properties.createdAt")]
public System.DateTime? CreatedAt { get; private set; }
@@ -103,6 +121,25 @@ public SBNamespaceUpdateParameters()
[JsonProperty(PropertyName = "properties.metricId")]
public string MetricId { get; private set; }
+ ///
+ /// Gets or sets enabling this property creates a Premium Service Bus
+ /// Namespace in regions supported availability zones.
+ ///
+ [JsonProperty(PropertyName = "properties.zoneRedundant")]
+ public bool? ZoneRedundant { get; set; }
+
+ ///
+ /// Gets or sets properties of BYOK Encryption description
+ ///
+ [JsonProperty(PropertyName = "properties.encryption")]
+ public Encryption Encryption { get; set; }
+
+ ///
+ /// Gets or sets properties of BYOK Identity description
+ ///
+ [JsonProperty(PropertyName = "identity")]
+ public Identity Identity { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SqlFilter.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SqlFilter.cs
index eb1bbf03609ab..f21026875bad0 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SqlFilter.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SqlFilter.cs
@@ -10,6 +10,7 @@
namespace Microsoft.Azure.Management.ServiceBus.Models
{
+ using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
@@ -57,11 +58,11 @@ public SqlFilter()
public string SqlExpression { get; set; }
///
- /// Gets this property is reserved for future use. An integer value
- /// showing the compatibility level, currently hard-coded to 20.
+ /// Gets or sets this property is reserved for future use. An integer
+ /// value showing the compatibility level, currently hard-coded to 20.
///
[JsonProperty(PropertyName = "compatibilityLevel")]
- public int? CompatibilityLevel { get; private set; }
+ public int? CompatibilityLevel { get; set; }
///
/// Gets or sets value that indicates whether the rule action requires
@@ -70,5 +71,22 @@ public SqlFilter()
[JsonProperty(PropertyName = "requiresPreprocessing")]
public bool? RequiresPreprocessing { get; set; }
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (CompatibilityLevel > 20)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMaximum, "CompatibilityLevel", 20);
+ }
+ if (CompatibilityLevel < 20)
+ {
+ throw new ValidationException(ValidationRules.InclusiveMinimum, "CompatibilityLevel", 20);
+ }
+ }
}
}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/VirtualNetworkRule.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/VirtualNetworkRule.cs
new file mode 100644
index 0000000000000..ed72fa0532e84
--- /dev/null
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/VirtualNetworkRule.cs
@@ -0,0 +1,59 @@
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License. See License.txt in the project root for
+// license information.
+//
+// Code generated by Microsoft (R) AutoRest Code Generator.
+// Changes may cause incorrect behavior and will be lost if the code is
+// regenerated.
+//
+
+namespace Microsoft.Azure.Management.ServiceBus.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Single item in a List or Get VirtualNetworkRules operation
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class VirtualNetworkRule : Resource
+ {
+ ///
+ /// Initializes a new instance of the VirtualNetworkRule class.
+ ///
+ public VirtualNetworkRule()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the VirtualNetworkRule class.
+ ///
+ /// Resource Id
+ /// Resource name
+ /// Resource type
+ /// Resource ID of Virtual Network
+ /// Subnet
+ public VirtualNetworkRule(string id = default(string), string name = default(string), string type = default(string), string virtualNetworkSubnetId = default(string))
+ : base(id, name, type)
+ {
+ VirtualNetworkSubnetId = virtualNetworkSubnetId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets resource ID of Virtual Network Subnet
+ ///
+ [JsonProperty(PropertyName = "properties.virtualNetworkSubnetId")]
+ public string VirtualNetworkSubnetId { get; set; }
+
+ }
+}
diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/NamespacesOperations.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/NamespacesOperations.cs
index 3b8e4f25b6f22..4e1b5f1b40f8b 100644
--- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/NamespacesOperations.cs
+++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/NamespacesOperations.cs
@@ -51,10 +51,13 @@ internal NamespacesOperations(ServiceBusManagementClient client)
public ServiceBusManagementClient Client { get; private set; }
///
- /// Check the give namespace name availability.
+ /// Gets a list of IP Filter rules for a Namespace.
///
- ///
- /// Parameters to check availability of the given namespace name
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
///
///
/// Headers that will be added to request.
@@ -77,23 +80,45 @@ internal NamespacesOperations(ServiceBusManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> CheckNameAvailabilityMethodWithHttpMessagesAsync(CheckNameAvailability parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListIpFilterRulesWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (Client.ApiVersion == null)
+ if (resourceGroupName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
}
- if (Client.SubscriptionId == null)
+ if (resourceGroupName != null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
}
- if (parameters == null)
+ if (namespaceName == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ throw new ValidationException(ValidationRules.CannotBeNull, "namespaceName");
}
- if (parameters != null)
+ if (namespaceName != null)
{
- parameters.Validate();
+ if (namespaceName.Length > 50)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "namespaceName", 50);
+ }
+ if (namespaceName.Length < 6)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "namespaceName", 6);
+ }
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
@@ -102,13 +127,16 @@ internal NamespacesOperations(ServiceBusManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
- tracingParameters.Add("parameters", parameters);
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("namespaceName", namespaceName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailabilityMethod", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "ListIpFilterRules", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/CheckNameAvailability").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/ipfilterrules").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{namespaceName}", System.Uri.EscapeDataString(namespaceName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
@@ -122,7 +150,7 @@ internal NamespacesOperations(ServiceBusManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.Method = new HttpMethod("GET");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -153,12 +181,6 @@ internal NamespacesOperations(ServiceBusManagementClient client)
// Serialize Request
string _requestContent = null;
- if(parameters != null)
- {
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
- _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
- _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
- }
// Set Credentials
if (Client.Credentials != null)
{
@@ -209,7 +231,7 @@ internal NamespacesOperations(ServiceBusManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse>();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -222,7 +244,7 @@ internal NamespacesOperations(ServiceBusManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -242,10 +264,20 @@ internal NamespacesOperations(ServiceBusManagementClient client)
}
///
- /// Gets all the available namespaces within the subscription, irrespective of
- /// the resource groups.
- ///
+ /// Creates or updates an IpFilterRule for a Namespace.
///
+ ///
+ /// Name of the Resource group within the Azure subscription.
+ ///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The IP Filter Rule name.
+ ///
+ ///
+ /// The Namespace IpFilterRule.
+ ///
///
/// Headers that will be added to request.
///
@@ -267,8 +299,53 @@ internal NamespacesOperations(ServiceBusManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> CreateOrUpdateIpFilterRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string ipFilterRuleName, IpFilterRule parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (resourceGroupName != null)
+ {
+ if (resourceGroupName.Length > 90)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "resourceGroupName", 90);
+ }
+ if (resourceGroupName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
+ }
+ }
+ if (namespaceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "namespaceName");
+ }
+ if (namespaceName != null)
+ {
+ if (namespaceName.Length > 50)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "namespaceName", 50);
+ }
+ if (namespaceName.Length < 6)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "namespaceName", 6);
+ }
+ }
+ if (ipFilterRuleName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ipFilterRuleName");
+ }
+ if (ipFilterRuleName != null)
+ {
+ if (ipFilterRuleName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "ipFilterRuleName", 1);
+ }
+ }
+ if (parameters == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "parameters");
+ }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -284,12 +361,19 @@ internal NamespacesOperations(ServiceBusManagementClient client)
{
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("namespaceName", namespaceName);
+ tracingParameters.Add("ipFilterRuleName", ipFilterRuleName);
+ tracingParameters.Add("parameters", parameters);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdateIpFilterRule", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.ServiceBus/namespaces").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}").ToString();
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{namespaceName}", System.Uri.EscapeDataString(namespaceName));
+ _url = _url.Replace("{ipFilterRuleName}", System.Uri.EscapeDataString(ipFilterRuleName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
@@ -303,7 +387,7 @@ internal NamespacesOperations(ServiceBusManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.Method = new HttpMethod("PUT");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -334,6 +418,12 @@ internal NamespacesOperations(ServiceBusManagementClient client)
// Serialize Request
string _requestContent = null;
+ if(parameters != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(parameters, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
// Set Credentials
if (Client.Credentials != null)
{
@@ -384,7 +474,7 @@ internal NamespacesOperations(ServiceBusManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse>();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -397,7 +487,7 @@ internal NamespacesOperations(ServiceBusManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -417,12 +507,17 @@ internal NamespacesOperations(ServiceBusManagementClient client)
}
///
- /// Gets the available namespaces within a resource group.
- ///
+ /// Deletes an IpFilterRule for a Namespace.
///
///
/// Name of the Resource group within the Azure subscription.
///
+ ///
+ /// The namespace name
+ ///
+ ///
+ /// The IP Filter Rule name.
+ ///
///
/// Headers that will be added to request.
///
@@ -432,9 +527,6 @@ internal NamespacesOperations(ServiceBusManagementClient client)
///
/// Thrown when the operation returned an invalid status code
///
- ///
- /// Thrown when unable to deserialize the response
- ///
///
/// Thrown when a required parameter is null
///
@@ -444,7 +536,7 @@ internal NamespacesOperations(ServiceBusManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task DeleteIpFilterRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string ipFilterRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -461,6 +553,32 @@ internal NamespacesOperations(ServiceBusManagementClient client)
throw new ValidationException(ValidationRules.MinLength, "resourceGroupName", 1);
}
}
+ if (namespaceName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "namespaceName");
+ }
+ if (namespaceName != null)
+ {
+ if (namespaceName.Length > 50)
+ {
+ throw new ValidationException(ValidationRules.MaxLength, "namespaceName", 50);
+ }
+ if (namespaceName.Length < 6)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "namespaceName", 6);
+ }
+ }
+ if (ipFilterRuleName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ipFilterRuleName");
+ }
+ if (ipFilterRuleName != null)
+ {
+ if (ipFilterRuleName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "ipFilterRuleName", 1);
+ }
+ }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -477,13 +595,17 @@ internal NamespacesOperations(ServiceBusManagementClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("namespaceName", namespaceName);
+ tracingParameters.Add("ipFilterRuleName", ipFilterRuleName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "DeleteIpFilterRule", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{namespaceName}", System.Uri.EscapeDataString(namespaceName));
+ _url = _url.Replace("{ipFilterRuleName}", System.Uri.EscapeDataString(ipFilterRuleName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
@@ -497,7 +619,7 @@ internal NamespacesOperations(ServiceBusManagementClient client)
// Create HTTP transport objects
var _httpRequest = new HttpRequestMessage();
HttpResponseMessage _httpResponse = null;
- _httpRequest.Method = new HttpMethod("GET");
+ _httpRequest.Method = new HttpMethod("DELETE");
_httpRequest.RequestUri = new System.Uri(_url);
// Set Headers
if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
@@ -548,7 +670,7 @@ internal NamespacesOperations(ServiceBusManagementClient client)
HttpStatusCode _statusCode = _httpResponse.StatusCode;
cancellationToken.ThrowIfCancellationRequested();
string _responseContent = null;
- if ((int)_statusCode != 200)
+ if ((int)_statusCode != 200 && (int)_statusCode != 204)
{
var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
try
@@ -578,31 +700,13 @@ internal NamespacesOperations(ServiceBusManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse>();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
{
_result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
}
- // Deserialize Response
- if ((int)_statusCode == 200)
- {
- _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
- try
- {
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
- }
- catch (JsonException ex)
- {
- _httpRequest.Dispose();
- if (_httpResponse != null)
- {
- _httpResponse.Dispose();
- }
- throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
- }
- }
if (_shouldTrace)
{
ServiceClientTracing.Exit(_invocationId, _result);
@@ -611,36 +715,7 @@ internal NamespacesOperations(ServiceBusManagementClient client)
}
///
- /// Creates or updates a service namespace. Once created, this namespace's
- /// resource manifest is immutable. This operation is idempotent.
- ///
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// The namespace name.
- ///
- ///
- /// Parameters supplied to create a namespace resource.
- ///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string namespaceName, SBNamespace parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send Request
- AzureOperationResponse _response = await BeginCreateOrUpdateWithHttpMessagesAsync(resourceGroupName, namespaceName, parameters, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Deletes an existing namespace. This operation also removes all associated
- /// resources under the namespace.
- ///
+ /// Gets an IpFilterRule for a Namespace by rule name.
///
///
/// Name of the Resource group within the Azure subscription.
@@ -648,28 +723,8 @@ internal NamespacesOperations(ServiceBusManagementClient client)
///
/// The namespace name
///
- ///
- /// The headers that will be added to request.
- ///
- ///
- /// The cancellation token.
- ///
- public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
- {
- // Send request
- AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, namespaceName, customHeaders, cancellationToken).ConfigureAwait(false);
- return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Gets a description for the specified namespace.
- ///
- ///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// The namespace name
+ ///
+ /// The IP Filter Rule name.
///
///
/// Headers that will be added to request.
@@ -692,7 +747,7 @@ internal NamespacesOperations(ServiceBusManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> GetIpFilterRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string ipFilterRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (resourceGroupName == null)
{
@@ -724,6 +779,17 @@ internal NamespacesOperations(ServiceBusManagementClient client)
throw new ValidationException(ValidationRules.MinLength, "namespaceName", 6);
}
}
+ if (ipFilterRuleName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ipFilterRuleName");
+ }
+ if (ipFilterRuleName != null)
+ {
+ if (ipFilterRuleName.Length < 1)
+ {
+ throw new ValidationException(ValidationRules.MinLength, "ipFilterRuleName", 1);
+ }
+ }
if (Client.ApiVersion == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
@@ -741,14 +807,16 @@ internal NamespacesOperations(ServiceBusManagementClient client)
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("resourceGroupName", resourceGroupName);
tracingParameters.Add("namespaceName", namespaceName);
+ tracingParameters.Add("ipFilterRuleName", ipFilterRuleName);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "GetIpFilterRule", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/ipfilterrules/{ipFilterRuleName}").ToString();
_url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
_url = _url.Replace("{namespaceName}", System.Uri.EscapeDataString(namespaceName));
+ _url = _url.Replace("{ipFilterRuleName}", System.Uri.EscapeDataString(ipFilterRuleName));
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
List _queryParameters = new List();
if (Client.ApiVersion != null)
@@ -843,7 +911,7 @@ internal NamespacesOperations(ServiceBusManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -856,7 +924,7 @@ internal NamespacesOperations(ServiceBusManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -876,18 +944,10 @@ internal NamespacesOperations(ServiceBusManagementClient client)
}
///
- /// Updates a service namespace. Once created, this namespace's resource
- /// manifest is immutable. This operation is idempotent.
+ /// Gets all the available namespaces within the subscription, irrespective of
+ /// the resource groups.
+ ///
///
- ///
- /// Name of the Resource group within the Azure subscription.
- ///
- ///
- /// The namespace name
- ///
- ///
- /// Parameters supplied to update a namespace resource.
- ///
///
/// Headers that will be added to request.
///
@@ -909,41 +969,199 @@ internal NamespacesOperations(ServiceBusManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string namespaceName, SBNamespaceUpdateParameters parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
- if (resourceGroupName == null)
+ if (Client.ApiVersion == null)
{
- throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
- if (resourceGroupName != null)
+ if (Client.SubscriptionId == null)
{
- if (resourceGroupName.Length > 90)
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary