diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/api/Azure.ResourceManager.RedisEnterprise.netstandard2.0.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/api/Azure.ResourceManager.RedisEnterprise.netstandard2.0.cs index 9ec7906b8dc7..0a95838189ea 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/api/Azure.ResourceManager.RedisEnterprise.netstandard2.0.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/api/Azure.ResourceManager.RedisEnterprise.netstandard2.0.cs @@ -18,7 +18,9 @@ protected RedisEnterpriseClusterCollection() { } public partial class RedisEnterpriseClusterData : Azure.ResourceManager.Models.TrackedResourceData { public RedisEnterpriseClusterData(Azure.Core.AzureLocation location, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSku sku) : base (default(Azure.Core.AzureLocation)) { } + public Azure.ResourceManager.RedisEnterprise.Models.ClusterPropertiesEncryptionCustomerManagedKeyEncryption CustomerManagedKeyEncryption { get { throw null; } set { } } public string HostName { get { throw null; } } + public Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseTlsVersion? MinimumTlsVersion { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyList PrivateEndpointConnections { get { throw null; } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? ProvisioningState { get { throw null; } } @@ -94,6 +96,8 @@ protected RedisEnterpriseDatabaseResource() { } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Export(Azure.WaitUntil waitUntil, Azure.ResourceManager.RedisEnterprise.Models.ExportRedisEnterpriseDatabaseContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ExportAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RedisEnterprise.Models.ExportRedisEnterpriseDatabaseContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Flush(Azure.WaitUntil waitUntil, Azure.ResourceManager.RedisEnterprise.Models.FlushContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task FlushAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RedisEnterprise.Models.FlushContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation ForceUnlink(Azure.WaitUntil waitUntil, Azure.ResourceManager.RedisEnterprise.Models.ForceUnlinkRedisEnterpriseDatabaseContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ForceUnlinkAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RedisEnterprise.Models.ForceUnlinkRedisEnterpriseDatabaseContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -119,6 +123,8 @@ public static partial class RedisEnterpriseExtensions public static Azure.Response GetRedisEnterpriseOperationsStatus(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetRedisEnterpriseOperationsStatusAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, string operationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.RedisEnterprise.RedisEnterprisePrivateEndpointConnectionResource GetRedisEnterprisePrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Pageable GetSkus(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetSkusAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class RedisEnterprisePrivateEndpointConnectionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -159,11 +165,34 @@ protected RedisEnterprisePrivateEndpointConnectionResource() { } } namespace Azure.ResourceManager.RedisEnterprise.Models { + public partial class Capability + { + internal Capability() { } + public string Name { get { throw null; } } + public bool? Value { get { throw null; } } + } + public partial class ClusterPropertiesEncryptionCustomerManagedKeyEncryption + { + public ClusterPropertiesEncryptionCustomerManagedKeyEncryption() { } + public Azure.ResourceManager.RedisEnterprise.Models.ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity KeyEncryptionKeyIdentity { get { throw null; } set { } } + public System.Uri KeyEncryptionKeyUri { get { throw null; } set { } } + } + public partial class ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity + { + public ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity() { } + public Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType? IdentityType { get { throw null; } set { } } + public string UserAssignedIdentityResourceId { get { throw null; } set { } } + } public partial class ExportRedisEnterpriseDatabaseContent { public ExportRedisEnterpriseDatabaseContent(System.Uri sasUri) { } public System.Uri SasUri { get { throw null; } } } + public partial class FlushContent + { + public FlushContent() { } + public System.Collections.Generic.IList Ids { get { throw null; } } + } public partial class ForceUnlinkRedisEnterpriseDatabaseContent { public ForceUnlinkRedisEnterpriseDatabaseContent(System.Collections.Generic.IEnumerable ids) { } @@ -174,6 +203,65 @@ public partial class ImportRedisEnterpriseDatabaseContent public ImportRedisEnterpriseDatabaseContent(System.Collections.Generic.IEnumerable sasUris) { } public System.Collections.Generic.IList SasUris { get { throw null; } } } + public partial class LocationInfo + { + internal LocationInfo() { } + public System.Collections.Generic.IReadOnlyList Capabilities { get { throw null; } } + public Azure.Core.AzureLocation? Location { get { throw null; } } + } + public partial class ManagedServiceIdentity + { + public ManagedServiceIdentity(Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType identityType) { } + public Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType IdentityType { get { throw null; } set { } } + public System.Guid? PrincipalId { get { throw null; } } + public System.Guid? TenantId { get { throw null; } } + public System.Collections.Generic.IDictionary UserAssignedIdentities { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct ManagedServiceIdentityType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public ManagedServiceIdentityType(string value) { throw null; } + public static Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType None { get { throw null; } } + public static Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType SystemAssigned { get { throw null; } } + public static Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType SystemAssignedIdentity { get { throw null; } } + public static Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType SystemAssignedUserAssigned { get { throw null; } } + public static Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType UserAssigned { get { throw null; } } + public static Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType UserAssignedIdentity { get { throw null; } } + public bool Equals(Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType left, Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType right) { throw null; } + public static implicit operator Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType left, Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentityType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct Name : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public Name(string value) { throw null; } + public static Azure.ResourceManager.RedisEnterprise.Models.Name EnterpriseE10 { get { throw null; } } + public static Azure.ResourceManager.RedisEnterprise.Models.Name EnterpriseE100 { get { throw null; } } + public static Azure.ResourceManager.RedisEnterprise.Models.Name EnterpriseE20 { get { throw null; } } + public static Azure.ResourceManager.RedisEnterprise.Models.Name EnterpriseE50 { get { throw null; } } + public static Azure.ResourceManager.RedisEnterprise.Models.Name EnterpriseFlashF1500 { get { throw null; } } + public static Azure.ResourceManager.RedisEnterprise.Models.Name EnterpriseFlashF300 { get { throw null; } } + public static Azure.ResourceManager.RedisEnterprise.Models.Name EnterpriseFlashF700 { get { throw null; } } + public bool Equals(Azure.ResourceManager.RedisEnterprise.Models.Name other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.RedisEnterprise.Models.Name left, Azure.ResourceManager.RedisEnterprise.Models.Name right) { throw null; } + public static implicit operator Azure.ResourceManager.RedisEnterprise.Models.Name (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.RedisEnterprise.Models.Name left, Azure.ResourceManager.RedisEnterprise.Models.Name right) { throw null; } + public override string ToString() { throw null; } + } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct PersistenceSettingAofFrequency : System.IEquatable { @@ -255,7 +343,9 @@ public enum RedisEnterpriseAccessKeyType public partial class RedisEnterpriseClusterPatch { public RedisEnterpriseClusterPatch() { } + public Azure.ResourceManager.RedisEnterprise.Models.ClusterPropertiesEncryptionCustomerManagedKeyEncryption CustomerManagedKeyEncryption { get { throw null; } set { } } public string HostName { get { throw null; } } + public Azure.ResourceManager.RedisEnterprise.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseTlsVersion? MinimumTlsVersion { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyList PrivateEndpointConnections { get { throw null; } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? ProvisioningState { get { throw null; } } @@ -521,4 +611,11 @@ public RedisPersistenceSettings() { } public bool? IsRdbEnabled { get { throw null; } set { } } public Azure.ResourceManager.RedisEnterprise.Models.PersistenceSettingRdbFrequency? RdbFrequency { get { throw null; } set { } } } + public partial class RegionSkuDetail + { + internal RegionSkuDetail() { } + public Azure.ResourceManager.RedisEnterprise.Models.LocationInfo LocationInfo { get { throw null; } } + public string ResourceType { get { throw null; } } + public Azure.ResourceManager.RedisEnterprise.Models.Name? SkuDetailsName { get { throw null; } } + } } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/RedisEnterpriseExtensions.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/RedisEnterpriseExtensions.cs index fcc1bd6b0131..cff8094e36f4 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/RedisEnterpriseExtensions.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/RedisEnterpriseExtensions.cs @@ -42,8 +42,8 @@ private static SubscriptionResourceExtensionClient GetExtensionClient(Subscripti /// /// /// The instance the method will execute against. - /// The region the operation is in. - /// The operation's unique identifier. + /// The name of Azure region. + /// The ID of an ongoing async operation. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -68,8 +68,8 @@ public static async Task> GetRedisEnter /// /// /// The instance the method will execute against. - /// The region the operation is in. - /// The operation's unique identifier. + /// The name of Azure region. + /// The ID of an ongoing async operation. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -122,6 +122,50 @@ public static Pageable GetRedisEnterpriseCluster return GetExtensionClient(subscriptionResource).GetRedisEnterpriseClusters(cancellationToken); } + /// + /// Gets information about skus in specified location for the given subscription id + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/skus + /// + /// + /// Operation Id + /// Skus_List + /// + /// + /// + /// The instance the method will execute against. + /// The name of Azure region. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public static AsyncPageable GetSkusAsync(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) + { + return GetExtensionClient(subscriptionResource).GetSkusAsync(location, cancellationToken); + } + + /// + /// Gets information about skus in specified location for the given subscription id + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/skus + /// + /// + /// Operation Id + /// Skus_List + /// + /// + /// + /// The instance the method will execute against. + /// The name of Azure region. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public static Pageable GetSkus(this SubscriptionResource subscriptionResource, AzureLocation location, CancellationToken cancellationToken = default) + { + return GetExtensionClient(subscriptionResource).GetSkus(location, cancellationToken); + } + private static ResourceGroupResourceExtensionClient GetExtensionClient(ResourceGroupResource resourceGroupResource) { return resourceGroupResource.GetCachedClient((client) => diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs index f1c4b91cbc69..552bc752cdf0 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/SubscriptionResourceExtensionClient.cs @@ -23,6 +23,8 @@ internal partial class SubscriptionResourceExtensionClient : ArmResource private OperationsStatusRestOperations _operationsStatusRestClient; private ClientDiagnostics _redisEnterpriseClusterRedisEnterpriseClientDiagnostics; private RedisEnterpriseRestOperations _redisEnterpriseClusterRedisEnterpriseRestClient; + private ClientDiagnostics _skusClientDiagnostics; + private SkusRestOperations _skusRestClient; /// Initializes a new instance of the class for mocking. protected SubscriptionResourceExtensionClient() @@ -40,6 +42,8 @@ internal SubscriptionResourceExtensionClient(ArmClient client, ResourceIdentifie private OperationsStatusRestOperations OperationsStatusRestClient => _operationsStatusRestClient ??= new OperationsStatusRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private ClientDiagnostics RedisEnterpriseClusterRedisEnterpriseClientDiagnostics => _redisEnterpriseClusterRedisEnterpriseClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RedisEnterprise", RedisEnterpriseClusterResource.ResourceType.Namespace, Diagnostics); private RedisEnterpriseRestOperations RedisEnterpriseClusterRedisEnterpriseRestClient => _redisEnterpriseClusterRedisEnterpriseRestClient ??= new RedisEnterpriseRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(RedisEnterpriseClusterResource.ResourceType)); + private ClientDiagnostics SkusClientDiagnostics => _skusClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.RedisEnterprise", ProviderConstants.DefaultProviderNamespace, Diagnostics); + private SkusRestOperations SkusRestClient => _skusRestClient ??= new SkusRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); private string GetApiVersionOrNull(ResourceType resourceType) { @@ -60,8 +64,8 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// - /// The region the operation is in. - /// The operation's unique identifier. + /// The name of Azure region. + /// The ID of an ongoing async operation. /// The cancellation token to use. public virtual async Task> GetRedisEnterpriseOperationsStatusAsync(AzureLocation location, string operationId, CancellationToken cancellationToken = default) { @@ -92,8 +96,8 @@ public virtual async Task> GetRedisEnte /// /// /// - /// The region the operation is in. - /// The operation's unique identifier. + /// The name of Azure region. + /// The ID of an ongoing async operation. /// The cancellation token to use. public virtual Response GetRedisEnterpriseOperationsStatus(AzureLocation location, string operationId, CancellationToken cancellationToken = default) { @@ -154,5 +158,49 @@ public virtual Pageable GetRedisEnterpriseCluste HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => RedisEnterpriseClusterRedisEnterpriseRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId); return PageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new RedisEnterpriseClusterResource(Client, RedisEnterpriseClusterData.DeserializeRedisEnterpriseClusterData(e)), RedisEnterpriseClusterRedisEnterpriseClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetRedisEnterpriseClusters", "value", "nextLink", cancellationToken); } + + /// + /// Gets information about skus in specified location for the given subscription id + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/skus + /// + /// + /// Operation Id + /// Skus_List + /// + /// + /// + /// The name of Azure region. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetSkusAsync(AzureLocation location, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => SkusRestClient.CreateListRequest(Id.SubscriptionId, location); + return PageableHelpers.CreateAsyncPageable(FirstPageRequest, null, RegionSkuDetail.DeserializeRegionSkuDetail, SkusClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetSkus", "value", null, cancellationToken); + } + + /// + /// Gets information about skus in specified location for the given subscription id + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/providers/Microsoft.Cache/locations/{location}/skus + /// + /// + /// Operation Id + /// Skus_List + /// + /// + /// + /// The name of Azure region. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetSkus(AzureLocation location, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => SkusRestClient.CreateListRequest(Id.SubscriptionId, location); + return PageableHelpers.CreatePageable(FirstPageRequest, null, RegionSkuDetail.DeserializeRegionSkuDetail, SkusClientDiagnostics, Pipeline, "SubscriptionResourceExtensionClient.GetSkus", "value", null, cancellationToken); + } } } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/Capability.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/Capability.Serialization.cs new file mode 100644 index 000000000000..783ec6c1273e --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/Capability.Serialization.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + public partial class Capability + { + internal static Capability DeserializeCapability(JsonElement element) + { + Optional name = default; + Optional value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + value = property.Value.GetBoolean(); + continue; + } + } + return new Capability(name.Value, Optional.ToNullable(value)); + } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/Capability.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/Capability.cs new file mode 100644 index 000000000000..ea90709736ab --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/Capability.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + /// Information about the features the location supports. + public partial class Capability + { + /// Initializes a new instance of Capability. + internal Capability() + { + } + + /// Initializes a new instance of Capability. + /// Feature name. + /// Indicates whether feature is supported or not. + internal Capability(string name, bool? value) + { + Name = name; + Value = value; + } + + /// Feature name. + public string Name { get; } + /// Indicates whether feature is supported or not. + public bool? Value { get; } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryption.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryption.Serialization.cs new file mode 100644 index 000000000000..9e619dc2ae01 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryption.Serialization.cs @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + internal partial class ClusterPropertiesEncryption : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(CustomerManagedKeyEncryption)) + { + writer.WritePropertyName("customerManagedKeyEncryption"u8); + writer.WriteObjectValue(CustomerManagedKeyEncryption); + } + writer.WriteEndObject(); + } + + internal static ClusterPropertiesEncryption DeserializeClusterPropertiesEncryption(JsonElement element) + { + Optional customerManagedKeyEncryption = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("customerManagedKeyEncryption"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + customerManagedKeyEncryption = ClusterPropertiesEncryptionCustomerManagedKeyEncryption.DeserializeClusterPropertiesEncryptionCustomerManagedKeyEncryption(property.Value); + continue; + } + } + return new ClusterPropertiesEncryption(customerManagedKeyEncryption.Value); + } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryption.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryption.cs new file mode 100644 index 000000000000..bb63bc3d3a58 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryption.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + /// Encryption-at-rest configuration for the cluster. + internal partial class ClusterPropertiesEncryption + { + /// Initializes a new instance of ClusterPropertiesEncryption. + public ClusterPropertiesEncryption() + { + } + + /// Initializes a new instance of ClusterPropertiesEncryption. + /// All Customer-managed key encryption properties for the resource. Set this to an empty object to use Microsoft-managed key encryption. + internal ClusterPropertiesEncryption(ClusterPropertiesEncryptionCustomerManagedKeyEncryption customerManagedKeyEncryption) + { + CustomerManagedKeyEncryption = customerManagedKeyEncryption; + } + + /// All Customer-managed key encryption properties for the resource. Set this to an empty object to use Microsoft-managed key encryption. + public ClusterPropertiesEncryptionCustomerManagedKeyEncryption CustomerManagedKeyEncryption { get; set; } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryptionCustomerManagedKeyEncryption.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryptionCustomerManagedKeyEncryption.Serialization.cs new file mode 100644 index 000000000000..7973b31d00eb --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryptionCustomerManagedKeyEncryption.Serialization.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + public partial class ClusterPropertiesEncryptionCustomerManagedKeyEncryption : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(KeyEncryptionKeyIdentity)) + { + writer.WritePropertyName("keyEncryptionKeyIdentity"u8); + writer.WriteObjectValue(KeyEncryptionKeyIdentity); + } + if (Optional.IsDefined(KeyEncryptionKeyUri)) + { + writer.WritePropertyName("keyEncryptionKeyUrl"u8); + writer.WriteStringValue(KeyEncryptionKeyUri.AbsoluteUri); + } + writer.WriteEndObject(); + } + + internal static ClusterPropertiesEncryptionCustomerManagedKeyEncryption DeserializeClusterPropertiesEncryptionCustomerManagedKeyEncryption(JsonElement element) + { + Optional keyEncryptionKeyIdentity = default; + Optional keyEncryptionKeyUrl = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("keyEncryptionKeyIdentity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + keyEncryptionKeyIdentity = ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity.DeserializeClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity(property.Value); + continue; + } + if (property.NameEquals("keyEncryptionKeyUrl"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + keyEncryptionKeyUrl = null; + continue; + } + keyEncryptionKeyUrl = new Uri(property.Value.GetString()); + continue; + } + } + return new ClusterPropertiesEncryptionCustomerManagedKeyEncryption(keyEncryptionKeyIdentity.Value, keyEncryptionKeyUrl.Value); + } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryptionCustomerManagedKeyEncryption.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryptionCustomerManagedKeyEncryption.cs new file mode 100644 index 000000000000..ee8acd7a0129 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryptionCustomerManagedKeyEncryption.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + /// All Customer-managed key encryption properties for the resource. Set this to an empty object to use Microsoft-managed key encryption. + public partial class ClusterPropertiesEncryptionCustomerManagedKeyEncryption + { + /// Initializes a new instance of ClusterPropertiesEncryptionCustomerManagedKeyEncryption. + public ClusterPropertiesEncryptionCustomerManagedKeyEncryption() + { + } + + /// Initializes a new instance of ClusterPropertiesEncryptionCustomerManagedKeyEncryption. + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + /// Key encryption key Url, versioned or unversioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. + internal ClusterPropertiesEncryptionCustomerManagedKeyEncryption(ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity keyEncryptionKeyIdentity, Uri keyEncryptionKeyUri) + { + KeyEncryptionKeyIdentity = keyEncryptionKeyIdentity; + KeyEncryptionKeyUri = keyEncryptionKeyUri; + } + + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + public ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity KeyEncryptionKeyIdentity { get; set; } + /// Key encryption key Url, versioned or unversioned. Ex: https://contosovault.vault.azure.net/keys/contosokek/562a4bb76b524a1493a6afe8e536ee78 or https://contosovault.vault.azure.net/keys/contosokek. + public Uri KeyEncryptionKeyUri { get; set; } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity.Serialization.cs new file mode 100644 index 000000000000..f2caa1b7f08c --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity.Serialization.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + public partial class ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsDefined(UserAssignedIdentityResourceId)) + { + writer.WritePropertyName("userAssignedIdentityResourceId"u8); + writer.WriteStringValue(UserAssignedIdentityResourceId); + } + if (Optional.IsDefined(IdentityType)) + { + writer.WritePropertyName("identityType"u8); + writer.WriteStringValue(IdentityType.Value.ToString()); + } + writer.WriteEndObject(); + } + + internal static ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity DeserializeClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity(JsonElement element) + { + Optional userAssignedIdentityResourceId = default; + Optional identityType = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("userAssignedIdentityResourceId"u8)) + { + userAssignedIdentityResourceId = property.Value.GetString(); + continue; + } + if (property.NameEquals("identityType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + identityType = new ManagedServiceIdentityType(property.Value.GetString()); + continue; + } + } + return new ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity(userAssignedIdentityResourceId.Value, Optional.ToNullable(identityType)); + } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity.cs new file mode 100644 index 000000000000..45ba9b5afcb9 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + /// All identity configuration for Customer-managed key settings defining which identity should be used to auth to Key Vault. + public partial class ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity + { + /// Initializes a new instance of ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity. + public ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity() + { + } + + /// Initializes a new instance of ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity. + /// User assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/<sub uuid>/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. + /// Only userAssignedIdentity is supported in this API version; other types may be supported in the future. + internal ClusterPropertiesEncryptionCustomerManagedKeyEncryptionKeyIdentity(string userAssignedIdentityResourceId, ManagedServiceIdentityType? identityType) + { + UserAssignedIdentityResourceId = userAssignedIdentityResourceId; + IdentityType = identityType; + } + + /// User assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/<sub uuid>/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. + public string UserAssignedIdentityResourceId { get; set; } + /// Only userAssignedIdentity is supported in this API version; other types may be supported in the future. + public ManagedServiceIdentityType? IdentityType { get; set; } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/FlushContent.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/FlushContent.Serialization.cs new file mode 100644 index 000000000000..5be51577cbdd --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/FlushContent.Serialization.cs @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + public partial class FlushContent : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + if (Optional.IsCollectionDefined(Ids)) + { + writer.WritePropertyName("ids"u8); + writer.WriteStartArray(); + foreach (var item in Ids) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WriteEndObject(); + } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/FlushContent.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/FlushContent.cs new file mode 100644 index 000000000000..d52e2285c6a2 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/FlushContent.cs @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + /// Parameters for a Redis Enterprise active geo-replication flush operation. + public partial class FlushContent + { + /// Initializes a new instance of FlushContent. + public FlushContent() + { + Ids = new ChangeTrackingList(); + } + + /// The resource identifiers of all the other database resources in the georeplication group to be flushed. + public IList Ids { get; } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/LocationInfo.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/LocationInfo.Serialization.cs new file mode 100644 index 000000000000..91dec6e5858a --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/LocationInfo.Serialization.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + public partial class LocationInfo + { + internal static LocationInfo DeserializeLocationInfo(JsonElement element) + { + Optional location = default; + Optional> capabilities = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("location"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("capabilities"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Capability.DeserializeCapability(item)); + } + capabilities = array; + continue; + } + } + return new LocationInfo(Optional.ToNullable(location), Optional.ToList(capabilities)); + } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/LocationInfo.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/LocationInfo.cs new file mode 100644 index 000000000000..da6b78e45c12 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/LocationInfo.cs @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + /// Information about location (for example: features that it supports). + public partial class LocationInfo + { + /// Initializes a new instance of LocationInfo. + internal LocationInfo() + { + Capabilities = new ChangeTrackingList(); + } + + /// Initializes a new instance of LocationInfo. + /// Location name. + /// List of capabilities. + internal LocationInfo(AzureLocation? location, IReadOnlyList capabilities) + { + Location = location; + Capabilities = capabilities; + } + + /// Location name. + public AzureLocation? Location { get; } + /// List of capabilities. + public IReadOnlyList Capabilities { get; } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ManagedServiceIdentity.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ManagedServiceIdentity.Serialization.cs new file mode 100644 index 000000000000..a8882947bb53 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ManagedServiceIdentity.Serialization.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + public partial class ManagedServiceIdentity : IUtf8JsonSerializable + { + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) + { + writer.WriteStartObject(); + writer.WritePropertyName("type"u8); + writer.WriteStringValue(IdentityType.ToString()); + if (Optional.IsCollectionDefined(UserAssignedIdentities)) + { + writer.WritePropertyName("userAssignedIdentities"u8); + writer.WriteStartObject(); + foreach (var item in UserAssignedIdentities) + { + writer.WritePropertyName(item.Key); + JsonSerializer.Serialize(writer, item.Value); + } + writer.WriteEndObject(); + } + writer.WriteEndObject(); + } + + internal static ManagedServiceIdentity DeserializeManagedServiceIdentity(JsonElement element) + { + Optional principalId = default; + Optional tenantId = default; + ManagedServiceIdentityType type = default; + Optional> userAssignedIdentities = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("principalId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + principalId = property.Value.GetGuid(); + continue; + } + if (property.NameEquals("tenantId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + tenantId = property.Value.GetGuid(); + continue; + } + if (property.NameEquals("type"u8)) + { + type = new ManagedServiceIdentityType(property.Value.GetString()); + continue; + } + if (property.NameEquals("userAssignedIdentities"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, JsonSerializer.Deserialize(property0.Value.GetRawText())); + } + userAssignedIdentities = dictionary; + continue; + } + } + return new ManagedServiceIdentity(Optional.ToNullable(principalId), Optional.ToNullable(tenantId), type, Optional.ToDictionary(userAssignedIdentities)); + } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ManagedServiceIdentity.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ManagedServiceIdentity.cs new file mode 100644 index 000000000000..47cc4fd11282 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ManagedServiceIdentity.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + /// Managed service identity (system assigned and/or user assigned identities). + public partial class ManagedServiceIdentity + { + /// Initializes a new instance of ManagedServiceIdentity. + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + public ManagedServiceIdentity(ManagedServiceIdentityType identityType) + { + IdentityType = identityType; + UserAssignedIdentities = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of ManagedServiceIdentity. + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. + internal ManagedServiceIdentity(Guid? principalId, Guid? tenantId, ManagedServiceIdentityType identityType, IDictionary userAssignedIdentities) + { + PrincipalId = principalId; + TenantId = tenantId; + IdentityType = identityType; + UserAssignedIdentities = userAssignedIdentities; + } + + /// The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity. + public Guid? PrincipalId { get; } + /// The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity. + public Guid? TenantId { get; } + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + public ManagedServiceIdentityType IdentityType { get; set; } + /// The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. + public IDictionary UserAssignedIdentities { get; } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ManagedServiceIdentityType.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ManagedServiceIdentityType.cs new file mode 100644 index 000000000000..a3a95c41ce4f --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ManagedServiceIdentityType.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + /// Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). + public readonly partial struct ManagedServiceIdentityType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public ManagedServiceIdentityType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoneValue = "None"; + private const string SystemAssignedValue = "SystemAssigned"; + private const string UserAssignedValue = "UserAssigned"; + private const string SystemAssignedUserAssignedValue = "SystemAssigned, UserAssigned"; + private const string SystemAssignedIdentityValue = "systemAssignedIdentity"; + private const string UserAssignedIdentityValue = "userAssignedIdentity"; + + /// None. + public static ManagedServiceIdentityType None { get; } = new ManagedServiceIdentityType(NoneValue); + /// SystemAssigned. + public static ManagedServiceIdentityType SystemAssigned { get; } = new ManagedServiceIdentityType(SystemAssignedValue); + /// UserAssigned. + public static ManagedServiceIdentityType UserAssigned { get; } = new ManagedServiceIdentityType(UserAssignedValue); + /// SystemAssigned, UserAssigned. + public static ManagedServiceIdentityType SystemAssignedUserAssigned { get; } = new ManagedServiceIdentityType(SystemAssignedUserAssignedValue); + /// systemAssignedIdentity. + public static ManagedServiceIdentityType SystemAssignedIdentity { get; } = new ManagedServiceIdentityType(SystemAssignedIdentityValue); + /// userAssignedIdentity. + public static ManagedServiceIdentityType UserAssignedIdentity { get; } = new ManagedServiceIdentityType(UserAssignedIdentityValue); + /// Determines if two values are the same. + public static bool operator ==(ManagedServiceIdentityType left, ManagedServiceIdentityType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(ManagedServiceIdentityType left, ManagedServiceIdentityType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator ManagedServiceIdentityType(string value) => new ManagedServiceIdentityType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is ManagedServiceIdentityType other && Equals(other); + /// + public bool Equals(ManagedServiceIdentityType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/Name.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/Name.cs new file mode 100644 index 000000000000..4d396aefafcc --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/Name.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + /// The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.). + public readonly partial struct Name : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public Name(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EnterpriseE10Value = "Enterprise_E10"; + private const string EnterpriseE20Value = "Enterprise_E20"; + private const string EnterpriseE50Value = "Enterprise_E50"; + private const string EnterpriseE100Value = "Enterprise_E100"; + private const string EnterpriseFlashF300Value = "EnterpriseFlash_F300"; + private const string EnterpriseFlashF700Value = "EnterpriseFlash_F700"; + private const string EnterpriseFlashF1500Value = "EnterpriseFlash_F1500"; + + /// Enterprise_E10. + public static Name EnterpriseE10 { get; } = new Name(EnterpriseE10Value); + /// Enterprise_E20. + public static Name EnterpriseE20 { get; } = new Name(EnterpriseE20Value); + /// Enterprise_E50. + public static Name EnterpriseE50 { get; } = new Name(EnterpriseE50Value); + /// Enterprise_E100. + public static Name EnterpriseE100 { get; } = new Name(EnterpriseE100Value); + /// EnterpriseFlash_F300. + public static Name EnterpriseFlashF300 { get; } = new Name(EnterpriseFlashF300Value); + /// EnterpriseFlash_F700. + public static Name EnterpriseFlashF700 { get; } = new Name(EnterpriseFlashF700Value); + /// EnterpriseFlash_F1500. + public static Name EnterpriseFlashF1500 { get; } = new Name(EnterpriseFlashF1500Value); + /// Determines if two values are the same. + public static bool operator ==(Name left, Name right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(Name left, Name right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator Name(string value) => new Name(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is Name other && Equals(other); + /// + public bool Equals(Name other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterData.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterData.Serialization.cs index e381d356c5c9..dd994c17065f 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterData.Serialization.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterData.Serialization.cs @@ -30,6 +30,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + writer.WriteObjectValue(Identity); + } if (Optional.IsCollectionDefined(Tags)) { writer.WritePropertyName("tags"u8); @@ -50,6 +55,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("minimumTlsVersion"u8); writer.WriteStringValue(MinimumTlsVersion.Value.ToString()); } + if (Optional.IsDefined(Encryption)) + { + writer.WritePropertyName("encryption"u8); + writer.WriteObjectValue(Encryption); + } writer.WriteEndObject(); writer.WriteEndObject(); } @@ -58,6 +68,7 @@ internal static RedisEnterpriseClusterData DeserializeRedisEnterpriseClusterData { RedisEnterpriseSku sku = default; Optional> zones = default; + Optional identity = default; Optional> tags = default; AzureLocation location = default; ResourceIdentifier id = default; @@ -65,6 +76,7 @@ internal static RedisEnterpriseClusterData DeserializeRedisEnterpriseClusterData ResourceType type = default; Optional systemData = default; Optional minimumTlsVersion = default; + Optional encryption = default; Optional hostName = default; Optional provisioningState = default; Optional resourceState = default; @@ -92,6 +104,16 @@ internal static RedisEnterpriseClusterData DeserializeRedisEnterpriseClusterData zones = array; continue; } + if (property.NameEquals("identity"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + identity = Models.ManagedServiceIdentity.DeserializeManagedServiceIdentity(property.Value); + continue; + } if (property.NameEquals("tags"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -156,6 +178,16 @@ internal static RedisEnterpriseClusterData DeserializeRedisEnterpriseClusterData minimumTlsVersion = new RedisEnterpriseTlsVersion(property0.Value.GetString()); continue; } + if (property0.NameEquals("encryption"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + encryption = ClusterPropertiesEncryption.DeserializeClusterPropertiesEncryption(property0.Value); + continue; + } if (property0.NameEquals("hostName"u8)) { hostName = property0.Value.GetString(); @@ -205,7 +237,7 @@ internal static RedisEnterpriseClusterData DeserializeRedisEnterpriseClusterData continue; } } - return new RedisEnterpriseClusterData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku, Optional.ToList(zones), Optional.ToNullable(minimumTlsVersion), hostName.Value, Optional.ToNullable(provisioningState), Optional.ToNullable(resourceState), redisVersion.Value, Optional.ToList(privateEndpointConnections)); + return new RedisEnterpriseClusterData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, sku, Optional.ToList(zones), identity.Value, Optional.ToNullable(minimumTlsVersion), encryption.Value, hostName.Value, Optional.ToNullable(provisioningState), Optional.ToNullable(resourceState), redisVersion.Value, Optional.ToList(privateEndpointConnections)); } } } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterPatch.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterPatch.Serialization.cs index d7f6248e2913..2172a3a34f68 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterPatch.Serialization.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterPatch.Serialization.cs @@ -20,6 +20,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("sku"u8); writer.WriteObjectValue(Sku); } + if (Optional.IsDefined(Identity)) + { + writer.WritePropertyName("identity"u8); + writer.WriteObjectValue(Identity); + } if (Optional.IsCollectionDefined(Tags)) { writer.WritePropertyName("tags"u8); @@ -38,6 +43,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("minimumTlsVersion"u8); writer.WriteStringValue(MinimumTlsVersion.Value.ToString()); } + if (Optional.IsDefined(Encryption)) + { + writer.WritePropertyName("encryption"u8); + writer.WriteObjectValue(Encryption); + } writer.WriteEndObject(); writer.WriteEndObject(); } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterPatch.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterPatch.cs index eef474e6add8..2c6dc53450b0 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterPatch.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterPatch.cs @@ -23,10 +23,26 @@ public RedisEnterpriseClusterPatch() /// The SKU to create, which affects price, performance, and features. public RedisEnterpriseSku Sku { get; set; } + /// The identity of the resource. + public ManagedServiceIdentity Identity { get; set; } /// Resource tags. public IDictionary Tags { get; } /// The minimum TLS version for the cluster to support, e.g. '1.2'. public RedisEnterpriseTlsVersion? MinimumTlsVersion { get; set; } + /// Encryption-at-rest configuration for the cluster. + internal ClusterPropertiesEncryption Encryption { get; set; } + /// All Customer-managed key encryption properties for the resource. Set this to an empty object to use Microsoft-managed key encryption. + public ClusterPropertiesEncryptionCustomerManagedKeyEncryption CustomerManagedKeyEncryption + { + get => Encryption is null ? default : Encryption.CustomerManagedKeyEncryption; + set + { + if (Encryption is null) + Encryption = new ClusterPropertiesEncryption(); + Encryption.CustomerManagedKeyEncryption = value; + } + } + /// DNS name of the cluster endpoint. public string HostName { get; } /// Current provisioning status of the cluster. diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RegionSkuDetail.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RegionSkuDetail.Serialization.cs new file mode 100644 index 000000000000..d3ec2b364058 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RegionSkuDetail.Serialization.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + public partial class RegionSkuDetail + { + internal static RegionSkuDetail DeserializeRegionSkuDetail(JsonElement element) + { + Optional resourceType = default; + Optional locationInfo = default; + Optional skuDetails = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceType"u8)) + { + resourceType = property.Value.GetString(); + continue; + } + if (property.NameEquals("locationInfo"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + locationInfo = LocationInfo.DeserializeLocationInfo(property.Value); + continue; + } + if (property.NameEquals("skuDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + skuDetails = SkuDetail.DeserializeSkuDetail(property.Value); + continue; + } + } + return new RegionSkuDetail(resourceType.Value, locationInfo.Value, skuDetails.Value); + } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RegionSkuDetail.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RegionSkuDetail.cs new file mode 100644 index 000000000000..f03ed15dafb6 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RegionSkuDetail.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + /// Details about the location requested and the available skus in the location. + public partial class RegionSkuDetail + { + /// Initializes a new instance of RegionSkuDetail. + internal RegionSkuDetail() + { + } + + /// Initializes a new instance of RegionSkuDetail. + /// Resource type which has the SKU, such as Microsoft.Cache/redisEnterprise. + /// Details about location and its capabilities. + /// Details about available skus. + internal RegionSkuDetail(string resourceType, LocationInfo locationInfo, SkuDetail skuDetails) + { + ResourceType = resourceType; + LocationInfo = locationInfo; + SkuDetails = skuDetails; + } + + /// Resource type which has the SKU, such as Microsoft.Cache/redisEnterprise. + public string ResourceType { get; } + /// Details about location and its capabilities. + public LocationInfo LocationInfo { get; } + /// Details about available skus. + internal SkuDetail SkuDetails { get; } + /// The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.). + public Name? SkuDetailsName + { + get => SkuDetails?.Name; + } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RegionSkuDetails.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RegionSkuDetails.Serialization.cs new file mode 100644 index 000000000000..d69f01ea4209 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RegionSkuDetails.Serialization.cs @@ -0,0 +1,40 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + internal partial class RegionSkuDetails + { + internal static RegionSkuDetails DeserializeRegionSkuDetails(JsonElement element) + { + Optional> value = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(RegionSkuDetail.DeserializeRegionSkuDetail(item)); + } + value = array; + continue; + } + } + return new RegionSkuDetails(Optional.ToList(value)); + } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RegionSkuDetails.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RegionSkuDetails.cs new file mode 100644 index 000000000000..dde13f0756d6 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RegionSkuDetails.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + /// List of details about all the available SKUs. + internal partial class RegionSkuDetails + { + /// Initializes a new instance of RegionSkuDetails. + internal RegionSkuDetails() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of RegionSkuDetails. + /// List of Sku Detail. + internal RegionSkuDetails(IReadOnlyList value) + { + Value = value; + } + + /// List of Sku Detail. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/SkuDetail.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/SkuDetail.Serialization.cs new file mode 100644 index 000000000000..d08dc191cf12 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/SkuDetail.Serialization.cs @@ -0,0 +1,34 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + internal partial class SkuDetail + { + internal static SkuDetail DeserializeSkuDetail(JsonElement element) + { + Optional name = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("name"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + name = new Name(property.Value.GetString()); + continue; + } + } + return new SkuDetail(Optional.ToNullable(name)); + } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/SkuDetail.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/SkuDetail.cs new file mode 100644 index 000000000000..d92dc6f32381 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/SkuDetail.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.ResourceManager.RedisEnterprise.Models +{ + /// Information about Sku. + internal partial class SkuDetail + { + /// Initializes a new instance of SkuDetail. + internal SkuDetail() + { + } + + /// Initializes a new instance of SkuDetail. + /// The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.). + internal SkuDetail(Name? name) + { + Name = name; + } + + /// The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.). + public Name? Name { get; } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterData.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterData.cs index ff50c0bc736d..e0dfde7c4770 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterData.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterData.cs @@ -38,17 +38,21 @@ public RedisEnterpriseClusterData(AzureLocation location, RedisEnterpriseSku sku /// The location. /// The SKU to create, which affects price, performance, and features. /// The Availability Zones where this cluster will be deployed. + /// The identity of the resource. /// The minimum TLS version for the cluster to support, e.g. '1.2'. + /// Encryption-at-rest configuration for the cluster. /// DNS name of the cluster endpoint. /// Current provisioning status of the cluster. /// Current resource status of the cluster. /// Version of redis the cluster supports, e.g. '6'. /// List of private endpoint connections associated with the specified RedisEnterprise cluster. - internal RedisEnterpriseClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, RedisEnterpriseSku sku, IList zones, RedisEnterpriseTlsVersion? minimumTlsVersion, string hostName, RedisEnterpriseProvisioningStatus? provisioningState, RedisEnterpriseClusterResourceState? resourceState, string redisVersion, IReadOnlyList privateEndpointConnections) : base(id, name, resourceType, systemData, tags, location) + internal RedisEnterpriseClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, RedisEnterpriseSku sku, IList zones, Models.ManagedServiceIdentity identity, RedisEnterpriseTlsVersion? minimumTlsVersion, ClusterPropertiesEncryption encryption, string hostName, RedisEnterpriseProvisioningStatus? provisioningState, RedisEnterpriseClusterResourceState? resourceState, string redisVersion, IReadOnlyList privateEndpointConnections) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Zones = zones; + Identity = identity; MinimumTlsVersion = minimumTlsVersion; + Encryption = encryption; HostName = hostName; ProvisioningState = provisioningState; ResourceState = resourceState; @@ -60,8 +64,24 @@ internal RedisEnterpriseClusterData(ResourceIdentifier id, string name, Resource public RedisEnterpriseSku Sku { get; set; } /// The Availability Zones where this cluster will be deployed. public IList Zones { get; } + /// The identity of the resource. + public Models.ManagedServiceIdentity Identity { get; set; } /// The minimum TLS version for the cluster to support, e.g. '1.2'. public RedisEnterpriseTlsVersion? MinimumTlsVersion { get; set; } + /// Encryption-at-rest configuration for the cluster. + internal ClusterPropertiesEncryption Encryption { get; set; } + /// All Customer-managed key encryption properties for the resource. Set this to an empty object to use Microsoft-managed key encryption. + public ClusterPropertiesEncryptionCustomerManagedKeyEncryption CustomerManagedKeyEncryption + { + get => Encryption is null ? default : Encryption.CustomerManagedKeyEncryption; + set + { + if (Encryption is null) + Encryption = new ClusterPropertiesEncryption(); + Encryption.CustomerManagedKeyEncryption = value; + } + } + /// DNS name of the cluster endpoint. public string HostName { get; } /// Current provisioning status of the cluster. diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseResource.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseResource.cs index 1f628e402c15..3025a32f9e48 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseResource.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseResource.cs @@ -381,7 +381,7 @@ public virtual async Task> Regenerat try { var response = await _redisEnterpriseDatabaseDatabasesRestClient.RegenerateKeyAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new RedisEnterpriseArmOperation(new RedisEnterpriseDataAccessKeysOperationSource(), _redisEnterpriseDatabaseDatabasesClientDiagnostics, Pipeline, _redisEnterpriseDatabaseDatabasesRestClient.CreateRegenerateKeyRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.AzureAsyncOperation); + var operation = new RedisEnterpriseArmOperation(new RedisEnterpriseDataAccessKeysOperationSource(), _redisEnterpriseDatabaseDatabasesClientDiagnostics, Pipeline, _redisEnterpriseDatabaseDatabasesRestClient.CreateRegenerateKeyRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -419,7 +419,7 @@ public virtual ArmOperation RegenerateKey(WaitUnt try { var response = _redisEnterpriseDatabaseDatabasesRestClient.RegenerateKey(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new RedisEnterpriseArmOperation(new RedisEnterpriseDataAccessKeysOperationSource(), _redisEnterpriseDatabaseDatabasesClientDiagnostics, Pipeline, _redisEnterpriseDatabaseDatabasesRestClient.CreateRegenerateKeyRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.AzureAsyncOperation); + var operation = new RedisEnterpriseArmOperation(new RedisEnterpriseDataAccessKeysOperationSource(), _redisEnterpriseDatabaseDatabasesClientDiagnostics, Pipeline, _redisEnterpriseDatabaseDatabasesRestClient.CreateRegenerateKeyRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -658,5 +658,81 @@ public virtual ArmOperation ForceUnlink(WaitUntil waitUntil, ForceUnlinkRedisEnt throw; } } + + /// + /// Flushes all the keys in this database and also from its linked databases. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush + /// + /// + /// Operation Id + /// Databases_Flush + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Information identifying the databases to be flushed. + /// The cancellation token to use. + /// is null. + public virtual async Task FlushAsync(WaitUntil waitUntil, FlushContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _redisEnterpriseDatabaseDatabasesClientDiagnostics.CreateScope("RedisEnterpriseDatabaseResource.Flush"); + scope.Start(); + try + { + var response = await _redisEnterpriseDatabaseDatabasesRestClient.FlushAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new RedisEnterpriseArmOperation(_redisEnterpriseDatabaseDatabasesClientDiagnostics, Pipeline, _redisEnterpriseDatabaseDatabasesRestClient.CreateFlushRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Flushes all the keys in this database and also from its linked databases. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/flush + /// + /// + /// Operation Id + /// Databases_Flush + /// + /// + /// + /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. + /// Information identifying the databases to be flushed. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Flush(WaitUntil waitUntil, FlushContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _redisEnterpriseDatabaseDatabasesClientDiagnostics.CreateScope("RedisEnterpriseDatabaseResource.Flush"); + scope.Start(); + try + { + var response = _redisEnterpriseDatabaseDatabasesRestClient.Flush(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new RedisEnterpriseArmOperation(_redisEnterpriseDatabaseDatabasesClientDiagnostics, Pipeline, _redisEnterpriseDatabaseDatabasesRestClient.CreateFlushRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } } } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/DatabasesRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/DatabasesRestOperations.cs index 65b7adbb2b07..3aa6a8582bbd 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/DatabasesRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/DatabasesRestOperations.cs @@ -33,7 +33,7 @@ public DatabasesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-01"; + _apiVersion = apiVersion ?? "2023-03-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -875,6 +875,91 @@ public Response ForceUnlink(string subscriptionId, string resourceGroupName, str } } + internal HttpMessage CreateFlushRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, FlushContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Cache/redisEnterprise/", false); + uri.AppendPath(clusterName, true); + uri.AppendPath("/databases/", false); + uri.AppendPath(databaseName, true); + uri.AppendPath("/flush", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// Flushes all the keys in this database and also from its linked databases. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the RedisEnterprise cluster. + /// The name of the database. + /// Information identifying the databases to be flushed. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task FlushAsync(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, FlushContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateFlushRequest(subscriptionId, resourceGroupName, clusterName, databaseName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Flushes all the keys in this database and also from its linked databases. + /// The ID of the target subscription. + /// The name of the resource group. The name is case insensitive. + /// The name of the RedisEnterprise cluster. + /// The name of the database. + /// Information identifying the databases to be flushed. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Flush(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, FlushContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); + Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateFlushRequest(subscriptionId, resourceGroupName, clusterName, databaseName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var message = _pipeline.CreateMessage(); diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/OperationsStatusRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/OperationsStatusRestOperations.cs index 9063127098fd..5ac3f25c34fe 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/OperationsStatusRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/OperationsStatusRestOperations.cs @@ -33,7 +33,7 @@ public OperationsStatusRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-01"; + _apiVersion = apiVersion ?? "2023-03-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -59,8 +59,8 @@ internal HttpMessage CreateGetRequest(string subscriptionId, AzureLocation locat /// Gets the status of operation. /// The ID of the target subscription. - /// The region the operation is in. - /// The operation's unique identifier. + /// The name of Azure region. + /// The ID of an ongoing async operation. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. @@ -87,8 +87,8 @@ public async Task> GetAsync(string subs /// Gets the status of operation. /// The ID of the target subscription. - /// The region the operation is in. - /// The operation's unique identifier. + /// The name of Azure region. + /// The ID of an ongoing async operation. /// The cancellation token to use. /// or is null. /// or is an empty string, and was expected to be non-empty. diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs index 9d0d5c0ef5e6..112aff0d22d5 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -33,7 +33,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-01"; + _apiVersion = apiVersion ?? "2023-03-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs index 79c8ec02b9cf..5260de88bfca 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -33,7 +33,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-01"; + _apiVersion = apiVersion ?? "2023-03-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/RedisEnterpriseRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/RedisEnterpriseRestOperations.cs index beb507460600..03d2c4deb529 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/RedisEnterpriseRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/RedisEnterpriseRestOperations.cs @@ -33,7 +33,7 @@ public RedisEnterpriseRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2022-01-01"; + _apiVersion = apiVersion ?? "2023-03-01-preview"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/SkusRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/SkusRestOperations.cs new file mode 100644 index 000000000000..64b942deac13 --- /dev/null +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/SkusRestOperations.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.RedisEnterprise.Models; + +namespace Azure.ResourceManager.RedisEnterprise +{ + internal partial class SkusRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of SkusRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// or is null. + public SkusRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? new Uri("https://management.azure.com"); + _apiVersion = apiVersion ?? "2023-03-01-preview"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal HttpMessage CreateListRequest(string subscriptionId, AzureLocation location) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/providers/Microsoft.Cache/locations/", false); + uri.AppendPath(location, true); + uri.AppendPath("/skus", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets information about skus in specified location for the given subscription id. + /// The ID of the target subscription. + /// The name of Azure region. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListRequest(subscriptionId, location); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + RegionSkuDetails value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = RegionSkuDetails.DeserializeRegionSkuDetails(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets information about skus in specified location for the given subscription id. + /// The ID of the target subscription. + /// The name of Azure region. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + + using var message = CreateListRequest(subscriptionId, location); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + RegionSkuDetails value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = RegionSkuDetails.DeserializeRegionSkuDetails(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/autorest.md b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/autorest.md index 8720f150872a..cf4ab07231fe 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/autorest.md +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/autorest.md @@ -9,7 +9,7 @@ generate-model-factory: false csharp: true library-name: RedisEnterprise namespace: Azure.ResourceManager.RedisEnterprise -require: https://github.com/Azure/azure-rest-api-specs/blob/bab2f4389eb5ca73cdf366ec0a4af3f3eb6e1f6d/specification/redisenterprise/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/redisenterprise/resource-manager/readme.md output-folder: $(this-folder)/Generated clear-output-folder: true skip-csproj: true