From 9faf8541fc199fd61e0f9893b27ad20f0b7d7fa6 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 19 Jan 2022 19:35:57 +0000 Subject: [PATCH] CodeGen from PR 17389 in Azure/azure-rest-api-specs Merge a75ff4e505ae601d765161eaf4e20fb637b8e503 into 0bca06c5e06c6b12ea8e560c7416a5968136e276 --- .../DisasterRecoveryConfigsOperations.cs | 380 +++++++++--------- ...sterRecoveryConfigsOperationsExtensions.cs | 92 ++--- .../IDisasterRecoveryConfigsOperations.cs | 56 +-- .../Generated/Models/ArmDisasterRecovery.cs | 17 +- .../Models/MigrationConfigProperties.cs | 17 +- .../src/Generated/Models/NetworkRuleSet.cs | 17 +- .../src/Generated/Models/Operation.cs | 34 +- .../src/Generated/Models/OperationDisplay.cs | 29 +- .../Models/PrivateEndpointConnection.cs | 17 +- .../src/Generated/Models/ProxyResource.cs | 87 ++++ .../src/Generated/Models/Rule.cs | 17 +- .../Generated/Models/SBAuthorizationRule.cs | 17 +- .../src/Generated/Models/SBNamespace.cs | 10 +- .../Models/SBNamespaceUpdateParameters.cs | 21 +- .../src/Generated/Models/SBQueue.cs | 17 +- .../src/Generated/Models/SBSubscription.cs | 17 +- .../src/Generated/Models/SBTopic.cs | 17 +- .../SdkInfo_ServiceBusManagementClient.cs | 31 +- .../Generated/ServiceBusManagementClient.cs | 2 +- 19 files changed, 526 insertions(+), 369 deletions(-) create mode 100644 sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ProxyResource.cs 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 66f13993e44f..ae81edb74620 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/DisasterRecoveryConfigsOperations.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/DisasterRecoveryConfigsOperations.cs @@ -51,7 +51,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) public ServiceBusManagementClient Client { get; private set; } /// - /// Check the give namespace name availability. + /// Gets all Alias(Disaster Recovery configurations) /// /// /// Name of the Resource group within the Azure subscription. @@ -59,9 +59,6 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) /// /// The namespace name /// - /// - /// Parameters to check availability of the given namespace name - /// /// /// Headers that will be added to request. /// @@ -83,7 +80,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CheckNameAvailabilityMethodWithHttpMessagesAsync(string resourceGroupName, string namespaceName, CheckNameAvailability parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -123,14 +120,6 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } - if (parameters != null) - { - parameters.Validate(); - } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -140,13 +129,12 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("namespaceName", namespaceName); - tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailabilityMethod", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "List", 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}/disasterRecoveryConfigs/CheckNameAvailability").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs").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)); @@ -162,7 +150,7 @@ internal DisasterRecoveryConfigsOperations(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) @@ -193,12 +181,6 @@ 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) { @@ -249,7 +231,7 @@ internal DisasterRecoveryConfigsOperations(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")) @@ -262,7 +244,7 @@ internal DisasterRecoveryConfigsOperations(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) { @@ -282,7 +264,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) } /// - /// Gets all Alias(Disaster Recovery configurations) + /// Creates or updates a new Alias(Disaster Recovery configuration) /// /// /// Name of the Resource group within the Azure subscription. @@ -290,6 +272,12 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) /// /// The namespace name /// + /// + /// The Disaster Recovery configuration name + /// + /// + /// Parameters required to create an Alias(Disaster Recovery configuration) + /// /// /// Headers that will be added to request. /// @@ -311,7 +299,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string namespaceName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, ArmDisasterRecovery parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -343,6 +331,25 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) throw new ValidationException(ValidationRules.MinLength, "namespaceName", 6); } } + if (alias == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "alias"); + } + if (alias != null) + { + if (alias.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "alias", 50); + } + if (alias.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "alias", 1); + } + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -360,14 +367,17 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("namespaceName", namespaceName); + tracingParameters.Add("alias", alias); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "CreateOrUpdate", 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}/disasterRecoveryConfigs").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}").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)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -381,7 +391,7 @@ internal DisasterRecoveryConfigsOperations(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) @@ -412,6 +422,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) { @@ -432,7 +448,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200) + if ((int)_statusCode != 200 && (int)_statusCode != 201) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -462,7 +478,7 @@ internal DisasterRecoveryConfigsOperations(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")) @@ -475,7 +491,7 @@ internal DisasterRecoveryConfigsOperations(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) { @@ -495,7 +511,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) } /// - /// Creates or updates a new Alias(Disaster Recovery configuration) + /// Deletes an Alias(Disaster Recovery configuration) /// /// /// Name of the Resource group within the Azure subscription. @@ -506,9 +522,6 @@ 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. /// @@ -518,9 +531,6 @@ internal DisasterRecoveryConfigsOperations(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 /// @@ -530,7 +540,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, ArmDisasterRecovery parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -577,10 +587,6 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) throw new ValidationException(ValidationRules.MinLength, "alias", 1); } } - if (parameters == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); - } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -599,9 +605,8 @@ 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, "CreateOrUpdate", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -622,7 +627,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.Method = new HttpMethod("DELETE"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -653,12 +658,6 @@ 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) { @@ -679,7 +678,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) HttpStatusCode _statusCode = _httpResponse.StatusCode; cancellationToken.ThrowIfCancellationRequested(); string _responseContent = null; - if ((int)_statusCode != 200 && (int)_statusCode != 201) + if ((int)_statusCode != 200 && (int)_statusCode != 204) { var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); try @@ -709,31 +708,13 @@ internal DisasterRecoveryConfigsOperations(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); @@ -742,7 +723,8 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) } /// - /// Deletes an Alias(Disaster Recovery configuration) + /// Retrieves Alias(Disaster Recovery configuration) for primary or secondary + /// namespace /// /// /// Name of the Resource group within the Azure subscription. @@ -762,6 +744,9 @@ internal DisasterRecoveryConfigsOperations(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 /// @@ -771,7 +756,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -837,7 +822,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) tracingParameters.Add("namespaceName", namespaceName); tracingParameters.Add("alias", alias); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Delete", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); } // Construct URL var _baseUrl = Client.BaseUri.AbsoluteUri; @@ -858,7 +843,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.Method = new HttpMethod("GET"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -939,13 +924,31 @@ internal DisasterRecoveryConfigsOperations(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); @@ -954,8 +957,8 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) } /// - /// Retrieves Alias(Disaster Recovery configuration) for primary or secondary - /// namespace + /// This operation disables the Disaster Recovery and stops replicating changes + /// from primary to secondary namespaces /// /// /// Name of the Resource group within the Azure subscription. @@ -975,9 +978,6 @@ internal DisasterRecoveryConfigsOperations(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 /// @@ -987,7 +987,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task BreakPairingWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1053,11 +1053,11 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) tracingParameters.Add("namespaceName", namespaceName); tracingParameters.Add("alias", alias); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "Get", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "BreakPairing", 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}/disasterRecoveryConfigs/{alias}").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/breakPairing").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)); @@ -1074,7 +1074,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -1155,31 +1155,13 @@ internal DisasterRecoveryConfigsOperations(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); @@ -1188,8 +1170,8 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) } /// - /// This operation disables the Disaster Recovery and stops replicating changes - /// from primary to secondary namespaces + /// Invokes GEO DR failover and reconfigure the alias to point to the secondary + /// namespace /// /// /// Name of the Resource group within the Azure subscription. @@ -1200,6 +1182,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. /// @@ -1218,7 +1203,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task BreakPairingWithHttpMessagesAsync(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) { @@ -1283,12 +1268,13 @@ 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, "BreakPairing", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "FailOver", 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}/disasterRecoveryConfigs/{alias}/breakPairing").ToString(); + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceBus/namespaces/{namespaceName}/disasterRecoveryConfigs/{alias}/failover").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)); @@ -1336,6 +1322,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) { @@ -1401,8 +1393,8 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) } /// - /// Invokes GEO DR failover and reconfigure the alias to point to the secondary - /// namespace + /// Gets the authorization rules for a namespace. + /// /// /// /// Name of the Resource group within the Azure subscription. @@ -1413,9 +1405,6 @@ 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. /// @@ -1425,6 +1414,9 @@ internal DisasterRecoveryConfigsOperations(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 /// @@ -1434,7 +1426,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, FailoverProperties parameters = default(FailoverProperties), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task>> ListAuthorizationRulesWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1499,13 +1491,12 @@ 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); + ServiceClientTracing.Enter(_invocationId, this, "ListAuthorizationRules", 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}/disasterRecoveryConfigs/{alias}/failover").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)); @@ -1522,7 +1513,7 @@ internal DisasterRecoveryConfigsOperations(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) @@ -1553,12 +1544,6 @@ 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) { @@ -1609,13 +1594,31 @@ internal DisasterRecoveryConfigsOperations(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); @@ -1624,8 +1627,8 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) } /// - /// Gets the authorization rules for a namespace. - /// + /// Gets an authorization rule for a namespace by rule name. + /// /// /// /// Name of the Resource group within the Azure subscription. @@ -1636,6 +1639,9 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) /// /// The Disaster Recovery configuration name /// + /// + /// The authorization rule name. + /// /// /// Headers that will be added to request. /// @@ -1657,7 +1663,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task>> ListAuthorizationRulesWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> GetAuthorizationRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1704,6 +1710,21 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) throw new ValidationException(ValidationRules.MinLength, "alias", 1); } } + if (authorizationRuleName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "authorizationRuleName"); + } + if (authorizationRuleName != null) + { + if (authorizationRuleName.Length > 50) + { + throw new ValidationException(ValidationRules.MaxLength, "authorizationRuleName", 50); + } + if (authorizationRuleName.Length < 1) + { + throw new ValidationException(ValidationRules.MinLength, "authorizationRuleName", 1); + } + } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -1722,15 +1743,17 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("namespaceName", namespaceName); tracingParameters.Add("alias", alias); + tracingParameters.Add("authorizationRuleName", authorizationRuleName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListAuthorizationRules", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "GetAuthorizationRule", 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}/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/{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)); + _url = _url.Replace("{authorizationRuleName}", System.Uri.EscapeDataString(authorizationRuleName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -1825,7 +1848,7 @@ internal DisasterRecoveryConfigsOperations(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")) @@ -1838,7 +1861,7 @@ internal DisasterRecoveryConfigsOperations(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) { @@ -1858,8 +1881,8 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) } /// - /// Gets an authorization rule for a namespace by rule name. - /// + /// Gets the primary and secondary connection strings for the namespace. + /// /// /// /// Name of the Resource group within the Azure subscription. @@ -1894,7 +1917,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> GetAuthorizationRuleWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -1976,11 +1999,11 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) tracingParameters.Add("alias", alias); tracingParameters.Add("authorizationRuleName", authorizationRuleName); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "GetAuthorizationRule", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "ListKeys", 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}/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}/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)); @@ -1998,7 +2021,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) // Create HTTP transport objects var _httpRequest = new HttpRequestMessage(); HttpResponseMessage _httpResponse = null; - _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.Method = new HttpMethod("POST"); _httpRequest.RequestUri = new System.Uri(_url); // Set Headers if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) @@ -2079,7 +2102,7 @@ internal DisasterRecoveryConfigsOperations(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")) @@ -2092,7 +2115,7 @@ internal DisasterRecoveryConfigsOperations(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) { @@ -2112,8 +2135,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) } /// - /// Gets the primary and secondary connection strings for the namespace. - /// + /// Check the give namespace name availability. /// /// /// Name of the Resource group within the Azure subscription. @@ -2121,11 +2143,8 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) /// /// The namespace name /// - /// - /// The Disaster Recovery configuration name - /// - /// - /// The authorization rule name. + /// + /// Parameters to check availability of the given namespace name /// /// /// Headers that will be added to request. @@ -2148,7 +2167,7 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) /// /// A response object containing the response body and response headers. /// - public async Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + public async Task> CheckNameAvailabilityMethodWithHttpMessagesAsync(string resourceGroupName, string namespaceName, CheckNameAvailability parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) { if (resourceGroupName == null) { @@ -2180,36 +2199,6 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) throw new ValidationException(ValidationRules.MinLength, "namespaceName", 6); } } - if (alias == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "alias"); - } - if (alias != null) - { - if (alias.Length > 50) - { - throw new ValidationException(ValidationRules.MaxLength, "alias", 50); - } - if (alias.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "alias", 1); - } - } - if (authorizationRuleName == null) - { - throw new ValidationException(ValidationRules.CannotBeNull, "authorizationRuleName"); - } - if (authorizationRuleName != null) - { - if (authorizationRuleName.Length > 50) - { - throw new ValidationException(ValidationRules.MaxLength, "authorizationRuleName", 50); - } - if (authorizationRuleName.Length < 1) - { - throw new ValidationException(ValidationRules.MinLength, "authorizationRuleName", 1); - } - } if (Client.ApiVersion == null) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); @@ -2218,6 +2207,14 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) { throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (parameters != null) + { + parameters.Validate(); + } // Tracing bool _shouldTrace = ServiceClientTracing.IsEnabled; string _invocationId = null; @@ -2227,18 +2224,15 @@ internal DisasterRecoveryConfigsOperations(ServiceBusManagementClient client) Dictionary tracingParameters = new Dictionary(); tracingParameters.Add("resourceGroupName", resourceGroupName); tracingParameters.Add("namespaceName", namespaceName); - tracingParameters.Add("alias", alias); - tracingParameters.Add("authorizationRuleName", authorizationRuleName); + tracingParameters.Add("parameters", parameters); tracingParameters.Add("cancellationToken", cancellationToken); - ServiceClientTracing.Enter(_invocationId, this, "ListKeys", tracingParameters); + ServiceClientTracing.Enter(_invocationId, this, "CheckNameAvailabilityMethod", 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}/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/CheckNameAvailability").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)); - _url = _url.Replace("{authorizationRuleName}", System.Uri.EscapeDataString(authorizationRuleName)); _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); List _queryParameters = new List(); if (Client.ApiVersion != null) @@ -2283,6 +2277,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) { @@ -2333,7 +2333,7 @@ internal DisasterRecoveryConfigsOperations(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")) @@ -2346,7 +2346,7 @@ internal DisasterRecoveryConfigsOperations(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) { 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 1c5c147b3800..80683c002c07 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/DisasterRecoveryConfigsOperationsExtensions.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/DisasterRecoveryConfigsOperationsExtensions.cs @@ -21,52 +21,6 @@ namespace Microsoft.Azure.Management.ServiceBus /// public static partial class DisasterRecoveryConfigsOperationsExtensions { - /// - /// Check the give namespace name availability. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The namespace name - /// - /// - /// Parameters to check availability of the given namespace name - /// - public static CheckNameAvailabilityResult CheckNameAvailabilityMethod(this IDisasterRecoveryConfigsOperations operations, string resourceGroupName, string namespaceName, CheckNameAvailability parameters) - { - return operations.CheckNameAvailabilityMethodAsync(resourceGroupName, namespaceName, parameters).GetAwaiter().GetResult(); - } - - /// - /// Check the give namespace name availability. - /// - /// - /// The operations group for this extension method. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The namespace name - /// - /// - /// Parameters to check availability of the given namespace name - /// - /// - /// The cancellation token. - /// - public static async Task CheckNameAvailabilityMethodAsync(this IDisasterRecoveryConfigsOperations operations, string resourceGroupName, string namespaceName, CheckNameAvailability parameters, CancellationToken cancellationToken = default(CancellationToken)) - { - using (var _result = await operations.CheckNameAvailabilityMethodWithHttpMessagesAsync(resourceGroupName, namespaceName, parameters, null, cancellationToken).ConfigureAwait(false)) - { - return _result.Body; - } - } - /// /// Gets all Alias(Disaster Recovery configurations) /// @@ -502,6 +456,52 @@ public static AccessKeys ListKeys(this IDisasterRecoveryConfigsOperations operat } } + /// + /// Check the give namespace name availability. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the Resource group within the Azure subscription. + /// + /// + /// The namespace name + /// + /// + /// Parameters to check availability of the given namespace name + /// + public static CheckNameAvailabilityResult CheckNameAvailabilityMethod(this IDisasterRecoveryConfigsOperations operations, string resourceGroupName, string namespaceName, CheckNameAvailability parameters) + { + return operations.CheckNameAvailabilityMethodAsync(resourceGroupName, namespaceName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Check the give namespace name availability. + /// + /// + /// The operations group for this extension method. + /// + /// + /// Name of the Resource group within the Azure subscription. + /// + /// + /// The namespace name + /// + /// + /// Parameters to check availability of the given namespace name + /// + /// + /// The cancellation token. + /// + public static async Task CheckNameAvailabilityMethodAsync(this IDisasterRecoveryConfigsOperations operations, string resourceGroupName, string namespaceName, CheckNameAvailability parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CheckNameAvailabilityMethodWithHttpMessagesAsync(resourceGroupName, namespaceName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + /// /// Gets all Alias(Disaster Recovery configurations) /// 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 14236bca7280..e2e2ce9eed96 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IDisasterRecoveryConfigsOperations.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/IDisasterRecoveryConfigsOperations.cs @@ -23,34 +23,6 @@ namespace Microsoft.Azure.Management.ServiceBus /// public partial interface IDisasterRecoveryConfigsOperations { - /// - /// Check the give namespace name availability. - /// - /// - /// Name of the Resource group within the Azure subscription. - /// - /// - /// The namespace name - /// - /// - /// Parameters to check availability of the given 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> CheckNameAvailabilityMethodWithHttpMessagesAsync(string resourceGroupName, string namespaceName, CheckNameAvailability parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// /// Gets all Alias(Disaster Recovery configurations) /// @@ -313,6 +285,34 @@ public partial interface IDisasterRecoveryConfigsOperations /// Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string alias, string authorizationRuleName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); /// + /// Check the give namespace name availability. + /// + /// + /// Name of the Resource group within the Azure subscription. + /// + /// + /// The namespace name + /// + /// + /// Parameters to check availability of the given 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> CheckNameAvailabilityMethodWithHttpMessagesAsync(string resourceGroupName, string namespaceName, CheckNameAvailability parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// /// Gets all Alias(Disaster Recovery configurations) /// /// diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ArmDisasterRecovery.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ArmDisasterRecovery.cs index 3bbae023780a..1278cdbf3533 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ArmDisasterRecovery.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ArmDisasterRecovery.cs @@ -20,7 +20,7 @@ namespace Microsoft.Azure.Management.ServiceBus.Models /// operation /// [Rest.Serialization.JsonTransformation] - public partial class ArmDisasterRecovery : Resource + public partial class ArmDisasterRecovery : ProxyResource { /// /// Initializes a new instance of the ArmDisasterRecovery class. @@ -33,9 +33,14 @@ public ArmDisasterRecovery() /// /// Initializes a new instance of the ArmDisasterRecovery class. /// - /// Resource Id - /// Resource name - /// Resource type + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.EventHub/Namespaces" or + /// "Microsoft.EventHub/Namespaces/EventHubs" + /// The geo-location where the resource + /// lives /// Provisioning state of the /// Alias(Disaster Recovery configuration) - possible values 'Accepted' /// or 'Succeeded' or 'Failed'. Possible values include: 'Accepted', @@ -52,8 +57,8 @@ public ArmDisasterRecovery() /// 'Secondary' /// The system meta data relating to this /// resource. - public ArmDisasterRecovery(string id = default(string), string name = default(string), string type = default(string), ProvisioningStateDR? provisioningState = default(ProvisioningStateDR?), long? pendingReplicationOperationsCount = default(long?), string partnerNamespace = default(string), string alternateName = default(string), RoleDisasterRecovery? role = default(RoleDisasterRecovery?), SystemData systemData = default(SystemData)) - : base(id, name, type) + public ArmDisasterRecovery(string id = default(string), string name = default(string), string type = default(string), string location = default(string), ProvisioningStateDR? provisioningState = default(ProvisioningStateDR?), long? pendingReplicationOperationsCount = default(long?), string partnerNamespace = default(string), string alternateName = default(string), RoleDisasterRecovery? role = default(RoleDisasterRecovery?), SystemData systemData = default(SystemData)) + : base(id, name, type, location) { ProvisioningState = provisioningState; PendingReplicationOperationsCount = pendingReplicationOperationsCount; diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/MigrationConfigProperties.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/MigrationConfigProperties.cs index f020c81ea7c3..f53a6ebd6934 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/MigrationConfigProperties.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/MigrationConfigProperties.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.ServiceBus.Models /// Single item in List or Get Migration Config operation /// [Rest.Serialization.JsonTransformation] - public partial class MigrationConfigProperties : Resource + public partial class MigrationConfigProperties : ProxyResource { /// /// Initializes a new instance of the MigrationConfigProperties class. @@ -36,9 +36,14 @@ public MigrationConfigProperties() /// name which has no entities, will be used for migration /// Name to access Standard Namespace /// after migration - /// Resource Id - /// Resource name - /// Resource type + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.EventHub/Namespaces" or + /// "Microsoft.EventHub/Namespaces/EventHubs" + /// The geo-location where the resource + /// lives /// Provisioning state of Migration /// Configuration /// Number of entities @@ -48,8 +53,8 @@ public MigrationConfigProperties() /// Initiating, Syncing, Active /// The system meta data relating to this /// resource. - public MigrationConfigProperties(string targetNamespace, string postMigrationName, string id = default(string), string name = default(string), string type = default(string), string provisioningState = default(string), long? pendingReplicationOperationsCount = default(long?), string migrationState = default(string), SystemData systemData = default(SystemData)) - : base(id, name, type) + public MigrationConfigProperties(string targetNamespace, string postMigrationName, string id = default(string), string name = default(string), string type = default(string), string location = default(string), string provisioningState = default(string), long? pendingReplicationOperationsCount = default(long?), string migrationState = default(string), SystemData systemData = default(SystemData)) + : base(id, name, type, location) { ProvisioningState = provisioningState; PendingReplicationOperationsCount = pendingReplicationOperationsCount; diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/NetworkRuleSet.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/NetworkRuleSet.cs index 1ec7b63fc5ee..f38321f7f767 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/NetworkRuleSet.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/NetworkRuleSet.cs @@ -21,7 +21,7 @@ namespace Microsoft.Azure.Management.ServiceBus.Models /// Description of NetworkRuleSet resource. /// [Rest.Serialization.JsonTransformation] - public partial class NetworkRuleSet : Resource + public partial class NetworkRuleSet : ProxyResource { /// /// Initializes a new instance of the NetworkRuleSet class. @@ -34,9 +34,14 @@ public NetworkRuleSet() /// /// Initializes a new instance of the NetworkRuleSet class. /// - /// Resource Id - /// Resource name - /// Resource type + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.EventHub/Namespaces" or + /// "Microsoft.EventHub/Namespaces/EventHubs" + /// The geo-location where the resource + /// lives /// Value that indicates /// whether Trusted Service Access is Enabled or not. /// Default Action for Network Rule Set. @@ -48,8 +53,8 @@ public NetworkRuleSet() /// values include: 'Enabled', 'Disabled' /// The system meta data relating to this /// resource. - public NetworkRuleSet(string id = default(string), string name = default(string), string type = default(string), bool? trustedServiceAccessEnabled = default(bool?), string defaultAction = default(string), IList virtualNetworkRules = default(IList), IList ipRules = default(IList), string publicNetworkAccess = default(string), SystemData systemData = default(SystemData)) - : base(id, name, type) + public NetworkRuleSet(string id = default(string), string name = default(string), string type = default(string), string location = default(string), bool? trustedServiceAccessEnabled = default(bool?), string defaultAction = default(string), IList virtualNetworkRules = default(IList), IList ipRules = default(IList), string publicNetworkAccess = default(string), SystemData systemData = default(SystemData)) + : base(id, name, type, location) { TrustedServiceAccessEnabled = trustedServiceAccessEnabled; DefaultAction = defaultAction; diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Operation.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Operation.cs index 3170b6a89d94..8e2ffd637535 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Operation.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/Operation.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.ServiceBus.Models using System.Linq; /// - /// A ServiceBus REST API operation + /// A Service Bus REST API operation /// public partial class Operation { @@ -31,12 +31,18 @@ public Operation() /// /// Operation name: /// {provider}/{resource}/{operation} - /// The object that represents the - /// operation. - public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay)) + /// Indicates whether the operation is a + /// data action + /// Display of the operation + /// Origin of the operation + /// Properties of the operation + public Operation(string name = default(string), bool? isDataAction = default(bool?), OperationDisplay display = default(OperationDisplay), string origin = default(string), object properties = default(object)) { Name = name; + IsDataAction = isDataAction; Display = display; + Origin = origin; + Properties = properties; CustomInit(); } @@ -52,10 +58,28 @@ public Operation() public string Name { get; private set; } /// - /// Gets or sets the object that represents the operation. + /// Gets or sets indicates whether the operation is a data action + /// + [JsonProperty(PropertyName = "isDataAction")] + public bool? IsDataAction { get; set; } + + /// + /// Gets or sets display of the operation /// [JsonProperty(PropertyName = "display")] public OperationDisplay Display { get; set; } + /// + /// Gets or sets origin of the operation + /// + [JsonProperty(PropertyName = "origin")] + public string Origin { get; set; } + + /// + /// Gets or sets properties of the operation + /// + [JsonProperty(PropertyName = "properties")] + public object Properties { get; set; } + } } diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/OperationDisplay.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/OperationDisplay.cs index b1ef24886654..b0456743b789 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/OperationDisplay.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/OperationDisplay.cs @@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.ServiceBus.Models using System.Linq; /// - /// The object that represents the operation. + /// Operation display payload /// public partial class OperationDisplay { @@ -29,17 +29,18 @@ public OperationDisplay() /// /// Initializes a new instance of the OperationDisplay class. /// - /// Service provider: - /// Microsoft.ServiceBus - /// Resource on which the operation is - /// performed: Invoice, etc. - /// Operation type: Read, write, delete, - /// etc. - public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string)) + /// Resource provider of the operation + /// Resource of the operation + /// Localized friendly name for the + /// operation + /// Localized friendly description for the + /// operation + public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string), string description = default(string)) { Provider = provider; Resource = resource; Operation = operation; + Description = description; CustomInit(); } @@ -49,22 +50,28 @@ public OperationDisplay() partial void CustomInit(); /// - /// Gets service provider: Microsoft.ServiceBus + /// Gets resource provider of the operation /// [JsonProperty(PropertyName = "provider")] public string Provider { get; private set; } /// - /// Gets resource on which the operation is performed: Invoice, etc. + /// Gets resource of the operation /// [JsonProperty(PropertyName = "resource")] public string Resource { get; private set; } /// - /// Gets operation type: Read, write, delete, etc. + /// Gets localized friendly name for the operation /// [JsonProperty(PropertyName = "operation")] public string Operation { get; private set; } + /// + /// Gets localized friendly description for the operation + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; private 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 index 301d719cdbc7..792290495dbf 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateEndpointConnection.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/PrivateEndpointConnection.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.ServiceBus.Models /// Properties of the PrivateEndpointConnection. /// [Rest.Serialization.JsonTransformation] - public partial class PrivateEndpointConnection : Resource + public partial class PrivateEndpointConnection : ProxyResource { /// /// Initializes a new instance of the PrivateEndpointConnection class. @@ -32,9 +32,14 @@ public PrivateEndpointConnection() /// /// Initializes a new instance of the PrivateEndpointConnection class. /// - /// Resource Id - /// Resource name - /// Resource type + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.EventHub/Namespaces" or + /// "Microsoft.EventHub/Namespaces/EventHubs" + /// The geo-location where the resource + /// lives /// The Private Endpoint resource for /// this Connection. /// Details about the @@ -44,8 +49,8 @@ public PrivateEndpointConnection() /// 'Updating', 'Deleting', 'Succeeded', 'Canceled', 'Failed' /// The system meta data relating to this /// resource. - 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), SystemData systemData = default(SystemData)) - : base(id, name, type) + public PrivateEndpointConnection(string id = default(string), string name = default(string), string type = default(string), string location = default(string), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), ConnectionState privateLinkServiceConnectionState = default(ConnectionState), string provisioningState = default(string), SystemData systemData = default(SystemData)) + : base(id, name, type, location) { PrivateEndpoint = privateEndpoint; PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ProxyResource.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ProxyResource.cs new file mode 100644 index 000000000000..86774149fd75 --- /dev/null +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/ProxyResource.cs @@ -0,0 +1,87 @@ +// +// 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.Azure; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Resource + /// + /// + /// Common fields that are returned in the response for all Azure Resource + /// Manager resources + /// + public partial class ProxyResource : IResource + { + /// + /// Initializes a new instance of the ProxyResource class. + /// + public ProxyResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ProxyResource class. + /// + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.EventHub/Namespaces" or + /// "Microsoft.EventHub/Namespaces/EventHubs" + /// The geo-location where the resource + /// lives + public ProxyResource(string id = default(string), string name = default(string), string type = default(string), string location = default(string)) + { + Id = id; + Name = name; + Type = type; + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + /// + /// Gets the name of the resource + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets the type of the resource. E.g. "Microsoft.EventHub/Namespaces" + /// or "Microsoft.EventHub/Namespaces/EventHubs" + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets the geo-location where the resource lives + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; private 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 2ed282e6c214..216b3aa26c4b 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 @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.ServiceBus.Models /// Description of Rule Resource. /// [Rest.Serialization.JsonTransformation] - public partial class Rule : Resource + public partial class Rule : ProxyResource { /// /// Initializes a new instance of the Rule class. @@ -32,9 +32,14 @@ public Rule() /// /// Initializes a new instance of the Rule class. /// - /// Resource Id - /// Resource name - /// Resource type + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.EventHub/Namespaces" or + /// "Microsoft.EventHub/Namespaces/EventHubs" + /// The geo-location where the resource + /// lives /// Represents the filter actions which are /// allowed for the transformation of a message that have been matched /// by a filter expression. @@ -46,8 +51,8 @@ public Rule() /// correlationFilter /// The system meta data relating to this /// resource. - public Rule(string id = default(string), string name = default(string), string type = default(string), Action action = default(Action), FilterType? filterType = default(FilterType?), SqlFilter sqlFilter = default(SqlFilter), CorrelationFilter correlationFilter = default(CorrelationFilter), SystemData systemData = default(SystemData)) - : base(id, name, type) + public Rule(string id = default(string), string name = default(string), string type = default(string), string location = default(string), Action action = default(Action), FilterType? filterType = default(FilterType?), SqlFilter sqlFilter = default(SqlFilter), CorrelationFilter correlationFilter = default(CorrelationFilter), SystemData systemData = default(SystemData)) + : base(id, name, type, location) { Action = action; FilterType = filterType; diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBAuthorizationRule.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBAuthorizationRule.cs index 4e0775df029a..5c14299e3116 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBAuthorizationRule.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBAuthorizationRule.cs @@ -21,7 +21,7 @@ namespace Microsoft.Azure.Management.ServiceBus.Models /// Description of a namespace authorization rule. /// [Rest.Serialization.JsonTransformation] - public partial class SBAuthorizationRule : Resource + public partial class SBAuthorizationRule : ProxyResource { /// /// Initializes a new instance of the SBAuthorizationRule class. @@ -35,13 +35,18 @@ public SBAuthorizationRule() /// Initializes a new instance of the SBAuthorizationRule class. /// /// The rights associated with the rule. - /// Resource Id - /// Resource name - /// Resource type + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.EventHub/Namespaces" or + /// "Microsoft.EventHub/Namespaces/EventHubs" + /// The geo-location where the resource + /// lives /// The system meta data relating to this /// resource. - public SBAuthorizationRule(IList rights, string id = default(string), string name = default(string), string type = default(string), SystemData systemData = default(SystemData)) - : base(id, name, type) + public SBAuthorizationRule(IList rights, string id = default(string), string name = default(string), string type = default(string), string location = default(string), SystemData systemData = default(SystemData)) + : base(id, name, type, location) { Rights = rights; SystemData = systemData; 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 e09451545381..702f46d76450 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 @@ -63,7 +63,8 @@ public SBNamespace() /// connections. /// This property disables SAS /// authentication for the Service Bus namespace. - 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), SystemData systemData = default(SystemData), 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), IList privateEndpointConnections = default(IList), bool? disableLocalAuth = default(bool?)) + /// Alternate name for namespace + 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), SystemData systemData = default(SystemData), 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), IList privateEndpointConnections = default(IList), bool? disableLocalAuth = default(bool?), string alternateName = default(string)) : base(location, id, name, type, tags) { Sku = sku; @@ -79,6 +80,7 @@ public SBNamespace() Encryption = encryption; PrivateEndpointConnections = privateEndpointConnections; DisableLocalAuth = disableLocalAuth; + AlternateName = alternateName; CustomInit(); } @@ -167,6 +169,12 @@ public SBNamespace() [JsonProperty(PropertyName = "properties.disableLocalAuth")] public bool? DisableLocalAuth { get; set; } + /// + /// Gets or sets alternate name for namespace + /// + [JsonProperty(PropertyName = "properties.alternateName")] + public string AlternateName { 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 b75235cacadd..cb7ac3b9afef 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 @@ -51,18 +51,16 @@ public SBNamespaceUpdateParameters() /// Service Bus operations. /// Identifier for Azure Insights /// metrics - /// Enabling this property creates a - /// Premium Service Bus Namespace in regions supported availability - /// zones. /// Properties of BYOK Encryption /// description /// List of private endpoint /// connections. /// This property disables SAS /// authentication for the Service Bus namespace. + /// Alternate name for namespace /// 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), IList privateEndpointConnections = default(IList), bool? disableLocalAuth = default(bool?), Identity identity = default(Identity)) + 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), Encryption encryption = default(Encryption), IList privateEndpointConnections = default(IList), bool? disableLocalAuth = default(bool?), string alternateName = default(string), Identity identity = default(Identity)) : base(id, name, type, location, tags) { Sku = sku; @@ -72,10 +70,10 @@ public SBNamespaceUpdateParameters() UpdatedAt = updatedAt; ServiceBusEndpoint = serviceBusEndpoint; MetricId = metricId; - ZoneRedundant = zoneRedundant; Encryption = encryption; PrivateEndpointConnections = privateEndpointConnections; DisableLocalAuth = disableLocalAuth; + AlternateName = alternateName; Identity = identity; CustomInit(); } @@ -127,13 +125,6 @@ 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 /// @@ -153,6 +144,12 @@ public SBNamespaceUpdateParameters() [JsonProperty(PropertyName = "properties.disableLocalAuth")] public bool? DisableLocalAuth { get; set; } + /// + /// Gets or sets alternate name for namespace + /// + [JsonProperty(PropertyName = "properties.alternateName")] + public string AlternateName { get; set; } + /// /// Gets or sets properties of BYOK Identity description /// diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBQueue.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBQueue.cs index 6b17ba504272..68128af537d7 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBQueue.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBQueue.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.ServiceBus.Models /// Description of queue Resource. /// [Rest.Serialization.JsonTransformation] - public partial class SBQueue : Resource + public partial class SBQueue : ProxyResource { /// /// Initializes a new instance of the SBQueue class. @@ -32,9 +32,14 @@ public SBQueue() /// /// Initializes a new instance of the SBQueue class. /// - /// Resource Id - /// Resource name - /// Resource type + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.EventHub/Namespaces" or + /// "Microsoft.EventHub/Namespaces/EventHubs" + /// The geo-location where the resource + /// lives /// Message Count Details. /// The exact time the message was /// created. @@ -93,8 +98,8 @@ public SBQueue() /// forward the Dead Letter message /// The system meta data relating to this /// resource. - public SBQueue(string id = default(string), string name = default(string), string type = default(string), MessageCountDetails countDetails = default(MessageCountDetails), System.DateTime? createdAt = default(System.DateTime?), System.DateTime? updatedAt = default(System.DateTime?), System.DateTime? accessedAt = default(System.DateTime?), long? sizeInBytes = default(long?), long? messageCount = default(long?), System.TimeSpan? lockDuration = default(System.TimeSpan?), int? maxSizeInMegabytes = default(int?), long? maxMessageSizeInKilobytes = default(long?), bool? requiresDuplicateDetection = default(bool?), bool? requiresSession = default(bool?), System.TimeSpan? defaultMessageTimeToLive = default(System.TimeSpan?), bool? deadLetteringOnMessageExpiration = default(bool?), System.TimeSpan? duplicateDetectionHistoryTimeWindow = default(System.TimeSpan?), int? maxDeliveryCount = default(int?), EntityStatus? status = default(EntityStatus?), bool? enableBatchedOperations = default(bool?), System.TimeSpan? autoDeleteOnIdle = default(System.TimeSpan?), bool? enablePartitioning = default(bool?), bool? enableExpress = default(bool?), string forwardTo = default(string), string forwardDeadLetteredMessagesTo = default(string), SystemData systemData = default(SystemData)) - : base(id, name, type) + public SBQueue(string id = default(string), string name = default(string), string type = default(string), string location = default(string), MessageCountDetails countDetails = default(MessageCountDetails), System.DateTime? createdAt = default(System.DateTime?), System.DateTime? updatedAt = default(System.DateTime?), System.DateTime? accessedAt = default(System.DateTime?), long? sizeInBytes = default(long?), long? messageCount = default(long?), System.TimeSpan? lockDuration = default(System.TimeSpan?), int? maxSizeInMegabytes = default(int?), long? maxMessageSizeInKilobytes = default(long?), bool? requiresDuplicateDetection = default(bool?), bool? requiresSession = default(bool?), System.TimeSpan? defaultMessageTimeToLive = default(System.TimeSpan?), bool? deadLetteringOnMessageExpiration = default(bool?), System.TimeSpan? duplicateDetectionHistoryTimeWindow = default(System.TimeSpan?), int? maxDeliveryCount = default(int?), EntityStatus? status = default(EntityStatus?), bool? enableBatchedOperations = default(bool?), System.TimeSpan? autoDeleteOnIdle = default(System.TimeSpan?), bool? enablePartitioning = default(bool?), bool? enableExpress = default(bool?), string forwardTo = default(string), string forwardDeadLetteredMessagesTo = default(string), SystemData systemData = default(SystemData)) + : base(id, name, type, location) { CountDetails = countDetails; CreatedAt = createdAt; diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBSubscription.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBSubscription.cs index 5731e66cb984..48bf105aa313 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBSubscription.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBSubscription.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.ServiceBus.Models /// Description of subscription resource. /// [Rest.Serialization.JsonTransformation] - public partial class SBSubscription : Resource + public partial class SBSubscription : ProxyResource { /// /// Initializes a new instance of the SBSubscription class. @@ -32,9 +32,14 @@ public SBSubscription() /// /// Initializes a new instance of the SBSubscription class. /// - /// Resource Id - /// Resource name - /// Resource type + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.EventHub/Namespaces" or + /// "Microsoft.EventHub/Namespaces/EventHubs" + /// The geo-location where the resource + /// lives /// Number of messages. /// Exact time the message was created. /// Last time there was a receive request to @@ -81,8 +86,8 @@ public SBSubscription() /// affine subscriptions. /// The system meta data relating to this /// resource. - public SBSubscription(string id = default(string), string name = default(string), string type = default(string), long? messageCount = default(long?), System.DateTime? createdAt = default(System.DateTime?), System.DateTime? accessedAt = default(System.DateTime?), System.DateTime? updatedAt = default(System.DateTime?), MessageCountDetails countDetails = default(MessageCountDetails), System.TimeSpan? lockDuration = default(System.TimeSpan?), bool? requiresSession = default(bool?), System.TimeSpan? defaultMessageTimeToLive = default(System.TimeSpan?), bool? deadLetteringOnFilterEvaluationExceptions = default(bool?), bool? deadLetteringOnMessageExpiration = default(bool?), System.TimeSpan? duplicateDetectionHistoryTimeWindow = default(System.TimeSpan?), int? maxDeliveryCount = default(int?), EntityStatus? status = default(EntityStatus?), bool? enableBatchedOperations = default(bool?), System.TimeSpan? autoDeleteOnIdle = default(System.TimeSpan?), string forwardTo = default(string), string forwardDeadLetteredMessagesTo = default(string), bool? isClientAffine = default(bool?), SBClientAffineProperties clientAffineProperties = default(SBClientAffineProperties), SystemData systemData = default(SystemData)) - : base(id, name, type) + public SBSubscription(string id = default(string), string name = default(string), string type = default(string), string location = default(string), long? messageCount = default(long?), System.DateTime? createdAt = default(System.DateTime?), System.DateTime? accessedAt = default(System.DateTime?), System.DateTime? updatedAt = default(System.DateTime?), MessageCountDetails countDetails = default(MessageCountDetails), System.TimeSpan? lockDuration = default(System.TimeSpan?), bool? requiresSession = default(bool?), System.TimeSpan? defaultMessageTimeToLive = default(System.TimeSpan?), bool? deadLetteringOnFilterEvaluationExceptions = default(bool?), bool? deadLetteringOnMessageExpiration = default(bool?), System.TimeSpan? duplicateDetectionHistoryTimeWindow = default(System.TimeSpan?), int? maxDeliveryCount = default(int?), EntityStatus? status = default(EntityStatus?), bool? enableBatchedOperations = default(bool?), System.TimeSpan? autoDeleteOnIdle = default(System.TimeSpan?), string forwardTo = default(string), string forwardDeadLetteredMessagesTo = default(string), bool? isClientAffine = default(bool?), SBClientAffineProperties clientAffineProperties = default(SBClientAffineProperties), SystemData systemData = default(SystemData)) + : base(id, name, type, location) { MessageCount = messageCount; CreatedAt = createdAt; diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBTopic.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBTopic.cs index 212f5f309bba..0d4a214604a7 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBTopic.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/Models/SBTopic.cs @@ -19,7 +19,7 @@ namespace Microsoft.Azure.Management.ServiceBus.Models /// Description of topic resource. /// [Rest.Serialization.JsonTransformation] - public partial class SBTopic : Resource + public partial class SBTopic : ProxyResource { /// /// Initializes a new instance of the SBTopic class. @@ -32,9 +32,14 @@ public SBTopic() /// /// Initializes a new instance of the SBTopic class. /// - /// Resource Id - /// Resource name - /// Resource type + /// Fully qualified resource ID for the resource. Ex - + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + /// The name of the resource + /// The type of the resource. E.g. + /// "Microsoft.EventHub/Namespaces" or + /// "Microsoft.EventHub/Namespaces/EventHubs" + /// The geo-location where the resource + /// lives /// Size of the topic, in bytes. /// Exact time the message was created. /// The exact time the message was @@ -78,8 +83,8 @@ public SBTopic() /// temporarily before writing it to persistent storage. /// The system meta data relating to this /// resource. - public SBTopic(string id = default(string), string name = default(string), string type = default(string), long? sizeInBytes = default(long?), System.DateTime? createdAt = default(System.DateTime?), System.DateTime? updatedAt = default(System.DateTime?), System.DateTime? accessedAt = default(System.DateTime?), int? subscriptionCount = default(int?), MessageCountDetails countDetails = default(MessageCountDetails), System.TimeSpan? defaultMessageTimeToLive = default(System.TimeSpan?), int? maxSizeInMegabytes = default(int?), long? maxMessageSizeInKilobytes = default(long?), bool? requiresDuplicateDetection = default(bool?), System.TimeSpan? duplicateDetectionHistoryTimeWindow = default(System.TimeSpan?), bool? enableBatchedOperations = default(bool?), EntityStatus? status = default(EntityStatus?), bool? supportOrdering = default(bool?), System.TimeSpan? autoDeleteOnIdle = default(System.TimeSpan?), bool? enablePartitioning = default(bool?), bool? enableExpress = default(bool?), SystemData systemData = default(SystemData)) - : base(id, name, type) + public SBTopic(string id = default(string), string name = default(string), string type = default(string), string location = default(string), long? sizeInBytes = default(long?), System.DateTime? createdAt = default(System.DateTime?), System.DateTime? updatedAt = default(System.DateTime?), System.DateTime? accessedAt = default(System.DateTime?), int? subscriptionCount = default(int?), MessageCountDetails countDetails = default(MessageCountDetails), System.TimeSpan? defaultMessageTimeToLive = default(System.TimeSpan?), int? maxSizeInMegabytes = default(int?), long? maxMessageSizeInKilobytes = default(long?), bool? requiresDuplicateDetection = default(bool?), System.TimeSpan? duplicateDetectionHistoryTimeWindow = default(System.TimeSpan?), bool? enableBatchedOperations = default(bool?), EntityStatus? status = default(EntityStatus?), bool? supportOrdering = default(bool?), System.TimeSpan? autoDeleteOnIdle = default(System.TimeSpan?), bool? enablePartitioning = default(bool?), bool? enableExpress = default(bool?), SystemData systemData = default(SystemData)) + : base(id, name, type, location) { SizeInBytes = sizeInBytes; CreatedAt = createdAt; diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/SdkInfo_ServiceBusManagementClient.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/SdkInfo_ServiceBusManagementClient.cs index 81790a6fbbbc..8c892dd89867 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/SdkInfo_ServiceBusManagementClient.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/SdkInfo_ServiceBusManagementClient.cs @@ -19,29 +19,18 @@ public static IEnumerable> ApiInfo_ServiceBusManag { return new Tuple[] { - new Tuple("ServiceBus", "DisasterRecoveryConfigs", "2021-06-01-preview"), - new Tuple("ServiceBus", "MigrationConfigs", "2021-06-01-preview"), - new Tuple("ServiceBus", "Namespaces", "2021-06-01-preview"), - new Tuple("ServiceBus", "Operations", "2021-06-01-preview"), - new Tuple("ServiceBus", "PrivateEndpointConnections", "2021-06-01-preview"), - new Tuple("ServiceBus", "PrivateLinkResources", "2021-06-01-preview"), - new Tuple("ServiceBus", "Queues", "2021-06-01-preview"), - new Tuple("ServiceBus", "Rules", "2021-06-01-preview"), - new Tuple("ServiceBus", "Subscriptions", "2021-06-01-preview"), - new Tuple("ServiceBus", "Topics", "2021-06-01-preview"), + new Tuple("ServiceBus", "DisasterRecoveryConfigs", "2021-11-01"), + new Tuple("ServiceBus", "MigrationConfigs", "2021-11-01"), + new Tuple("ServiceBus", "Namespaces", "2021-11-01"), + new Tuple("ServiceBus", "Operations", "2021-11-01"), + new Tuple("ServiceBus", "PrivateEndpointConnections", "2021-11-01"), + new Tuple("ServiceBus", "PrivateLinkResources", "2021-11-01"), + new Tuple("ServiceBus", "Queues", "2021-11-01"), + new Tuple("ServiceBus", "Rules", "2021-11-01"), + new Tuple("ServiceBus", "Subscriptions", "2021-11-01"), + new Tuple("ServiceBus", "Topics", "2021-11-01"), }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@1.9.1"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/servicebus/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=D:\\AutoRestSDK\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "main"; - public static readonly String GithubCommidId = "9b489ff217acd3bd6d62b2932e42d3c08ed4d08c"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } - diff --git a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/ServiceBusManagementClient.cs b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/ServiceBusManagementClient.cs index 12b4cf7e6a02..837911847213 100644 --- a/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/ServiceBusManagementClient.cs +++ b/sdk/servicebus/Microsoft.Azure.Management.ServiceBus/src/Generated/ServiceBusManagementClient.cs @@ -375,7 +375,7 @@ private void Initialize() Rules = new RulesOperations(this); Subscriptions = new SubscriptionsOperations(this); BaseUri = new System.Uri("https://management.azure.com"); - ApiVersion = "2021-06-01-preview"; + ApiVersion = "2021-11-01"; AcceptLanguage = "en-US"; LongRunningOperationRetryTimeout = 30; GenerateClientRequestId = true;