diff --git a/eng/mgmt/mgmtmetadata/redisenterprise_resource-manager.txt b/eng/mgmt/mgmtmetadata/redisenterprise_resource-manager.txt new file mode 100644 index 000000000000..c80ebaf2a1f4 --- /dev/null +++ b/eng/mgmt/mgmtmetadata/redisenterprise_resource-manager.txt @@ -0,0 +1,14 @@ +Installing AutoRest version: v2 +AutoRest installed successfully. +Commencing code generation +Generating CSharp code +Executing AutoRest command +cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/redisenterprise/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\repos\azure-sdk-for-net\sdk +2020-11-02 23:59:30 UTC +Azure-rest-api-specs repository information +GitHub fork: Azure +Branch: master +Commit: f150a6d5f430d8645093d5c28ca7bfd28c96c477 +AutoRest information +Requested version: v2 +Bootstrapper version: autorest@2.0.4413 diff --git a/eng/pipelines/mgmt.yml b/eng/pipelines/mgmt.yml index 6520e9b654da..db8d691986d2 100644 --- a/eng/pipelines/mgmt.yml +++ b/eng/pipelines/mgmt.yml @@ -117,6 +117,7 @@ pr: - sdk/recoveryservices-backup/Microsoft.Azure.Management.RecoveryServices.Backup - sdk/recoveryservices-siterecovery/Microsoft.Azure.Management.RecoveryServices.SiteRecovery - sdk/redis/Microsoft.Azure.Management.RedisCache + - sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache - sdk/relay/Microsoft.Azure.Management.Relay - sdk/reservations/Microsoft.Azure.Management.Reservations - sdk/resourcegraph/Microsoft.Azure.Management.ResourceGraph diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/AzSdk.RP.props b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/AzSdk.RP.props new file mode 100644 index 000000000000..2c975fddf604 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/AzSdk.RP.props @@ -0,0 +1,7 @@ + + + + RedisEnterpriseCache_2020-10-01-preview; + $(PackageTags);$(CommonTags);$(AzureApiTag); + + \ No newline at end of file diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/Microsoft.Azure.Management.RedisEnterpriseCache.sln b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/Microsoft.Azure.Management.RedisEnterpriseCache.sln new file mode 100644 index 000000000000..bdcfab504bdd --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/Microsoft.Azure.Management.RedisEnterpriseCache.sln @@ -0,0 +1,28 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26228.4 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{3238ECD2-ED0C-459A-B6E7-9625BF49E787}") = "Microsoft.Azure.Management.RedisEnterpriseCache.Tests", "tests\Microsoft.Azure.Management.RedisEnterpriseCache.Tests.csproj", "{C48270D4-AEEC-4AC2-BCD4-130DD1F6D51D}" +EndProject +Project("{3238ECD2-ED0C-459A-B6E7-9625BF49E787}") = "Microsoft.Azure.Management.RedisEnterprise", "src\Microsoft.Azure.Management.RedisEnterprise.csproj", "{C5030563-FC2F-47F9-A407-05C81C09BAD6}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {C48270D4-AEEC-4AC2-BCD4-130DD1F6D51D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C48270D4-AEEC-4AC2-BCD4-130DD1F6D51D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C48270D4-AEEC-4AC2-BCD4-130DD1F6D51D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C48270D4-AEEC-4AC2-BCD4-130DD1F6D51D}.Release|Any CPU.Build.0 = Release|Any CPU + {C5030563-FC2F-47F9-A407-05C81C09BAD6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C5030563-FC2F-47F9-A407-05C81C09BAD6}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C5030563-FC2F-47F9-A407-05C81C09BAD6}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C5030563-FC2F-47F9-A407-05C81C09BAD6}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/DatabasesOperations.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/DatabasesOperations.cs new file mode 100644 index 000000000000..1e6c45a8c747 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/DatabasesOperations.cs @@ -0,0 +1,1319 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DatabasesOperations operations. + /// + internal partial class DatabasesOperations : IServiceOperations, IDatabasesOperations + { + /// + /// Initializes a new instance of the DatabasesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal DatabasesOperations(redisenterpriseClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the redisenterpriseClient + /// + public redisenterpriseClient Client { get; private set; } + + /// + /// Gets all databases in the specified RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByClusterWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByCluster", 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.Cache/redisEnterprise/{clusterName}/databases").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + /// + /// Creates a database + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates a database + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, DatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets information about a database in a RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetMethodWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetMethod", 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.Cache/redisEnterprise/{clusterName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + /// + /// Deletes a single database + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Creates a database + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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.Cache/redisEnterprise/{clusterName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // 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) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _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); + } + return _result; + } + + /// + /// Updates a database + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, DatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", 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.Cache/redisEnterprise/{clusterName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // 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) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + /// + /// Deletes a single database + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.Cache/redisEnterprise/{clusterName}/databases/{databaseName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Gets all databases in the specified RedisEnterprise cluster. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByClusterNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByClusterNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/DatabasesOperationsExtensions.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/DatabasesOperationsExtensions.cs new file mode 100644 index 000000000000..83820e2e4907 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/DatabasesOperationsExtensions.cs @@ -0,0 +1,439 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for DatabasesOperations. + /// + public static partial class DatabasesOperationsExtensions + { + /// + /// Gets all databases in the specified RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + public static IPage ListByCluster(this IDatabasesOperations operations, string resourceGroupName, string clusterName) + { + return operations.ListByClusterAsync(resourceGroupName, clusterName).GetAwaiter().GetResult(); + } + + /// + /// Gets all databases in the specified RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByClusterAsync(this IDatabasesOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByClusterWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates a database + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + public static Database Create(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName, Database parameters) + { + return operations.CreateAsync(resourceGroupName, clusterName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates a database + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName, Database parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a database + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + public static Database Update(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName, DatabaseUpdate parameters) + { + return operations.UpdateAsync(resourceGroupName, clusterName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName, DatabaseUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets information about a database in a RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + public static Database GetMethod(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName) + { + return operations.GetMethodAsync(resourceGroupName, clusterName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Gets information about a database in a RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task GetMethodAsync(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetMethodWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a single database + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + public static void Delete(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName) + { + operations.DeleteAsync(resourceGroupName, clusterName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a single database + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Creates a database + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + public static Database BeginCreate(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName, Database parameters) + { + return operations.BeginCreateAsync(resourceGroupName, clusterName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates a database + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName, Database parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates a database + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + public static Database BeginUpdate(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName, DatabaseUpdate parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, clusterName, databaseName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates a database + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName, DatabaseUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a single database + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + public static void BeginDelete(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName) + { + operations.BeginDeleteAsync(resourceGroupName, clusterName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a single database + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IDatabasesOperations operations, string resourceGroupName, string clusterName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets all databases in the specified RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByClusterNext(this IDatabasesOperations operations, string nextPageLink) + { + return operations.ListByClusterNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all databases in the specified RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByClusterNextAsync(this IDatabasesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByClusterNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/GetOperations.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/GetOperations.cs new file mode 100644 index 000000000000..26cb9566e005 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/GetOperations.cs @@ -0,0 +1,245 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// GetOperations operations. + /// + internal partial class GetOperations : IServiceOperations, IGetOperations + { + /// + /// Initializes a new instance of the GetOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal GetOperations(redisenterpriseClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the redisenterpriseClient + /// + public redisenterpriseClient Client { get; private set; } + + /// + /// Gets the status of operation. + /// + /// + /// The region the operation is in. + /// + /// + /// The operation's unique identifier. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> OperationStatusMethodWithHttpMessagesAsync(string location, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (location == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "location"); + } + if (operationId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "operationId"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("location", location); + tracingParameters.Add("operationId", operationId); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "OperationStatusMethod", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/operationsStatus/{operationId}").ToString(); + _url = _url.Replace("{location}", System.Uri.EscapeDataString(location)); + _url = _url.Replace("{operationId}", System.Uri.EscapeDataString(operationId)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/GetOperationsExtensions.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/GetOperationsExtensions.cs new file mode 100644 index 000000000000..72bb4e804449 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/GetOperationsExtensions.cs @@ -0,0 +1,65 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for GetOperations. + /// + public static partial class GetOperationsExtensions + { + /// + /// Gets the status of operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The region the operation is in. + /// + /// + /// The operation's unique identifier. + /// + public static OperationStatus OperationStatusMethod(this IGetOperations operations, string location, string operationId) + { + return operations.OperationStatusMethodAsync(location, operationId).GetAwaiter().GetResult(); + } + + /// + /// Gets the status of operation. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The region the operation is in. + /// + /// + /// The operation's unique identifier. + /// + /// + /// The cancellation token. + /// + public static async Task OperationStatusMethodAsync(this IGetOperations operations, string location, string operationId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.OperationStatusMethodWithHttpMessagesAsync(location, operationId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IDatabasesOperations.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IDatabasesOperations.cs new file mode 100644 index 000000000000..d6ba476b6177 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IDatabasesOperations.cs @@ -0,0 +1,276 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// DatabasesOperations operations. + /// + public partial interface IDatabasesOperations + { + /// + /// Gets all databases in the specified RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// 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>> ListByClusterWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a database + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, DatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about a database in a RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// 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> GetMethodWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a single database + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates a database + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Database parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates a database + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Parameters supplied to the create or update database operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, DatabaseUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a single database + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all databases in the specified RedisEnterprise cluster. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByClusterNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IGetOperations.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IGetOperations.cs new file mode 100644 index 000000000000..4e8d03c77999 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IGetOperations.cs @@ -0,0 +1,52 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// GetOperations operations. + /// + public partial interface IGetOperations + { + /// + /// Gets the status of operation. + /// + /// + /// The region the operation is in. + /// + /// + /// The operation's unique identifier. + /// + /// + /// 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> OperationStatusMethodWithHttpMessagesAsync(string location, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IOperations.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IOperations.cs new file mode 100644 index 000000000000..7b7e539381be --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IOperations.cs @@ -0,0 +1,70 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Operations operations. + /// + public partial interface IOperations + { + /// + /// Lists all of the available REST API operations of the + /// Microsoft.Cache provider. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all of the available REST API operations of the + /// Microsoft.Cache provider. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IPrivateEndpointConnectionsOperations.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IPrivateEndpointConnectionsOperations.cs new file mode 100644 index 000000000000..348015bde592 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IPrivateEndpointConnectionsOperations.cs @@ -0,0 +1,176 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PrivateEndpointConnectionsOperations operations. + /// + public partial interface IPrivateEndpointConnectionsOperations + { + /// + /// Lists all the private endpoint connections associated with the + /// RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets the specified private endpoint connection associated with the + /// RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the + /// Azure resource + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> GetMethodWithHttpMessagesAsync(string resourceGroupName, string clusterName, string privateEndpointConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the state of the specified private endpoint connection + /// associated with the RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the + /// Azure resource + /// + /// + /// The private endpoint connection properties. + /// + /// + /// 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> PutWithHttpMessagesAsync(string resourceGroupName, string clusterName, string privateEndpointConnectionName, PrivateEndpointConnection properties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes the specified private endpoint connection associated with + /// the RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the + /// Azure resource + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, string privateEndpointConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates the state of the specified private endpoint connection + /// associated with the RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the + /// Azure resource + /// + /// + /// The private endpoint connection properties. + /// + /// + /// 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> BeginPutWithHttpMessagesAsync(string resourceGroupName, string clusterName, string privateEndpointConnectionName, PrivateEndpointConnection properties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IPrivateLinkResourcesOperations.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IPrivateLinkResourcesOperations.cs new file mode 100644 index 000000000000..33ee7084e6ab --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IPrivateLinkResourcesOperations.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PrivateLinkResourcesOperations operations. + /// + public partial interface IPrivateLinkResourcesOperations + { + /// + /// Gets the private link resources that need to be created for a + /// RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// 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>> ListByRedisEnterpriseCacheWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IRedisEnterpriseDatabaseOperations.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IRedisEnterpriseDatabaseOperations.cs new file mode 100644 index 000000000000..2097d861acbc --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IRedisEnterpriseDatabaseOperations.cs @@ -0,0 +1,231 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RedisEnterpriseDatabaseOperations operations. + /// + public partial interface IRedisEnterpriseDatabaseOperations + { + /// + /// Retrieves the access keys for the RedisEnterprise database. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// 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> ListKeysWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Regenerates the RedisEnterprise database's access keys. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Which access key to regenerate. Possible values include: 'Primary', + /// 'Secondary' + /// + /// + /// 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> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, AccessKeyType keyType, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Imports a database file to target database. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target blob to import from + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task ImportWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string sasUri, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Exports a database file from target database. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target directory to export to + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task ExportWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string sasUri, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Regenerates the RedisEnterprise database's access keys. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Which access key to regenerate. Possible values include: 'Primary', + /// 'Secondary' + /// + /// + /// 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> BeginRegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, AccessKeyType keyType, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Imports a database file to target database. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target blob to import from + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginImportWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string sasUri, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Exports a database file from target database. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target directory to export to + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginExportWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string sasUri, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IRedisEnterpriseOperations.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IRedisEnterpriseOperations.cs new file mode 100644 index 000000000000..9564f8acc5c7 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IRedisEnterpriseOperations.cs @@ -0,0 +1,295 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RedisEnterpriseOperations operations. + /// + public partial interface IRedisEnterpriseOperations + { + /// + /// Creates or updates an existing (overwrite/recreate, with potential + /// downtime) cache cluster + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Create RedisEnterprise operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> CreateWithHttpMessagesAsync(string resourceGroupName, string clusterName, Cluster parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates an existing RedisEnterprise cluster + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Update RedisEnterprise operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a RedisEnterprise cache cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task DeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets information about a RedisEnterprise cluster + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// 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> GetMethodWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all RedisEnterprise clusters in a resource group. + /// + /// + /// The name of the resource group. + /// + /// + /// 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>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all RedisEnterprise clusters in the specified subscription. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Creates or updates an existing (overwrite/recreate, with potential + /// downtime) cache cluster + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Create RedisEnterprise operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string clusterName, Cluster parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Updates an existing RedisEnterprise cluster + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Update RedisEnterprise operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Deletes a RedisEnterprise cache cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Lists all RedisEnterprise clusters in a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + /// + /// Gets all RedisEnterprise clusters in the specified subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when unable to deserialize the response + /// + /// + /// Thrown when a required parameter is null + /// + Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IredisenterpriseClient.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IredisenterpriseClient.cs new file mode 100644 index 000000000000..ee6acd5d08da --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/IredisenterpriseClient.cs @@ -0,0 +1,110 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + + /// + /// REST API for managing Redis Enterprise resources in Azure. + /// + public partial interface IredisenterpriseClient : System.IDisposable + { + /// + /// The base URI of the service. + /// + System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + JsonSerializerSettings SerializationSettings { get; } + + /// + /// Gets or sets json deserialization settings. + /// + JsonSerializerSettings DeserializationSettings { get; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + ServiceClientCredentials Credentials { get; } + + /// + /// Gets subscription credentials which uniquely identify the Microsoft + /// Azure subscription. The subscription ID forms part of the URI for + /// every service call. + /// + string SubscriptionId { get; set; } + + /// + /// Client Api Version. + /// + string ApiVersion { get; } + + /// + /// The preferred language for the response. + /// + string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default + /// value is 30. + /// + int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When + /// set to true a unique x-ms-client-request-id value is generated and + /// included in each request. Default is true. + /// + bool? GenerateClientRequestId { get; set; } + + + /// + /// Gets the IOperations. + /// + IOperations Operations { get; } + + /// + /// Gets the IGetOperations. + /// + IGetOperations Get { get; } + + /// + /// Gets the IRedisEnterpriseOperations. + /// + IRedisEnterpriseOperations RedisEnterprise { get; } + + /// + /// Gets the IDatabasesOperations. + /// + IDatabasesOperations Databases { get; } + + /// + /// Gets the IRedisEnterpriseDatabaseOperations. + /// + IRedisEnterpriseDatabaseOperations RedisEnterpriseDatabase { get; } + + /// + /// Gets the IPrivateEndpointConnectionsOperations. + /// + IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; } + + /// + /// Gets the IPrivateLinkResourcesOperations. + /// + IPrivateLinkResourcesOperations PrivateLinkResources { get; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/AccessKeyType.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/AccessKeyType.cs new file mode 100644 index 000000000000..f0e5efe20b5c --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/AccessKeyType.cs @@ -0,0 +1,60 @@ +// +// 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.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using Newtonsoft.Json.Converters; + using System.Runtime; + using System.Runtime.Serialization; + + /// + /// Defines values for AccessKeyType. + /// + [JsonConverter(typeof(StringEnumConverter))] + public enum AccessKeyType + { + [EnumMember(Value = "Primary")] + Primary, + [EnumMember(Value = "Secondary")] + Secondary + } + internal static class AccessKeyTypeEnumExtension + { + internal static string ToSerializedValue(this AccessKeyType? value) + { + return value == null ? null : ((AccessKeyType)value).ToSerializedValue(); + } + + internal static string ToSerializedValue(this AccessKeyType value) + { + switch( value ) + { + case AccessKeyType.Primary: + return "Primary"; + case AccessKeyType.Secondary: + return "Secondary"; + } + return null; + } + + internal static AccessKeyType? ParseAccessKeyType(this string value) + { + switch( value ) + { + case "Primary": + return AccessKeyType.Primary; + case "Secondary": + return AccessKeyType.Secondary; + } + return null; + } + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/AccessKeys.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/AccessKeys.cs new file mode 100644 index 000000000000..bdd77badeda0 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/AccessKeys.cs @@ -0,0 +1,64 @@ +// +// 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.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Access keys + /// + /// + /// The secret access keys used for authenticating connections to redis + /// + public partial class AccessKeys + { + /// + /// Initializes a new instance of the AccessKeys class. + /// + public AccessKeys() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AccessKeys class. + /// + /// The current primary key that clients can + /// use to authenticate + /// The current secondary key that clients + /// can use to authenticate + public AccessKeys(string primaryKey = default(string), string secondaryKey = default(string)) + { + PrimaryKey = primaryKey; + SecondaryKey = secondaryKey; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the current primary key that clients can use to authenticate + /// + [JsonProperty(PropertyName = "primaryKey")] + public string PrimaryKey { get; private set; } + + /// + /// Gets the current secondary key that clients can use to authenticate + /// + [JsonProperty(PropertyName = "secondaryKey")] + public string SecondaryKey { get; private set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ActionType.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ActionType.cs new file mode 100644 index 000000000000..ebec019f8ffd --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ActionType.cs @@ -0,0 +1,21 @@ +// +// 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.RedisEnterprise.Models +{ + + /// + /// Defines values for ActionType. + /// + public static class ActionType + { + public const string Internal = "Internal"; + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/AzureEntityResource.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/AzureEntityResource.cs new file mode 100644 index 000000000000..78420c0fe015 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/AzureEntityResource.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource model definition for an Azure Resource Manager resource + /// with an etag. + /// + public partial class AzureEntityResource : Resource + { + /// + /// Initializes a new instance of the AzureEntityResource class. + /// + public AzureEntityResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the AzureEntityResource 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.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Resource Etag. + public AzureEntityResource(string id = default(string), string name = default(string), string type = default(string), string etag = default(string)) + : base(id, name, type) + { + Etag = etag; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets resource Etag. + /// + [JsonProperty(PropertyName = "etag")] + public string Etag { get; private set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Cluster.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Cluster.cs new file mode 100644 index 000000000000..79ba9e52e8d2 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Cluster.cs @@ -0,0 +1,141 @@ +// +// 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.RedisEnterprise.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Describes the RedisEnterprise cluster + /// + [Rest.Serialization.JsonTransformation] + public partial class Cluster : TrackedResource + { + /// + /// Initializes a new instance of the Cluster class. + /// + public Cluster() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Cluster class. + /// + /// The geo-location where the resource + /// lives + /// The SKU to create, which affects price, + /// performance, and features. + /// 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.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Resource tags. + /// The zones where this cluster will be + /// deployed. + /// The minimum TLS version for the + /// cluster to support, e.g. '1.2' + /// DNS name of the cluster endpoint + /// Current provisioning status of the + /// cluster. Possible values include: 'Succeeded', 'Failed', + /// 'Canceled', 'Creating', 'Updating', 'Deleting' + /// Current resource status of the cluster. + /// Possible values include: 'Running', 'Creating', 'CreateFailed', + /// 'Updating', 'UpdateFailed', 'Deleting', 'DeleteFailed', 'Enabling', + /// 'EnableFailed', 'Disabling', 'DisableFailed', 'Disabled' + /// Version of redis the cluster supports, + /// e.g. '6' + /// List of private endpoint + /// connections associated with the specified RedisEnterprise + /// cluster + public Cluster(string location, Sku sku, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary), IList zones = default(IList), string minimumTlsVersion = default(string), string hostName = default(string), string provisioningState = default(string), string resourceState = default(string), string redisVersion = default(string), IList privateEndpointConnections = default(IList)) + : base(location, id, name, type, tags) + { + Sku = sku; + Zones = zones; + MinimumTlsVersion = minimumTlsVersion; + HostName = hostName; + ProvisioningState = provisioningState; + ResourceState = resourceState; + RedisVersion = redisVersion; + PrivateEndpointConnections = privateEndpointConnections; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the SKU to create, which affects price, performance, + /// and features. + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + + /// + /// Gets or sets the zones where this cluster will be deployed. + /// + [JsonProperty(PropertyName = "zones")] + public IList Zones { get; set; } + + /// + /// Gets or sets the minimum TLS version for the cluster to support, + /// e.g. '1.2' + /// + [JsonProperty(PropertyName = "properties.minimumTlsVersion")] + public string MinimumTlsVersion { get; set; } + + /// + /// Gets DNS name of the cluster endpoint + /// + [JsonProperty(PropertyName = "properties.hostName")] + public string HostName { get; private set; } + + /// + /// Gets current provisioning status of the cluster. Possible values + /// include: 'Succeeded', 'Failed', 'Canceled', 'Creating', 'Updating', + /// 'Deleting' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets current resource status of the cluster. Possible values + /// include: 'Running', 'Creating', 'CreateFailed', 'Updating', + /// 'UpdateFailed', 'Deleting', 'DeleteFailed', 'Enabling', + /// 'EnableFailed', 'Disabling', 'DisableFailed', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.resourceState")] + public string ResourceState { get; private set; } + + /// + /// Gets version of redis the cluster supports, e.g. '6' + /// + [JsonProperty(PropertyName = "properties.redisVersion")] + public string RedisVersion { get; private set; } + + /// + /// Gets list of private endpoint connections associated with the + /// specified RedisEnterprise cluster + /// + [JsonProperty(PropertyName = "properties.privateEndpointConnections")] + public IList PrivateEndpointConnections { get; private set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ClusterUpdate.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ClusterUpdate.cs new file mode 100644 index 000000000000..adce04dec229 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ClusterUpdate.cs @@ -0,0 +1,130 @@ +// +// 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.RedisEnterprise.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A partial update to the RedisEnterprise cluster + /// + [Rest.Serialization.JsonTransformation] + public partial class ClusterUpdate + { + /// + /// Initializes a new instance of the ClusterUpdate class. + /// + public ClusterUpdate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ClusterUpdate class. + /// + /// The SKU to create, which affects price, + /// performance, and features. + /// The minimum TLS version for the + /// cluster to support, e.g. '1.2' + /// DNS name of the cluster endpoint + /// Current provisioning status of the + /// cluster. Possible values include: 'Succeeded', 'Failed', + /// 'Canceled', 'Creating', 'Updating', 'Deleting' + /// Current resource status of the cluster. + /// Possible values include: 'Running', 'Creating', 'CreateFailed', + /// 'Updating', 'UpdateFailed', 'Deleting', 'DeleteFailed', 'Enabling', + /// 'EnableFailed', 'Disabling', 'DisableFailed', 'Disabled' + /// Version of redis the cluster supports, + /// e.g. '6' + /// List of private endpoint + /// connections associated with the specified RedisEnterprise + /// cluster + /// Resource tags. + public ClusterUpdate(Sku sku = default(Sku), string minimumTlsVersion = default(string), string hostName = default(string), string provisioningState = default(string), string resourceState = default(string), string redisVersion = default(string), IList privateEndpointConnections = default(IList), IDictionary tags = default(IDictionary)) + { + Sku = sku; + MinimumTlsVersion = minimumTlsVersion; + HostName = hostName; + ProvisioningState = provisioningState; + ResourceState = resourceState; + RedisVersion = redisVersion; + PrivateEndpointConnections = privateEndpointConnections; + Tags = tags; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the SKU to create, which affects price, performance, + /// and features. + /// + [JsonProperty(PropertyName = "sku")] + public Sku Sku { get; set; } + + /// + /// Gets or sets the minimum TLS version for the cluster to support, + /// e.g. '1.2' + /// + [JsonProperty(PropertyName = "properties.minimumTlsVersion")] + public string MinimumTlsVersion { get; set; } + + /// + /// Gets DNS name of the cluster endpoint + /// + [JsonProperty(PropertyName = "properties.hostName")] + public string HostName { get; private set; } + + /// + /// Gets current provisioning status of the cluster. Possible values + /// include: 'Succeeded', 'Failed', 'Canceled', 'Creating', 'Updating', + /// 'Deleting' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets current resource status of the cluster. Possible values + /// include: 'Running', 'Creating', 'CreateFailed', 'Updating', + /// 'UpdateFailed', 'Deleting', 'DeleteFailed', 'Enabling', + /// 'EnableFailed', 'Disabling', 'DisableFailed', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.resourceState")] + public string ResourceState { get; private set; } + + /// + /// Gets version of redis the cluster supports, e.g. '6' + /// + [JsonProperty(PropertyName = "properties.redisVersion")] + public string RedisVersion { get; private set; } + + /// + /// Gets list of private endpoint connections associated with the + /// specified RedisEnterprise cluster + /// + [JsonProperty(PropertyName = "properties.privateEndpointConnections")] + public IList PrivateEndpointConnections { get; private set; } + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ClusteringPolicy.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ClusteringPolicy.cs new file mode 100644 index 000000000000..7cada6ae8af9 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ClusteringPolicy.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RedisEnterprise.Models +{ + + /// + /// Defines values for ClusteringPolicy. + /// + public static class ClusteringPolicy + { + public const string EnterpriseCluster = "EnterpriseCluster"; + public const string OSSCluster = "OSSCluster"; + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Database.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Database.cs new file mode 100644 index 000000000000..c22d6e9dbda4 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Database.cs @@ -0,0 +1,141 @@ +// +// 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.RedisEnterprise.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// Describes a database on the RedisEnterprise cluster + /// + [Rest.Serialization.JsonTransformation] + public partial class Database : ProxyResource + { + /// + /// Initializes a new instance of the Database class. + /// + public Database() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Database 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.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Specifies whether redis clients can + /// connect using TLS-encrypted or plaintext redis protocols. Default + /// is TLS-encrypted. Possible values include: 'Encrypted', + /// 'Plaintext' + /// TCP port of the database endpoint. Specified at + /// create time. Defaults to an available port. + /// Current provisioning status of the + /// database. Possible values include: 'Succeeded', 'Failed', + /// 'Canceled', 'Creating', 'Updating', 'Deleting' + /// Current resource status of the + /// database. Possible values include: 'Running', 'Creating', + /// 'CreateFailed', 'Updating', 'UpdateFailed', 'Deleting', + /// 'DeleteFailed', 'Enabling', 'EnableFailed', 'Disabling', + /// 'DisableFailed', 'Disabled' + /// Clustering policy - default is + /// OSSCluster. Specified at create time. Possible values include: + /// 'EnterpriseCluster', 'OSSCluster' + /// Redis eviction policy - default is + /// VolatileLRU. Possible values include: 'AllKeysLFU', 'AllKeysLRU', + /// 'AllKeysRandom', 'VolatileLRU', 'VolatileLFU', 'VolatileTTL', + /// 'VolatileRandom', 'NoEviction' + /// Optional set of redis modules to enable in + /// this database - modules can only be added at creation time. + public Database(string id = default(string), string name = default(string), string type = default(string), string clientProtocol = default(string), int? port = default(int?), string provisioningState = default(string), string resourceState = default(string), string clusteringPolicy = default(string), string evictionPolicy = default(string), IList modules = default(IList)) + : base(id, name, type) + { + ClientProtocol = clientProtocol; + Port = port; + ProvisioningState = provisioningState; + ResourceState = resourceState; + ClusteringPolicy = clusteringPolicy; + EvictionPolicy = evictionPolicy; + Modules = modules; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies whether redis clients can connect using + /// TLS-encrypted or plaintext redis protocols. Default is + /// TLS-encrypted. Possible values include: 'Encrypted', 'Plaintext' + /// + [JsonProperty(PropertyName = "properties.clientProtocol")] + public string ClientProtocol { get; set; } + + /// + /// Gets or sets TCP port of the database endpoint. Specified at create + /// time. Defaults to an available port. + /// + [JsonProperty(PropertyName = "properties.port")] + public int? Port { get; set; } + + /// + /// Gets current provisioning status of the database. Possible values + /// include: 'Succeeded', 'Failed', 'Canceled', 'Creating', 'Updating', + /// 'Deleting' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets current resource status of the database. Possible values + /// include: 'Running', 'Creating', 'CreateFailed', 'Updating', + /// 'UpdateFailed', 'Deleting', 'DeleteFailed', 'Enabling', + /// 'EnableFailed', 'Disabling', 'DisableFailed', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.resourceState")] + public string ResourceState { get; private set; } + + /// + /// Gets or sets clustering policy - default is OSSCluster. Specified + /// at create time. Possible values include: 'EnterpriseCluster', + /// 'OSSCluster' + /// + [JsonProperty(PropertyName = "properties.clusteringPolicy")] + public string ClusteringPolicy { get; set; } + + /// + /// Gets or sets redis eviction policy - default is VolatileLRU. + /// Possible values include: 'AllKeysLFU', 'AllKeysLRU', + /// 'AllKeysRandom', 'VolatileLRU', 'VolatileLFU', 'VolatileTTL', + /// 'VolatileRandom', 'NoEviction' + /// + [JsonProperty(PropertyName = "properties.evictionPolicy")] + public string EvictionPolicy { get; set; } + + /// + /// Gets or sets optional set of redis modules to enable in this + /// database - modules can only be added at creation time. + /// + [JsonProperty(PropertyName = "properties.modules")] + public IList Modules { get; set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/DatabaseUpdate.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/DatabaseUpdate.cs new file mode 100644 index 000000000000..894b8b64adb0 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/DatabaseUpdate.cs @@ -0,0 +1,134 @@ +// +// 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.RedisEnterprise.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A partial update to the RedisEnterprise database + /// + [Rest.Serialization.JsonTransformation] + public partial class DatabaseUpdate + { + /// + /// Initializes a new instance of the DatabaseUpdate class. + /// + public DatabaseUpdate() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the DatabaseUpdate class. + /// + /// Specifies whether redis clients can + /// connect using TLS-encrypted or plaintext redis protocols. Default + /// is TLS-encrypted. Possible values include: 'Encrypted', + /// 'Plaintext' + /// TCP port of the database endpoint. Specified at + /// create time. Defaults to an available port. + /// Current provisioning status of the + /// database. Possible values include: 'Succeeded', 'Failed', + /// 'Canceled', 'Creating', 'Updating', 'Deleting' + /// Current resource status of the + /// database. Possible values include: 'Running', 'Creating', + /// 'CreateFailed', 'Updating', 'UpdateFailed', 'Deleting', + /// 'DeleteFailed', 'Enabling', 'EnableFailed', 'Disabling', + /// 'DisableFailed', 'Disabled' + /// Clustering policy - default is + /// OSSCluster. Specified at create time. Possible values include: + /// 'EnterpriseCluster', 'OSSCluster' + /// Redis eviction policy - default is + /// VolatileLRU. Possible values include: 'AllKeysLFU', 'AllKeysLRU', + /// 'AllKeysRandom', 'VolatileLRU', 'VolatileLFU', 'VolatileTTL', + /// 'VolatileRandom', 'NoEviction' + /// Optional set of redis modules to enable in + /// this database - modules can only be added at creation time. + public DatabaseUpdate(string clientProtocol = default(string), int? port = default(int?), string provisioningState = default(string), string resourceState = default(string), string clusteringPolicy = default(string), string evictionPolicy = default(string), IList modules = default(IList)) + { + ClientProtocol = clientProtocol; + Port = port; + ProvisioningState = provisioningState; + ResourceState = resourceState; + ClusteringPolicy = clusteringPolicy; + EvictionPolicy = evictionPolicy; + Modules = modules; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets specifies whether redis clients can connect using + /// TLS-encrypted or plaintext redis protocols. Default is + /// TLS-encrypted. Possible values include: 'Encrypted', 'Plaintext' + /// + [JsonProperty(PropertyName = "properties.clientProtocol")] + public string ClientProtocol { get; set; } + + /// + /// Gets or sets TCP port of the database endpoint. Specified at create + /// time. Defaults to an available port. + /// + [JsonProperty(PropertyName = "properties.port")] + public int? Port { get; set; } + + /// + /// Gets current provisioning status of the database. Possible values + /// include: 'Succeeded', 'Failed', 'Canceled', 'Creating', 'Updating', + /// 'Deleting' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; private set; } + + /// + /// Gets current resource status of the database. Possible values + /// include: 'Running', 'Creating', 'CreateFailed', 'Updating', + /// 'UpdateFailed', 'Deleting', 'DeleteFailed', 'Enabling', + /// 'EnableFailed', 'Disabling', 'DisableFailed', 'Disabled' + /// + [JsonProperty(PropertyName = "properties.resourceState")] + public string ResourceState { get; private set; } + + /// + /// Gets or sets clustering policy - default is OSSCluster. Specified + /// at create time. Possible values include: 'EnterpriseCluster', + /// 'OSSCluster' + /// + [JsonProperty(PropertyName = "properties.clusteringPolicy")] + public string ClusteringPolicy { get; set; } + + /// + /// Gets or sets redis eviction policy - default is VolatileLRU. + /// Possible values include: 'AllKeysLFU', 'AllKeysLRU', + /// 'AllKeysRandom', 'VolatileLRU', 'VolatileLFU', 'VolatileTTL', + /// 'VolatileRandom', 'NoEviction' + /// + [JsonProperty(PropertyName = "properties.evictionPolicy")] + public string EvictionPolicy { get; set; } + + /// + /// Gets or sets optional set of redis modules to enable in this + /// database - modules can only be added at creation time. + /// + [JsonProperty(PropertyName = "properties.modules")] + public IList Modules { get; set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ErrorAdditionalInfo.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ErrorAdditionalInfo.cs new file mode 100644 index 000000000000..609d2d4a2142 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ErrorAdditionalInfo.cs @@ -0,0 +1,59 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The resource management error additional info. + /// + public partial class ErrorAdditionalInfo + { + /// + /// Initializes a new instance of the ErrorAdditionalInfo class. + /// + public ErrorAdditionalInfo() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorAdditionalInfo class. + /// + /// The additional info type. + /// The additional info. + public ErrorAdditionalInfo(string type = default(string), object info = default(object)) + { + Type = type; + Info = info; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the additional info type. + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + /// + /// Gets the additional info. + /// + [JsonProperty(PropertyName = "info")] + public object Info { get; private set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ErrorDetail.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ErrorDetail.cs new file mode 100644 index 000000000000..33ded6c853f7 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ErrorDetail.cs @@ -0,0 +1,85 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The error detail. + /// + public partial class ErrorDetail + { + /// + /// Initializes a new instance of the ErrorDetail class. + /// + public ErrorDetail() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorDetail class. + /// + /// The error code. + /// The error message. + /// The error target. + /// The error details. + /// The error additional info. + public ErrorDetail(string code = default(string), string message = default(string), string target = default(string), IList details = default(IList), IList additionalInfo = default(IList)) + { + Code = code; + Message = message; + Target = target; + Details = details; + AdditionalInfo = additionalInfo; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the error code. + /// + [JsonProperty(PropertyName = "code")] + public string Code { get; private set; } + + /// + /// Gets the error message. + /// + [JsonProperty(PropertyName = "message")] + public string Message { get; private set; } + + /// + /// Gets the error target. + /// + [JsonProperty(PropertyName = "target")] + public string Target { get; private set; } + + /// + /// Gets the error details. + /// + [JsonProperty(PropertyName = "details")] + public IList Details { get; private set; } + + /// + /// Gets the error additional info. + /// + [JsonProperty(PropertyName = "additionalInfo")] + public IList AdditionalInfo { get; private set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ErrorResponse.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ErrorResponse.cs new file mode 100644 index 000000000000..832d171bacfe --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ErrorResponse.cs @@ -0,0 +1,56 @@ +// +// 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.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Error response + /// + /// + /// Common error response for all Azure Resource Manager APIs to return + /// error details for failed operations. (This also follows the OData error + /// response format.). + /// + public partial class ErrorResponse + { + /// + /// Initializes a new instance of the ErrorResponse class. + /// + public ErrorResponse() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ErrorResponse class. + /// + /// The error object. + public ErrorResponse(ErrorDetail error = default(ErrorDetail)) + { + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the error object. + /// + [JsonProperty(PropertyName = "error")] + public ErrorDetail Error { get; set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ErrorResponseException.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ErrorResponseException.cs new file mode 100644 index 000000000000..5583c6534673 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ErrorResponseException.cs @@ -0,0 +1,62 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RedisEnterprise.Models +{ + using Microsoft.Rest; + + /// + /// Exception thrown for an invalid response with ErrorResponse + /// information. + /// + public partial class ErrorResponseException : RestException + { + /// + /// Gets information about the associated HTTP request. + /// + public HttpRequestMessageWrapper Request { get; set; } + + /// + /// Gets information about the associated HTTP response. + /// + public HttpResponseMessageWrapper Response { get; set; } + + /// + /// Gets or sets the body object. + /// + public ErrorResponse Body { get; set; } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + public ErrorResponseException() + { + } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + /// The exception message. + public ErrorResponseException(string message) + : this(message, null) + { + } + + /// + /// Initializes a new instance of the ErrorResponseException class. + /// + /// The exception message. + /// Inner exception. + public ErrorResponseException(string message, System.Exception innerException) + : base(message, innerException) + { + } + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/EvictionPolicy.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/EvictionPolicy.cs new file mode 100644 index 000000000000..02beed25f814 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/EvictionPolicy.cs @@ -0,0 +1,28 @@ +// +// 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.RedisEnterprise.Models +{ + + /// + /// Defines values for EvictionPolicy. + /// + public static class EvictionPolicy + { + public const string AllKeysLFU = "AllKeysLFU"; + public const string AllKeysLRU = "AllKeysLRU"; + public const string AllKeysRandom = "AllKeysRandom"; + public const string VolatileLRU = "VolatileLRU"; + public const string VolatileLFU = "VolatileLFU"; + public const string VolatileTTL = "VolatileTTL"; + public const string VolatileRandom = "VolatileRandom"; + public const string NoEviction = "NoEviction"; + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ExportClusterParameters.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ExportClusterParameters.cs new file mode 100644 index 000000000000..ba03bcfbca43 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ExportClusterParameters.cs @@ -0,0 +1,55 @@ +// +// 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.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Export an RDB file into a target database + /// + /// + /// Parameters for a Redis Enterprise export operation. + /// + public partial class ExportClusterParameters + { + /// + /// Initializes a new instance of the ExportClusterParameters class. + /// + public ExportClusterParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ExportClusterParameters class. + /// + /// SAS Uri for the target directory to export + /// to + public ExportClusterParameters(string sasUri) + { + SasUri = sasUri; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets SAS Uri for the target directory to export to + /// + [JsonProperty(PropertyName = "sasUri")] + public string SasUri { get; set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ImportClusterParameters.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ImportClusterParameters.cs new file mode 100644 index 000000000000..30c366af6964 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ImportClusterParameters.cs @@ -0,0 +1,55 @@ +// +// 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.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Import an RDB file into a target database + /// + /// + /// Parameters for a Redis Enterprise import operation. + /// + public partial class ImportClusterParameters + { + /// + /// Initializes a new instance of the ImportClusterParameters class. + /// + public ImportClusterParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the ImportClusterParameters class. + /// + /// SAS Uri for the target blob to import + /// from + public ImportClusterParameters(string sasUri) + { + SasUri = sasUri; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets SAS Uri for the target blob to import from + /// + [JsonProperty(PropertyName = "sasUri")] + public string SasUri { get; set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Module.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Module.cs new file mode 100644 index 000000000000..ac71ea2b1e2e --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Module.cs @@ -0,0 +1,75 @@ +// +// 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.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Module settings + /// + /// + /// Specifies configuration of a redis module + /// + public partial class Module + { + /// + /// Initializes a new instance of the Module class. + /// + public Module() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Module class. + /// + /// The name of the module, e.g. 'RedisBloom', + /// 'RediSearch', 'RedisTimeSeries' + /// Configuration options for the module, e.g. + /// 'ERROR_RATE 0.00 INITIAL_SIZE 400'. + /// The version of the module, e.g. + /// '1.0'. + public Module(string name, string args = default(string), string version = default(string)) + { + Name = name; + Args = args; + Version = version; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the name of the module, e.g. 'RedisBloom', + /// 'RediSearch', 'RedisTimeSeries' + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets configuration options for the module, e.g. 'ERROR_RATE + /// 0.00 INITIAL_SIZE 400'. + /// + [JsonProperty(PropertyName = "args")] + public string Args { get; set; } + + /// + /// Gets the version of the module, e.g. '1.0'. + /// + [JsonProperty(PropertyName = "version")] + public string Version { get; private set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Operation.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Operation.cs new file mode 100644 index 000000000000..7459f0f5d4ba --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Operation.cs @@ -0,0 +1,106 @@ +// +// 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.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Details of a REST API operation, returned from the Resource Provider + /// Operations API + /// + public partial class Operation + { + /// + /// Initializes a new instance of the Operation class. + /// + public Operation() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Operation class. + /// + /// The name of the operation, as per Resource-Based + /// Access Control (RBAC). Examples: + /// "Microsoft.Compute/virtualMachines/write", + /// "Microsoft.Compute/virtualMachines/capture/action" + /// Whether the operation applies to + /// data-plane. This is "true" for data-plane operations and "false" + /// for ARM/control-plane operations. + /// Localized display information for this + /// particular operation. + /// The intended executor of the operation; as in + /// Resource Based Access Control (RBAC) and audit logs UX. Default + /// value is "user,system". Possible values include: 'user', 'system', + /// 'user,system' + /// Enum. Indicates the action type. + /// "Internal" refers to actions that are for internal only APIs. + /// Possible values include: 'Internal' + public Operation(string name = default(string), bool? isDataAction = default(bool?), OperationDisplay display = default(OperationDisplay), string origin = default(string), string actionType = default(string)) + { + Name = name; + IsDataAction = isDataAction; + Display = display; + Origin = origin; + ActionType = actionType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the name of the operation, as per Resource-Based Access + /// Control (RBAC). Examples: + /// "Microsoft.Compute/virtualMachines/write", + /// "Microsoft.Compute/virtualMachines/capture/action" + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; private set; } + + /// + /// Gets whether the operation applies to data-plane. This is "true" + /// for data-plane operations and "false" for ARM/control-plane + /// operations. + /// + [JsonProperty(PropertyName = "isDataAction")] + public bool? IsDataAction { get; private set; } + + /// + /// Gets or sets localized display information for this particular + /// operation. + /// + [JsonProperty(PropertyName = "display")] + public OperationDisplay Display { get; set; } + + /// + /// Gets the intended executor of the operation; as in Resource Based + /// Access Control (RBAC) and audit logs UX. Default value is + /// "user,system". Possible values include: 'user', 'system', + /// 'user,system' + /// + [JsonProperty(PropertyName = "origin")] + public string Origin { get; private set; } + + /// + /// Gets enum. Indicates the action type. "Internal" refers to actions + /// that are for internal only APIs. Possible values include: + /// 'Internal' + /// + [JsonProperty(PropertyName = "actionType")] + public string ActionType { get; private set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/OperationDisplay.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/OperationDisplay.cs new file mode 100644 index 000000000000..a913f3bce776 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/OperationDisplay.cs @@ -0,0 +1,89 @@ +// +// 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.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Localized display information for this particular operation. + /// + public partial class OperationDisplay + { + /// + /// Initializes a new instance of the OperationDisplay class. + /// + public OperationDisplay() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationDisplay class. + /// + /// The localized friendly form of the resource + /// provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft + /// Compute". + /// The localized friendly name of the resource + /// type related to this operation. E.g. "Virtual Machines" or "Job + /// Schedule Collections". + /// The concise, localized friendly name for + /// the operation; suitable for dropdowns. E.g. "Create or Update + /// Virtual Machine", "Restart Virtual Machine". + /// The short, localized friendly description + /// of the operation; suitable for tool tips and detailed + /// views. + 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(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the localized friendly form of the resource provider name, + /// e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + /// + [JsonProperty(PropertyName = "provider")] + public string Provider { get; private set; } + + /// + /// Gets the localized friendly name of the resource type related to + /// this operation. E.g. "Virtual Machines" or "Job Schedule + /// Collections". + /// + [JsonProperty(PropertyName = "resource")] + public string Resource { get; private set; } + + /// + /// Gets the concise, localized friendly name for the operation; + /// suitable for dropdowns. E.g. "Create or Update Virtual Machine", + /// "Restart Virtual Machine". + /// + [JsonProperty(PropertyName = "operation")] + public string Operation { get; private set; } + + /// + /// Gets the short, localized friendly description of the operation; + /// suitable for tool tips and detailed views. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; private set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/OperationStatus.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/OperationStatus.cs new file mode 100644 index 000000000000..1b738b0bc1fe --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/OperationStatus.cs @@ -0,0 +1,92 @@ +// +// 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.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The status of a long-running operation. + /// + public partial class OperationStatus + { + /// + /// Initializes a new instance of the OperationStatus class. + /// + public OperationStatus() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationStatus class. + /// + /// The operation's unique id. + /// The operation's name. + /// The start time of the operation. + /// The end time of the operation. + /// The current status of the operation. + /// Error response describing why the operation + /// failed. + public OperationStatus(string id = default(string), string name = default(string), string startTime = default(string), string endTime = default(string), string status = default(string), ErrorResponse error = default(ErrorResponse)) + { + Id = id; + Name = name; + StartTime = startTime; + EndTime = endTime; + Status = status; + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the operation's unique id. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets the operation's name. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the start time of the operation. + /// + [JsonProperty(PropertyName = "startTime")] + public string StartTime { get; set; } + + /// + /// Gets or sets the end time of the operation. + /// + [JsonProperty(PropertyName = "endTime")] + public string EndTime { get; set; } + + /// + /// Gets or sets the current status of the operation. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets error response describing why the operation failed. + /// + [JsonProperty(PropertyName = "error")] + public ErrorResponse Error { get; set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Origin.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Origin.cs new file mode 100644 index 000000000000..859f6a3542c8 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Origin.cs @@ -0,0 +1,23 @@ +// +// 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.RedisEnterprise.Models +{ + + /// + /// Defines values for Origin. + /// + public static class Origin + { + public const string User = "user"; + public const string System = "system"; + public const string Usersystem = "user,system"; + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Page.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Page.cs new file mode 100644 index 000000000000..d329be92070e --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Page.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RedisEnterprise.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("nextLink")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Page1.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Page1.cs new file mode 100644 index 000000000000..e392881736e5 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Page1.cs @@ -0,0 +1,53 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RedisEnterprise.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + + /// + /// Defines a page in Azure responses. + /// + /// Type of the page content items + [JsonObject] + public class Page1 : IPage + { + /// + /// Gets the link to the next page. + /// + [JsonProperty("")] + public string NextPageLink { get; private set; } + + [JsonProperty("value")] + private IList Items{ get; set; } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + public IEnumerator GetEnumerator() + { + return Items == null ? System.Linq.Enumerable.Empty().GetEnumerator() : Items.GetEnumerator(); + } + + /// + /// Returns an enumerator that iterates through the collection. + /// + /// A an enumerator that can be used to iterate through the collection. + IEnumerator IEnumerable.GetEnumerator() + { + return GetEnumerator(); + } + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateEndpoint.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateEndpoint.cs new file mode 100644 index 000000000000..c550ed8ff85c --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateEndpoint.cs @@ -0,0 +1,51 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// The Private Endpoint resource. + /// + public partial class PrivateEndpoint + { + /// + /// Initializes a new instance of the PrivateEndpoint class. + /// + public PrivateEndpoint() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrivateEndpoint class. + /// + /// The ARM identifier for Private Endpoint + public PrivateEndpoint(string id = default(string)) + { + Id = id; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the ARM identifier for Private Endpoint + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; private set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateEndpointConnection.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateEndpointConnection.cs new file mode 100644 index 000000000000..2bd41733db9e --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateEndpointConnection.cs @@ -0,0 +1,85 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RedisEnterprise.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Linq; + + /// + /// The Private Endpoint Connection resource. + /// + [Rest.Serialization.JsonTransformation] + public partial class PrivateEndpointConnection : Resource + { + /// + /// Initializes a new instance of the PrivateEndpointConnection class. + /// + public PrivateEndpointConnection() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrivateEndpointConnection class. + /// + /// A collection of + /// information about the state of the connection between service + /// consumer and provider. + /// 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.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// The resource of private end + /// point. + /// The provisioning state of the + /// private endpoint connection resource. Possible values include: + /// 'Succeeded', 'Creating', 'Deleting', 'Failed' + public PrivateEndpointConnection(PrivateLinkServiceConnectionState privateLinkServiceConnectionState, string id = default(string), string name = default(string), string type = default(string), PrivateEndpoint privateEndpoint = default(PrivateEndpoint), string provisioningState = default(string)) + : base(id, name, type) + { + PrivateEndpoint = privateEndpoint; + PrivateLinkServiceConnectionState = privateLinkServiceConnectionState; + ProvisioningState = provisioningState; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the resource of private end point. + /// + [JsonProperty(PropertyName = "properties.privateEndpoint")] + public PrivateEndpoint PrivateEndpoint { get; set; } + + /// + /// Gets or sets a collection of information about the state of the + /// connection between service consumer and provider. + /// + [JsonProperty(PropertyName = "properties.privateLinkServiceConnectionState")] + public PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState { get; set; } + + /// + /// Gets or sets the provisioning state of the private endpoint + /// connection resource. Possible values include: 'Succeeded', + /// 'Creating', 'Deleting', 'Failed' + /// + [JsonProperty(PropertyName = "properties.provisioningState")] + public string ProvisioningState { get; set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateEndpointConnectionProvisioningState.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateEndpointConnectionProvisioningState.cs new file mode 100644 index 000000000000..29cd08512704 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateEndpointConnectionProvisioningState.cs @@ -0,0 +1,24 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RedisEnterprise.Models +{ + + /// + /// Defines values for PrivateEndpointConnectionProvisioningState. + /// + public static class PrivateEndpointConnectionProvisioningState + { + public const string Succeeded = "Succeeded"; + public const string Creating = "Creating"; + public const string Deleting = "Deleting"; + public const string Failed = "Failed"; + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateEndpointServiceConnectionStatus.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateEndpointServiceConnectionStatus.cs new file mode 100644 index 000000000000..5b9820a053a8 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateEndpointServiceConnectionStatus.cs @@ -0,0 +1,23 @@ +// +// 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.RedisEnterprise.Models +{ + + /// + /// Defines values for PrivateEndpointServiceConnectionStatus. + /// + public static class PrivateEndpointServiceConnectionStatus + { + public const string Pending = "Pending"; + public const string Approved = "Approved"; + public const string Rejected = "Rejected"; + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateLinkResource.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateLinkResource.cs new file mode 100644 index 000000000000..10372f2c48c9 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateLinkResource.cs @@ -0,0 +1,81 @@ +// +// 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.RedisEnterprise.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Serialization; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// A private link resource + /// + [Rest.Serialization.JsonTransformation] + public partial class PrivateLinkResource : Resource + { + /// + /// Initializes a new instance of the PrivateLinkResource class. + /// + public PrivateLinkResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrivateLinkResource 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.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// The private link resource group id. + /// The private link resource required + /// member names. + /// The private link resource Private + /// link DNS zone name. + public PrivateLinkResource(string id = default(string), string name = default(string), string type = default(string), string groupId = default(string), IList requiredMembers = default(IList), IList requiredZoneNames = default(IList)) + : base(id, name, type) + { + GroupId = groupId; + RequiredMembers = requiredMembers; + RequiredZoneNames = requiredZoneNames; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets the private link resource group id. + /// + [JsonProperty(PropertyName = "properties.groupId")] + public string GroupId { get; private set; } + + /// + /// Gets the private link resource required member names. + /// + [JsonProperty(PropertyName = "properties.requiredMembers")] + public IList RequiredMembers { get; private set; } + + /// + /// Gets or sets the private link resource Private link DNS zone name. + /// + [JsonProperty(PropertyName = "properties.requiredZoneNames")] + public IList RequiredZoneNames { get; set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateLinkServiceConnectionState.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateLinkServiceConnectionState.cs new file mode 100644 index 000000000000..a8827d40cf69 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/PrivateLinkServiceConnectionState.cs @@ -0,0 +1,77 @@ +// +// 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.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// A collection of information about the state of the connection between + /// service consumer and provider. + /// + public partial class PrivateLinkServiceConnectionState + { + /// + /// Initializes a new instance of the PrivateLinkServiceConnectionState + /// class. + /// + public PrivateLinkServiceConnectionState() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the PrivateLinkServiceConnectionState + /// class. + /// + /// Indicates whether the connection has been + /// Approved/Rejected/Removed by the owner of the service. Possible + /// values include: 'Pending', 'Approved', 'Rejected' + /// The reason for approval/rejection of the + /// connection. + /// A message indicating if changes on + /// the service provider require any updates on the consumer. + public PrivateLinkServiceConnectionState(string status = default(string), string description = default(string), string actionsRequired = default(string)) + { + Status = status; + Description = description; + ActionsRequired = actionsRequired; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets indicates whether the connection has been + /// Approved/Rejected/Removed by the owner of the service. Possible + /// values include: 'Pending', 'Approved', 'Rejected' + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets the reason for approval/rejection of the connection. + /// + [JsonProperty(PropertyName = "description")] + public string Description { get; set; } + + /// + /// Gets or sets a message indicating if changes on the service + /// provider require any updates on the consumer. + /// + [JsonProperty(PropertyName = "actionsRequired")] + public string ActionsRequired { get; set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Protocol.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Protocol.cs new file mode 100644 index 000000000000..1354a01a1b30 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Protocol.cs @@ -0,0 +1,22 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RedisEnterprise.Models +{ + + /// + /// Defines values for Protocol. + /// + public static class Protocol + { + public const string Encrypted = "Encrypted"; + public const string Plaintext = "Plaintext"; + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ProvisioningState.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ProvisioningState.cs new file mode 100644 index 000000000000..215561b07c35 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ProvisioningState.cs @@ -0,0 +1,26 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RedisEnterprise.Models +{ + + /// + /// Defines values for ProvisioningState. + /// + public static class ProvisioningState + { + public const string Succeeded = "Succeeded"; + public const string Failed = "Failed"; + public const string Canceled = "Canceled"; + public const string Creating = "Creating"; + public const string Updating = "Updating"; + public const string Deleting = "Deleting"; + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ProxyResource.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ProxyResource.cs new file mode 100644 index 000000000000..484c8c42e2c7 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ProxyResource.cs @@ -0,0 +1,50 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// 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.RedisEnterprise.Models +{ + using System.Linq; + + /// + /// The resource model definition for an Azure Resource Manager proxy + /// resource. It will have everything other than required location and tags + /// + public partial class ProxyResource : Resource + { + /// + /// 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.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + public ProxyResource(string id = default(string), string name = default(string), string type = default(string)) + : base(id, name, type) + { + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/RegenerateKeyParameters.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/RegenerateKeyParameters.cs new file mode 100644 index 000000000000..ccdc424f4835 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/RegenerateKeyParameters.cs @@ -0,0 +1,56 @@ +// +// 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.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// Regenerate access keys request + /// + /// + /// Specifies which access keys to reset to a new random value. + /// + public partial class RegenerateKeyParameters + { + /// + /// Initializes a new instance of the RegenerateKeyParameters class. + /// + public RegenerateKeyParameters() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the RegenerateKeyParameters class. + /// + /// Which access key to regenerate. Possible + /// values include: 'Primary', 'Secondary' + public RegenerateKeyParameters(AccessKeyType keyType) + { + KeyType = keyType; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets which access key to regenerate. Possible values + /// include: 'Primary', 'Secondary' + /// + [JsonProperty(PropertyName = "keyType")] + public AccessKeyType KeyType { get; set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Resource.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Resource.cs new file mode 100644 index 000000000000..5b68e0c05b9f --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Resource.cs @@ -0,0 +1,76 @@ +// +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is +// regenerated. +// + +namespace Microsoft.Azure.Management.RedisEnterprise.Models +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Newtonsoft.Json; + using System.Linq; + + /// + /// Common fields that are returned in the response for all Azure Resource + /// Manager resources + /// + public partial class Resource : IResource + { + /// + /// Initializes a new instance of the Resource class. + /// + public Resource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Resource 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.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + public Resource(string id = default(string), string name = default(string), string type = default(string)) + { + Id = id; + Name = name; + Type = type; + 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.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// + [JsonProperty(PropertyName = "type")] + public string Type { get; private set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ResourceState.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ResourceState.cs new file mode 100644 index 000000000000..ec253351c7a8 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/ResourceState.cs @@ -0,0 +1,32 @@ +// +// 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.RedisEnterprise.Models +{ + + /// + /// Defines values for ResourceState. + /// + public static class ResourceState + { + public const string Running = "Running"; + public const string Creating = "Creating"; + public const string CreateFailed = "CreateFailed"; + public const string Updating = "Updating"; + public const string UpdateFailed = "UpdateFailed"; + public const string Deleting = "Deleting"; + public const string DeleteFailed = "DeleteFailed"; + public const string Enabling = "Enabling"; + public const string EnableFailed = "EnableFailed"; + public const string Disabling = "Disabling"; + public const string DisableFailed = "DisableFailed"; + public const string Disabled = "Disabled"; + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Sku.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Sku.cs new file mode 100644 index 000000000000..94d6f20ec2e8 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/Sku.cs @@ -0,0 +1,72 @@ +// +// 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.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Linq; + + /// + /// SKU parameters supplied to the create RedisEnterprise operation. + /// + public partial class Sku + { + /// + /// Initializes a new instance of the Sku class. + /// + public Sku() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the Sku class. + /// + /// The type of RedisEnterprise cluster to deploy. + /// Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.). + /// Possible values include: 'Enterprise_E10', 'Enterprise_E20', + /// 'Enterprise_E50', 'Enterprise_E100', 'EnterpriseFlash_F300', + /// 'EnterpriseFlash_F700', 'EnterpriseFlash_F1500' + /// The size of the RedisEnterprise cluster. + /// Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, + /// ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash + /// SKUs. + public Sku(string name, int? capacity = default(int?)) + { + Name = name; + Capacity = capacity; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets the type of RedisEnterprise cluster to deploy. + /// Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.). + /// Possible values include: 'Enterprise_E10', 'Enterprise_E20', + /// 'Enterprise_E50', 'Enterprise_E100', 'EnterpriseFlash_F300', + /// 'EnterpriseFlash_F700', 'EnterpriseFlash_F1500' + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets the size of the RedisEnterprise cluster. Defaults to 2 + /// or 3 depending on SKU. Valid values are (2, 4, 6, ...) for + /// Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. + /// + [JsonProperty(PropertyName = "capacity")] + public int? Capacity { get; set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/SkuName.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/SkuName.cs new file mode 100644 index 000000000000..c273c7341c0c --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/SkuName.cs @@ -0,0 +1,27 @@ +// +// 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.RedisEnterprise.Models +{ + + /// + /// Defines values for SkuName. + /// + public static class SkuName + { + public const string EnterpriseE10 = "Enterprise_E10"; + public const string EnterpriseE20 = "Enterprise_E20"; + public const string EnterpriseE50 = "Enterprise_E50"; + public const string EnterpriseE100 = "Enterprise_E100"; + public const string EnterpriseFlashF300 = "EnterpriseFlash_F300"; + public const string EnterpriseFlashF700 = "EnterpriseFlash_F700"; + public const string EnterpriseFlashF1500 = "EnterpriseFlash_F1500"; + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/TrackedResource.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/TrackedResource.cs new file mode 100644 index 000000000000..a7cf2b91af29 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Models/TrackedResource.cs @@ -0,0 +1,70 @@ +// +// 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.RedisEnterprise.Models +{ + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The resource model definition for an Azure Resource Manager tracked top + /// level resource + /// + public partial class TrackedResource : Resource + { + /// + /// Initializes a new instance of the TrackedResource class. + /// + public TrackedResource() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the TrackedResource class. + /// + /// The geo-location where the resource + /// lives + /// 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.Compute/virtualMachines" or + /// "Microsoft.Storage/storageAccounts" + /// Resource tags. + public TrackedResource(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary tags = default(IDictionary)) + : base(id, name, type) + { + Tags = tags; + Location = location; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets resource tags. + /// + [JsonProperty(PropertyName = "tags")] + public IDictionary Tags { get; set; } + + /// + /// Gets or sets the geo-location where the resource lives + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; set; } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Operations.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Operations.cs new file mode 100644 index 000000000000..326509d6f72e --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/Operations.cs @@ -0,0 +1,392 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Operations operations. + /// + internal partial class Operations : IServiceOperations, IOperations + { + /// + /// Initializes a new instance of the Operations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal Operations(redisenterpriseClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the redisenterpriseClient + /// + public redisenterpriseClient Client { get; private set; } + + /// + /// Lists all of the available REST API operations of the Microsoft.Cache + /// provider. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "List", tracingParameters); + } + // Construct URL + var _baseUrl = Client.BaseUri.AbsoluteUri; + var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "providers/Microsoft.Cache/operations").ToString(); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + /// + /// Lists all of the available REST API operations of the Microsoft.Cache + /// provider. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/OperationsExtensions.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/OperationsExtensions.cs new file mode 100644 index 000000000000..e8748fccab7f --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/OperationsExtensions.cs @@ -0,0 +1,91 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for Operations. + /// + public static partial class OperationsExtensions + { + /// + /// Lists all of the available REST API operations of the Microsoft.Cache + /// provider. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available REST API operations of the Microsoft.Cache + /// provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all of the available REST API operations of the Microsoft.Cache + /// provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all of the available REST API operations of the Microsoft.Cache + /// provider. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/PrivateEndpointConnectionsOperations.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/PrivateEndpointConnectionsOperations.cs new file mode 100644 index 000000000000..29730a832ea4 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/PrivateEndpointConnectionsOperations.cs @@ -0,0 +1,875 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PrivateEndpointConnectionsOperations operations. + /// + internal partial class PrivateEndpointConnectionsOperations : IServiceOperations, IPrivateEndpointConnectionsOperations + { + /// + /// Initializes a new instance of the PrivateEndpointConnectionsOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal PrivateEndpointConnectionsOperations(redisenterpriseClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the redisenterpriseClient + /// + public redisenterpriseClient Client { get; private set; } + + /// + /// Lists all the private endpoint connections associated with the + /// RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("cancellationToken", cancellationToken); + 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.Cache/redisEnterprise/{clusterName}/privateEndpointConnections").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + /// + /// Gets the specified private endpoint connection associated with the + /// RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the Azure + /// resource + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetMethodWithHttpMessagesAsync(string resourceGroupName, string clusterName, string privateEndpointConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (privateEndpointConnectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateEndpointConnectionName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("privateEndpointConnectionName", privateEndpointConnectionName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetMethod", 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.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{privateEndpointConnectionName}", System.Uri.EscapeDataString(privateEndpointConnectionName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + /// + /// Updates the state of the specified private endpoint connection associated + /// with the RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the Azure + /// resource + /// + /// + /// The private endpoint connection properties. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> PutWithHttpMessagesAsync(string resourceGroupName, string clusterName, string privateEndpointConnectionName, PrivateEndpointConnection properties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginPutWithHttpMessagesAsync(resourceGroupName, clusterName, privateEndpointConnectionName, properties, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes the specified private endpoint connection associated with the + /// RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the Azure + /// resource + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, string privateEndpointConnectionName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (privateEndpointConnectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateEndpointConnectionName"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("privateEndpointConnectionName", privateEndpointConnectionName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "Delete", 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.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{privateEndpointConnectionName}", System.Uri.EscapeDataString(privateEndpointConnectionName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 204) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Updates the state of the specified private endpoint connection associated + /// with the RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the Azure + /// resource + /// + /// + /// The private endpoint connection properties. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginPutWithHttpMessagesAsync(string resourceGroupName, string clusterName, string privateEndpointConnectionName, PrivateEndpointConnection properties, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (privateEndpointConnectionName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "privateEndpointConnectionName"); + } + if (properties == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "properties"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("privateEndpointConnectionName", privateEndpointConnectionName); + tracingParameters.Add("properties", properties); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginPut", 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.Cache/redisEnterprise/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + _url = _url.Replace("{privateEndpointConnectionName}", System.Uri.EscapeDataString(privateEndpointConnectionName)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + if(properties != null) + { + _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(properties, 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) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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 == 201) + { + _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); + } + return _result; + } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/PrivateEndpointConnectionsOperationsExtensions.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/PrivateEndpointConnectionsOperationsExtensions.cs new file mode 100644 index 000000000000..b7279f3ee79c --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/PrivateEndpointConnectionsOperationsExtensions.cs @@ -0,0 +1,278 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for PrivateEndpointConnectionsOperations. + /// + public static partial class PrivateEndpointConnectionsOperationsExtensions + { + /// + /// Lists all the private endpoint connections associated with the + /// RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + public static IEnumerable List(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string clusterName) + { + return operations.ListAsync(resourceGroupName, clusterName).GetAwaiter().GetResult(); + } + + /// + /// Lists all the private endpoint connections associated with the + /// RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets the specified private endpoint connection associated with the + /// RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the Azure + /// resource + /// + public static PrivateEndpointConnection GetMethod(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string clusterName, string privateEndpointConnectionName) + { + return operations.GetMethodAsync(resourceGroupName, clusterName, privateEndpointConnectionName).GetAwaiter().GetResult(); + } + + /// + /// Gets the specified private endpoint connection associated with the + /// RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the Azure + /// resource + /// + /// + /// The cancellation token. + /// + public static async Task GetMethodAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string clusterName, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetMethodWithHttpMessagesAsync(resourceGroupName, clusterName, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates the state of the specified private endpoint connection associated + /// with the RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the Azure + /// resource + /// + /// + /// The private endpoint connection properties. + /// + public static PrivateEndpointConnection Put(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string clusterName, string privateEndpointConnectionName, PrivateEndpointConnection properties) + { + return operations.PutAsync(resourceGroupName, clusterName, privateEndpointConnectionName, properties).GetAwaiter().GetResult(); + } + + /// + /// Updates the state of the specified private endpoint connection associated + /// with the RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the Azure + /// resource + /// + /// + /// The private endpoint connection properties. + /// + /// + /// The cancellation token. + /// + public static async Task PutAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string clusterName, string privateEndpointConnectionName, PrivateEndpointConnection properties, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.PutWithHttpMessagesAsync(resourceGroupName, clusterName, privateEndpointConnectionName, properties, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes the specified private endpoint connection associated with the + /// RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the Azure + /// resource + /// + public static void Delete(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string clusterName, string privateEndpointConnectionName) + { + operations.DeleteAsync(resourceGroupName, clusterName, privateEndpointConnectionName).GetAwaiter().GetResult(); + } + + /// + /// Deletes the specified private endpoint connection associated with the + /// RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the Azure + /// resource + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string clusterName, string privateEndpointConnectionName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, clusterName, privateEndpointConnectionName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Updates the state of the specified private endpoint connection associated + /// with the RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the Azure + /// resource + /// + /// + /// The private endpoint connection properties. + /// + public static PrivateEndpointConnection BeginPut(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string clusterName, string privateEndpointConnectionName, PrivateEndpointConnection properties) + { + return operations.BeginPutAsync(resourceGroupName, clusterName, privateEndpointConnectionName, properties).GetAwaiter().GetResult(); + } + + /// + /// Updates the state of the specified private endpoint connection associated + /// with the RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the private endpoint connection associated with the Azure + /// resource + /// + /// + /// The private endpoint connection properties. + /// + /// + /// The cancellation token. + /// + public static async Task BeginPutAsync(this IPrivateEndpointConnectionsOperations operations, string resourceGroupName, string clusterName, string privateEndpointConnectionName, PrivateEndpointConnection properties, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginPutWithHttpMessagesAsync(resourceGroupName, clusterName, privateEndpointConnectionName, properties, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/PrivateLinkResourcesOperations.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/PrivateLinkResourcesOperations.cs new file mode 100644 index 000000000000..6cb1db26b18c --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/PrivateLinkResourcesOperations.cs @@ -0,0 +1,246 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// PrivateLinkResourcesOperations operations. + /// + internal partial class PrivateLinkResourcesOperations : IServiceOperations, IPrivateLinkResourcesOperations + { + /// + /// Initializes a new instance of the PrivateLinkResourcesOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal PrivateLinkResourcesOperations(redisenterpriseClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the redisenterpriseClient + /// + public redisenterpriseClient Client { get; private set; } + + /// + /// Gets the private link resources that need to be created for a + /// RedisEnterprise cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByRedisEnterpriseCacheWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByRedisEnterpriseCache", 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.Cache/redisEnterprise/{clusterName}/privateLinkResources").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/PrivateLinkResourcesOperationsExtensions.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/PrivateLinkResourcesOperationsExtensions.cs new file mode 100644 index 000000000000..593fbca79466 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/PrivateLinkResourcesOperationsExtensions.cs @@ -0,0 +1,69 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for PrivateLinkResourcesOperations. + /// + public static partial class PrivateLinkResourcesOperationsExtensions + { + /// + /// Gets the private link resources that need to be created for a + /// RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + public static IEnumerable ListByRedisEnterpriseCache(this IPrivateLinkResourcesOperations operations, string resourceGroupName, string clusterName) + { + return operations.ListByRedisEnterpriseCacheAsync(resourceGroupName, clusterName).GetAwaiter().GetResult(); + } + + /// + /// Gets the private link resources that need to be created for a + /// RedisEnterprise cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByRedisEnterpriseCacheAsync(this IPrivateLinkResourcesOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByRedisEnterpriseCacheWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/RedisEnterpriseDatabaseOperations.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/RedisEnterpriseDatabaseOperations.cs new file mode 100644 index 000000000000..4e7270332a52 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/RedisEnterpriseDatabaseOperations.cs @@ -0,0 +1,948 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RedisEnterpriseDatabaseOperations operations. + /// + internal partial class RedisEnterpriseDatabaseOperations : IServiceOperations, IRedisEnterpriseDatabaseOperations + { + /// + /// Initializes a new instance of the RedisEnterpriseDatabaseOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal RedisEnterpriseDatabaseOperations(redisenterpriseClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the redisenterpriseClient + /// + public redisenterpriseClient Client { get; private set; } + + /// + /// Retrieves the access keys for the RedisEnterprise database. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> ListKeysWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("cancellationToken", cancellationToken); + 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.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/listKeys").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + /// + /// Regenerates the RedisEnterprise database's access keys. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Which access key to regenerate. Possible values include: 'Primary', + /// 'Secondary' + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> RegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, AccessKeyType keyType, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginRegenerateKeyWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, keyType, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Imports a database file to target database. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target blob to import from + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task ImportWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string sasUri, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginImportWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, sasUri, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Exports a database file from target database. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target directory to export to + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task ExportWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string sasUri, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginExportWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, sasUri, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Regenerates the RedisEnterprise database's access keys. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Which access key to regenerate. Possible values include: 'Primary', + /// 'Secondary' + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginRegenerateKeyWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, AccessKeyType keyType, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + RegenerateKeyParameters parameters = new RegenerateKeyParameters(); + parameters.KeyType = keyType; + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginRegenerateKey", 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.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/regenerateKey").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // 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) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + /// + /// Imports a database file to target database. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target blob to import from + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginImportWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string sasUri, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (sasUri == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sasUri"); + } + ImportClusterParameters parameters = new ImportClusterParameters(); + if (sasUri != null) + { + parameters.SasUri = sasUri; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginImport", 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.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/import").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // 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) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Exports a database file from target database. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target directory to export to + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginExportWithHttpMessagesAsync(string resourceGroupName, string clusterName, string databaseName, string sasUri, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (databaseName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "databaseName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + if (sasUri == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "sasUri"); + } + ExportClusterParameters parameters = new ExportClusterParameters(); + if (sasUri != null) + { + parameters.SasUri = sasUri; + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("databaseName", databaseName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginExport", 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.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/export").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{databaseName}", System.Uri.EscapeDataString(databaseName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("POST"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // 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) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/RedisEnterpriseDatabaseOperationsExtensions.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/RedisEnterpriseDatabaseOperationsExtensions.cs new file mode 100644 index 000000000000..dc0833c5abf4 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/RedisEnterpriseDatabaseOperationsExtensions.cs @@ -0,0 +1,375 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for RedisEnterpriseDatabaseOperations. + /// + public static partial class RedisEnterpriseDatabaseOperationsExtensions + { + /// + /// Retrieves the access keys for the RedisEnterprise database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + public static AccessKeys ListKeys(this IRedisEnterpriseDatabaseOperations operations, string resourceGroupName, string clusterName, string databaseName) + { + return operations.ListKeysAsync(resourceGroupName, clusterName, databaseName).GetAwaiter().GetResult(); + } + + /// + /// Retrieves the access keys for the RedisEnterprise database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// The cancellation token. + /// + public static async Task ListKeysAsync(this IRedisEnterpriseDatabaseOperations operations, string resourceGroupName, string clusterName, string databaseName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListKeysWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Regenerates the RedisEnterprise database's access keys. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Which access key to regenerate. Possible values include: 'Primary', + /// 'Secondary' + /// + public static AccessKeys RegenerateKey(this IRedisEnterpriseDatabaseOperations operations, string resourceGroupName, string clusterName, string databaseName, AccessKeyType keyType) + { + return operations.RegenerateKeyAsync(resourceGroupName, clusterName, databaseName, keyType).GetAwaiter().GetResult(); + } + + /// + /// Regenerates the RedisEnterprise database's access keys. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Which access key to regenerate. Possible values include: 'Primary', + /// 'Secondary' + /// + /// + /// The cancellation token. + /// + public static async Task RegenerateKeyAsync(this IRedisEnterpriseDatabaseOperations operations, string resourceGroupName, string clusterName, string databaseName, AccessKeyType keyType, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.RegenerateKeyWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, keyType, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Imports a database file to target database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target blob to import from + /// + public static void Import(this IRedisEnterpriseDatabaseOperations operations, string resourceGroupName, string clusterName, string databaseName, string sasUri) + { + operations.ImportAsync(resourceGroupName, clusterName, databaseName, sasUri).GetAwaiter().GetResult(); + } + + /// + /// Imports a database file to target database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target blob to import from + /// + /// + /// The cancellation token. + /// + public static async Task ImportAsync(this IRedisEnterpriseDatabaseOperations operations, string resourceGroupName, string clusterName, string databaseName, string sasUri, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.ImportWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, sasUri, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Exports a database file from target database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target directory to export to + /// + public static void Export(this IRedisEnterpriseDatabaseOperations operations, string resourceGroupName, string clusterName, string databaseName, string sasUri) + { + operations.ExportAsync(resourceGroupName, clusterName, databaseName, sasUri).GetAwaiter().GetResult(); + } + + /// + /// Exports a database file from target database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target directory to export to + /// + /// + /// The cancellation token. + /// + public static async Task ExportAsync(this IRedisEnterpriseDatabaseOperations operations, string resourceGroupName, string clusterName, string databaseName, string sasUri, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.ExportWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, sasUri, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Regenerates the RedisEnterprise database's access keys. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Which access key to regenerate. Possible values include: 'Primary', + /// 'Secondary' + /// + public static AccessKeys BeginRegenerateKey(this IRedisEnterpriseDatabaseOperations operations, string resourceGroupName, string clusterName, string databaseName, AccessKeyType keyType) + { + return operations.BeginRegenerateKeyAsync(resourceGroupName, clusterName, databaseName, keyType).GetAwaiter().GetResult(); + } + + /// + /// Regenerates the RedisEnterprise database's access keys. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// Which access key to regenerate. Possible values include: 'Primary', + /// 'Secondary' + /// + /// + /// The cancellation token. + /// + public static async Task BeginRegenerateKeyAsync(this IRedisEnterpriseDatabaseOperations operations, string resourceGroupName, string clusterName, string databaseName, AccessKeyType keyType, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginRegenerateKeyWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, keyType, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Imports a database file to target database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target blob to import from + /// + public static void BeginImport(this IRedisEnterpriseDatabaseOperations operations, string resourceGroupName, string clusterName, string databaseName, string sasUri) + { + operations.BeginImportAsync(resourceGroupName, clusterName, databaseName, sasUri).GetAwaiter().GetResult(); + } + + /// + /// Imports a database file to target database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target blob to import from + /// + /// + /// The cancellation token. + /// + public static async Task BeginImportAsync(this IRedisEnterpriseDatabaseOperations operations, string resourceGroupName, string clusterName, string databaseName, string sasUri, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginImportWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, sasUri, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Exports a database file from target database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target directory to export to + /// + public static void BeginExport(this IRedisEnterpriseDatabaseOperations operations, string resourceGroupName, string clusterName, string databaseName, string sasUri) + { + operations.BeginExportAsync(resourceGroupName, clusterName, databaseName, sasUri).GetAwaiter().GetResult(); + } + + /// + /// Exports a database file from target database. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The name of the database. + /// + /// + /// SAS Uri for the target directory to export to + /// + /// + /// The cancellation token. + /// + public static async Task BeginExportAsync(this IRedisEnterpriseDatabaseOperations operations, string resourceGroupName, string clusterName, string databaseName, string sasUri, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginExportWithHttpMessagesAsync(resourceGroupName, clusterName, databaseName, sasUri, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/RedisEnterpriseOperations.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/RedisEnterpriseOperations.cs new file mode 100644 index 000000000000..508d9ff5003a --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/RedisEnterpriseOperations.cs @@ -0,0 +1,1608 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + using System.Threading; + using System.Threading.Tasks; + + /// + /// RedisEnterpriseOperations operations. + /// + internal partial class RedisEnterpriseOperations : IServiceOperations, IRedisEnterpriseOperations + { + /// + /// Initializes a new instance of the RedisEnterpriseOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal RedisEnterpriseOperations(redisenterpriseClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the redisenterpriseClient + /// + public redisenterpriseClient Client { get; private set; } + + /// + /// Creates or updates an existing (overwrite/recreate, with potential + /// downtime) cache cluster + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Create RedisEnterprise operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> CreateWithHttpMessagesAsync(string resourceGroupName, string clusterName, Cluster parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginCreateWithHttpMessagesAsync(resourceGroupName, clusterName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Updates an existing RedisEnterprise cluster + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Update RedisEnterprise operation. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task> UpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send Request + AzureOperationResponse _response = await BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, parameters, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPutOrPatchOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Deletes a RedisEnterprise cache cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The headers that will be added to request. + /// + /// + /// The cancellation token. + /// + public async Task DeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + // Send request + AzureOperationResponse _response = await BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, customHeaders, cancellationToken).ConfigureAwait(false); + return await Client.GetPostOrDeleteOperationResultAsync(_response, customHeaders, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets information about a RedisEnterprise cluster + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> GetMethodWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "GetMethod", 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.Cache/redisEnterprise/{clusterName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + /// + /// Lists all RedisEnterprise clusters in a resource group. + /// + /// + /// The name of the resource group. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroup", 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.Cache/redisEnterprise").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + /// + /// Gets all RedisEnterprise clusters in the specified subscription. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListWithHttpMessagesAsync(Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("cancellationToken", cancellationToken); + 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}/providers/Microsoft.Cache/redisEnterprise").ToString(); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + /// + /// Creates or updates an existing (overwrite/recreate, with potential + /// downtime) cache cluster + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Create RedisEnterprise operation. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginCreateWithHttpMessagesAsync(string resourceGroupName, string clusterName, Cluster parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginCreate", 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.Cache/redisEnterprise/{clusterName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PUT"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // 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) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 201) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + } + // Deserialize Response + if ((int)_statusCode == 201) + { + _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); + } + return _result; + } + + /// + /// Updates an existing RedisEnterprise cluster + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Update RedisEnterprise operation. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task> BeginUpdateWithHttpMessagesAsync(string resourceGroupName, string clusterName, ClusterUpdate parameters, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (parameters == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "parameters"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("parameters", parameters); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginUpdate", 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.Cache/redisEnterprise/{clusterName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("PATCH"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // 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) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + /// + /// Deletes a RedisEnterprise cache cluster. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Headers that will be added to request. + /// + /// + /// The cancellation token. + /// + /// + /// Thrown when the operation returned an invalid status code + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task BeginDeleteWithHttpMessagesAsync(string resourceGroupName, string clusterName, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (resourceGroupName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName"); + } + if (clusterName == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "clusterName"); + } + if (Client.ApiVersion == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion"); + } + if (Client.SubscriptionId == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("resourceGroupName", resourceGroupName); + tracingParameters.Add("clusterName", clusterName); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "BeginDelete", 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.Cache/redisEnterprise/{clusterName}").ToString(); + _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName)); + _url = _url.Replace("{clusterName}", System.Uri.EscapeDataString(clusterName)); + _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId)); + List _queryParameters = new List(); + if (Client.ApiVersion != null) + { + _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion))); + } + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("DELETE"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200 && (int)_statusCode != 202 && (int)_statusCode != 204) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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(); + } + if (_shouldTrace) + { + ServiceClientTracing.Exit(_invocationId, _result); + } + return _result; + } + + /// + /// Lists all RedisEnterprise clusters in a resource group. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListByResourceGroupNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + /// + /// Gets all RedisEnterprise clusters in the specified subscription. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// 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 + /// + /// + /// Thrown when a required parameter is null + /// + /// + /// A response object containing the response body and response headers. + /// + public async Task>> ListNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)) + { + if (nextPageLink == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink"); + } + // Tracing + bool _shouldTrace = ServiceClientTracing.IsEnabled; + string _invocationId = null; + if (_shouldTrace) + { + _invocationId = ServiceClientTracing.NextInvocationId.ToString(); + Dictionary tracingParameters = new Dictionary(); + tracingParameters.Add("nextPageLink", nextPageLink); + tracingParameters.Add("cancellationToken", cancellationToken); + ServiceClientTracing.Enter(_invocationId, this, "ListNext", tracingParameters); + } + // Construct URL + string _url = "{nextLink}"; + _url = _url.Replace("{nextLink}", nextPageLink); + List _queryParameters = new List(); + if (_queryParameters.Count > 0) + { + _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters); + } + // Create HTTP transport objects + var _httpRequest = new HttpRequestMessage(); + HttpResponseMessage _httpResponse = null; + _httpRequest.Method = new HttpMethod("GET"); + _httpRequest.RequestUri = new System.Uri(_url); + // Set Headers + if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value) + { + _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString()); + } + if (Client.AcceptLanguage != null) + { + if (_httpRequest.Headers.Contains("accept-language")) + { + _httpRequest.Headers.Remove("accept-language"); + } + _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage); + } + + + if (customHeaders != null) + { + foreach(var _header in customHeaders) + { + if (_httpRequest.Headers.Contains(_header.Key)) + { + _httpRequest.Headers.Remove(_header.Key); + } + _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value); + } + } + + // Serialize Request + string _requestContent = null; + // Set Credentials + if (Client.Credentials != null) + { + cancellationToken.ThrowIfCancellationRequested(); + await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + } + // Send Request + if (_shouldTrace) + { + ServiceClientTracing.SendRequest(_invocationId, _httpRequest); + } + cancellationToken.ThrowIfCancellationRequested(); + _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false); + if (_shouldTrace) + { + ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse); + } + HttpStatusCode _statusCode = _httpResponse.StatusCode; + cancellationToken.ThrowIfCancellationRequested(); + string _responseContent = null; + if ((int)_statusCode != 200) + { + var ex = new ErrorResponseException(string.Format("Operation returned an invalid status code '{0}'", _statusCode)); + try + { + _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false); + ErrorResponse _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings); + if (_errorBody != null) + { + ex.Body = _errorBody; + } + } + catch (JsonException) + { + // Ignore the exception + } + ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent); + ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent); + if (_shouldTrace) + { + ServiceClientTracing.Error(_invocationId, ex); + } + _httpRequest.Dispose(); + if (_httpResponse != null) + { + _httpResponse.Dispose(); + } + throw ex; + } + // Create Result + 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); + } + return _result; + } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/RedisEnterpriseOperationsExtensions.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/RedisEnterpriseOperationsExtensions.cs new file mode 100644 index 000000000000..084966fb065f --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/RedisEnterpriseOperationsExtensions.cs @@ -0,0 +1,457 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for RedisEnterpriseOperations. + /// + public static partial class RedisEnterpriseOperationsExtensions + { + /// + /// Creates or updates an existing (overwrite/recreate, with potential + /// downtime) cache cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Create RedisEnterprise operation. + /// + public static Cluster Create(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName, Cluster parameters) + { + return operations.CreateAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates an existing (overwrite/recreate, with potential + /// downtime) cache cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Create RedisEnterprise operation. + /// + /// + /// The cancellation token. + /// + public static async Task CreateAsync(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName, Cluster parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, clusterName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates an existing RedisEnterprise cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Update RedisEnterprise operation. + /// + public static Cluster Update(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName, ClusterUpdate parameters) + { + return operations.UpdateAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates an existing RedisEnterprise cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Update RedisEnterprise operation. + /// + /// + /// The cancellation token. + /// + public static async Task UpdateAsync(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName, ClusterUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.UpdateWithHttpMessagesAsync(resourceGroupName, clusterName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a RedisEnterprise cache cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + public static void Delete(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName) + { + operations.DeleteAsync(resourceGroupName, clusterName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a RedisEnterprise cache cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The cancellation token. + /// + public static async Task DeleteAsync(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Gets information about a RedisEnterprise cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + public static Cluster GetMethod(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName) + { + return operations.GetMethodAsync(resourceGroupName, clusterName).GetAwaiter().GetResult(); + } + + /// + /// Gets information about a RedisEnterprise cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The cancellation token. + /// + public static async Task GetMethodAsync(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetMethodWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Lists all RedisEnterprise clusters in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + public static IPage ListByResourceGroup(this IRedisEnterpriseOperations operations, string resourceGroupName) + { + return operations.ListByResourceGroupAsync(resourceGroupName).GetAwaiter().GetResult(); + } + + /// + /// Lists all RedisEnterprise clusters in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupAsync(this IRedisEnterpriseOperations operations, string resourceGroupName, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all RedisEnterprise clusters in the specified subscription. + /// + /// + /// The operations group for this extension method. + /// + public static IPage List(this IRedisEnterpriseOperations operations) + { + return operations.ListAsync().GetAwaiter().GetResult(); + } + + /// + /// Gets all RedisEnterprise clusters in the specified subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The cancellation token. + /// + public static async Task> ListAsync(this IRedisEnterpriseOperations operations, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListWithHttpMessagesAsync(null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Creates or updates an existing (overwrite/recreate, with potential + /// downtime) cache cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Create RedisEnterprise operation. + /// + public static Cluster BeginCreate(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName, Cluster parameters) + { + return operations.BeginCreateAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Creates or updates an existing (overwrite/recreate, with potential + /// downtime) cache cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Create RedisEnterprise operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginCreateAsync(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName, Cluster parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginCreateWithHttpMessagesAsync(resourceGroupName, clusterName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Updates an existing RedisEnterprise cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Update RedisEnterprise operation. + /// + public static Cluster BeginUpdate(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName, ClusterUpdate parameters) + { + return operations.BeginUpdateAsync(resourceGroupName, clusterName, parameters).GetAwaiter().GetResult(); + } + + /// + /// Updates an existing RedisEnterprise cluster + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// Parameters supplied to the Update RedisEnterprise operation. + /// + /// + /// The cancellation token. + /// + public static async Task BeginUpdateAsync(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName, ClusterUpdate parameters, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.BeginUpdateWithHttpMessagesAsync(resourceGroupName, clusterName, parameters, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Deletes a RedisEnterprise cache cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + public static void BeginDelete(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName) + { + operations.BeginDeleteAsync(resourceGroupName, clusterName).GetAwaiter().GetResult(); + } + + /// + /// Deletes a RedisEnterprise cache cluster. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The name of the resource group. + /// + /// + /// The name of the RedisEnterprise cluster. + /// + /// + /// The cancellation token. + /// + public static async Task BeginDeleteAsync(this IRedisEnterpriseOperations operations, string resourceGroupName, string clusterName, CancellationToken cancellationToken = default(CancellationToken)) + { + (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, clusterName, null, cancellationToken).ConfigureAwait(false)).Dispose(); + } + + /// + /// Lists all RedisEnterprise clusters in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListByResourceGroupNext(this IRedisEnterpriseOperations operations, string nextPageLink) + { + return operations.ListByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Lists all RedisEnterprise clusters in a resource group. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListByResourceGroupNextAsync(this IRedisEnterpriseOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + /// + /// Gets all RedisEnterprise clusters in the specified subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + public static IPage ListNext(this IRedisEnterpriseOperations operations, string nextPageLink) + { + return operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult(); + } + + /// + /// Gets all RedisEnterprise clusters in the specified subscription. + /// + /// + /// The operations group for this extension method. + /// + /// + /// The NextLink from the previous successful call to List operation. + /// + /// + /// The cancellation token. + /// + public static async Task> ListNextAsync(this IRedisEnterpriseOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/SdkInfo_redisEnterprise.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/SdkInfo_redisEnterprise.cs new file mode 100644 index 000000000000..617cd4f07b50 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/SdkInfo_redisEnterprise.cs @@ -0,0 +1,33 @@ + +// +// 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.RedisEnterprise +{ + using System; + using System.Collections.Generic; + using System.Linq; + + internal static partial class SdkInfo + { + public static IEnumerable> ApiInfo_redisEnterprise + { + get + { + return new Tuple[] + { + new Tuple("Cache", "Databases", "2020-10-01-preview"), + new Tuple("Cache", "Get", "2020-10-01-preview"), + new Tuple("Cache", "Operations", "2020-10-01-preview"), + new Tuple("Cache", "PrivateEndpointConnections", "2020-10-01-preview"), + new Tuple("Cache", "PrivateLinkResources", "2020-10-01-preview"), + new Tuple("Cache", "RedisEnterprise", "2020-10-01-preview"), + new Tuple("Cache", "RedisEnterpriseDatabase", "2020-10-01-preview"), + }.AsEnumerable(); + } + } + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/redisenterpriseClient.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/redisenterpriseClient.cs new file mode 100644 index 000000000000..aeeeded1afd1 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Generated/redisenterpriseClient.cs @@ -0,0 +1,398 @@ +// +// 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.RedisEnterprise +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Microsoft.Rest.Serialization; + using Models; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + using System.Net; + using System.Net.Http; + + /// + /// REST API for managing Redis Enterprise resources in Azure. + /// + public partial class redisenterpriseClient : ServiceClient, IredisenterpriseClient, IAzureClient + { + /// + /// The base URI of the service. + /// + public System.Uri BaseUri { get; set; } + + /// + /// Gets or sets json serialization settings. + /// + public JsonSerializerSettings SerializationSettings { get; private set; } + + /// + /// Gets or sets json deserialization settings. + /// + public JsonSerializerSettings DeserializationSettings { get; private set; } + + /// + /// Credentials needed for the client to connect to Azure. + /// + public ServiceClientCredentials Credentials { get; private set; } + + /// + /// Gets subscription credentials which uniquely identify the Microsoft Azure + /// subscription. The subscription ID forms part of the URI for every service + /// call. + /// + public string SubscriptionId { get; set; } + + /// + /// Client Api Version. + /// + public string ApiVersion { get; private set; } + + /// + /// The preferred language for the response. + /// + public string AcceptLanguage { get; set; } + + /// + /// The retry timeout in seconds for Long Running Operations. Default value is + /// 30. + /// + public int? LongRunningOperationRetryTimeout { get; set; } + + /// + /// Whether a unique x-ms-client-request-id should be generated. When set to + /// true a unique x-ms-client-request-id value is generated and included in + /// each request. Default is true. + /// + public bool? GenerateClientRequestId { get; set; } + + /// + /// Gets the IOperations. + /// + public virtual IOperations Operations { get; private set; } + + /// + /// Gets the IGetOperations. + /// + public virtual IGetOperations Get { get; private set; } + + /// + /// Gets the IRedisEnterpriseOperations. + /// + public virtual IRedisEnterpriseOperations RedisEnterprise { get; private set; } + + /// + /// Gets the IDatabasesOperations. + /// + public virtual IDatabasesOperations Databases { get; private set; } + + /// + /// Gets the IRedisEnterpriseDatabaseOperations. + /// + public virtual IRedisEnterpriseDatabaseOperations RedisEnterpriseDatabase { get; private set; } + + /// + /// Gets the IPrivateEndpointConnectionsOperations. + /// + public virtual IPrivateEndpointConnectionsOperations PrivateEndpointConnections { get; private set; } + + /// + /// Gets the IPrivateLinkResourcesOperations. + /// + public virtual IPrivateLinkResourcesOperations PrivateLinkResources { get; private set; } + + /// + /// Initializes a new instance of the redisenterpriseClient class. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling redisenterpriseClient.Dispose(). False: will not dispose provided httpClient + protected redisenterpriseClient(HttpClient httpClient, bool disposeHttpClient) : base(httpClient, disposeHttpClient) + { + Initialize(); + } + + /// + /// Initializes a new instance of the redisenterpriseClient class. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected redisenterpriseClient(params DelegatingHandler[] handlers) : base(handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the redisenterpriseClient class. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + protected redisenterpriseClient(HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : base(rootHandler, handlers) + { + Initialize(); + } + + /// + /// Initializes a new instance of the redisenterpriseClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected redisenterpriseClient(System.Uri baseUri, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the redisenterpriseClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + protected redisenterpriseClient(System.Uri baseUri, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + BaseUri = baseUri; + } + + /// + /// Initializes a new instance of the redisenterpriseClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public redisenterpriseClient(ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the redisenterpriseClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// HttpClient to be used + /// + /// + /// True: will dispose the provided httpClient on calling redisenterpriseClient.Dispose(). False: will not dispose provided httpClient + /// + /// Thrown when a required parameter is null + /// + public redisenterpriseClient(ServiceClientCredentials credentials, HttpClient httpClient, bool disposeHttpClient) : this(httpClient, disposeHttpClient) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the redisenterpriseClient class. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public redisenterpriseClient(ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the redisenterpriseClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public redisenterpriseClient(System.Uri baseUri, ServiceClientCredentials credentials, params DelegatingHandler[] handlers) : this(handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// Initializes a new instance of the redisenterpriseClient class. + /// + /// + /// Optional. The base URI of the service. + /// + /// + /// Required. Credentials needed for the client to connect to Azure. + /// + /// + /// Optional. The http client handler used to handle http transport. + /// + /// + /// Optional. The delegating handlers to add to the http client pipeline. + /// + /// + /// Thrown when a required parameter is null + /// + public redisenterpriseClient(System.Uri baseUri, ServiceClientCredentials credentials, HttpClientHandler rootHandler, params DelegatingHandler[] handlers) : this(rootHandler, handlers) + { + if (baseUri == null) + { + throw new System.ArgumentNullException("baseUri"); + } + if (credentials == null) + { + throw new System.ArgumentNullException("credentials"); + } + BaseUri = baseUri; + Credentials = credentials; + if (Credentials != null) + { + Credentials.InitializeServiceClient(this); + } + } + + /// + /// An optional partial-method to perform custom initialization. + /// + partial void CustomInitialize(); + /// + /// Initializes client properties. + /// + private void Initialize() + { + Operations = new Operations(this); + Get = new GetOperations(this); + RedisEnterprise = new RedisEnterpriseOperations(this); + Databases = new DatabasesOperations(this); + RedisEnterpriseDatabase = new RedisEnterpriseDatabaseOperations(this); + PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); + PrivateLinkResources = new PrivateLinkResourcesOperations(this); + BaseUri = new System.Uri("https://management.azure.com"); + ApiVersion = "2020-10-01-preview"; + AcceptLanguage = "en-US"; + LongRunningOperationRetryTimeout = 30; + GenerateClientRequestId = true; + SerializationSettings = new JsonSerializerSettings + { + Formatting = Newtonsoft.Json.Formatting.Indented, + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + SerializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings = new JsonSerializerSettings + { + DateFormatHandling = Newtonsoft.Json.DateFormatHandling.IsoDateFormat, + DateTimeZoneHandling = Newtonsoft.Json.DateTimeZoneHandling.Utc, + NullValueHandling = Newtonsoft.Json.NullValueHandling.Ignore, + ReferenceLoopHandling = Newtonsoft.Json.ReferenceLoopHandling.Serialize, + ContractResolver = new ReadOnlyJsonContractResolver(), + Converters = new List + { + new Iso8601TimeSpanConverter() + } + }; + CustomInitialize(); + DeserializationSettings.Converters.Add(new TransformationJsonConverter()); + DeserializationSettings.Converters.Add(new CloudErrorJsonConverter()); + } + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Microsoft.Azure.Management.RedisEnterprise.csproj b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Microsoft.Azure.Management.RedisEnterprise.csproj new file mode 100644 index 000000000000..99f5e85a5804 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Microsoft.Azure.Management.RedisEnterprise.csproj @@ -0,0 +1,21 @@ + + + + + + + Microsoft.Azure.Management.RedisEnterprise + Provides redis enterprise cache management capabilities for Microsoft Azure. + 1.0.0-preview + Microsoft.Azure.Management.RedisEnterprise + Microsoft Azure Redis Enterprise Cache management;Redis Enterprise Management; + Initial release. + + + $(SdkTargetFx) + + + + + + diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Properties/AssemblyInfo.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..d03532819ebf --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/Properties/AssemblyInfo.cs @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Reflection; +using System.Resources; +using System.Runtime.InteropServices; + +[assembly: AssemblyTitle("Microsoft Azure Redis Enterprise Cache Management Library")] +[assembly: AssemblyDescription("Provides Microsoft Azure redis enterprise cache management operations.")] + +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] + +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("Microsoft")] +[assembly: AssemblyProduct("Microsoft Azure .NET SDK")] +[assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] +[assembly: NeutralResourcesLanguage("en")] diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/generate.ps1 b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/generate.ps1 new file mode 100644 index 000000000000..590271f646e1 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/src/generate.ps1 @@ -0,0 +1 @@ +Start-AutoRestCodeGeneration -ResourceProvider "redisenterprise/resource-manager" -AutoRestVersion "v2" \ No newline at end of file diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/DummyResponseDelegatingHandler.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/DummyResponseDelegatingHandler.cs new file mode 100644 index 000000000000..6449a5f81430 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/DummyResponseDelegatingHandler.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. + +using System; +using System.Net; +using System.Net.Http; +using System.Net.Http.Headers; +using System.Threading.Tasks; + +namespace AzureRedisEnterpriseCache.Tests +{ + public class DummyResponseDelegatingHandler : DelegatingHandler + { + private HttpResponseMessage _response; + + public DummyResponseDelegatingHandler(HttpResponseMessage response) + { + _response = response; + } + +#pragma warning disable 1998 + protected override async Task SendAsync(HttpRequestMessage request, System.Threading.CancellationToken cancellationToken) + { + return _response; + } +#pragma warning restore 1998 + } +} diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/Microsoft.Azure.Management.RedisEnterpriseCache.Tests.csproj b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/Microsoft.Azure.Management.RedisEnterpriseCache.Tests.csproj new file mode 100644 index 000000000000..eb8d2caf96d9 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/Microsoft.Azure.Management.RedisEnterpriseCache.Tests.csproj @@ -0,0 +1,27 @@ + + + + RedisEnterpriseCache.Tests + AzureRedisEnterpriseCache.Tests Class Library + RedisEnterpriseCache.Tests + 1.0.0 + true + + + + + + + + + + + + PreserveNewest + + + + + + + \ No newline at end of file diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/Properties/AssemblyInfo.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/Properties/AssemblyInfo.cs new file mode 100644 index 000000000000..6436cff4ce41 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/Properties/AssemblyInfo.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("AzureRedisEnterpriseCache.Tests")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyProduct("AzureRedisEnterpriseCache.Tests")] +[assembly: AssemblyCompany("Microsoft Corporation")] +[assembly: AssemblyCopyright("Copyright (c) Microsoft Corporation")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("57B04777-02CC-47BF-87F7-9E95BDA2D1CD")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/BeginCreateFunctionalTests.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/BeginCreateFunctionalTests.cs new file mode 100644 index 000000000000..24e37625db44 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/BeginCreateFunctionalTests.cs @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using AzureRedisEnterpriseCache.Tests.ScenarioTests; +using Microsoft.Azure.Management.RedisEnterprise; +using Microsoft.Azure.Management.RedisEnterprise.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System.Collections.Generic; +using System; +using Xunit; + +namespace AzureRedisEnterpriseCache.Tests +{ + public class BeginCreateFunctionalTests : TestBase + { + [Fact] + public void BeginCreateFunctionalTest() + { + using (var context = MockContext.Start(this.GetType())) + { + var _redisEnterpriseCacheManagementHelper = new RedisEnterpriseCacheManagementHelper(this, context); + _redisEnterpriseCacheManagementHelper.TryRegisterSubscriptionForResource(); + + var resourceGroupName = TestUtilities.GenerateName("RedisEnterpriseBegin"); + var redisEnterpriseCacheName = TestUtilities.GenerateName("RedisEnterpriseBegin"); + var databaseName = "default"; + + var _client = RedisEnterpriseCacheManagementTestUtilities.GetRedisEnterpriseManagementClient(this, context); + _redisEnterpriseCacheManagementHelper.TryCreateResourceGroup(resourceGroupName, RedisEnterpriseCacheManagementHelper.Location); + var response = _client.RedisEnterprise.BeginCreate(resourceGroupName, redisEnterpriseCacheName, + parameters: new Cluster + { + Location = RedisEnterpriseCacheManagementHelper.Location, + Sku = new Sku() + { + Name = SkuName.EnterpriseE10, + Capacity = 2 + }, + MinimumTlsVersion = "1.2", + Zones = new List { "1", "2", "3" }, + }); + + Assert.Contains(redisEnterpriseCacheName, response.Id); + Assert.Equal(RedisEnterpriseCacheManagementHelper.Location, response.Location); + Assert.Equal(redisEnterpriseCacheName, response.Name); + Assert.Equal("Microsoft.Cache/redisEnterprise", response.Type); + Assert.Equal(ProvisioningState.Creating, response.ProvisioningState, ignoreCase: true); + Assert.Equal(ResourceState.Creating, response.ResourceState, ignoreCase: true); + Assert.Equal(SkuName.EnterpriseE10, response.Sku.Name); + Assert.Equal(2, response.Sku.Capacity); + + for (int i = 0; i < 60; i++) + { + response = _client.RedisEnterprise.GetMethod(resourceGroupName, redisEnterpriseCacheName); + if (ProvisioningState.Succeeded.Equals(response.ProvisioningState, StringComparison.OrdinalIgnoreCase)) + { + break; + } + TestUtilities.Wait(new TimeSpan(0, 0, 30)); + } + Assert.Equal(ResourceState.Running, response.ResourceState, ignoreCase: true); + Assert.Equal(3, response.Zones.Count); + + var responseDatabase = _client.Databases.BeginCreate(resourceGroupName, redisEnterpriseCacheName, databaseName, + parameters: new Database + { + ClientProtocol = Protocol.Encrypted, + ClusteringPolicy = ClusteringPolicy.OSSCluster, + EvictionPolicy = EvictionPolicy.NoEviction, + Modules = new List() + { + new Module(name: "RedisBloom", args: "ERROR_RATE 0.00 INITIAL_SIZE 400"), + new Module(name: "RedisTimeSeries", args: "RETENTION_POLICY 20"), + new Module(name: "RediSearch") + }, + }); + + Assert.Contains(databaseName, responseDatabase.Id); + Assert.Equal(databaseName, responseDatabase.Name); + Assert.Equal("Microsoft.Cache/redisEnterprise/databases", responseDatabase.Type); + Assert.Equal(ProvisioningState.Succeeded, responseDatabase.ProvisioningState, ignoreCase: true); + Assert.Equal(ResourceState.Running, responseDatabase.ResourceState, ignoreCase: true); + Assert.Equal(Protocol.Encrypted, responseDatabase.ClientProtocol); + Assert.Equal(ClusteringPolicy.OSSCluster, responseDatabase.ClusteringPolicy); + Assert.Equal(EvictionPolicy.NoEviction, responseDatabase.EvictionPolicy); + Assert.Equal(3, responseDatabase.Modules.Count); + + _client.RedisEnterprise.Delete(resourceGroupName: resourceGroupName, clusterName: redisEnterpriseCacheName); + } + } + } +} + diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/CreateUpdateDeleteFunctionalTests.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/CreateUpdateDeleteFunctionalTests.cs new file mode 100644 index 000000000000..135e5b5b42ca --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/CreateUpdateDeleteFunctionalTests.cs @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using AzureRedisEnterpriseCache.Tests.ScenarioTests; +using Microsoft.Azure.Management.RedisEnterprise; +using Microsoft.Azure.Management.RedisEnterprise.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System.Collections.Generic; +using System; +using Xunit; +using Microsoft.Azure.Management.ResourceManager; + +namespace AzureRedisEnterpriseCache.Tests +{ + public class CreateUpdateDeleteFunctionalTests : TestBase, IClassFixture + { + private TestsFixture fixture; + + public CreateUpdateDeleteFunctionalTests(TestsFixture data) + { + fixture = data; + } + + [Fact] + public void CreateUpdateDeleteTest() + { + using (var context = MockContext.Start(this.GetType())) + { + var _client = RedisEnterpriseCacheManagementTestUtilities.GetRedisEnterpriseManagementClient(this, context); + + var responseCreate = _client.RedisEnterprise.Create(resourceGroupName: fixture.ResourceGroupName, clusterName: fixture.RedisEnterpriseCacheName, + parameters: new Cluster + { + Location = RedisEnterpriseCacheManagementHelper.Location, + Sku = new Sku() + { + Name = SkuName.EnterpriseFlashF300, + Capacity = 3 + }, + Zones = new List { "1", "2", "3" }, + }); + + Assert.Contains(fixture.RedisEnterpriseCacheName, responseCreate.Id); + Assert.Equal(RedisEnterpriseCacheManagementHelper.Location, responseCreate.Location); + Assert.Equal(fixture.RedisEnterpriseCacheName, responseCreate.Name); + Assert.Equal("Microsoft.Cache/redisEnterprise", responseCreate.Type); + Assert.Equal(ProvisioningState.Succeeded, responseCreate.ProvisioningState, ignoreCase: true); + Assert.Equal(ResourceState.Running, responseCreate.ResourceState, ignoreCase: true); + Assert.Equal(SkuName.EnterpriseFlashF300, responseCreate.Sku.Name); + Assert.Equal(3, responseCreate.Sku.Capacity); + Assert.Equal(3, responseCreate.Zones.Count); + Assert.Equal(0, responseCreate.PrivateEndpointConnections.Count); + Assert.Equal(0, responseCreate.Tags.Count); + + var responseCreateDatabase = _client.Databases.Create(resourceGroupName: fixture.ResourceGroupName, clusterName: fixture.RedisEnterpriseCacheName, databaseName: fixture.DatabaseName, + parameters: new Database + { + ClientProtocol = Protocol.Plaintext, + ClusteringPolicy = ClusteringPolicy.EnterpriseCluster, + EvictionPolicy = EvictionPolicy.VolatileLRU, + }); + + Assert.Contains(fixture.DatabaseName, responseCreateDatabase.Id); + Assert.Equal(fixture.DatabaseName, responseCreateDatabase.Name); + Assert.Equal("Microsoft.Cache/redisEnterprise/databases", responseCreateDatabase.Type); + Assert.Equal(ProvisioningState.Succeeded, responseCreateDatabase.ProvisioningState, ignoreCase: true); + Assert.Equal(ResourceState.Running, responseCreateDatabase.ResourceState, ignoreCase: true); + Assert.Equal(Protocol.Plaintext, responseCreateDatabase.ClientProtocol); + Assert.Equal(ClusteringPolicy.EnterpriseCluster, responseCreateDatabase.ClusteringPolicy); + Assert.Equal(EvictionPolicy.VolatileLRU, responseCreateDatabase.EvictionPolicy); + + // Database update operations are not currently supported + /* + var responseUpdateDatabase = _client.Databases.Update(resourceGroupName: fixture.ResourceGroupName, clusterName: fixture.RedisEnterpriseCacheName, databaseName: fixture.DatabaseName, + parameters: new DatabaseUpdate + { + ClientProtocol = Protocol.Encrypted, + }); + + Assert.Contains(fixture.DatabaseName, responseUpdateDatabase.Id); + Assert.Equal(fixture.DatabaseName, responseUpdateDatabase.Name); + Assert.Equal("Microsoft.Cache/redisEnterprise/databases", responseUpdateDatabase.Type); + Assert.Equal(ProvisioningState.Succeeded, responseUpdateDatabase.ProvisioningState, ignoreCase: true); + Assert.Equal(ResourceState.Running, responseUpdateDatabase.ResourceState, ignoreCase: true); + Assert.Equal(Protocol.Encrypted, responseUpdateDatabase.ClientProtocol); + Assert.Equal(ClusteringPolicy.EnterpriseCluster, responseUpdateDatabase.ClusteringPolicy); + Assert.Equal(EvictionPolicy.VolatileLRU, responseUpdateDatabase.EvictionPolicy); + */ + + _client.RedisEnterprise.Delete(resourceGroupName: fixture.ResourceGroupName, clusterName: fixture.RedisEnterpriseCacheName); + } + } + } +} + diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/RedisEnterpriseCacheManagementHelper.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/RedisEnterpriseCacheManagementHelper.cs new file mode 100644 index 000000000000..9d4dffde03be --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/RedisEnterpriseCacheManagementHelper.cs @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using System; +using AzureRedisEnterpriseCache.Tests.ScenarioTests; +using Microsoft.Azure.Management.RedisEnterprise; +using Microsoft.Azure.Management.RedisEnterprise.Models; +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Azure.Management.ResourceManager.Models; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + +namespace AzureRedisEnterpriseCache.Tests +{ + public class RedisEnterpriseCacheManagementHelper + { + public static string Location = "East US"; + public static string SecondaryLocation = "West US"; + + private ResourceManagementClient _client; + private MockContext _context; + private TestBase _testBase; + + public RedisEnterpriseCacheManagementHelper(TestBase testBase, MockContext context) + { + _client = RedisEnterpriseCacheManagementTestUtilities.GetResourceManagementClient(testBase, context); + _testBase = testBase; + _context = context; + } + + public void TryRegisterSubscriptionForResource(string providerName = "Microsoft.Cache") + { + var reg = _client.Providers.Register(providerName); + ThrowIfTrue(reg == null, "_client.Providers.Register returned null."); + + var resultAfterRegister = _client.Providers.Get(providerName); + ThrowIfTrue(resultAfterRegister == null, "_client.Providers.Get returned null."); + ThrowIfTrue(string.IsNullOrEmpty(resultAfterRegister.Id), "Provider.Id is null or empty."); + ThrowIfTrue(resultAfterRegister.ResourceTypes == null || resultAfterRegister.ResourceTypes.Count == 0, "Provider.ResourceTypes is empty."); + ThrowIfTrue(resultAfterRegister.ResourceTypes[0].Locations == null || resultAfterRegister.ResourceTypes[0].Locations.Count == 0, "Provider.ResourceTypes[0].Locations is empty."); + } + + public void TryCreateResourceGroup(string resourceGroupName, string location) + { + ResourceGroup result = _client.ResourceGroups.CreateOrUpdate(resourceGroupName, new ResourceGroup { Location = location }); + var newlyCreatedGroup = _client.ResourceGroups.Get(resourceGroupName); + ThrowIfTrue(newlyCreatedGroup == null, "_client.ResourceGroups.Get returned null."); + ThrowIfTrue(!resourceGroupName.Equals(newlyCreatedGroup.Name), string.Format("resourceGroupName is not equal to {0}", resourceGroupName)); + } + + public void DeleteResourceGroup(string resourceGroupName) + { + _client.ResourceGroups.Delete(resourceGroupName); + } + + public void TryCreatingCache(string resourceGroupName, string cacheName, string location) + { + var redisEnterpriseClient = RedisEnterpriseCacheManagementTestUtilities.GetRedisEnterpriseManagementClient(_testBase, _context); + var createResponse = redisEnterpriseClient.RedisEnterprise.Create(resourceGroupName: resourceGroupName, clusterName: cacheName, + parameters: new Cluster + { + Location = location, + Sku = new Microsoft.Azure.Management.RedisEnterprise.Models.Sku() + { + Name = SkuName.EnterpriseE20, + Capacity = 2 + } + }); + + Cluster response = redisEnterpriseClient.RedisEnterprise.GetMethod(resourceGroupName: resourceGroupName, clusterName: cacheName); + ThrowIfTrue(!response.Id.Contains(cacheName), "Cache name not found inside Id."); + ThrowIfTrue(!response.Name.Equals(cacheName), string.Format("Cache name is not equal to {0}", cacheName)); + ThrowIfTrue(!response.HostName.Contains(cacheName), "Cache name not found inside host name."); + + // wait for maximum 30 minutes for cache to create + for (int i = 0; i < 60; i++) + { + TestUtilities.Wait(new TimeSpan(0, 0, 30)); + Cluster responseGet = redisEnterpriseClient.RedisEnterprise.GetMethod(resourceGroupName: resourceGroupName, clusterName: cacheName); + if ("succeeded".Equals(responseGet.ProvisioningState, StringComparison.OrdinalIgnoreCase)) + { + break; + } + ThrowIfTrue(i == 60, "Cache is not in succeeded state even after 30 min."); + } + } + + private void ThrowIfTrue(bool condition, string message) + { + if (condition) + { + throw new Exception(message); + } + } + } +} + diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/RedisEnterpriseCacheManagementTestUtilities.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/RedisEnterpriseCacheManagementTestUtilities.cs new file mode 100644 index 000000000000..28c40258f854 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/RedisEnterpriseCacheManagementTestUtilities.cs @@ -0,0 +1,33 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.RedisEnterprise; +using Microsoft.Azure.Management.ResourceManager; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; + +namespace AzureRedisEnterpriseCache.Tests.ScenarioTests +{ + public static class RedisEnterpriseCacheManagementTestUtilities + { + /// + /// Default constructor for management clients, using the TestSupport Infrastructure + /// + /// the test class + /// A redis cache management client, created from the current context (environment variables) + public static redisenterpriseClient GetRedisEnterpriseManagementClient(this TestBase testBase, MockContext context) + { + return context.GetServiceClient(); + } + + /// + /// Default constructor for management clients, using the TestSupport Infrastructure + /// + /// the test class + /// A resource management client, created from the current context (environment variables) + public static ResourceManagementClient GetResourceManagementClient(this TestBase testBase, MockContext context) + { + return context.GetServiceClient(); + } + } +} + diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/TestsFixture.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/TestsFixture.cs new file mode 100644 index 000000000000..0a87e8651817 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/ScenarioTests/TestsFixture.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. + +using Microsoft.Azure.Management.RedisEnterprise; +using Microsoft.Azure.Management.RedisEnterprise.Models; +using Microsoft.Azure.Test; +using Microsoft.Azure.Test.HttpRecorder; +using Microsoft.Rest.ClientRuntime.Azure.TestFramework; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AzureRedisEnterpriseCache.Tests +{ + public class TestsFixture : TestBase, IDisposable + { + public string ResourceGroupName { set; get; } + public string RedisEnterpriseCacheName { set; get; } + public string DatabaseName { set; get; } + + private RedisEnterpriseCacheManagementHelper _redisEnterpriseCacheManagementHelper; + private MockContext _context = null; + + public TestsFixture() + { + _context = new MockContext(); + MockContext.Start(this.GetType(), ".ctor"); + try + { + _redisEnterpriseCacheManagementHelper = new RedisEnterpriseCacheManagementHelper(this, _context); + _redisEnterpriseCacheManagementHelper.TryRegisterSubscriptionForResource(); + + ResourceGroupName = TestUtilities.GenerateName("RedisEnterpriseCreateUpdate"); + RedisEnterpriseCacheName = TestUtilities.GenerateName("RedisEnterpriseCreateUpdate"); + DatabaseName = "default"; + _redisEnterpriseCacheManagementHelper.TryCreateResourceGroup(ResourceGroupName, RedisEnterpriseCacheManagementHelper.Location); + } + catch (Exception) + { + Cleanup(); + throw; + } + finally + { + HttpMockServer.Flush(); + } + + } + + public void Dispose() + { + Cleanup(); + } + + private void Cleanup() + { + if (HttpMockServer.Mode == HttpRecorderMode.Record) + { + HttpMockServer.Initialize(this.GetType(), ".cleanup"); + } + if (_context != null) + { + _context.Dispose(); + _context = null; + } + } + } +} + diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/SessionRecords/BeginCreateFunctionalTests/BeginCreateFunctionalTest.json b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/SessionRecords/BeginCreateFunctionalTests/BeginCreateFunctionalTest.json new file mode 100644 index 000000000000..1c726d7b451f --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/SessionRecords/BeginCreateFunctionalTests/BeginCreateFunctionalTest.json @@ -0,0 +1,3211 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/register?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvcmVnaXN0ZXI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1a66b74c-83d7-4de9-9289-cdb9d16f1266" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "abfaf396-9e65-42ef-a75e-24b48c99bca5" + ], + "x-ms-correlation-request-id": [ + "abfaf396-9e65-42ef-a75e-24b48c99bca5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001458Z:abfaf396-9e65-42ef-a75e-24b48c99bca5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 10 Nov 2020 00:14:57 GMT" + ], + "Content-Length": [ + "11262" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache\",\r\n \"namespace\": \"Microsoft.Cache\",\r\n \"authorization\": {\r\n \"applicationId\": \"96231a05-34ce-4eb4-aa6a-70759cbb5e83\",\r\n \"roleDefinitionId\": \"4f731528-ba85-45c7-acfb-cd0a9b3cf31b\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"Redis\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ],\r\n \"zoneMappings\": [\r\n {\r\n \"location\": \"East US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US 2 EUAP\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"France Central\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"North Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"UK South\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Japan East\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Australia East\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"South Africa North\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"South Central US\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"Canada Central\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"Germany West Central\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"Brazil South\",\r\n \"zones\": []\r\n }\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateEndpointConnectionProxies\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateEndpointConnectionProxies/validate\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateEndpointConnections\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateLinkResources\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/asyncOperations\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2020-04-01-preview\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"South India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationsStatus\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2020-04-01-preview\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01-alpha\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01-alpha\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"redisEnterprise\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2020-04-01-preview\"\r\n }\r\n ],\r\n \"zoneMappings\": [\r\n {\r\n \"location\": \"East US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"North Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"UK South\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Australia East\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"South Central US\",\r\n \"zones\": []\r\n }\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnectionProxies\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnectionProxies/validate\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnectionProxies/operationresults\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnections\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnections/operationresults\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateLinkResources\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/EventGridFilters\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"South India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"South Africa North\",\r\n \"South Africa West\",\r\n \"UAE Central\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Switzerland West\",\r\n \"Germany North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Norway West\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6aa938f7-7e9a-41cd-9d27-b63a807f182b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "b9b072f1-1e43-4719-b0b4-d2b29495cfd5" + ], + "x-ms-correlation-request-id": [ + "b9b072f1-1e43-4719-b0b4-d2b29495cfd5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001458Z:b9b072f1-1e43-4719-b0b4-d2b29495cfd5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 10 Nov 2020 00:14:58 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "11262" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache\",\r\n \"namespace\": \"Microsoft.Cache\",\r\n \"authorization\": {\r\n \"applicationId\": \"96231a05-34ce-4eb4-aa6a-70759cbb5e83\",\r\n \"roleDefinitionId\": \"4f731528-ba85-45c7-acfb-cd0a9b3cf31b\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"Redis\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ],\r\n \"zoneMappings\": [\r\n {\r\n \"location\": \"East US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US 2 EUAP\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"France Central\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"North Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"UK South\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Japan East\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Australia East\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"South Africa North\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"South Central US\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"Canada Central\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"Germany West Central\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"Brazil South\",\r\n \"zones\": []\r\n }\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateEndpointConnectionProxies\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateEndpointConnectionProxies/validate\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateEndpointConnections\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateLinkResources\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/asyncOperations\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2020-04-01-preview\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"South India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationsStatus\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2020-04-01-preview\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01-alpha\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01-alpha\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"redisEnterprise\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2020-04-01-preview\"\r\n }\r\n ],\r\n \"zoneMappings\": [\r\n {\r\n \"location\": \"East US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"North Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"UK South\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Australia East\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"South Central US\",\r\n \"zones\": []\r\n }\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnectionProxies\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnectionProxies/validate\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnectionProxies/operationresults\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnections\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnections/operationresults\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateLinkResources\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/EventGridFilters\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"South India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"South Africa North\",\r\n \"South Africa West\",\r\n \"UAE Central\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Switzerland West\",\r\n \"Germany North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Norway West\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourcegroups/RedisEnterpriseBegin9491?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlZ3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MT9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d30060b1-fa89-4f53-b911-613cf73fca94" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "5358632f-253b-43e1-84f5-0c01f73164a6" + ], + "x-ms-correlation-request-id": [ + "5358632f-253b-43e1-84f5-0c01f73164a6" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001459Z:5358632f-253b-43e1-84f5-0c01f73164a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 10 Nov 2020 00:14:59 GMT" + ], + "Content-Length": [ + "201" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491\",\r\n \"name\": \"RedisEnterpriseBegin9491\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourcegroups/RedisEnterpriseBegin9491?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlZ3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MT9hcGktdmVyc2lvbj0yMDE3LTA1LTEw", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "3158787b-f4e4-4051-9336-efd20e5e39d9" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "92814051-1d46-4345-97e1-f36b4db6ca9a" + ], + "x-ms-correlation-request-id": [ + "92814051-1d46-4345-97e1-f36b4db6ca9a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001459Z:92814051-1d46-4345-97e1-f36b4db6ca9a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 10 Nov 2020 00:14:59 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "201" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491\",\r\n \"name\": \"RedisEnterpriseBegin9491\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ],\r\n \"properties\": {\r\n \"minimumTlsVersion\": \"1.2\"\r\n },\r\n \"location\": \"East US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "2a49077e-4f7f-480c-ac95-f79c0a40953b" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "203" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3cb09f05-1ec5-497b-b879-52ebb45f66b1?api-version=2020-10-01-preview" + ], + "x-ms-request-id": [ + "5c772ed8-6772-4a2b-a2ee-12e1d94d4dbd" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "eced7181-10d3-4047-894f-b55de45ff833" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001503Z:eced7181-10d3-4047-894f-b55de45ff833" + ], + "Date": [ + "Tue, 10 Nov 2020 00:15:02 GMT" + ], + "Content-Length": [ + "515" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": null,\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\"\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "12f84310-1141-4879-9dd8-696dde82ccc6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "085fc98e-5998-450d-a04f-6bd76b7d0967" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "6be6ea77-ee57-440b-bdba-1caeca30d4c3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001503Z:6be6ea77-ee57-440b-bdba-1caeca30d4c3" + ], + "Date": [ + "Tue, 10 Nov 2020 00:15:03 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d7394671-9173-41c2-a44c-2f3094a3d968" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d1037ce4-bbaa-46d2-8706-5112ab92d828" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "762833c1-4edb-4478-a6c8-8a3c31c57e5f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001533Z:762833c1-4edb-4478-a6c8-8a3c31c57e5f" + ], + "Date": [ + "Tue, 10 Nov 2020 00:15:32 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "551107f4-bfcd-4852-9672-ff3ee5113329" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "fe205a57-e6b2-480f-a9c8-73cccfa3bbbf" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "337d3292-8de2-4e71-aaac-7fe497da51ea" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001603Z:337d3292-8de2-4e71-aaac-7fe497da51ea" + ], + "Date": [ + "Tue, 10 Nov 2020 00:16:02 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6536504b-4d66-46fd-b02f-ffa204030b69" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "f1926609-8ed0-4c8d-82d0-634934d500e9" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "bae5d1c6-864e-47af-a5c1-6173f2448136" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001633Z:bae5d1c6-864e-47af-a5c1-6173f2448136" + ], + "Date": [ + "Tue, 10 Nov 2020 00:16:33 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1cb21247-96e0-462c-a6d5-6a08b56fe71f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "3d8f3121-3056-4bfc-b94c-d64532481699" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "5af32c1e-ab1a-406e-b991-e43492648e0a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001703Z:5af32c1e-ab1a-406e-b991-e43492648e0a" + ], + "Date": [ + "Tue, 10 Nov 2020 00:17:03 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "4e5c02a3-26b7-4446-b35c-60819bb02847" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "afcc3942-2bbd-449e-b926-2b37fe9e06c7" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "18967df5-ac0f-438d-9cae-850e4facb3c3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001733Z:18967df5-ac0f-438d-9cae-850e4facb3c3" + ], + "Date": [ + "Tue, 10 Nov 2020 00:17:32 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d8144b85-9471-40a6-9510-d07108d185c7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "071b68ce-50d5-44ac-9489-960ad4074172" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "7fa0794c-5680-4f66-8735-cae8fedff1d5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001803Z:7fa0794c-5680-4f66-8735-cae8fedff1d5" + ], + "Date": [ + "Tue, 10 Nov 2020 00:18:03 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "49a6b833-210b-4fed-9f85-186f03eab7fe" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c70cd27e-4bfd-49a9-977b-3b591ba01264" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "25b898ba-c3d6-44a7-a3b6-b77a243c605b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001834Z:25b898ba-c3d6-44a7-a3b6-b77a243c605b" + ], + "Date": [ + "Tue, 10 Nov 2020 00:18:33 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "7943abdb-db44-46af-8413-2284a6f83322" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "eb3b91c0-ead6-42a8-ad81-82d4577bf14c" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "7ab813c4-1805-4791-9420-ad4a46ec58ec" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001904Z:7ab813c4-1805-4791-9420-ad4a46ec58ec" + ], + "Date": [ + "Tue, 10 Nov 2020 00:19:03 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "dc44353c-2d96-4431-9aa0-6ba73fdca3f7" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c1f7160b-99c9-4949-bc80-300798128b8b" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "ed7ed585-0f88-4624-a145-dbfed80d1baa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T001934Z:ed7ed585-0f88-4624-a145-dbfed80d1baa" + ], + "Date": [ + "Tue, 10 Nov 2020 00:19:34 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a40b826a-fc5e-4dc7-b89a-d49d6db9ae30" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ddc7d6fb-f644-40a5-94e3-3f5904eafe20" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "94235335-bd37-4ce6-8c91-934a3b7cd86b" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002004Z:94235335-bd37-4ce6-8c91-934a3b7cd86b" + ], + "Date": [ + "Tue, 10 Nov 2020 00:20:03 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "6e11b41c-df5d-4b0b-a1ac-8fc3c12a3a42" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "61e5e6c7-7b14-455b-bb95-5be6fb5a8d84" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "c467da53-b7e3-4613-9636-1250275707c9" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002034Z:c467da53-b7e3-4613-9636-1250275707c9" + ], + "Date": [ + "Tue, 10 Nov 2020 00:20:33 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b601222d-f88a-473d-ae5b-b3a3c796256f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2ee06066-f710-4145-94dc-d0a7e4e2d434" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "x-ms-correlation-request-id": [ + "62ca1d5e-ee85-47c4-9af4-f819294502f0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002104Z:62ca1d5e-ee85-47c4-9af4-f819294502f0" + ], + "Date": [ + "Tue, 10 Nov 2020 00:21:04 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "cc4643ab-6700-4e84-9949-82dd6964d69c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "cd775b21-2862-4546-9085-9626895a1848" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "32be67fd-d91a-4d67-b5aa-ff97f3589ee7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002134Z:32be67fd-d91a-4d67-b5aa-ff97f3589ee7" + ], + "Date": [ + "Tue, 10 Nov 2020 00:21:34 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d4fcad14-b509-4616-92ff-b10d073817ab" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "af4fa851-99f6-4975-ae50-0fe32db280ad" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "1cd82bab-bd7d-4f12-9ffd-7b7680dde3bf" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002205Z:1cd82bab-bd7d-4f12-9ffd-7b7680dde3bf" + ], + "Date": [ + "Tue, 10 Nov 2020 00:22:04 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752/databases/default?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTIvZGF0YWJhc2VzL2RlZmF1bHQ/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"clusteringPolicy\": \"OSSCluster\",\r\n \"evictionPolicy\": \"NoEviction\",\r\n \"modules\": [\r\n {\r\n \"name\": \"RedisBloom\",\r\n \"args\": \"ERROR_RATE 0.00 INITIAL_SIZE 400\"\r\n },\r\n {\r\n \"name\": \"RedisTimeSeries\",\r\n \"args\": \"RETENTION_POLICY 20\"\r\n },\r\n {\r\n \"name\": \"RediSearch\"\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f0e3e4cf-b7dc-45ea-a4db-e5443e161b39" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "409" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752/databases/default?api-version=2020-10-01-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/e7e4d4c4-ab8d-4dd9-b1fc-8fc7529bf5c9?api-version=2020-10-01-preview" + ], + "x-ms-request-id": [ + "2a1b8b1a-9e0d-484e-878d-52773418d3ad" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "6d57b474-b2d8-437b-8cab-ce2da70f9364" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002205Z:6d57b474-b2d8-437b-8cab-ce2da70f9364" + ], + "Date": [ + "Tue, 10 Nov 2020 00:22:05 GMT" + ], + "Content-Length": [ + "762" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752/databases/default\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise/databases\",\r\n \"properties\": {\r\n \"clientProtocol\": \"Encrypted\",\r\n \"port\": 10000,\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"clusteringPolicy\": \"OSSCluster\",\r\n \"evictionPolicy\": \"NoEviction\",\r\n \"modules\": [\r\n {\r\n \"name\": \"RedisBloom\",\r\n \"version\": \"2.2.4\"\r\n },\r\n {\r\n \"name\": \"RedisTimeSeries\",\r\n \"version\": \"1.4.5\"\r\n },\r\n {\r\n \"name\": \"RediSearch\",\r\n \"version\": \"2.0.1\"\r\n }\r\n ]\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "089e9eba-b8e1-470b-bd6b-e23473bb88a3" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752/operationresults/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview" + ], + "x-ms-request-id": [ + "9fa95042-4a7a-485f-b72f-476ede948ca6" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "62b4d5bb-3727-46c0-9154-d31895d27666" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002206Z:62b4d5bb-3727-46c0-9154-d31895d27666" + ], + "Date": [ + "Tue, 10 Nov 2020 00:22:05 GMT" + ], + "Content-Length": [ + "552" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseBegin2752\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"Enterprise_E10\",\r\n \"capacity\": 2\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Deleting\",\r\n \"resourceState\": \"Deleting\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "92b8c2fd-5733-43ed-bc81-c0b6ee868015" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "b1ab47a3-70a8-45ce-b82d-e852a67d8f1a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002236Z:b1ab47a3-70a8-45ce-b82d-e852a67d8f1a" + ], + "Date": [ + "Tue, 10 Nov 2020 00:22:35 GMT" + ], + "Content-Length": [ + "309" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"Pending\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"0001-01-01T00:00:00-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "feedfaaa-d8a6-4b6f-8160-a44d9aa6d83e" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "71f8be30-0533-4551-91c2-861cb75ce577" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002306Z:71f8be30-0533-4551-91c2-861cb75ce577" + ], + "Date": [ + "Tue, 10 Nov 2020 00:23:06 GMT" + ], + "Content-Length": [ + "309" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"Pending\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"0001-01-01T00:00:00-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b59284df-596c-4c57-9a7d-2ac68a7b6306" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "7fb2c63c-6379-4448-824b-9954a229820e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002336Z:7fb2c63c-6379-4448-824b-9954a229820e" + ], + "Date": [ + "Tue, 10 Nov 2020 00:23:36 GMT" + ], + "Content-Length": [ + "309" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"Pending\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"0001-01-01T00:00:00-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "09cc67cb-0c0e-4d78-b942-7d207ddcbc1b" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "23e5b0d5-615d-4cec-b627-5c653b4df8f5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002406Z:23e5b0d5-615d-4cec-b627-5c653b4df8f5" + ], + "Date": [ + "Tue, 10 Nov 2020 00:24:06 GMT" + ], + "Content-Length": [ + "309" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"Pending\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"0001-01-01T00:00:00-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "73ec4d9b-dd03-4986-b849-464e00eed47a" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "1c63345c-8a00-4ecc-9ec0-2facff647d82" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002436Z:1c63345c-8a00-4ecc-9ec0-2facff647d82" + ], + "Date": [ + "Tue, 10 Nov 2020 00:24:35 GMT" + ], + "Content-Length": [ + "309" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"Pending\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"0001-01-01T00:00:00-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d310f3d4-06dd-4a77-8548-791c6cbf7d2b" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-correlation-request-id": [ + "4f3cd03b-bd8f-4492-aa16-1560a108f8ba" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002506Z:4f3cd03b-bd8f-4492-aa16-1560a108f8ba" + ], + "Date": [ + "Tue, 10 Nov 2020 00:25:06 GMT" + ], + "Content-Length": [ + "309" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"Pending\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"0001-01-01T00:00:00-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ef84d1e6-7a0b-46ae-a588-40ec149b7d59" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-correlation-request-id": [ + "0b4642ff-72c0-4e5b-8f61-a6cdec4bb38a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002537Z:0b4642ff-72c0-4e5b-8f61-a6cdec4bb38a" + ], + "Date": [ + "Tue, 10 Nov 2020 00:25:36 GMT" + ], + "Content-Length": [ + "309" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"Pending\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"0001-01-01T00:00:00-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ba16c1eb-9a62-4c7a-9492-842ae7e29747" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "5ff1667a-ab12-4a6f-ad73-58777abf77f7" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002607Z:5ff1667a-ab12-4a6f-ad73-58777abf77f7" + ], + "Date": [ + "Tue, 10 Nov 2020 00:26:06 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "da6809c7-14dc-49ec-bad9-deb41807aa1c" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "650f0cb1-878f-4c73-95ef-072288987240" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002637Z:650f0cb1-878f-4c73-95ef-072288987240" + ], + "Date": [ + "Tue, 10 Nov 2020 00:26:36 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "89c04500-7e9e-47f2-be8b-30fbc0cdfe71" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-correlation-request-id": [ + "44f76409-86ca-45cc-a030-1b76f31bee3a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002710Z:44f76409-86ca-45cc-a030-1b76f31bee3a" + ], + "Date": [ + "Tue, 10 Nov 2020 00:27:10 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b0654f95-9b9a-4e29-853e-8e535b9d7c3e" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-correlation-request-id": [ + "24ea8f74-f190-4147-96a4-970d32f4cd92" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002740Z:24ea8f74-f190-4147-96a4-970d32f4cd92" + ], + "Date": [ + "Tue, 10 Nov 2020 00:27:40 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c6c1efd6-69e7-4103-888b-dee53441f885" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "x-ms-correlation-request-id": [ + "b9489952-1e8c-4a61-ba4d-88e09fcda67f" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002810Z:b9489952-1e8c-4a61-ba4d-88e09fcda67f" + ], + "Date": [ + "Tue, 10 Nov 2020 00:28:09 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "83369e48-0e89-4d5d-b59e-df6e9e0b5387" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-correlation-request-id": [ + "def2291a-82ba-4cd7-b3ae-b986a485bc26" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002841Z:def2291a-82ba-4cd7-b3ae-b986a485bc26" + ], + "Date": [ + "Tue, 10 Nov 2020 00:28:40 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "742f4494-82d8-43cc-9cf5-508ddf4edfa9" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-correlation-request-id": [ + "da9238e8-e85f-4aa3-a407-5e66794d262e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002911Z:da9238e8-e85f-4aa3-a407-5e66794d262e" + ], + "Date": [ + "Tue, 10 Nov 2020 00:29:10 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1fab431f-a326-4aec-895c-ab3c08b3008f" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-correlation-request-id": [ + "aeb1dc6e-0cb3-4fc5-87b3-274e22260c84" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T002941Z:aeb1dc6e-0cb3-4fc5-87b3-274e22260c84" + ], + "Date": [ + "Tue, 10 Nov 2020 00:29:40 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "54e2dd2f-ad65-4c30-90d3-3f59ef013460" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11967" + ], + "x-ms-correlation-request-id": [ + "bd2d1ee2-4b36-4e5a-b2d5-1f0d075d7bca" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003011Z:bd2d1ee2-4b36-4e5a-b2d5-1f0d075d7bca" + ], + "Date": [ + "Tue, 10 Nov 2020 00:30:11 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "fa69db88-be58-4650-9976-acb5be26f270" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11966" + ], + "x-ms-correlation-request-id": [ + "55e8156f-6a4f-4015-90b5-94c752234b82" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003041Z:55e8156f-6a4f-4015-90b5-94c752234b82" + ], + "Date": [ + "Tue, 10 Nov 2020 00:30:41 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "78e440c0-8cb5-403f-95b4-86737c05157e" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11965" + ], + "x-ms-correlation-request-id": [ + "78579c06-427c-4121-b1da-6474c2a5517d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003111Z:78579c06-427c-4121-b1da-6474c2a5517d" + ], + "Date": [ + "Tue, 10 Nov 2020 00:31:10 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "07e9f12a-ecaa-4788-b7bc-a4cbc0b20da3" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11964" + ], + "x-ms-correlation-request-id": [ + "e3e26d61-8a51-430a-bd5a-5b5ba4407d95" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003141Z:e3e26d61-8a51-430a-bd5a-5b5ba4407d95" + ], + "Date": [ + "Tue, 10 Nov 2020 00:31:41 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c9affc7c-c81a-429b-a934-97631bed4f02" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11963" + ], + "x-ms-correlation-request-id": [ + "cdb6c722-f26d-4a60-a8e5-c26c90ff10fc" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003211Z:cdb6c722-f26d-4a60-a8e5-c26c90ff10fc" + ], + "Date": [ + "Tue, 10 Nov 2020 00:32:11 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7549e0f2-5030-45b1-9320-29407685e833" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11961" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "c717d3da-9a36-47e4-99fd-b954342954f0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003241Z:c717d3da-9a36-47e4-99fd-b954342954f0" + ], + "Date": [ + "Tue, 10 Nov 2020 00:32:41 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "12ec9332-974e-40f4-beea-f4eefb0bb9b8" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11960" + ], + "x-ms-correlation-request-id": [ + "52cda8d4-6879-46b4-939f-b18e400291d4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003312Z:52cda8d4-6879-46b4-939f-b18e400291d4" + ], + "Date": [ + "Tue, 10 Nov 2020 00:33:11 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "911d7b1d-20fd-42fe-9570-2d6339413270" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11959" + ], + "x-ms-correlation-request-id": [ + "5ad64c61-1ba9-4b78-bb88-b4daf17cc8bb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003342Z:5ad64c61-1ba9-4b78-bb88-b4daf17cc8bb" + ], + "Date": [ + "Tue, 10 Nov 2020 00:33:42 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ba79cee4-8c19-42dd-83ff-271e27fb45de" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11957" + ], + "x-ms-correlation-request-id": [ + "e3d83fc2-d0ff-4310-8eaa-8a03db5e2647" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003412Z:e3d83fc2-d0ff-4310-8eaa-8a03db5e2647" + ], + "Date": [ + "Tue, 10 Nov 2020 00:34:12 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "714285ca-7be0-4eac-ab16-7179c7ec13a5" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11956" + ], + "x-ms-correlation-request-id": [ + "ffb5986d-4e32-4fb8-b37e-3cc93739a719" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003442Z:ffb5986d-4e32-4fb8-b37e-3cc93739a719" + ], + "Date": [ + "Tue, 10 Nov 2020 00:34:41 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b5f2dbc3-f7ba-4c0c-a7e1-756d779bc8c0" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11954" + ], + "x-ms-correlation-request-id": [ + "769f9e46-c635-4e5b-9d85-b7069bf841f1" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003512Z:769f9e46-c635-4e5b-9d85-b7069bf841f1" + ], + "Date": [ + "Tue, 10 Nov 2020 00:35:12 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7bc76ac8-33f5-4fbc-b233-351858a8ee04" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11953" + ], + "x-ms-correlation-request-id": [ + "bbd028c3-eed5-4810-8684-5d66ac8d48db" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003542Z:bbd028c3-eed5-4810-8684-5d66ac8d48db" + ], + "Date": [ + "Tue, 10 Nov 2020 00:35:42 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:25:38.0920952-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzE3YjM5MGYzLWYyMGQtNDNkNy05ZTAyLTQ0MmJiYjQxMTg5Mj9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "82596f74-2d59-44cd-8f64-e3ea919f7b29" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11951" + ], + "x-ms-correlation-request-id": [ + "7434eb2c-b2c9-417c-aa41-3365a02a5e82" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003612Z:7434eb2c-b2c9-417c-aa41-3365a02a5e82" + ], + "Date": [ + "Tue, 10 Nov 2020 00:36:12 GMT" + ], + "Content-Length": [ + "319" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"name\": \"17b390f3-f20d-43d7-9e02-442bbb411892\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-09T16:22:05.9726356-08:00\",\r\n \"endTime\": \"2020-11-09T16:36:03.9218138-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseBegin9491/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseBegin2752/operationresults/17b390f3-f20d-43d7-9e02-442bbb411892?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUJlZ2luOTQ5MS9wcm92aWRlcnMvTWljcm9zb2Z0LkNhY2hlL3JlZGlzRW50ZXJwcmlzZS9SZWRpc0VudGVycHJpc2VCZWdpbjI3NTIvb3BlcmF0aW9ucmVzdWx0cy8xN2IzOTBmMy1mMjBkLTQzZDctOWUwMi00NDJiYmI0MTE4OTI/YXBpLXZlcnNpb249MjAyMC0xMC0wMS1wcmV2aWV3", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "e40fc29b-9a04-4e44-8733-a20910fe9965" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11950" + ], + "x-ms-correlation-request-id": [ + "8fc09c42-8957-4e70-b3c4-127e2848aabb" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003613Z:8fc09c42-8957-4e70-b3c4-127e2848aabb" + ], + "Date": [ + "Tue, 10 Nov 2020 00:36:12 GMT" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "", + "StatusCode": 204 + } + ], + "Names": { + "BeginCreateFunctionalTest": [ + "RedisEnterpriseBegin9491", + "RedisEnterpriseBegin2752" + ] + }, + "Variables": { + "SubscriptionId": "e311648e-a318-4a16-836e-f4a91cc73e9b" + } +} \ No newline at end of file diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/SessionRecords/CreateUpdateDeleteFunctionalTests/CreateUpdateDeleteTest.json b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/SessionRecords/CreateUpdateDeleteFunctionalTests/CreateUpdateDeleteTest.json new file mode 100644 index 000000000000..5428c6dc27ef --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/SessionRecords/CreateUpdateDeleteFunctionalTests/CreateUpdateDeleteTest.json @@ -0,0 +1,2210 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUNyZWF0ZVVwZGF0ZTU3OTUvcHJvdmlkZXJzL01pY3Jvc29mdC5DYWNoZS9yZWRpc0VudGVycHJpc2UvUmVkaXNFbnRlcnByaXNlQ3JlYXRlVXBkYXRlODg3MT9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"sku\": {\r\n \"name\": \"EnterpriseFlash_F300\",\r\n \"capacity\": 3\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ],\r\n \"location\": \"East US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a580f8d0-93b1-4590-98fb-c4ebfab3751d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "152" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871?api-version=2020-10-01-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33?api-version=2020-10-01-preview" + ], + "x-ms-request-id": [ + "22ce7399-bce6-4b84-b769-60cf345cca43" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-correlation-request-id": [ + "29873a42-cdb7-46e1-9e23-d25b037e2289" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003620Z:29873a42-cdb7-46e1-9e23-d25b037e2289" + ], + "Date": [ + "Tue, 10 Nov 2020 00:36:20 GMT" + ], + "Content-Length": [ + "542" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseCreateUpdate8871\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": null,\r\n \"sku\": {\r\n \"name\": \"EnterpriseFlash_F300\",\r\n \"capacity\": 3\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Creating\",\r\n \"resourceState\": \"Creating\"\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzU0Y2M5YmZkLTk1ZGUtNDA2MC05MzdkLWQ2ZTE2OTI4YmYzMz9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "4597978a-9841-4471-b353-15a37da51fb4" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-correlation-request-id": [ + "219db5c7-1d52-4bd2-8122-b4798c077d26" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003651Z:219db5c7-1d52-4bd2-8122-b4798c077d26" + ], + "Date": [ + "Tue, 10 Nov 2020 00:36:50 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"name\": \"54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:36:20.4728955-08:00\",\r\n \"endTime\": \"2020-11-09T16:36:21.8842485-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzU0Y2M5YmZkLTk1ZGUtNDA2MC05MzdkLWQ2ZTE2OTI4YmYzMz9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "935660a5-9b05-4f1a-a5a9-e42e755eb57c" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-correlation-request-id": [ + "f7879d8d-e938-4af0-bf52-4a6eec46e5e4" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003721Z:f7879d8d-e938-4af0-bf52-4a6eec46e5e4" + ], + "Date": [ + "Tue, 10 Nov 2020 00:37:20 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"name\": \"54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:36:20.4728955-08:00\",\r\n \"endTime\": \"2020-11-09T16:36:21.8842485-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzU0Y2M5YmZkLTk1ZGUtNDA2MC05MzdkLWQ2ZTE2OTI4YmYzMz9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "dadd6217-d010-4412-a814-a8bbf61861f1" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-correlation-request-id": [ + "cf87dcaf-0f44-4fd9-a7f3-7807ac18221d" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003751Z:cf87dcaf-0f44-4fd9-a7f3-7807ac18221d" + ], + "Date": [ + "Tue, 10 Nov 2020 00:37:50 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"name\": \"54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:36:20.4728955-08:00\",\r\n \"endTime\": \"2020-11-09T16:36:21.8842485-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzU0Y2M5YmZkLTk1ZGUtNDA2MC05MzdkLWQ2ZTE2OTI4YmYzMz9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6a7ef287-eb1f-4ae2-9f4b-94f21c08d040" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-correlation-request-id": [ + "5b1ab322-fe48-4849-9ec5-9c9490ae6fb5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003821Z:5b1ab322-fe48-4849-9ec5-9c9490ae6fb5" + ], + "Date": [ + "Tue, 10 Nov 2020 00:38:21 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"name\": \"54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:36:20.4728955-08:00\",\r\n \"endTime\": \"2020-11-09T16:36:21.8842485-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzU0Y2M5YmZkLTk1ZGUtNDA2MC05MzdkLWQ2ZTE2OTI4YmYzMz9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d94bd29f-ca81-4af6-85f6-f2f4b44d1ffc" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11995" + ], + "x-ms-correlation-request-id": [ + "e51bade2-fc99-439a-b83a-84be68f44035" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003851Z:e51bade2-fc99-439a-b83a-84be68f44035" + ], + "Date": [ + "Tue, 10 Nov 2020 00:38:51 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"name\": \"54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:36:20.4728955-08:00\",\r\n \"endTime\": \"2020-11-09T16:36:21.8842485-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzU0Y2M5YmZkLTk1ZGUtNDA2MC05MzdkLWQ2ZTE2OTI4YmYzMz9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c8eec0cd-1adc-40b7-b049-86797e404b41" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11994" + ], + "x-ms-correlation-request-id": [ + "5b6c9df7-ca89-44a9-875f-7593d5c619d3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003921Z:5b6c9df7-ca89-44a9-875f-7593d5c619d3" + ], + "Date": [ + "Tue, 10 Nov 2020 00:39:21 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"name\": \"54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:36:20.4728955-08:00\",\r\n \"endTime\": \"2020-11-09T16:36:21.8842485-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzU0Y2M5YmZkLTk1ZGUtNDA2MC05MzdkLWQ2ZTE2OTI4YmYzMz9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "919c3cbd-a215-4020-94e6-38c60935fd0b" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11993" + ], + "x-ms-correlation-request-id": [ + "add61cd4-516b-42d3-a94f-1e035e55c313" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003951Z:add61cd4-516b-42d3-a94f-1e035e55c313" + ], + "Date": [ + "Tue, 10 Nov 2020 00:39:50 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"name\": \"54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:36:20.4728955-08:00\",\r\n \"endTime\": \"2020-11-09T16:36:21.8842485-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzU0Y2M5YmZkLTk1ZGUtNDA2MC05MzdkLWQ2ZTE2OTI4YmYzMz9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6cd2e607-2ac0-40ed-9158-c2646926d4b8" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11992" + ], + "x-ms-correlation-request-id": [ + "4d5fbffb-b610-48c4-8cfb-0d1bf9b6710e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004021Z:4d5fbffb-b610-48c4-8cfb-0d1bf9b6710e" + ], + "Date": [ + "Tue, 10 Nov 2020 00:40:21 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"name\": \"54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:36:20.4728955-08:00\",\r\n \"endTime\": \"2020-11-09T16:36:21.8842485-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzU0Y2M5YmZkLTk1ZGUtNDA2MC05MzdkLWQ2ZTE2OTI4YmYzMz9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "1e41b546-12bc-4f61-9c66-a62af9db05cc" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11991" + ], + "x-ms-correlation-request-id": [ + "6c0846bb-4256-4ad0-910c-5c2359a23fa3" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004051Z:6c0846bb-4256-4ad0-910c-5c2359a23fa3" + ], + "Date": [ + "Tue, 10 Nov 2020 00:40:51 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"name\": \"54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:36:20.4728955-08:00\",\r\n \"endTime\": \"2020-11-09T16:36:21.8842485-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzU0Y2M5YmZkLTk1ZGUtNDA2MC05MzdkLWQ2ZTE2OTI4YmYzMz9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "56d1d79a-ec0c-42ff-947a-1cf0db07abba" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11990" + ], + "x-ms-correlation-request-id": [ + "c94b3a92-3e22-4cda-8479-fd66d620acf5" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004122Z:c94b3a92-3e22-4cda-8479-fd66d620acf5" + ], + "Date": [ + "Tue, 10 Nov 2020 00:41:21 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"name\": \"54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:36:20.4728955-08:00\",\r\n \"endTime\": \"2020-11-09T16:36:21.8842485-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzU0Y2M5YmZkLTk1ZGUtNDA2MC05MzdkLWQ2ZTE2OTI4YmYzMz9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2966d0a2-409a-49e9-91da-abd2e8f29b97" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11989" + ], + "x-ms-correlation-request-id": [ + "3343695b-0162-4f33-80bf-dfe225b7b8fd" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004152Z:3343695b-0162-4f33-80bf-dfe225b7b8fd" + ], + "Date": [ + "Tue, 10 Nov 2020 00:41:51 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"name\": \"54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:36:20.4728955-08:00\",\r\n \"endTime\": \"2020-11-09T16:36:21.8842485-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzU0Y2M5YmZkLTk1ZGUtNDA2MC05MzdkLWQ2ZTE2OTI4YmYzMz9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "fa3a0cba-091e-4371-aa43-bcb92b177fa5" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11988" + ], + "x-ms-correlation-request-id": [ + "08d4c1cd-40e4-4934-b1f2-f90ccae676c8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004222Z:08d4c1cd-40e4-4934-b1f2-f90ccae676c8" + ], + "Date": [ + "Tue, 10 Nov 2020 00:42:21 GMT" + ], + "Content-Length": [ + "319" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"name\": \"54cc9bfd-95de-4060-937d-d6e16928bf33\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-09T16:36:20.4728955-08:00\",\r\n \"endTime\": \"2020-11-09T16:41:53.6643419-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUNyZWF0ZVVwZGF0ZTU3OTUvcHJvdmlkZXJzL01pY3Jvc29mdC5DYWNoZS9yZWRpc0VudGVycHJpc2UvUmVkaXNFbnRlcnByaXNlQ3JlYXRlVXBkYXRlODg3MT9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "5e32da01-853d-431a-805f-0655b5372cc3" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11987" + ], + "x-ms-correlation-request-id": [ + "09884092-3bf3-4729-b771-34db6761fbde" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004222Z:09884092-3bf3-4729-b771-34db6761fbde" + ], + "Date": [ + "Tue, 10 Nov 2020 00:42:21 GMT" + ], + "Content-Length": [ + "579" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseCreateUpdate8871\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"EnterpriseFlash_F300\",\r\n \"capacity\": 3\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871/databases/default?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUNyZWF0ZVVwZGF0ZTU3OTUvcHJvdmlkZXJzL01pY3Jvc29mdC5DYWNoZS9yZWRpc0VudGVycHJpc2UvUmVkaXNFbnRlcnByaXNlQ3JlYXRlVXBkYXRlODg3MS9kYXRhYmFzZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"clientProtocol\": \"Plaintext\",\r\n \"clusteringPolicy\": \"EnterpriseCluster\",\r\n \"evictionPolicy\": \"VolatileLRU\"\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e7e140dd-a628-4822-a138-7c1bcebf47db" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "147" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871/databases/default?api-version=2020-10-01-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/b610e85b-f843-4a4a-9454-22ea4ce6923b?api-version=2020-10-01-preview" + ], + "x-ms-request-id": [ + "3dd4af15-fdd2-49e6-8d17-68c88457afea" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "ae5f8d73-dc34-43bf-9a0b-80f5810cb039" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004222Z:ae5f8d73-dc34-43bf-9a0b-80f5810cb039" + ], + "Date": [ + "Tue, 10 Nov 2020 00:42:22 GMT" + ], + "Content-Length": [ + "520" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871/databases/default\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise/databases\",\r\n \"properties\": {\r\n \"clientProtocol\": \"Plaintext\",\r\n \"port\": 10000,\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"clusteringPolicy\": \"EnterpriseCluster\",\r\n \"evictionPolicy\": \"VolatileLRU\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871/databases/default?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUNyZWF0ZVVwZGF0ZTU3OTUvcHJvdmlkZXJzL01pY3Jvc29mdC5DYWNoZS9yZWRpc0VudGVycHJpc2UvUmVkaXNFbnRlcnByaXNlQ3JlYXRlVXBkYXRlODg3MS9kYXRhYmFzZXMvZGVmYXVsdD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "9a4d2ab3-42fc-49e7-8df9-cbe7d6fbd381" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11986" + ], + "x-ms-correlation-request-id": [ + "2d07df1e-3be6-4497-bf9b-2ec02dd62355" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004223Z:2d07df1e-3be6-4497-bf9b-2ec02dd62355" + ], + "Date": [ + "Tue, 10 Nov 2020 00:42:22 GMT" + ], + "Content-Length": [ + "452" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"default\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871/databases/default\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise/databases\",\r\n \"properties\": {\r\n \"clientProtocol\": \"Plaintext\",\r\n \"port\": 10000,\r\n \"provisioningState\": \"Succeeded\",\r\n \"resourceState\": \"Running\",\r\n \"clusteringPolicy\": \"EnterpriseCluster\",\r\n \"evictionPolicy\": \"VolatileLRU\"\r\n }\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUNyZWF0ZVVwZGF0ZTU3OTUvcHJvdmlkZXJzL01pY3Jvc29mdC5DYWNoZS9yZWRpc0VudGVycHJpc2UvUmVkaXNFbnRlcnByaXNlQ3JlYXRlVXBkYXRlODg3MT9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "8ac4fec2-c316-4af2-a643-70491698b62a" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871/operationresults/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview" + ], + "Azure-AsyncOperation": [ + "https://management.azure.com/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview" + ], + "x-ms-request-id": [ + "70fc90fa-1776-4d9c-972d-2a352ea88dce" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-correlation-request-id": [ + "51a4e06e-46ca-4f57-8ced-8d94ac537b02" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004223Z:51a4e06e-46ca-4f57-8ced-8d94ac537b02" + ], + "Date": [ + "Tue, 10 Nov 2020 00:42:22 GMT" + ], + "Content-Length": [ + "579" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"location\": \"East US\",\r\n \"name\": \"RedisEnterpriseCreateUpdate8871\",\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871\",\r\n \"type\": \"Microsoft.Cache/redisEnterprise\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"EnterpriseFlash_F300\",\r\n \"capacity\": 3\r\n },\r\n \"properties\": {\r\n \"provisioningState\": \"Deleting\",\r\n \"resourceState\": \"Deleting\",\r\n \"privateEndpointConnections\": []\r\n },\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n}", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "406df0e1-0d46-486c-a556-b90a4e9e634d" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11985" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "84217117-33b4-4d12-84e7-6c04f7f2f517" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004253Z:84217117-33b4-4d12-84e7-6c04f7f2f517" + ], + "Date": [ + "Tue, 10 Nov 2020 00:42:53 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6f68f9e7-edc8-4a91-9696-f9734a0df360" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11984" + ], + "x-ms-correlation-request-id": [ + "e266502b-90d3-4aa0-a3ab-56e730fab250" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004323Z:e266502b-90d3-4aa0-a3ab-56e730fab250" + ], + "Date": [ + "Tue, 10 Nov 2020 00:43:23 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "6bd3a592-3da4-4615-9024-4628addee5d3" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11983" + ], + "x-ms-correlation-request-id": [ + "a1ad6f12-8ed3-4f1f-826a-ea18489e0b25" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004354Z:a1ad6f12-8ed3-4f1f-826a-ea18489e0b25" + ], + "Date": [ + "Tue, 10 Nov 2020 00:43:53 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "cac46784-021d-43d4-94fc-1588667d36ad" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11982" + ], + "x-ms-correlation-request-id": [ + "41f34a81-4b40-44bd-a6e0-7f565edf6621" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004424Z:41f34a81-4b40-44bd-a6e0-7f565edf6621" + ], + "Date": [ + "Tue, 10 Nov 2020 00:44:23 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c6e7d008-24da-48b2-842e-63dbc7ce0323" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11981" + ], + "x-ms-correlation-request-id": [ + "2a5e6737-a731-469b-b16c-ae43ce9b8817" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004454Z:2a5e6737-a731-469b-b16c-ae43ce9b8817" + ], + "Date": [ + "Tue, 10 Nov 2020 00:44:53 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "65f81d8e-09f8-4dac-b85d-0830773a83ee" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11980" + ], + "x-ms-correlation-request-id": [ + "59ec96b2-18b0-4224-bcc4-20e6a09ca38e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004524Z:59ec96b2-18b0-4224-bcc4-20e6a09ca38e" + ], + "Date": [ + "Tue, 10 Nov 2020 00:45:23 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a39470e1-aee8-47cc-93f1-75d3bcddf22b" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11979" + ], + "x-ms-correlation-request-id": [ + "d20152f9-e3f1-4954-9519-e5b7e2e5d1db" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004554Z:d20152f9-e3f1-4954-9519-e5b7e2e5d1db" + ], + "Date": [ + "Tue, 10 Nov 2020 00:45:54 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "fae8ed89-51a3-46e3-a050-f07793fcd780" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11978" + ], + "x-ms-correlation-request-id": [ + "c7e2f6c9-d47d-4373-9fb2-df6a7880e41a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004624Z:c7e2f6c9-d47d-4373-9fb2-df6a7880e41a" + ], + "Date": [ + "Tue, 10 Nov 2020 00:46:23 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "621f17a9-f5fa-48dd-9974-d43c394bd308" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11977" + ], + "x-ms-correlation-request-id": [ + "34fa5548-48ec-4348-b7b5-5ba5fe506188" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004654Z:34fa5548-48ec-4348-b7b5-5ba5fe506188" + ], + "Date": [ + "Tue, 10 Nov 2020 00:46:54 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "406b495f-0681-4a1b-9eae-3945956234be" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11976" + ], + "x-ms-correlation-request-id": [ + "8fc0701f-5691-4ff8-87d9-4b047a97a538" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004724Z:8fc0701f-5691-4ff8-87d9-4b047a97a538" + ], + "Date": [ + "Tue, 10 Nov 2020 00:47:24 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "a8704da8-f2f8-4ac2-a97b-d8fdc9bdfd56" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11975" + ], + "x-ms-correlation-request-id": [ + "b5e9332d-eb68-40a5-b56c-ac7c77eb2156" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004754Z:b5e9332d-eb68-40a5-b56c-ac7c77eb2156" + ], + "Date": [ + "Tue, 10 Nov 2020 00:47:54 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "ab9a0c11-9cc8-4693-8ba1-d9010901947e" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11974" + ], + "x-ms-correlation-request-id": [ + "73e995ca-6bcd-4cda-9d67-6492d7b9e899" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004825Z:73e995ca-6bcd-4cda-9d67-6492d7b9e899" + ], + "Date": [ + "Tue, 10 Nov 2020 00:48:24 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "7d2c1f3c-c3d1-4952-a450-656be8d7c022" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11973" + ], + "x-ms-correlation-request-id": [ + "bf3e45d7-c9b6-4a5c-b95c-597af3abd81a" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004855Z:bf3e45d7-c9b6-4a5c-b95c-597af3abd81a" + ], + "Date": [ + "Tue, 10 Nov 2020 00:48:54 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "b0b5423c-f9d2-4302-84a8-a53e5985c201" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11972" + ], + "x-ms-correlation-request-id": [ + "ffe45153-98d1-4e9d-b179-8e5970600050" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004925Z:ffe45153-98d1-4e9d-b179-8e5970600050" + ], + "Date": [ + "Tue, 10 Nov 2020 00:49:24 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "2979dc40-fff5-495f-9a67-9a9beb3dfde7" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11971" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-correlation-request-id": [ + "57c075a9-68d8-4c03-a479-215427460843" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T004955Z:57c075a9-68d8-4c03-a479-215427460843" + ], + "Date": [ + "Tue, 10 Nov 2020 00:49:55 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "558dc11e-d5c0-4b2c-ba3a-7b44cb9d4cd1" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11970" + ], + "x-ms-correlation-request-id": [ + "a9a66d4c-8e8e-4907-b980-bf0be6aed883" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T005025Z:a9a66d4c-8e8e-4907-b980-bf0be6aed883" + ], + "Date": [ + "Tue, 10 Nov 2020 00:50:25 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "c94a4832-d9c7-4917-9150-4904e82492e2" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11969" + ], + "x-ms-correlation-request-id": [ + "ce7a92d4-7fc3-4f14-8195-82abffeb8ffa" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T005055Z:ce7a92d4-7fc3-4f14-8195-82abffeb8ffa" + ], + "Date": [ + "Tue, 10 Nov 2020 00:50:54 GMT" + ], + "Content-Length": [ + "320" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"InProgress\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:42:25.2309975-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East%20US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvbG9jYXRpb25zL0Vhc3QlMjBVUy9vcGVyYXRpb25zU3RhdHVzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "d9d4e93e-979b-425d-9748-faf229d2b811" + ], + "x-rp-server-mvid": [ + "76c595a1-9744-4a1c-a3d4-d4f8fc236cf6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-HTTPAPI/2.0" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11968" + ], + "x-ms-correlation-request-id": [ + "b0a68c7c-7ec6-402d-8d91-fab04d9b2248" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T005125Z:b0a68c7c-7ec6-402d-8d91-fab04d9b2248" + ], + "Date": [ + "Tue, 10 Nov 2020 00:51:25 GMT" + ], + "Content-Length": [ + "319" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/locations/East US/operationsStatus/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"name\": \"3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d\",\r\n \"status\": \"Succeeded\",\r\n \"startTime\": \"2020-11-09T16:42:23.2909781-08:00\",\r\n \"endTime\": \"2020-11-09T16:51:15.0371336-08:00\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795/providers/Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871/operationresults/3bdeb2ce-ebbc-4c29-9267-75bdd98fa13d?api-version=2020-10-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlR3JvdXBzL1JlZGlzRW50ZXJwcmlzZUNyZWF0ZVVwZGF0ZTU3OTUvcHJvdmlkZXJzL01pY3Jvc29mdC5DYWNoZS9yZWRpc0VudGVycHJpc2UvUmVkaXNFbnRlcnByaXNlQ3JlYXRlVXBkYXRlODg3MS9vcGVyYXRpb25yZXN1bHRzLzNiZGViMmNlLWViYmMtNGMyOS05MjY3LTc1YmRkOThmYTEzZD9hcGktdmVyc2lvbj0yMDIwLTEwLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.RedisEnterprise.redisenterpriseClient/1.0.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "3e4ba81a-d058-4708-93ca-29b0a173a38c" + ], + "x-ms-correlation-request-id": [ + "3e4ba81a-d058-4708-93ca-29b0a173a38c" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T005126Z:3e4ba81a-d058-4708-93ca-29b0a173a38c" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 10 Nov 2020 00:51:25 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "266" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Cache/redisEnterprise/RedisEnterpriseCreateUpdate8871' under resource group 'RedisEnterpriseCreateUpdate5795' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix\"\r\n }\r\n}", + "StatusCode": 404 + } + ], + "Names": {}, + "Variables": { + "SubscriptionId": "e311648e-a318-4a16-836e-f4a91cc73e9b" + } +} \ No newline at end of file diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/SessionRecords/TestsFixture/.ctor.json b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/SessionRecords/TestsFixture/.ctor.json new file mode 100644 index 000000000000..e80f6239c3da --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/SessionRecords/TestsFixture/.ctor.json @@ -0,0 +1,259 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache/register?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGUvcmVnaXN0ZXI/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "13708b8a-8396-4e3c-82f8-d53b35443588" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "14492d02-d98f-475c-990c-def6a298d225" + ], + "x-ms-correlation-request-id": [ + "14492d02-d98f-475c-990c-def6a298d225" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003616Z:14492d02-d98f-475c-990c-def6a298d225" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 10 Nov 2020 00:36:16 GMT" + ], + "Content-Length": [ + "11262" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache\",\r\n \"namespace\": \"Microsoft.Cache\",\r\n \"authorization\": {\r\n \"applicationId\": \"96231a05-34ce-4eb4-aa6a-70759cbb5e83\",\r\n \"roleDefinitionId\": \"4f731528-ba85-45c7-acfb-cd0a9b3cf31b\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"Redis\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ],\r\n \"zoneMappings\": [\r\n {\r\n \"location\": \"East US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US 2 EUAP\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"France Central\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"North Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"UK South\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Japan East\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Australia East\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"South Africa North\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"South Central US\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"Canada Central\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"Germany West Central\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"Brazil South\",\r\n \"zones\": []\r\n }\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateEndpointConnectionProxies\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateEndpointConnectionProxies/validate\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateEndpointConnections\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateLinkResources\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/asyncOperations\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2020-04-01-preview\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"South India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationsStatus\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2020-04-01-preview\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01-alpha\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01-alpha\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"redisEnterprise\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2020-04-01-preview\"\r\n }\r\n ],\r\n \"zoneMappings\": [\r\n {\r\n \"location\": \"East US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"North Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"UK South\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Australia East\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"South Central US\",\r\n \"zones\": []\r\n }\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnectionProxies\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnectionProxies/validate\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnectionProxies/operationresults\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnections\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnections/operationresults\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateLinkResources\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/EventGridFilters\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"South India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"South Africa North\",\r\n \"South Africa West\",\r\n \"UAE Central\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Switzerland West\",\r\n \"Germany North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Norway West\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Byb3ZpZGVycy9NaWNyb3NvZnQuQ2FjaGU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d2c5fad6-f307-45d1-aabf-17e0db46822e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "62b5363f-5a1c-4a36-baf3-15d0d070b3f0" + ], + "x-ms-correlation-request-id": [ + "62b5363f-5a1c-4a36-baf3-15d0d070b3f0" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003617Z:62b5363f-5a1c-4a36-baf3-15d0d070b3f0" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 10 Nov 2020 00:36:16 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "11262" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/providers/Microsoft.Cache\",\r\n \"namespace\": \"Microsoft.Cache\",\r\n \"authorization\": {\r\n \"applicationId\": \"96231a05-34ce-4eb4-aa6a-70759cbb5e83\",\r\n \"roleDefinitionId\": \"4f731528-ba85-45c7-acfb-cd0a9b3cf31b\"\r\n },\r\n \"resourceTypes\": [\r\n {\r\n \"resourceType\": \"Redis\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ],\r\n \"zoneMappings\": [\r\n {\r\n \"location\": \"East US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US 2 EUAP\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"France Central\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"North Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"UK South\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Japan East\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Australia East\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"South Africa North\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"South Central US\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"Canada Central\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"Germany West Central\",\r\n \"zones\": []\r\n },\r\n {\r\n \"location\": \"Brazil South\",\r\n \"zones\": []\r\n }\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateEndpointConnectionProxies\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateEndpointConnectionProxies/validate\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateEndpointConnections\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/privateLinkResources\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/asyncOperations\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"South India\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2020-04-01-preview\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationResults\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"South India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"South Africa North\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/operationsStatus\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2020-04-01-preview\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"checkNameAvailability\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01-alpha\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"operations\",\r\n \"locations\": [],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01-alpha\",\r\n \"2014-04-01\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2018-03-01\"\r\n }\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"redisEnterprise\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ],\r\n \"apiProfiles\": [\r\n {\r\n \"profileVersion\": \"2018-06-01-profile\",\r\n \"apiVersion\": \"2020-04-01-preview\"\r\n }\r\n ],\r\n \"zoneMappings\": [\r\n {\r\n \"location\": \"East US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Central US EUAP\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Southeast Asia\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"West US 2\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"North Europe\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"East US\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"UK South\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"Australia East\",\r\n \"zones\": [\r\n \"1\",\r\n \"2\",\r\n \"3\"\r\n ]\r\n },\r\n {\r\n \"location\": \"South Central US\",\r\n \"zones\": []\r\n }\r\n ],\r\n \"capabilities\": \"CrossResourceGroupResourceMove, CrossSubscriptionResourceMove\"\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnectionProxies\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnectionProxies/validate\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnectionProxies/operationresults\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnections\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateEndpointConnections/operationresults\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"RedisEnterprise/privateLinkResources\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"locations/checkNameAvailability\",\r\n \"locations\": [\r\n \"East US\",\r\n \"West Europe\",\r\n \"West US\",\r\n \"East US 2\",\r\n \"West US 2\",\r\n \"South Central US\",\r\n \"UK South\",\r\n \"Southeast Asia\",\r\n \"Australia East\",\r\n \"North Europe\",\r\n \"Central US EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-10-01-preview\",\r\n \"2020-04-01-preview\"\r\n ]\r\n },\r\n {\r\n \"resourceType\": \"Redis/EventGridFilters\",\r\n \"locations\": [\r\n \"North Central US\",\r\n \"South Central US\",\r\n \"Central US\",\r\n \"West Europe\",\r\n \"North Europe\",\r\n \"West US\",\r\n \"East US\",\r\n \"East US 2\",\r\n \"Japan East\",\r\n \"Japan West\",\r\n \"Brazil South\",\r\n \"Southeast Asia\",\r\n \"East Asia\",\r\n \"Australia East\",\r\n \"Australia Southeast\",\r\n \"Central India\",\r\n \"West India\",\r\n \"South India\",\r\n \"Canada Central\",\r\n \"Canada East\",\r\n \"UK South\",\r\n \"UK West\",\r\n \"West US 2\",\r\n \"West Central US\",\r\n \"Korea Central\",\r\n \"Korea South\",\r\n \"France South\",\r\n \"France Central\",\r\n \"Australia Central\",\r\n \"Australia Central 2\",\r\n \"South Africa North\",\r\n \"South Africa West\",\r\n \"UAE Central\",\r\n \"UAE North\",\r\n \"Switzerland North\",\r\n \"Switzerland West\",\r\n \"Germany North\",\r\n \"Germany West Central\",\r\n \"Norway East\",\r\n \"Norway West\",\r\n \"Central US EUAP\",\r\n \"East US 2 EUAP\"\r\n ],\r\n \"apiVersions\": [\r\n \"2020-06-01\",\r\n \"2019-07-01\",\r\n \"2018-03-01\",\r\n \"2017-10-01\",\r\n \"2017-02-01\",\r\n \"2016-04-01\",\r\n \"2015-08-01\",\r\n \"2015-03-01\",\r\n \"2014-04-01-preview\",\r\n \"2014-04-01\"\r\n ]\r\n }\r\n ],\r\n \"registrationState\": \"Registered\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourcegroups/RedisEnterpriseCreateUpdate5795?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlZ3JvdXBzL1JlZGlzRW50ZXJwcmlzZUNyZWF0ZVVwZGF0ZTU3OTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"East US\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a803b3d6-1a3b-415d-a95a-8abeca250ab0" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "2bcb64fe-05c2-4a7f-ab31-460c921ee9a8" + ], + "x-ms-correlation-request-id": [ + "2bcb64fe-05c2-4a7f-ab31-460c921ee9a8" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003617Z:2bcb64fe-05c2-4a7f-ab31-460c921ee9a8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 10 Nov 2020 00:36:17 GMT" + ], + "Content-Length": [ + "215" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795\",\r\n \"name\": \"RedisEnterpriseCreateUpdate5795\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourcegroups/RedisEnterpriseCreateUpdate5795?api-version=2017-05-10", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZTMxMTY0OGUtYTMxOC00YTE2LTgzNmUtZjRhOTFjYzczZTliL3Jlc291cmNlZ3JvdXBzL1JlZGlzRW50ZXJwcmlzZUNyZWF0ZVVwZGF0ZTU3OTU/YXBpLXZlcnNpb249MjAxNy0wNS0xMA==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "5c2e795c-30de-48fe-bc4c-d3f69d3016d2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29130.01", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19042.", + "Microsoft.Azure.Management.ResourceManager.ResourceManagementClient/1.6.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "3316f3d1-8dff-4cd0-9e53-0b79c879f54e" + ], + "x-ms-correlation-request-id": [ + "3316f3d1-8dff-4cd0-9e53-0b79c879f54e" + ], + "x-ms-routing-request-id": [ + "WESTUS2:20201110T003617Z:3316f3d1-8dff-4cd0-9e53-0b79c879f54e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Tue, 10 Nov 2020 00:36:17 GMT" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "215" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/e311648e-a318-4a16-836e-f4a91cc73e9b/resourceGroups/RedisEnterpriseCreateUpdate5795\",\r\n \"name\": \"RedisEnterpriseCreateUpdate5795\",\r\n \"location\": \"eastus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 200 + } + ], + "Names": { + ".ctor": [ + "RedisEnterpriseCreateUpdate5795", + "RedisEnterpriseCreateUpdate8871" + ] + }, + "Variables": { + "SubscriptionId": "e311648e-a318-4a16-836e-f4a91cc73e9b" + } +} \ No newline at end of file diff --git a/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/Utility.cs b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/Utility.cs new file mode 100644 index 000000000000..871d38646464 --- /dev/null +++ b/sdk/redisenterprise/Microsoft.Azure.Management.RedisEnterpriseCache/tests/Utility.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for +// license information. + +using Microsoft.Azure; +using Microsoft.Azure.Management.RedisEnterprise; +using Microsoft.Rest; +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Net; +using System.Net.Http; +using System.Text; +using System.Threading.Tasks; + +namespace AzureRedisEnterpriseCache.Tests +{ + public static class Utility + { + public static redisenterpriseClient GetRedisEnterpriseClient(string responseString, string requestIdHeader, HttpStatusCode statusCode) + { + var httpResponse = new HttpResponseMessage(); + httpResponse.Content = new StreamContent(GenerateStreamFromString(responseString)); + if (!String.IsNullOrEmpty(requestIdHeader)) + { + httpResponse.Headers.Add("x-ms-request-id", requestIdHeader); + } + httpResponse.StatusCode = statusCode; + + var token = new TokenCredentials(Guid.NewGuid().ToString(), "abc123"); + redisenterpriseClient client = new redisenterpriseClient(token, new DummyResponseDelegatingHandler(httpResponse)); + client.SubscriptionId = "e311648e-a318-4a16-836e-f4a91cc73e9b"; + client.LongRunningOperationRetryTimeout = 0; + return client; + } + + private static Stream GenerateStreamFromString(string source) + { + MemoryStream stream = new MemoryStream(); + StreamWriter writer = new StreamWriter(stream); + writer.Write(source); + writer.Flush(); + stream.Position = 0; + return stream; + } + } +}