From 51756c526c683b9f5633bee817f852f510f704e3 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 30 Mar 2022 00:20:29 +0000 Subject: [PATCH] CodeGen from PR 18430 in Azure/azure-rest-api-specs Set cache patching default time as 5 hours (#18430) Co-authored-by: Kanchan Joshi --- .../AsyncOperationStatusOperations.cs | 245 ++++++++++++++++++ ...syncOperationStatusOperationsExtensions.cs | 65 +++++ .../IAsyncOperationStatusOperations.cs | 52 ++++ .../src/Generated/IRedisManagementClient.cs | 5 + .../Generated/Models/OperationStatusResult.cs | 144 ++++++++++ ...RedisCommonPropertiesRedisConfiguration.cs | 10 +- .../Generated/Models/RedisPatchSchedule.cs | 11 +- .../src/Generated/RedisManagementClient.cs | 6 + .../SdkInfo_RedisManagementClient.cs | 12 +- 9 files changed, 537 insertions(+), 13 deletions(-) create mode 100644 sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/AsyncOperationStatusOperations.cs create mode 100644 sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/AsyncOperationStatusOperationsExtensions.cs create mode 100644 sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/IAsyncOperationStatusOperations.cs create mode 100644 sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/OperationStatusResult.cs diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/AsyncOperationStatusOperations.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/AsyncOperationStatusOperations.cs new file mode 100644 index 000000000000..1b0580773fc7 --- /dev/null +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/AsyncOperationStatusOperations.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.Redis +{ + 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; + + /// + /// AsyncOperationStatusOperations operations. + /// + internal partial class AsyncOperationStatusOperations : IServiceOperations, IAsyncOperationStatusOperations + { + /// + /// Initializes a new instance of the AsyncOperationStatusOperations class. + /// + /// + /// Reference to the service client. + /// + /// + /// Thrown when a required parameter is null + /// + internal AsyncOperationStatusOperations(RedisManagementClient client) + { + if (client == null) + { + throw new System.ArgumentNullException("client"); + } + Client = client; + } + + /// + /// Gets a reference to the RedisManagementClient + /// + public RedisManagementClient Client { get; private set; } + + /// + /// For checking the ongoing status of an operation + /// + /// + /// The location at which operation was triggered + /// + /// + /// The ID of asynchronous 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> GetWithHttpMessagesAsync(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, "Get", 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}/asyncOperations/{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/redis/Microsoft.Azure.Management.Redis/src/Generated/AsyncOperationStatusOperationsExtensions.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/AsyncOperationStatusOperationsExtensions.cs new file mode 100644 index 000000000000..8eb64394d55f --- /dev/null +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/AsyncOperationStatusOperationsExtensions.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.Redis +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Threading; + using System.Threading.Tasks; + + /// + /// Extension methods for AsyncOperationStatusOperations. + /// + public static partial class AsyncOperationStatusOperationsExtensions + { + /// + /// For checking the ongoing status of an operation + /// + /// + /// The operations group for this extension method. + /// + /// + /// The location at which operation was triggered + /// + /// + /// The ID of asynchronous operation + /// + public static OperationStatus Get(this IAsyncOperationStatusOperations operations, string location, string operationId) + { + return operations.GetAsync(location, operationId).GetAwaiter().GetResult(); + } + + /// + /// For checking the ongoing status of an operation + /// + /// + /// The operations group for this extension method. + /// + /// + /// The location at which operation was triggered + /// + /// + /// The ID of asynchronous operation + /// + /// + /// The cancellation token. + /// + public static async Task GetAsync(this IAsyncOperationStatusOperations operations, string location, string operationId, CancellationToken cancellationToken = default(CancellationToken)) + { + using (var _result = await operations.GetWithHttpMessagesAsync(location, operationId, null, cancellationToken).ConfigureAwait(false)) + { + return _result.Body; + } + } + + } +} diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/IAsyncOperationStatusOperations.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/IAsyncOperationStatusOperations.cs new file mode 100644 index 000000000000..51e9358c43d9 --- /dev/null +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/IAsyncOperationStatusOperations.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.Redis +{ + using Microsoft.Rest; + using Microsoft.Rest.Azure; + using Models; + using System.Collections; + using System.Collections.Generic; + using System.Threading; + using System.Threading.Tasks; + + /// + /// AsyncOperationStatusOperations operations. + /// + public partial interface IAsyncOperationStatusOperations + { + /// + /// For checking the ongoing status of an operation + /// + /// + /// The location at which operation was triggered + /// + /// + /// The ID of asynchronous 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> GetWithHttpMessagesAsync(string location, string operationId, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); + } +} diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/IRedisManagementClient.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/IRedisManagementClient.cs index 46cc3f89e0ff..152295a63661 100644 --- a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/IRedisManagementClient.cs +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/IRedisManagementClient.cs @@ -106,5 +106,10 @@ public partial interface IRedisManagementClient : System.IDisposable /// IPrivateLinkResourcesOperations PrivateLinkResources { get; } + /// + /// Gets the IAsyncOperationStatusOperations. + /// + IAsyncOperationStatusOperations AsyncOperationStatus { get; } + } } diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/OperationStatusResult.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/OperationStatusResult.cs new file mode 100644 index 000000000000..884aa059a3ff --- /dev/null +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/OperationStatusResult.cs @@ -0,0 +1,144 @@ +// +// 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.Redis.Models +{ + using Microsoft.Rest; + using Newtonsoft.Json; + using System.Collections; + using System.Collections.Generic; + using System.Linq; + + /// + /// The current status of an async operation. + /// + public partial class OperationStatusResult + { + /// + /// Initializes a new instance of the OperationStatusResult class. + /// + public OperationStatusResult() + { + CustomInit(); + } + + /// + /// Initializes a new instance of the OperationStatusResult class. + /// + /// Operation status. + /// Fully qualified ID for the async + /// operation. + /// Name of the async operation. + /// Percent of the operation that is + /// complete. + /// The start time of the operation. + /// The end time of the operation. + /// The operations list. + /// If present, details of the operation + /// error. + public OperationStatusResult(string status, string id = default(string), string name = default(string), double? percentComplete = default(double?), System.DateTime? startTime = default(System.DateTime?), System.DateTime? endTime = default(System.DateTime?), IList operations = default(IList), ErrorDetail error = default(ErrorDetail)) + { + Id = id; + Name = name; + Status = status; + PercentComplete = percentComplete; + StartTime = startTime; + EndTime = endTime; + Operations = operations; + Error = error; + CustomInit(); + } + + /// + /// An initialization method that performs custom operations like setting defaults + /// + partial void CustomInit(); + + /// + /// Gets or sets fully qualified ID for the async operation. + /// + [JsonProperty(PropertyName = "id")] + public string Id { get; set; } + + /// + /// Gets or sets name of the async operation. + /// + [JsonProperty(PropertyName = "name")] + public string Name { get; set; } + + /// + /// Gets or sets operation status. + /// + [JsonProperty(PropertyName = "status")] + public string Status { get; set; } + + /// + /// Gets or sets percent of the operation that is complete. + /// + [JsonProperty(PropertyName = "percentComplete")] + public double? PercentComplete { get; set; } + + /// + /// Gets or sets the start time of the operation. + /// + [JsonProperty(PropertyName = "startTime")] + public System.DateTime? StartTime { get; set; } + + /// + /// Gets or sets the end time of the operation. + /// + [JsonProperty(PropertyName = "endTime")] + public System.DateTime? EndTime { get; set; } + + /// + /// Gets or sets the operations list. + /// + [JsonProperty(PropertyName = "operations")] + public IList Operations { get; set; } + + /// + /// Gets or sets if present, details of the operation error. + /// + [JsonProperty(PropertyName = "error")] + public ErrorDetail Error { get; set; } + + /// + /// Validate the object. + /// + /// + /// Thrown if validation fails + /// + public virtual void Validate() + { + if (Status == null) + { + throw new ValidationException(ValidationRules.CannotBeNull, "Status"); + } + if (PercentComplete > 100) + { + throw new ValidationException(ValidationRules.InclusiveMaximum, "PercentComplete", 100); + } + if (PercentComplete < 0) + { + throw new ValidationException(ValidationRules.InclusiveMinimum, "PercentComplete", 0); + } + if (Operations != null) + { + foreach (var element in Operations) + { + if (element != null) + { + element.Validate(); + } + } + } + } + } +} diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisCommonPropertiesRedisConfiguration.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisCommonPropertiesRedisConfiguration.cs index 0dddb6872b2c..a6b5aae8e2ca 100644 --- a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisCommonPropertiesRedisConfiguration.cs +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisCommonPropertiesRedisConfiguration.cs @@ -64,7 +64,8 @@ public RedisCommonPropertiesRedisConfiguration() /// Preferred auth /// method to communicate to storage account used for data persistence, /// specify SAS or ManagedIdentity, default value is SAS - public RedisCommonPropertiesRedisConfiguration(IDictionary additionalProperties = default(IDictionary), string rdbBackupEnabled = default(string), string rdbBackupFrequency = default(string), string rdbBackupMaxSnapshotCount = default(string), string rdbStorageConnectionString = default(string), string aofStorageConnectionString0 = default(string), string aofStorageConnectionString1 = default(string), string maxfragmentationmemoryReserved = default(string), string maxmemoryPolicy = default(string), string maxmemoryReserved = default(string), string maxmemoryDelta = default(string), string maxclients = default(string), string preferredDataArchiveAuthMethod = default(string), string preferredDataPersistenceAuthMethod = default(string)) + /// Zonal Configuration + public RedisCommonPropertiesRedisConfiguration(IDictionary additionalProperties = default(IDictionary), string rdbBackupEnabled = default(string), string rdbBackupFrequency = default(string), string rdbBackupMaxSnapshotCount = default(string), string rdbStorageConnectionString = default(string), string aofStorageConnectionString0 = default(string), string aofStorageConnectionString1 = default(string), string maxfragmentationmemoryReserved = default(string), string maxmemoryPolicy = default(string), string maxmemoryReserved = default(string), string maxmemoryDelta = default(string), string maxclients = default(string), string preferredDataArchiveAuthMethod = default(string), string preferredDataPersistenceAuthMethod = default(string), string zonalConfiguration = default(string)) { AdditionalProperties = additionalProperties; RdbBackupEnabled = rdbBackupEnabled; @@ -80,6 +81,7 @@ public RedisCommonPropertiesRedisConfiguration() Maxclients = maxclients; PreferredDataArchiveAuthMethod = preferredDataArchiveAuthMethod; PreferredDataPersistenceAuthMethod = preferredDataPersistenceAuthMethod; + ZonalConfiguration = zonalConfiguration; CustomInit(); } @@ -183,5 +185,11 @@ public RedisCommonPropertiesRedisConfiguration() [JsonProperty(PropertyName = "preferred-data-persistence-auth-method")] public string PreferredDataPersistenceAuthMethod { get; private set; } + /// + /// Gets zonal Configuration + /// + [JsonProperty(PropertyName = "zonal-configuration")] + public string ZonalConfiguration { get; private set; } + } } diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisPatchSchedule.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisPatchSchedule.cs index 0f96f9317bb4..ea1e0c4575c7 100644 --- a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisPatchSchedule.cs +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/Models/RedisPatchSchedule.cs @@ -42,10 +42,13 @@ public RedisPatchSchedule() /// The type of the resource. E.g. /// "Microsoft.Compute/virtualMachines" or /// "Microsoft.Storage/storageAccounts" - public RedisPatchSchedule(IList scheduleEntries, string id = default(string), string name = default(string), string type = default(string)) + /// The geo-location where the resource + /// lives + public RedisPatchSchedule(IList scheduleEntries, string id = default(string), string name = default(string), string type = default(string), string location = default(string)) : base(id, name, type) { ScheduleEntries = scheduleEntries; + Location = location; CustomInit(); } @@ -60,6 +63,12 @@ public RedisPatchSchedule() [JsonProperty(PropertyName = "properties.scheduleEntries")] public IList ScheduleEntries { get; set; } + /// + /// Gets the geo-location where the resource lives + /// + [JsonProperty(PropertyName = "location")] + public string Location { get; private set; } + /// /// Validate the object. /// diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/RedisManagementClient.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/RedisManagementClient.cs index 3ed9a7f02550..7f8cd2b46a88 100644 --- a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/RedisManagementClient.cs +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/RedisManagementClient.cs @@ -111,6 +111,11 @@ public partial class RedisManagementClient : ServiceClient public virtual IPrivateLinkResourcesOperations PrivateLinkResources { get; private set; } + /// + /// Gets the IAsyncOperationStatusOperations. + /// + public virtual IAsyncOperationStatusOperations AsyncOperationStatus { get; private set; } + /// /// Initializes a new instance of the RedisManagementClient class. /// @@ -359,6 +364,7 @@ private void Initialize() LinkedServer = new LinkedServerOperations(this); PrivateEndpointConnections = new PrivateEndpointConnectionsOperations(this); PrivateLinkResources = new PrivateLinkResourcesOperations(this); + AsyncOperationStatus = new AsyncOperationStatusOperations(this); BaseUri = new System.Uri("https://management.azure.com"); ApiVersion = "2021-06-01"; AcceptLanguage = "en-US"; diff --git a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/SdkInfo_RedisManagementClient.cs b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/SdkInfo_RedisManagementClient.cs index 1a0aa224f4e4..1fb46c616d76 100644 --- a/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/SdkInfo_RedisManagementClient.cs +++ b/sdk/redis/Microsoft.Azure.Management.Redis/src/Generated/SdkInfo_RedisManagementClient.cs @@ -19,6 +19,7 @@ public static IEnumerable> ApiInfo_RedisManagement { return new Tuple[] { + new Tuple("Cache", "AsyncOperationStatus", "2021-06-01"), new Tuple("Cache", "FirewallRules", "2021-06-01"), new Tuple("Cache", "LinkedServer", "2021-06-01"), new Tuple("Cache", "Operations", "2021-06-01"), @@ -29,16 +30,5 @@ public static IEnumerable> ApiInfo_RedisManagement }.AsEnumerable(); } } - // BEGIN: Code Generation Metadata Section - public static readonly String AutoRestVersion = "v2"; - public static readonly String AutoRestBootStrapperVersion = "autorest@3.3.2"; - public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/main/specification/redis/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=C:\\Users\\prravikumar\\repo\\azure-sdk-for-net\\sdk"; - public static readonly String GithubForkName = "Azure"; - public static readonly String GithubBranchName = "main"; - public static readonly String GithubCommidId = "58891380ba22c3565ca884dee3831445f638b545"; - public static readonly String CodeGenerationErrors = ""; - public static readonly String GithubRepoName = "azure-rest-api-specs"; - // END: Code Generation Metadata Section } } -