From 7ad30f60800ee770ef402ce2b342db07144f3de5 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Wed, 23 Oct 2024 07:42:45 +0000 Subject: [PATCH] CodeGen from PR 30811 in Azure/azure-rest-api-specs Merge 1057dd0d8a7e652254012d6da39921ac385c3f47 into 326035fb8c9fb88b7812a5e14ae7cf11c339de8e --- ...eManager.RedisEnterprise.netstandard2.0.cs | 200 +------ ...Sample_AccessPolicyAssignmentCollection.cs | 209 ------- .../Sample_AccessPolicyAssignmentResource.cs | 118 ---- ...Sample_RedisEnterpriseClusterCollection.cs | 20 +- .../Sample_RedisEnterpriseClusterResource.cs | 20 +- ...ample_RedisEnterpriseDatabaseCollection.cs | 31 +- .../Sample_RedisEnterpriseDatabaseResource.cs | 71 +-- ...risePrivateEndpointConnectionCollection.cs | 20 +- ...rprisePrivateEndpointConnectionResource.cs | 12 +- .../Sample_SubscriptionResourceExtensions.cs | 4 +- .../AccessPolicyAssignmentCollection.cs | 493 ---------------- ...ccessPolicyAssignmentData.Serialization.cs | 330 ----------- .../Generated/AccessPolicyAssignmentData.cs | 97 ---- ...sPolicyAssignmentResource.Serialization.cs | 26 - .../AccessPolicyAssignmentResource.cs | 348 ----------- .../ArmRedisEnterpriseModelFactory.cs | 143 +---- .../MockableRedisEnterpriseArmClient.cs | 12 - ...bleRedisEnterpriseResourceGroupResource.cs | 12 +- ...ableRedisEnterpriseSubscriptionResource.cs | 12 +- .../Extensions/RedisEnterpriseExtensions.cs | 43 +- .../AccessPolicyAssignmentOperationSource.cs | 38 -- .../Models/AccessKeysAuthentication.cs | 51 -- ...ccessPolicyAssignmentList.Serialization.cs | 219 ------- .../Models/AccessPolicyAssignmentList.cs | 70 --- ...yAssignmentPropertiesUser.Serialization.cs | 166 ------ .../AccessPolicyAssignmentPropertiesUser.cs | 66 --- .../Generated/Models/DeferUpgradeSetting.cs | 51 -- ...rceUnlinkRedisEnterpriseDatabaseContent.cs | 2 +- .../Models/PersistenceSettingAofFrequency.cs | 2 +- ...disEnterpriseClusterPatch.Serialization.cs | 32 - .../Models/RedisEnterpriseClusterPatch.cs | 22 +- .../Models/RedisEnterpriseClusteringPolicy.cs | 6 +- ...isEnterpriseDatabasePatch.Serialization.cs | 44 -- .../Models/RedisEnterpriseDatabasePatch.cs | 23 +- .../Models/RedisEnterpriseHighAvailability.cs | 51 -- .../Models/RedisEnterpriseRedundancyMode.cs | 54 -- .../Generated/Models/RedisEnterpriseSku.cs | 12 +- .../Models/RedisEnterpriseSkuName.cs | 134 +---- .../Models/RedisEnterpriseTlsVersion.cs | 2 +- .../Models/RedisPersistenceSettings.cs | 14 +- .../RedisEnterpriseClusterCollection.cs | 48 +- ...edisEnterpriseClusterData.Serialization.cs | 62 -- .../Generated/RedisEnterpriseClusterData.cs | 22 +- .../RedisEnterpriseClusterResource.cs | 64 +- .../RedisEnterpriseDatabaseCollection.cs | 28 +- ...disEnterpriseDatabaseData.Serialization.cs | 97 ---- .../Generated/RedisEnterpriseDatabaseData.cs | 23 +- .../RedisEnterpriseDatabaseResource.cs | 205 +------ ...risePrivateEndpointConnectionCollection.cs | 32 +- ...rprisePrivateEndpointConnectionResource.cs | 24 +- .../AccessPolicyAssignmentRestOperations.cs | 549 ------------------ .../RestOperations/DatabasesRestOperations.cs | 166 ++---- .../OperationsStatusRestOperations.cs | 2 +- ...rivateEndpointConnectionsRestOperations.cs | 34 +- .../PrivateLinkResourcesRestOperations.cs | 10 +- .../RedisEnterpriseRestOperations.cs | 54 +- .../src/autorest.md | 2 +- 57 files changed, 363 insertions(+), 4339 deletions(-) delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_AccessPolicyAssignmentCollection.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_AccessPolicyAssignmentResource.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentCollection.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentData.Serialization.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentData.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentResource.Serialization.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentResource.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/LongRunningOperation/AccessPolicyAssignmentOperationSource.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessKeysAuthentication.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentList.Serialization.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentList.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentPropertiesUser.Serialization.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentPropertiesUser.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/DeferUpgradeSetting.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseHighAvailability.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseRedundancyMode.cs delete mode 100644 sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/AccessPolicyAssignmentRestOperations.cs 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 d0e42e163495..829c21af0899 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 @@ -1,54 +1,5 @@ namespace Azure.ResourceManager.RedisEnterprise { - public partial class AccessPolicyAssignmentCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected AccessPolicyAssignmentCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string accessPolicyAssignmentName, Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string accessPolicyAssignmentName, Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string accessPolicyAssignmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string accessPolicyAssignmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string accessPolicyAssignmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string accessPolicyAssignmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string accessPolicyAssignmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string accessPolicyAssignmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class AccessPolicyAssignmentData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public AccessPolicyAssignmentData() { } - public string AccessPolicyName { get { throw null; } set { } } - public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? ProvisioningState { get { throw null; } } - public System.Guid? UserObjectId { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class AccessPolicyAssignmentResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected AccessPolicyAssignmentResource() { } - public virtual Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string accessPolicyAssignmentName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, 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; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class RedisEnterpriseClusterCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected RedisEnterpriseClusterCollection() { } @@ -70,14 +21,12 @@ public partial class RedisEnterpriseClusterData : Azure.ResourceManager.Models.T { public RedisEnterpriseClusterData(Azure.Core.AzureLocation location, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSku sku) { } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseCustomerManagedKeyEncryption CustomerManagedKeyEncryption { get { throw null; } set { } } - public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseHighAvailability? HighAvailability { get { throw null; } set { } } public string HostName { get { throw null; } } public Azure.ResourceManager.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; } } public string RedisVersion { get { throw null; } } - public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseRedundancyMode? RedundancyMode { get { throw null; } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? ResourceState { get { throw null; } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSku Sku { get { throw null; } set { } } public System.Collections.Generic.IList Zones { get { throw null; } } @@ -141,17 +90,14 @@ protected RedisEnterpriseDatabaseCollection() { } public partial class RedisEnterpriseDatabaseData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public RedisEnterpriseDatabaseData() { } - public Azure.ResourceManager.RedisEnterprise.Models.AccessKeysAuthentication? AccessKeysAuthentication { get { throw null; } set { } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClientProtocol? ClientProtocol { get { throw null; } set { } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusteringPolicy? ClusteringPolicy { get { throw null; } set { } } - public Azure.ResourceManager.RedisEnterprise.Models.DeferUpgradeSetting? DeferUpgrade { get { throw null; } set { } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseEvictionPolicy? EvictionPolicy { get { throw null; } set { } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabaseGeoReplication GeoReplication { get { throw null; } set { } } public System.Collections.Generic.IList Modules { get { throw null; } } public Azure.ResourceManager.RedisEnterprise.Models.RedisPersistenceSettings Persistence { get { throw null; } set { } } public int? Port { get { throw null; } set { } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? ProvisioningState { get { throw null; } } - public string RedisVersion { get { throw null; } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? ResourceState { get { throw null; } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.RedisEnterprise.RedisEnterpriseDatabaseData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -178,9 +124,6 @@ protected RedisEnterpriseDatabaseResource() { } 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; } - public virtual Azure.Response GetAccessPolicyAssignment(string accessPolicyAssignmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAccessPolicyAssignmentAsync(string accessPolicyAssignmentName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentCollection GetAccessPolicyAssignments() { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetKeys(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetKeysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -195,12 +138,9 @@ protected RedisEnterpriseDatabaseResource() { } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabasePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabasePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation UpgradeDBRedisVersion(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task UpgradeDBRedisVersionAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public static partial class RedisEnterpriseExtensions { - public static Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentResource GetAccessPolicyAssignmentResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Response GetRedisEnterpriseCluster(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetRedisEnterpriseClusterAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string clusterName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.RedisEnterprise.RedisEnterpriseClusterResource GetRedisEnterpriseClusterResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -267,7 +207,6 @@ namespace Azure.ResourceManager.RedisEnterprise.Mocking public partial class MockableRedisEnterpriseArmClient : Azure.ResourceManager.ArmResource { protected MockableRedisEnterpriseArmClient() { } - public virtual Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentResource GetAccessPolicyAssignmentResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.RedisEnterprise.RedisEnterpriseClusterResource GetRedisEnterpriseClusterResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.RedisEnterprise.RedisEnterpriseDatabaseResource GetRedisEnterpriseDatabaseResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.RedisEnterprise.RedisEnterprisePrivateEndpointConnectionResource GetRedisEnterprisePrivateEndpointConnectionResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -290,64 +229,19 @@ protected MockableRedisEnterpriseSubscriptionResource() { } } namespace Azure.ResourceManager.RedisEnterprise.Models { - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AccessKeysAuthentication : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AccessKeysAuthentication(string value) { throw null; } - public static Azure.ResourceManager.RedisEnterprise.Models.AccessKeysAuthentication Disabled { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.AccessKeysAuthentication Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.RedisEnterprise.Models.AccessKeysAuthentication 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.AccessKeysAuthentication left, Azure.ResourceManager.RedisEnterprise.Models.AccessKeysAuthentication right) { throw null; } - public static implicit operator Azure.ResourceManager.RedisEnterprise.Models.AccessKeysAuthentication (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RedisEnterprise.Models.AccessKeysAuthentication left, Azure.ResourceManager.RedisEnterprise.Models.AccessKeysAuthentication right) { throw null; } - public override string ToString() { throw null; } - } public static partial class ArmRedisEnterpriseModelFactory { - public static Azure.ResourceManager.RedisEnterprise.AccessPolicyAssignmentData AccessPolicyAssignmentData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? provisioningState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus?), string accessPolicyName = null, System.Guid? userObjectId = default(System.Guid?)) { throw null; } - public static Azure.ResourceManager.RedisEnterprise.RedisEnterpriseClusterData RedisEnterpriseClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSku sku = null, System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseHighAvailability? highAvailability = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseHighAvailability?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseTlsVersion?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseCustomerManagedKeyEncryption customerManagedKeyEncryption = null, string hostName = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? provisioningState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseRedundancyMode? redundancyMode = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseRedundancyMode?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? resourceState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState?), string redisVersion = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.RedisEnterprise.RedisEnterpriseClusterData RedisEnterpriseClusterData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, System.Collections.Generic.IDictionary tags, Azure.Core.AzureLocation location, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSku sku, System.Collections.Generic.IEnumerable zones, Azure.ResourceManager.Models.ManagedServiceIdentity identity, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseTlsVersion? minimumTlsVersion, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseCustomerManagedKeyEncryption customerManagedKeyEncryption, string hostName, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? provisioningState, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? resourceState, string redisVersion, System.Collections.Generic.IEnumerable privateEndpointConnections) { throw null; } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterPatch RedisEnterpriseClusterPatch(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSku sku = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseHighAvailability? highAvailability = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseHighAvailability?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseTlsVersion?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseCustomerManagedKeyEncryption customerManagedKeyEncryption = null, string hostName = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? provisioningState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseRedundancyMode? redundancyMode = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseRedundancyMode?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? resourceState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState?), string redisVersion = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterPatch RedisEnterpriseClusterPatch(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSku sku, Azure.ResourceManager.Models.ManagedServiceIdentity identity, System.Collections.Generic.IDictionary tags, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseTlsVersion? minimumTlsVersion, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseCustomerManagedKeyEncryption customerManagedKeyEncryption, string hostName, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? provisioningState, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? resourceState, string redisVersion, System.Collections.Generic.IEnumerable privateEndpointConnections) { throw null; } + public static Azure.ResourceManager.RedisEnterprise.RedisEnterpriseClusterData RedisEnterpriseClusterData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, System.Collections.Generic.IDictionary tags = null, Azure.Core.AzureLocation location = default(Azure.Core.AzureLocation), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSku sku = null, System.Collections.Generic.IEnumerable zones = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseTlsVersion?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseCustomerManagedKeyEncryption customerManagedKeyEncryption = null, string hostName = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? provisioningState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? resourceState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState?), string redisVersion = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null) { throw null; } + public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterPatch RedisEnterpriseClusterPatch(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSku sku = null, Azure.ResourceManager.Models.ManagedServiceIdentity identity = null, System.Collections.Generic.IDictionary tags = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseTlsVersion? minimumTlsVersion = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseTlsVersion?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseCustomerManagedKeyEncryption customerManagedKeyEncryption = null, string hostName = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? provisioningState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? resourceState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState?), string redisVersion = null, System.Collections.Generic.IEnumerable privateEndpointConnections = null) { throw null; } public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDataAccessKeys RedisEnterpriseDataAccessKeys(string primaryKey = null, string secondaryKey = null) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.RedisEnterprise.RedisEnterpriseDatabaseData RedisEnterpriseDatabaseData(Azure.Core.ResourceIdentifier id, string name, Azure.Core.ResourceType resourceType, Azure.ResourceManager.Models.SystemData systemData, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClientProtocol? clientProtocol, int? port, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? provisioningState, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? resourceState, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusteringPolicy? clusteringPolicy, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseEvictionPolicy? evictionPolicy, Azure.ResourceManager.RedisEnterprise.Models.RedisPersistenceSettings persistence, System.Collections.Generic.IEnumerable modules, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabaseGeoReplication geoReplication) { throw null; } - public static Azure.ResourceManager.RedisEnterprise.RedisEnterpriseDatabaseData RedisEnterpriseDatabaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClientProtocol? clientProtocol = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClientProtocol?), int? port = default(int?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? provisioningState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? resourceState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusteringPolicy? clusteringPolicy = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusteringPolicy?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseEvictionPolicy? evictionPolicy = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseEvictionPolicy?), Azure.ResourceManager.RedisEnterprise.Models.RedisPersistenceSettings persistence = null, System.Collections.Generic.IEnumerable modules = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabaseGeoReplication geoReplication = null, string redisVersion = null, Azure.ResourceManager.RedisEnterprise.Models.DeferUpgradeSetting? deferUpgrade = default(Azure.ResourceManager.RedisEnterprise.Models.DeferUpgradeSetting?), Azure.ResourceManager.RedisEnterprise.Models.AccessKeysAuthentication? accessKeysAuthentication = default(Azure.ResourceManager.RedisEnterprise.Models.AccessKeysAuthentication?)) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabasePatch RedisEnterpriseDatabasePatch(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClientProtocol? clientProtocol, int? port, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? provisioningState, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? resourceState, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusteringPolicy? clusteringPolicy, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseEvictionPolicy? evictionPolicy, Azure.ResourceManager.RedisEnterprise.Models.RedisPersistenceSettings persistence, System.Collections.Generic.IEnumerable modules, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabaseGeoReplication geoReplication) { throw null; } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabasePatch RedisEnterpriseDatabasePatch(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClientProtocol? clientProtocol = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClientProtocol?), int? port = default(int?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? provisioningState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? resourceState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusteringPolicy? clusteringPolicy = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusteringPolicy?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseEvictionPolicy? evictionPolicy = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseEvictionPolicy?), Azure.ResourceManager.RedisEnterprise.Models.RedisPersistenceSettings persistence = null, System.Collections.Generic.IEnumerable modules = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabaseGeoReplication geoReplication = null, string redisVersion = null, Azure.ResourceManager.RedisEnterprise.Models.DeferUpgradeSetting? deferUpgrade = default(Azure.ResourceManager.RedisEnterprise.Models.DeferUpgradeSetting?), Azure.ResourceManager.RedisEnterprise.Models.AccessKeysAuthentication? accessKeysAuthentication = default(Azure.ResourceManager.RedisEnterprise.Models.AccessKeysAuthentication?)) { throw null; } + public static Azure.ResourceManager.RedisEnterprise.RedisEnterpriseDatabaseData RedisEnterpriseDatabaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClientProtocol? clientProtocol = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClientProtocol?), int? port = default(int?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? provisioningState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? resourceState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusteringPolicy? clusteringPolicy = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusteringPolicy?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseEvictionPolicy? evictionPolicy = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseEvictionPolicy?), Azure.ResourceManager.RedisEnterprise.Models.RedisPersistenceSettings persistence = null, System.Collections.Generic.IEnumerable modules = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabaseGeoReplication geoReplication = null) { throw null; } + public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabasePatch RedisEnterpriseDatabasePatch(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClientProtocol? clientProtocol = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClientProtocol?), int? port = default(int?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? provisioningState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? resourceState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusteringPolicy? clusteringPolicy = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusteringPolicy?), Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseEvictionPolicy? evictionPolicy = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseEvictionPolicy?), Azure.ResourceManager.RedisEnterprise.Models.RedisPersistenceSettings persistence = null, System.Collections.Generic.IEnumerable modules = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabaseGeoReplication geoReplication = null) { throw null; } public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseLinkedDatabase RedisEnterpriseLinkedDatabase(Azure.Core.ResourceIdentifier id = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabaseLinkState? state = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabaseLinkState?)) { throw null; } public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseModule RedisEnterpriseModule(string name = null, string args = null, string version = null) { throw null; } public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseOperationStatus RedisEnterpriseOperationStatus(Azure.Core.ResourceIdentifier id = null, string name = null, System.DateTimeOffset? startOn = default(System.DateTimeOffset?), System.DateTimeOffset? endOn = default(System.DateTimeOffset?), string status = null, Azure.ResponseError error = null) { throw null; } public static Azure.ResourceManager.RedisEnterprise.RedisEnterprisePrivateEndpointConnectionData RedisEnterprisePrivateEndpointConnectionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.Core.ResourceIdentifier privateEndpointId = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterprisePrivateLinkServiceConnectionState connectionState = null, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterprisePrivateEndpointConnectionProvisioningState? provisioningState = default(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterprisePrivateEndpointConnectionProvisioningState?)) { throw null; } public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterprisePrivateLinkResource RedisEnterprisePrivateLinkResource(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, string groupId = null, System.Collections.Generic.IEnumerable requiredMembers = null, System.Collections.Generic.IEnumerable requiredZoneNames = null) { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct DeferUpgradeSetting : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public DeferUpgradeSetting(string value) { throw null; } - public static Azure.ResourceManager.RedisEnterprise.Models.DeferUpgradeSetting Deferred { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.DeferUpgradeSetting NotDeferred { get { throw null; } } - public bool Equals(Azure.ResourceManager.RedisEnterprise.Models.DeferUpgradeSetting 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.DeferUpgradeSetting left, Azure.ResourceManager.RedisEnterprise.Models.DeferUpgradeSetting right) { throw null; } - public static implicit operator Azure.ResourceManager.RedisEnterprise.Models.DeferUpgradeSetting (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RedisEnterprise.Models.DeferUpgradeSetting left, Azure.ResourceManager.RedisEnterprise.Models.DeferUpgradeSetting right) { throw null; } - public override string ToString() { throw null; } - } public partial class ExportRedisEnterpriseDatabaseContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public ExportRedisEnterpriseDatabaseContent(System.Uri sasUri) { } @@ -486,14 +380,12 @@ public partial class RedisEnterpriseClusterPatch : System.ClientModel.Primitives { public RedisEnterpriseClusterPatch() { } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseCustomerManagedKeyEncryption CustomerManagedKeyEncryption { get { throw null; } set { } } - public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseHighAvailability? HighAvailability { get { throw null; } set { } } public string HostName { get { throw null; } } public Azure.ResourceManager.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; } } public string RedisVersion { get { throw null; } } - public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseRedundancyMode? RedundancyMode { get { throw null; } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? ResourceState { get { throw null; } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSku Sku { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } @@ -624,17 +516,14 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class RedisEnterpriseDatabasePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public RedisEnterpriseDatabasePatch() { } - public Azure.ResourceManager.RedisEnterprise.Models.AccessKeysAuthentication? AccessKeysAuthentication { get { throw null; } set { } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClientProtocol? ClientProtocol { get { throw null; } set { } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusteringPolicy? ClusteringPolicy { get { throw null; } set { } } - public Azure.ResourceManager.RedisEnterprise.Models.DeferUpgradeSetting? DeferUpgrade { get { throw null; } set { } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseEvictionPolicy? EvictionPolicy { get { throw null; } set { } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabaseGeoReplication GeoReplication { get { throw null; } set { } } public System.Collections.Generic.IList Modules { get { throw null; } } public Azure.ResourceManager.RedisEnterprise.Models.RedisPersistenceSettings Persistence { get { throw null; } set { } } public int? Port { get { throw null; } set { } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus? ProvisioningState { get { throw null; } } - public string RedisVersion { get { throw null; } } public Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseClusterResourceState? ResourceState { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseDatabasePatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -667,24 +556,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseEvictionPolicy left, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseEvictionPolicy right) { throw null; } public override string ToString() { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct RedisEnterpriseHighAvailability : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public RedisEnterpriseHighAvailability(string value) { throw null; } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseHighAvailability Disabled { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseHighAvailability Enabled { get { throw null; } } - public bool Equals(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseHighAvailability 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.RedisEnterpriseHighAvailability left, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseHighAvailability right) { throw null; } - public static implicit operator Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseHighAvailability (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseHighAvailability left, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseHighAvailability right) { throw null; } - public override string ToString() { throw null; } - } public partial class RedisEnterpriseLinkedDatabase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public RedisEnterpriseLinkedDatabase() { } @@ -813,25 +684,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static bool operator !=(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus left, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseProvisioningStatus right) { throw null; } public override string ToString() { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct RedisEnterpriseRedundancyMode : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public RedisEnterpriseRedundancyMode(string value) { throw null; } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseRedundancyMode LR { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseRedundancyMode None { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseRedundancyMode ZR { get { throw null; } } - public bool Equals(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseRedundancyMode 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.RedisEnterpriseRedundancyMode left, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseRedundancyMode right) { throw null; } - public static implicit operator Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseRedundancyMode (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseRedundancyMode left, Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseRedundancyMode right) { throw null; } - public override string ToString() { throw null; } - } public partial class RedisEnterpriseRegenerateKeyContent : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public RedisEnterpriseRegenerateKeyContent(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseAccessKeyType keyType) { } @@ -861,31 +713,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer private readonly object _dummy; private readonly int _dummyPrimitive; public RedisEnterpriseSkuName(string value) { throw null; } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName BalancedB0 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName BalancedB1 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName BalancedB10 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName BalancedB100 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName BalancedB1000 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName BalancedB150 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName BalancedB20 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName BalancedB250 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName BalancedB3 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName BalancedB350 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName BalancedB5 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName BalancedB50 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName BalancedB500 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName BalancedB700 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName ComputeOptimizedX10 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName ComputeOptimizedX100 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName ComputeOptimizedX150 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName ComputeOptimizedX20 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName ComputeOptimizedX250 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName ComputeOptimizedX3 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName ComputeOptimizedX350 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName ComputeOptimizedX5 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName ComputeOptimizedX50 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName ComputeOptimizedX500 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName ComputeOptimizedX700 { get { throw null; } } public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName EnterpriseE1 { get { throw null; } } public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName EnterpriseE10 { get { throw null; } } public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName EnterpriseE100 { get { throw null; } } @@ -897,25 +724,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName EnterpriseFlashF1500 { get { throw null; } } public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName EnterpriseFlashF300 { get { throw null; } } public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName EnterpriseFlashF700 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName FlashOptimizedA1000 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName FlashOptimizedA1500 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName FlashOptimizedA2000 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName FlashOptimizedA250 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName FlashOptimizedA4500 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName FlashOptimizedA500 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName FlashOptimizedA700 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName MemoryOptimizedM10 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName MemoryOptimizedM100 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName MemoryOptimizedM1000 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName MemoryOptimizedM150 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName MemoryOptimizedM1500 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName MemoryOptimizedM20 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName MemoryOptimizedM2000 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName MemoryOptimizedM250 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName MemoryOptimizedM350 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName MemoryOptimizedM50 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName MemoryOptimizedM500 { get { throw null; } } - public static Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName MemoryOptimizedM700 { get { throw null; } } public bool Equals(Azure.ResourceManager.RedisEnterprise.Models.RedisEnterpriseSkuName other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_AccessPolicyAssignmentCollection.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_AccessPolicyAssignmentCollection.cs deleted file mode 100644 index f64532d74d7e..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_AccessPolicyAssignmentCollection.cs +++ /dev/null @@ -1,209 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; - -namespace Azure.ResourceManager.RedisEnterprise.Samples -{ - public partial class Sample_AccessPolicyAssignmentCollection - { - // RedisEnterpriseAccessPolicyAssignmentCreateUpdate - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task CreateOrUpdate_RedisEnterpriseAccessPolicyAssignmentCreateUpdate() - { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseAccessPolicyAssignmentCreateUpdate.json - // this example is just showing the usage of "AccessPolicyAssignment_CreateUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure - // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; - string resourceGroupName = "rg1"; - string clusterName = "cache1"; - string databaseName = "default"; - ResourceIdentifier redisEnterpriseDatabaseResourceId = RedisEnterpriseDatabaseResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, databaseName); - RedisEnterpriseDatabaseResource redisEnterpriseDatabase = client.GetRedisEnterpriseDatabaseResource(redisEnterpriseDatabaseResourceId); - - // get the collection of this AccessPolicyAssignmentResource - AccessPolicyAssignmentCollection collection = redisEnterpriseDatabase.GetAccessPolicyAssignments(); - - // invoke the operation - string accessPolicyAssignmentName = "defaultTestEntraApp1"; - AccessPolicyAssignmentData data = new AccessPolicyAssignmentData() - { - AccessPolicyName = "default", - UserObjectId = Guid.Parse("6497c918-11ad-41e7-1b0f-7c518a87d0b0"), - }; - ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, accessPolicyAssignmentName, data); - AccessPolicyAssignmentResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AccessPolicyAssignmentData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // RedisEnterpriseAccessPolicyAssignmentGet - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_RedisEnterpriseAccessPolicyAssignmentGet() - { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseAccessPolicyAssignmentGet.json - // this example is just showing the usage of "AccessPolicyAssignment_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure - // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; - string resourceGroupName = "rg1"; - string clusterName = "cache1"; - string databaseName = "default"; - ResourceIdentifier redisEnterpriseDatabaseResourceId = RedisEnterpriseDatabaseResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, databaseName); - RedisEnterpriseDatabaseResource redisEnterpriseDatabase = client.GetRedisEnterpriseDatabaseResource(redisEnterpriseDatabaseResourceId); - - // get the collection of this AccessPolicyAssignmentResource - AccessPolicyAssignmentCollection collection = redisEnterpriseDatabase.GetAccessPolicyAssignments(); - - // invoke the operation - string accessPolicyAssignmentName = "accessPolicyAssignmentName1"; - AccessPolicyAssignmentResource result = await collection.GetAsync(accessPolicyAssignmentName); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AccessPolicyAssignmentData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // RedisEnterpriseAccessPolicyAssignmentGet - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Exists_RedisEnterpriseAccessPolicyAssignmentGet() - { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseAccessPolicyAssignmentGet.json - // this example is just showing the usage of "AccessPolicyAssignment_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure - // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; - string resourceGroupName = "rg1"; - string clusterName = "cache1"; - string databaseName = "default"; - ResourceIdentifier redisEnterpriseDatabaseResourceId = RedisEnterpriseDatabaseResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, databaseName); - RedisEnterpriseDatabaseResource redisEnterpriseDatabase = client.GetRedisEnterpriseDatabaseResource(redisEnterpriseDatabaseResourceId); - - // get the collection of this AccessPolicyAssignmentResource - AccessPolicyAssignmentCollection collection = redisEnterpriseDatabase.GetAccessPolicyAssignments(); - - // invoke the operation - string accessPolicyAssignmentName = "accessPolicyAssignmentName1"; - bool result = await collection.ExistsAsync(accessPolicyAssignmentName); - - Console.WriteLine($"Succeeded: {result}"); - } - - // RedisEnterpriseAccessPolicyAssignmentGet - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetIfExists_RedisEnterpriseAccessPolicyAssignmentGet() - { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseAccessPolicyAssignmentGet.json - // this example is just showing the usage of "AccessPolicyAssignment_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure - // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; - string resourceGroupName = "rg1"; - string clusterName = "cache1"; - string databaseName = "default"; - ResourceIdentifier redisEnterpriseDatabaseResourceId = RedisEnterpriseDatabaseResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, databaseName); - RedisEnterpriseDatabaseResource redisEnterpriseDatabase = client.GetRedisEnterpriseDatabaseResource(redisEnterpriseDatabaseResourceId); - - // get the collection of this AccessPolicyAssignmentResource - AccessPolicyAssignmentCollection collection = redisEnterpriseDatabase.GetAccessPolicyAssignments(); - - // invoke the operation - string accessPolicyAssignmentName = "accessPolicyAssignmentName1"; - NullableResponse response = await collection.GetIfExistsAsync(accessPolicyAssignmentName); - AccessPolicyAssignmentResource result = response.HasValue ? response.Value : null; - - if (result == null) - { - Console.WriteLine($"Succeeded with null as result"); - } - else - { - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AccessPolicyAssignmentData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - } - - // RedisEnterpriseAccessPolicyAssignmentList - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task GetAll_RedisEnterpriseAccessPolicyAssignmentList() - { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseAccessPolicyAssignmentsList.json - // this example is just showing the usage of "AccessPolicyAssignment_List" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure - // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; - string resourceGroupName = "rg1"; - string clusterName = "cache1"; - string databaseName = "default"; - ResourceIdentifier redisEnterpriseDatabaseResourceId = RedisEnterpriseDatabaseResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, databaseName); - RedisEnterpriseDatabaseResource redisEnterpriseDatabase = client.GetRedisEnterpriseDatabaseResource(redisEnterpriseDatabaseResourceId); - - // get the collection of this AccessPolicyAssignmentResource - AccessPolicyAssignmentCollection collection = redisEnterpriseDatabase.GetAccessPolicyAssignments(); - - // invoke the operation and iterate over the result - await foreach (AccessPolicyAssignmentResource item in collection.GetAllAsync()) - { - // the variable item is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AccessPolicyAssignmentData resourceData = item.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - Console.WriteLine($"Succeeded"); - } - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_AccessPolicyAssignmentResource.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_AccessPolicyAssignmentResource.cs deleted file mode 100644 index 227cbb5ebb51..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_AccessPolicyAssignmentResource.cs +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Identity; - -namespace Azure.ResourceManager.RedisEnterprise.Samples -{ - public partial class Sample_AccessPolicyAssignmentResource - { - // RedisEnterpriseAccessPolicyAssignmentCreateUpdate - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Update_RedisEnterpriseAccessPolicyAssignmentCreateUpdate() - { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseAccessPolicyAssignmentCreateUpdate.json - // this example is just showing the usage of "AccessPolicyAssignment_CreateUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AccessPolicyAssignmentResource created on azure - // for more information of creating AccessPolicyAssignmentResource, please refer to the document of AccessPolicyAssignmentResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; - string resourceGroupName = "rg1"; - string clusterName = "cache1"; - string databaseName = "default"; - string accessPolicyAssignmentName = "defaultTestEntraApp1"; - ResourceIdentifier accessPolicyAssignmentResourceId = AccessPolicyAssignmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName); - AccessPolicyAssignmentResource accessPolicyAssignment = client.GetAccessPolicyAssignmentResource(accessPolicyAssignmentResourceId); - - // invoke the operation - AccessPolicyAssignmentData data = new AccessPolicyAssignmentData() - { - AccessPolicyName = "default", - UserObjectId = Guid.Parse("6497c918-11ad-41e7-1b0f-7c518a87d0b0"), - }; - ArmOperation lro = await accessPolicyAssignment.UpdateAsync(WaitUntil.Completed, data); - AccessPolicyAssignmentResource result = lro.Value; - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AccessPolicyAssignmentData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // RedisEnterpriseAccessPolicyAssignmentGet - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Get_RedisEnterpriseAccessPolicyAssignmentGet() - { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseAccessPolicyAssignmentGet.json - // this example is just showing the usage of "AccessPolicyAssignment_Get" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AccessPolicyAssignmentResource created on azure - // for more information of creating AccessPolicyAssignmentResource, please refer to the document of AccessPolicyAssignmentResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; - string resourceGroupName = "rg1"; - string clusterName = "cache1"; - string databaseName = "default"; - string accessPolicyAssignmentName = "accessPolicyAssignmentName1"; - ResourceIdentifier accessPolicyAssignmentResourceId = AccessPolicyAssignmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName); - AccessPolicyAssignmentResource accessPolicyAssignment = client.GetAccessPolicyAssignmentResource(accessPolicyAssignmentResourceId); - - // invoke the operation - AccessPolicyAssignmentResource result = await accessPolicyAssignment.GetAsync(); - - // the variable result is a resource, you could call other operations on this instance as well - // but just for demo, we get its data from this resource instance - AccessPolicyAssignmentData resourceData = result.Data; - // for demo we just print out the id - Console.WriteLine($"Succeeded on id: {resourceData.Id}"); - } - - // RedisEnterpriseAccessPolicyAssignmentDelete - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task Delete_RedisEnterpriseAccessPolicyAssignmentDelete() - { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseAccessPolicyAssignmentDelete.json - // this example is just showing the usage of "AccessPolicyAssignment_Delete" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this AccessPolicyAssignmentResource created on azure - // for more information of creating AccessPolicyAssignmentResource, please refer to the document of AccessPolicyAssignmentResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; - string resourceGroupName = "rg1"; - string clusterName = "cache1"; - string databaseName = "default"; - string accessPolicyAssignmentName = "defaultTestEntraApp1"; - ResourceIdentifier accessPolicyAssignmentResourceId = AccessPolicyAssignmentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName); - AccessPolicyAssignmentResource accessPolicyAssignment = client.GetAccessPolicyAssignmentResource(accessPolicyAssignmentResourceId); - - // invoke the operation - await accessPolicyAssignment.DeleteAsync(WaitUntil.Completed); - - Console.WriteLine($"Succeeded"); - } - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseClusterCollection.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseClusterCollection.cs index 10b12940763b..9e729164fe09 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseClusterCollection.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseClusterCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_RedisEnterpriseClusterCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_RedisEnterpriseCreate() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseCreate.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseCreate.json // this example is just showing the usage of "RedisEnterprise_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -32,7 +32,7 @@ public async Task CreateOrUpdate_RedisEnterpriseCreate() // this example assumes you already have this ResourceGroupResource created on azure // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); @@ -88,7 +88,7 @@ public async Task CreateOrUpdate_RedisEnterpriseCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RedisEnterpriseGet() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseGet.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseGet.json // this example is just showing the usage of "RedisEnterprise_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_RedisEnterpriseGet() // this example assumes you already have this ResourceGroupResource created on azure // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); @@ -122,7 +122,7 @@ public async Task Get_RedisEnterpriseGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RedisEnterpriseGet() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseGet.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseGet.json // this example is just showing the usage of "RedisEnterprise_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task Exists_RedisEnterpriseGet() // this example assumes you already have this ResourceGroupResource created on azure // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); @@ -152,7 +152,7 @@ public async Task Exists_RedisEnterpriseGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_RedisEnterpriseGet() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseGet.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseGet.json // this example is just showing the usage of "RedisEnterprise_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -162,7 +162,7 @@ public async Task GetIfExists_RedisEnterpriseGet() // this example assumes you already have this ResourceGroupResource created on azure // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); @@ -194,7 +194,7 @@ public async Task GetIfExists_RedisEnterpriseGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_RedisEnterpriseListByResourceGroup() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseListByResourceGroup.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseListByResourceGroup.json // this example is just showing the usage of "RedisEnterprise_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -204,7 +204,7 @@ public async Task GetAll_RedisEnterpriseListByResourceGroup() // this example assumes you already have this ResourceGroupResource created on azure // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseClusterResource.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseClusterResource.cs index b5332eb70a27..3bc975f57b10 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseClusterResource.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseClusterResource.cs @@ -21,7 +21,7 @@ public partial class Sample_RedisEnterpriseClusterResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_RedisEnterpriseUpdate() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseUpdate.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseUpdate.json // this example is just showing the usage of "RedisEnterprise_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -31,7 +31,7 @@ public async Task Update_RedisEnterpriseUpdate() // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); @@ -65,7 +65,7 @@ public async Task Update_RedisEnterpriseUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RedisEnterpriseDelete() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDelete.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDelete.json // this example is just showing the usage of "RedisEnterprise_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -75,7 +75,7 @@ public async Task Delete_RedisEnterpriseDelete() // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); @@ -92,7 +92,7 @@ public async Task Delete_RedisEnterpriseDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RedisEnterpriseGet() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseGet.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseGet.json // this example is just showing the usage of "RedisEnterprise_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -102,7 +102,7 @@ public async Task Get_RedisEnterpriseGet() // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); @@ -123,7 +123,7 @@ public async Task Get_RedisEnterpriseGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRedisEnterpriseClusters_RedisEnterpriseList() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseList.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseList.json // this example is just showing the usage of "RedisEnterprise_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task GetRedisEnterpriseClusters_RedisEnterpriseList() // this example assumes you already have this SubscriptionResource created on azure // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); @@ -155,7 +155,7 @@ public async Task GetRedisEnterpriseClusters_RedisEnterpriseList() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetPrivateLinkResourcesByCluster_RedisEnterpriseListPrivateLinkResources() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseListPrivateLinkResources.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseListPrivateLinkResources.json // this example is just showing the usage of "PrivateLinkResources_ListByCluster" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -165,7 +165,7 @@ public async Task GetPrivateLinkResourcesByCluster_RedisEnterpriseListPrivateLin // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseDatabaseCollection.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseDatabaseCollection.cs index 8394b865f078..5e0212e4392d 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseDatabaseCollection.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseDatabaseCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_RedisEnterpriseDatabaseCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_RedisEnterpriseDatabasesListByCluster() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesListByCluster.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesListByCluster.json // this example is just showing the usage of "Databases_ListByCluster" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -30,7 +30,7 @@ public async Task GetAll_RedisEnterpriseDatabasesListByCluster() // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); @@ -57,7 +57,7 @@ public async Task GetAll_RedisEnterpriseDatabasesListByCluster() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_RedisEnterpriseDatabasesCreate() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesCreate.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesCreate.json // this example is just showing the usage of "Databases_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -67,7 +67,7 @@ public async Task CreateOrUpdate_RedisEnterpriseDatabasesCreate() // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); @@ -99,8 +99,6 @@ public async Task CreateOrUpdate_RedisEnterpriseDatabasesCreate() Args = "RETENTION_POLICY 20", },new RedisEnterpriseModule("RediSearch") }, - DeferUpgrade = DeferUpgradeSetting.NotDeferred, - AccessKeysAuthentication = AccessKeysAuthentication.Enabled, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, databaseName, data); RedisEnterpriseDatabaseResource result = lro.Value; @@ -117,7 +115,7 @@ public async Task CreateOrUpdate_RedisEnterpriseDatabasesCreate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_RedisEnterpriseDatabasesCreateWithActiveGeoReplication() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesCreateWithGeoReplication.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesCreateWithGeoReplication.json // this example is just showing the usage of "Databases_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -127,7 +125,7 @@ public async Task CreateOrUpdate_RedisEnterpriseDatabasesCreateWithActiveGeoRepl // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid1"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); @@ -151,14 +149,13 @@ public async Task CreateOrUpdate_RedisEnterpriseDatabasesCreateWithActiveGeoRepl { new RedisEnterpriseLinkedDatabase() { -Id = new ResourceIdentifier("/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"), +Id = new ResourceIdentifier("/subscriptions/subid1/resourceGroups/rg1/providers/Microsoft.Cache/redisEnterprise/cache1/databases/default"), },new RedisEnterpriseLinkedDatabase() { -Id = new ResourceIdentifier("/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8e/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"), +Id = new ResourceIdentifier("/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default"), } }, }, - AccessKeysAuthentication = AccessKeysAuthentication.Enabled, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, databaseName, data); RedisEnterpriseDatabaseResource result = lro.Value; @@ -175,7 +172,7 @@ public async Task CreateOrUpdate_RedisEnterpriseDatabasesCreateWithActiveGeoRepl [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RedisEnterpriseDatabasesGet() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesGet.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesGet.json // this example is just showing the usage of "Databases_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -185,7 +182,7 @@ public async Task Get_RedisEnterpriseDatabasesGet() // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); @@ -210,7 +207,7 @@ public async Task Get_RedisEnterpriseDatabasesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RedisEnterpriseDatabasesGet() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesGet.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesGet.json // this example is just showing the usage of "Databases_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -220,7 +217,7 @@ public async Task Exists_RedisEnterpriseDatabasesGet() // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); @@ -241,7 +238,7 @@ public async Task Exists_RedisEnterpriseDatabasesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_RedisEnterpriseDatabasesGet() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesGet.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesGet.json // this example is just showing the usage of "Databases_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -251,7 +248,7 @@ public async Task GetIfExists_RedisEnterpriseDatabasesGet() // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseDatabaseResource.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseDatabaseResource.cs index 134b11af77b0..0adcdeee9bb3 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseDatabaseResource.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterpriseDatabaseResource.cs @@ -20,7 +20,7 @@ public partial class Sample_RedisEnterpriseDatabaseResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_RedisEnterpriseDatabasesUpdate() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesUpdate.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesUpdate.json // this example is just showing the usage of "Databases_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -30,7 +30,7 @@ public async Task Update_RedisEnterpriseDatabasesUpdate() // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; string databaseName = "default"; @@ -47,7 +47,6 @@ public async Task Update_RedisEnterpriseDatabasesUpdate() IsRdbEnabled = true, RdbFrequency = PersistenceSettingRdbFrequency.TwelveHours, }, - AccessKeysAuthentication = AccessKeysAuthentication.Enabled, }; ArmOperation lro = await redisEnterpriseDatabase.UpdateAsync(WaitUntil.Completed, patch); RedisEnterpriseDatabaseResource result = lro.Value; @@ -64,7 +63,7 @@ public async Task Update_RedisEnterpriseDatabasesUpdate() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RedisEnterpriseDatabasesGet() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesGet.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesGet.json // this example is just showing the usage of "Databases_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -74,7 +73,7 @@ public async Task Get_RedisEnterpriseDatabasesGet() // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; string databaseName = "default"; @@ -96,7 +95,7 @@ public async Task Get_RedisEnterpriseDatabasesGet() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RedisEnterpriseDatabasesDelete() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesDelete.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesDelete.json // this example is just showing the usage of "Databases_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -106,7 +105,7 @@ public async Task Delete_RedisEnterpriseDatabasesDelete() // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; string databaseName = "db1"; @@ -124,7 +123,7 @@ public async Task Delete_RedisEnterpriseDatabasesDelete() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetKeys_RedisEnterpriseDatabasesListKeys() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesListKeys.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesListKeys.json // this example is just showing the usage of "Databases_ListKeys" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -134,7 +133,7 @@ public async Task GetKeys_RedisEnterpriseDatabasesListKeys() // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; string databaseName = "default"; @@ -152,7 +151,7 @@ public async Task GetKeys_RedisEnterpriseDatabasesListKeys() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task RegenerateKey_RedisEnterpriseDatabasesRegenerateKey() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesRegenerateKey.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesRegenerateKey.json // this example is just showing the usage of "Databases_RegenerateKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -162,7 +161,7 @@ public async Task RegenerateKey_RedisEnterpriseDatabasesRegenerateKey() // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; string databaseName = "default"; @@ -182,7 +181,7 @@ public async Task RegenerateKey_RedisEnterpriseDatabasesRegenerateKey() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Import_RedisEnterpriseDatabasesImport() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesImport.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesImport.json // this example is just showing the usage of "Databases_Import" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -192,7 +191,7 @@ public async Task Import_RedisEnterpriseDatabasesImport() // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; string databaseName = "default"; @@ -214,7 +213,7 @@ public async Task Import_RedisEnterpriseDatabasesImport() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Export_RedisEnterpriseDatabasesExport() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesExport.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesExport.json // this example is just showing the usage of "Databases_Export" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -224,7 +223,7 @@ public async Task Export_RedisEnterpriseDatabasesExport() // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; string databaseName = "default"; @@ -243,7 +242,7 @@ public async Task Export_RedisEnterpriseDatabasesExport() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ForceUnlink_HowToUnlinkADatabaseDuringARegionalOutage() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesForceUnlink.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesForceUnlink.json // this example is just showing the usage of "Databases_ForceUnlink" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -253,7 +252,7 @@ public async Task ForceUnlink_HowToUnlinkADatabaseDuringARegionalOutage() // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; string databaseName = "default"; @@ -263,7 +262,7 @@ public async Task ForceUnlink_HowToUnlinkADatabaseDuringARegionalOutage() // invoke the operation ForceUnlinkRedisEnterpriseDatabaseContent content = new ForceUnlinkRedisEnterpriseDatabaseContent(new ResourceIdentifier[] { -new ResourceIdentifier("/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default") +new ResourceIdentifier("/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default") }); await redisEnterpriseDatabase.ForceUnlinkAsync(WaitUntil.Completed, content); @@ -275,7 +274,7 @@ public async Task ForceUnlink_HowToUnlinkADatabaseDuringARegionalOutage() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task ForceLinkToReplicationGroup_HowToRelinkADatabaseAfterARegionalOutage() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesForceLink.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesForceLink.json // this example is just showing the usage of "Databases_ForceLinkToReplicationGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -313,7 +312,7 @@ public async Task ForceLinkToReplicationGroup_HowToRelinkADatabaseAfterARegional [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Flush_HowToFlushAllTheKeysInTheDatabase() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesFlush.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDatabasesFlush.json // this example is just showing the usage of "Databases_Flush" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -323,7 +322,7 @@ public async Task Flush_HowToFlushAllTheKeysInTheDatabase() // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; string databaseName = "default"; @@ -335,40 +334,12 @@ public async Task Flush_HowToFlushAllTheKeysInTheDatabase() { Ids = { -new ResourceIdentifier("/subscriptions/e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default") +new ResourceIdentifier("/subscriptions/subid2/resourceGroups/rg2/providers/Microsoft.Cache/redisEnterprise/cache2/databases/default") }, }; await redisEnterpriseDatabase.FlushAsync(WaitUntil.Completed, content); Console.WriteLine($"Succeeded"); } - - // How to upgrade your database Redis version - [NUnit.Framework.Test] - [NUnit.Framework.Ignore("Only verifying that the sample builds")] - public async Task UpgradeDBRedisVersion_HowToUpgradeYourDatabaseRedisVersion() - { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDatabasesUpgradeDBRedisVersion.json - // this example is just showing the usage of "Databases_UpgradeDBRedisVersion" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this RedisEnterpriseDatabaseResource created on azure - // for more information of creating RedisEnterpriseDatabaseResource, please refer to the document of RedisEnterpriseDatabaseResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; - string resourceGroupName = "rg1"; - string clusterName = "cache1"; - string databaseName = "default"; - ResourceIdentifier redisEnterpriseDatabaseResourceId = RedisEnterpriseDatabaseResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName, databaseName); - RedisEnterpriseDatabaseResource redisEnterpriseDatabase = client.GetRedisEnterpriseDatabaseResource(redisEnterpriseDatabaseResourceId); - - // invoke the operation - await redisEnterpriseDatabase.UpgradeDBRedisVersionAsync(WaitUntil.Completed); - - Console.WriteLine($"Succeeded"); - } } } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterprisePrivateEndpointConnectionCollection.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterprisePrivateEndpointConnectionCollection.cs index 4e685b508bee..56042dc1802d 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterprisePrivateEndpointConnectionCollection.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterprisePrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_RedisEnterprisePrivateEndpointConnectionCollection [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetAll_RedisEnterpriseListPrivateEndpointConnections() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseListPrivateEndpointConnections.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseListPrivateEndpointConnections.json // this example is just showing the usage of "PrivateEndpointConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -30,7 +30,7 @@ public async Task GetAll_RedisEnterpriseListPrivateEndpointConnections() // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); @@ -57,7 +57,7 @@ public async Task GetAll_RedisEnterpriseListPrivateEndpointConnections() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RedisEnterpriseGetPrivateEndpointConnection() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseGetPrivateEndpointConnection.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -67,7 +67,7 @@ public async Task Get_RedisEnterpriseGetPrivateEndpointConnection() // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); @@ -92,7 +92,7 @@ public async Task Get_RedisEnterpriseGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Exists_RedisEnterpriseGetPrivateEndpointConnection() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseGetPrivateEndpointConnection.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -102,7 +102,7 @@ public async Task Exists_RedisEnterpriseGetPrivateEndpointConnection() // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); @@ -123,7 +123,7 @@ public async Task Exists_RedisEnterpriseGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetIfExists_RedisEnterpriseGetPrivateEndpointConnection() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseGetPrivateEndpointConnection.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -133,7 +133,7 @@ public async Task GetIfExists_RedisEnterpriseGetPrivateEndpointConnection() // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); @@ -166,7 +166,7 @@ public async Task GetIfExists_RedisEnterpriseGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task CreateOrUpdate_RedisEnterprisePutPrivateEndpointConnection() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterprisePutPrivateEndpointConnection.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterprisePutPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -176,7 +176,7 @@ public async Task CreateOrUpdate_RedisEnterprisePutPrivateEndpointConnection() // this example assumes you already have this RedisEnterpriseClusterResource created on azure // for more information of creating RedisEnterpriseClusterResource, please refer to the document of RedisEnterpriseClusterResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; ResourceIdentifier redisEnterpriseClusterResourceId = RedisEnterpriseClusterResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, clusterName); diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterprisePrivateEndpointConnectionResource.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterprisePrivateEndpointConnectionResource.cs index b7a2d244001a..28d795b4a47d 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterprisePrivateEndpointConnectionResource.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_RedisEnterprisePrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_RedisEnterprisePrivateEndpointConnectionResource [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Get_RedisEnterpriseGetPrivateEndpointConnection() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseGetPrivateEndpointConnection.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -30,7 +30,7 @@ public async Task Get_RedisEnterpriseGetPrivateEndpointConnection() // this example assumes you already have this RedisEnterprisePrivateEndpointConnectionResource created on azure // for more information of creating RedisEnterprisePrivateEndpointConnectionResource, please refer to the document of RedisEnterprisePrivateEndpointConnectionResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; string privateEndpointConnectionName = "pectest01"; @@ -52,7 +52,7 @@ public async Task Get_RedisEnterpriseGetPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Update_RedisEnterprisePutPrivateEndpointConnection() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterprisePutPrivateEndpointConnection.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterprisePutPrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -62,7 +62,7 @@ public async Task Update_RedisEnterprisePutPrivateEndpointConnection() // this example assumes you already have this RedisEnterprisePrivateEndpointConnectionResource created on azure // for more information of creating RedisEnterprisePrivateEndpointConnectionResource, please refer to the document of RedisEnterprisePrivateEndpointConnectionResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; string privateEndpointConnectionName = "pectest01"; @@ -93,7 +93,7 @@ public async Task Update_RedisEnterprisePutPrivateEndpointConnection() [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task Delete_RedisEnterpriseDeletePrivateEndpointConnection() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/RedisEnterpriseDeletePrivateEndpointConnection.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/RedisEnterpriseDeletePrivateEndpointConnection.json // this example is just showing the usage of "PrivateEndpointConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -103,7 +103,7 @@ public async Task Delete_RedisEnterpriseDeletePrivateEndpointConnection() // this example assumes you already have this RedisEnterprisePrivateEndpointConnectionResource created on azure // for more information of creating RedisEnterprisePrivateEndpointConnectionResource, please refer to the document of RedisEnterprisePrivateEndpointConnectionResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; string resourceGroupName = "rg1"; string clusterName = "cache1"; string privateEndpointConnectionName = "pectest01"; diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index 743d69141769..b294b1b9c934 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -21,7 +21,7 @@ public partial class Sample_SubscriptionResourceExtensions [NUnit.Framework.Ignore("Only verifying that the sample builds")] public async Task GetRedisEnterpriseOperationsStatus_OperationsStatusGet() { - // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2024-09-01-preview/examples/OperationsStatusGet.json + // Generated from example definition: specification/redisenterprise/resource-manager/Microsoft.Cache/stable/2024-10-01/examples/OperationsStatusGet.json // this example is just showing the usage of "OperationsStatus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -31,7 +31,7 @@ public async Task GetRedisEnterpriseOperationsStatus_OperationsStatusGet() // this example assumes you already have this SubscriptionResource created on azure // for more information of creating SubscriptionResource, please refer to the document of SubscriptionResource - string subscriptionId = "e7b5a9d2-6b6a-4d2f-9143-20d9a10f5b8f"; + string subscriptionId = "subid"; ResourceIdentifier subscriptionResourceId = SubscriptionResource.CreateResourceIdentifier(subscriptionId); SubscriptionResource subscriptionResource = client.GetSubscriptionResource(subscriptionResourceId); diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentCollection.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentCollection.cs deleted file mode 100644 index 78f01dc156bd..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentCollection.cs +++ /dev/null @@ -1,493 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Autorest.CSharp.Core; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.RedisEnterprise -{ - /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get an instance call the GetAccessPolicyAssignments method from an instance of . - /// - public partial class AccessPolicyAssignmentCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _accessPolicyAssignmentClientDiagnostics; - private readonly AccessPolicyAssignmentRestOperations _accessPolicyAssignmentRestClient; - - /// Initializes a new instance of the class for mocking. - protected AccessPolicyAssignmentCollection() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the parent resource that is the target of operations. - internal AccessPolicyAssignmentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _accessPolicyAssignmentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RedisEnterprise", AccessPolicyAssignmentResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(AccessPolicyAssignmentResource.ResourceType, out string accessPolicyAssignmentApiVersion); - _accessPolicyAssignmentRestClient = new AccessPolicyAssignmentRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, accessPolicyAssignmentApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != RedisEnterpriseDatabaseResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, RedisEnterpriseDatabaseResource.ResourceType), nameof(id)); - } - - /// - /// Creates/Updates a particular access policy assignment for a database - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_CreateUpdate - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// 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. - /// The name of the Redis Enterprise database access policy assignment. - /// Parameters supplied to the create access policy assignment for database. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string accessPolicyAssignmentName, AccessPolicyAssignmentData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(accessPolicyAssignmentName, nameof(accessPolicyAssignmentName)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _accessPolicyAssignmentClientDiagnostics.CreateScope("AccessPolicyAssignmentCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = await _accessPolicyAssignmentRestClient.CreateUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, accessPolicyAssignmentName, data, cancellationToken).ConfigureAwait(false); - var operation = new RedisEnterpriseArmOperation(new AccessPolicyAssignmentOperationSource(Client), _accessPolicyAssignmentClientDiagnostics, Pipeline, _accessPolicyAssignmentRestClient.CreateCreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, accessPolicyAssignmentName, data).Request, response, OperationFinalStateVia.OriginalUri); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Creates/Updates a particular access policy assignment for a database - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_CreateUpdate - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// 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. - /// The name of the Redis Enterprise database access policy assignment. - /// Parameters supplied to the create access policy assignment for database. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string accessPolicyAssignmentName, AccessPolicyAssignmentData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(accessPolicyAssignmentName, nameof(accessPolicyAssignmentName)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _accessPolicyAssignmentClientDiagnostics.CreateScope("AccessPolicyAssignmentCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = _accessPolicyAssignmentRestClient.CreateUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, accessPolicyAssignmentName, data, cancellationToken); - var operation = new RedisEnterpriseArmOperation(new AccessPolicyAssignmentOperationSource(Client), _accessPolicyAssignmentClientDiagnostics, Pipeline, _accessPolicyAssignmentRestClient.CreateCreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, accessPolicyAssignmentName, data).Request, response, OperationFinalStateVia.OriginalUri); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets information about access policy assignment for database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_Get - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the Redis Enterprise database access policy assignment. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetAsync(string accessPolicyAssignmentName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(accessPolicyAssignmentName, nameof(accessPolicyAssignmentName)); - - using var scope = _accessPolicyAssignmentClientDiagnostics.CreateScope("AccessPolicyAssignmentCollection.Get"); - scope.Start(); - try - { - var response = await _accessPolicyAssignmentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, accessPolicyAssignmentName, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AccessPolicyAssignmentResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets information about access policy assignment for database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_Get - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the Redis Enterprise database access policy assignment. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Get(string accessPolicyAssignmentName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(accessPolicyAssignmentName, nameof(accessPolicyAssignmentName)); - - using var scope = _accessPolicyAssignmentClientDiagnostics.CreateScope("AccessPolicyAssignmentCollection.Get"); - scope.Start(); - try - { - var response = _accessPolicyAssignmentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, accessPolicyAssignmentName, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AccessPolicyAssignmentResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets all access policy assignments.. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments - /// - /// - /// Operation Id - /// AccessPolicyAssignment_List - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _accessPolicyAssignmentRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _accessPolicyAssignmentRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new AccessPolicyAssignmentResource(Client, AccessPolicyAssignmentData.DeserializeAccessPolicyAssignmentData(e)), _accessPolicyAssignmentClientDiagnostics, Pipeline, "AccessPolicyAssignmentCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Gets all access policy assignments.. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments - /// - /// - /// Operation Id - /// AccessPolicyAssignment_List - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _accessPolicyAssignmentRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _accessPolicyAssignmentRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new AccessPolicyAssignmentResource(Client, AccessPolicyAssignmentData.DeserializeAccessPolicyAssignmentData(e)), _accessPolicyAssignmentClientDiagnostics, Pipeline, "AccessPolicyAssignmentCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_Get - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the Redis Enterprise database access policy assignment. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> ExistsAsync(string accessPolicyAssignmentName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(accessPolicyAssignmentName, nameof(accessPolicyAssignmentName)); - - using var scope = _accessPolicyAssignmentClientDiagnostics.CreateScope("AccessPolicyAssignmentCollection.Exists"); - scope.Start(); - try - { - var response = await _accessPolicyAssignmentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, accessPolicyAssignmentName, cancellationToken: cancellationToken).ConfigureAwait(false); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_Get - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the Redis Enterprise database access policy assignment. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual Response Exists(string accessPolicyAssignmentName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(accessPolicyAssignmentName, nameof(accessPolicyAssignmentName)); - - using var scope = _accessPolicyAssignmentClientDiagnostics.CreateScope("AccessPolicyAssignmentCollection.Exists"); - scope.Start(); - try - { - var response = _accessPolicyAssignmentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, accessPolicyAssignmentName, cancellationToken: cancellationToken); - return Response.FromValue(response.Value != null, response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_Get - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the Redis Enterprise database access policy assignment. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual async Task> GetIfExistsAsync(string accessPolicyAssignmentName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(accessPolicyAssignmentName, nameof(accessPolicyAssignmentName)); - - using var scope = _accessPolicyAssignmentClientDiagnostics.CreateScope("AccessPolicyAssignmentCollection.GetIfExists"); - scope.Start(); - try - { - var response = await _accessPolicyAssignmentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, accessPolicyAssignmentName, cancellationToken: cancellationToken).ConfigureAwait(false); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new AccessPolicyAssignmentResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_Get - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the Redis Enterprise database access policy assignment. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - public virtual NullableResponse GetIfExists(string accessPolicyAssignmentName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(accessPolicyAssignmentName, nameof(accessPolicyAssignmentName)); - - using var scope = _accessPolicyAssignmentClientDiagnostics.CreateScope("AccessPolicyAssignmentCollection.GetIfExists"); - scope.Start(); - try - { - var response = _accessPolicyAssignmentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, accessPolicyAssignmentName, cancellationToken: cancellationToken); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new AccessPolicyAssignmentResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IEnumerator IEnumerable.GetEnumerator() - { - return GetAll().GetEnumerator(); - } - - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) - { - return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); - } - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentData.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentData.Serialization.cs deleted file mode 100644 index 609b4e0b8829..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentData.Serialization.cs +++ /dev/null @@ -1,330 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.RedisEnterprise.Models; - -namespace Azure.ResourceManager.RedisEnterprise -{ - public partial class AccessPolicyAssignmentData : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AccessPolicyAssignmentData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - writer.WritePropertyName("properties"u8); - writer.WriteStartObject(); - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToString()); - } - if (Optional.IsDefined(AccessPolicyName)) - { - writer.WritePropertyName("accessPolicyName"u8); - writer.WriteStringValue(AccessPolicyName); - } - if (Optional.IsDefined(User)) - { - writer.WritePropertyName("user"u8); - writer.WriteObjectValue(User, options); - } - writer.WriteEndObject(); - } - - AccessPolicyAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AccessPolicyAssignmentData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAccessPolicyAssignmentData(document.RootElement, options); - } - - internal static AccessPolicyAssignmentData DeserializeAccessPolicyAssignmentData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - RedisEnterpriseProvisioningStatus? provisioningState = default; - string accessPolicyName = default; - AccessPolicyAssignmentPropertiesUser user = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); - continue; - } - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - foreach (var property0 in property.Value.EnumerateObject()) - { - if (property0.NameEquals("provisioningState"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = new RedisEnterpriseProvisioningStatus(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("accessPolicyName"u8)) - { - accessPolicyName = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("user"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - user = AccessPolicyAssignmentPropertiesUser.DeserializeAccessPolicyAssignmentPropertiesUser(property0.Value, options); - continue; - } - } - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new AccessPolicyAssignmentData( - id, - name, - type, - systemData, - provisioningState, - accessPolicyName, - user, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" id: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Id)) - { - builder.Append(" id: "); - builder.AppendLine($"'{Id.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" systemData: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SystemData)) - { - builder.Append(" systemData: "); - builder.AppendLine($"'{SystemData.ToString()}'"); - } - } - - builder.Append(" properties:"); - builder.AppendLine(" {"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" provisioningState: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ProvisioningState)) - { - builder.Append(" provisioningState: "); - builder.AppendLine($"'{ProvisioningState.Value.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AccessPolicyName), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" accessPolicyName: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(AccessPolicyName)) - { - builder.Append(" accessPolicyName: "); - if (AccessPolicyName.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{AccessPolicyName}'''"); - } - else - { - builder.AppendLine($"'{AccessPolicyName}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("UserObjectId", out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" user: "); - builder.AppendLine("{"); - builder.AppendLine(" user: {"); - builder.Append(" objectId: "); - builder.AppendLine(propertyOverride); - builder.AppendLine(" }"); - builder.AppendLine(" }"); - } - else - { - if (Optional.IsDefined(User)) - { - builder.Append(" user: "); - BicepSerializationHelpers.AppendChildObject(builder, User, options, 4, false, " user: "); - } - } - - builder.AppendLine(" }"); - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(AccessPolicyAssignmentData)} does not support writing '{options.Format}' format."); - } - } - - AccessPolicyAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeAccessPolicyAssignmentData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(AccessPolicyAssignmentData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentData.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentData.cs deleted file mode 100644 index e14867016d0c..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentData.cs +++ /dev/null @@ -1,97 +0,0 @@ -// 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; -using Azure.ResourceManager.RedisEnterprise.Models; - -namespace Azure.ResourceManager.RedisEnterprise -{ - /// - /// A class representing the AccessPolicyAssignment data model. - /// Describes the access policy assignment of Redis Enterprise database - /// - public partial class AccessPolicyAssignmentData : ResourceData - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public AccessPolicyAssignmentData() - { - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Current provisioning status of the access policy assignment. - /// Name of access policy under specific access policy assignment. Only "default" policy is supported for now. - /// The user associated with the access policy. - /// Keeps track of any properties unknown to the library. - internal AccessPolicyAssignmentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, RedisEnterpriseProvisioningStatus? provisioningState, string accessPolicyName, AccessPolicyAssignmentPropertiesUser user, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) - { - ProvisioningState = provisioningState; - AccessPolicyName = accessPolicyName; - User = user; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Current provisioning status of the access policy assignment. - [WirePath("properties.provisioningState")] - public RedisEnterpriseProvisioningStatus? ProvisioningState { get; } - /// Name of access policy under specific access policy assignment. Only "default" policy is supported for now. - [WirePath("properties.accessPolicyName")] - public string AccessPolicyName { get; set; } - /// The user associated with the access policy. - internal AccessPolicyAssignmentPropertiesUser User { get; set; } - /// The object ID of the user. - [WirePath("properties.user.objectId")] - public Guid? UserObjectId - { - get => User is null ? default : User.ObjectId; - set - { - if (User is null) - User = new AccessPolicyAssignmentPropertiesUser(); - User.ObjectId = value; - } - } - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentResource.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentResource.Serialization.cs deleted file mode 100644 index 7e0713486b87..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentResource.Serialization.cs +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Text.Json; - -namespace Azure.ResourceManager.RedisEnterprise -{ - public partial class AccessPolicyAssignmentResource : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - AccessPolicyAssignmentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); - - AccessPolicyAssignmentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentResource.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentResource.cs deleted file mode 100644 index f6d4926a44d8..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/AccessPolicyAssignmentResource.cs +++ /dev/null @@ -1,348 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.RedisEnterprise -{ - /// - /// A Class representing an AccessPolicyAssignment along with the instance operations that can be performed on it. - /// If you have a you can construct an - /// from an instance of using the GetAccessPolicyAssignmentResource method. - /// Otherwise you can get one from its parent resource using the GetAccessPolicyAssignment method. - /// - public partial class AccessPolicyAssignmentResource : ArmResource - { - /// Generate the resource identifier of a instance. - /// The subscriptionId. - /// The resourceGroupName. - /// The clusterName. - /// The databaseName. - /// The accessPolicyAssignmentName. - public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string accessPolicyAssignmentName) - { - var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName}"; - return new ResourceIdentifier(resourceId); - } - - private readonly ClientDiagnostics _accessPolicyAssignmentClientDiagnostics; - private readonly AccessPolicyAssignmentRestOperations _accessPolicyAssignmentRestClient; - private readonly AccessPolicyAssignmentData _data; - - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.Cache/redisEnterprise/databases/accessPolicyAssignments"; - - /// Initializes a new instance of the class for mocking. - protected AccessPolicyAssignmentResource() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal AccessPolicyAssignmentResource(ArmClient client, AccessPolicyAssignmentData data) : this(client, data.Id) - { - HasData = true; - _data = data; - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The identifier of the resource that is the target of operations. - internal AccessPolicyAssignmentResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _accessPolicyAssignmentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.RedisEnterprise", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string accessPolicyAssignmentApiVersion); - _accessPolicyAssignmentRestClient = new AccessPolicyAssignmentRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, accessPolicyAssignmentApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - /// Gets whether or not the current instance has data. - public virtual bool HasData { get; } - - /// Gets the data representing this Feature. - /// Throws if there is no data loaded in the current instance. - public virtual AccessPolicyAssignmentData Data - { - get - { - if (!HasData) - throw new InvalidOperationException("The current instance does not have data, you must call Get first."); - return _data; - } - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); - } - - /// - /// Gets information about access policy assignment for database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_Get - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) - { - using var scope = _accessPolicyAssignmentClientDiagnostics.CreateScope("AccessPolicyAssignmentResource.Get"); - scope.Start(); - try - { - var response = await _accessPolicyAssignmentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AccessPolicyAssignmentResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets information about access policy assignment for database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_Get - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) - { - using var scope = _accessPolicyAssignmentClientDiagnostics.CreateScope("AccessPolicyAssignmentResource.Get"); - scope.Start(); - try - { - var response = _accessPolicyAssignmentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new AccessPolicyAssignmentResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Deletes a single access policy assignment. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_Delete - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// 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. - /// The cancellation token to use. - public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) - { - using var scope = _accessPolicyAssignmentClientDiagnostics.CreateScope("AccessPolicyAssignmentResource.Delete"); - scope.Start(); - try - { - var response = await _accessPolicyAssignmentRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RedisEnterpriseArmOperation(_accessPolicyAssignmentClientDiagnostics, Pipeline, _accessPolicyAssignmentRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Deletes a single access policy assignment. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_Delete - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// 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. - /// The cancellation token to use. - public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) - { - using var scope = _accessPolicyAssignmentClientDiagnostics.CreateScope("AccessPolicyAssignmentResource.Delete"); - scope.Start(); - try - { - var response = _accessPolicyAssignmentRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RedisEnterpriseArmOperation(_accessPolicyAssignmentClientDiagnostics, Pipeline, _accessPolicyAssignmentRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.AzureAsyncOperation); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletionResponse(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Creates/Updates a particular access policy assignment for a database - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_CreateUpdate - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// 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. - /// Parameters supplied to the create access policy assignment for database. - /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, AccessPolicyAssignmentData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _accessPolicyAssignmentClientDiagnostics.CreateScope("AccessPolicyAssignmentResource.Update"); - scope.Start(); - try - { - var response = await _accessPolicyAssignmentRestClient.CreateUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); - var operation = new RedisEnterpriseArmOperation(new AccessPolicyAssignmentOperationSource(Client), _accessPolicyAssignmentClientDiagnostics, Pipeline, _accessPolicyAssignmentRestClient.CreateCreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Creates/Updates a particular access policy assignment for a database - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_CreateUpdate - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// 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. - /// Parameters supplied to the create access policy assignment for database. - /// The cancellation token to use. - /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, AccessPolicyAssignmentData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _accessPolicyAssignmentClientDiagnostics.CreateScope("AccessPolicyAssignmentResource.Update"); - scope.Start(); - try - { - var response = _accessPolicyAssignmentRestClient.CreateUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); - var operation = new RedisEnterpriseArmOperation(new AccessPolicyAssignmentOperationSource(Client), _accessPolicyAssignmentClientDiagnostics, Pipeline, _accessPolicyAssignmentRestClient.CreateCreateUpdateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data).Request, response, OperationFinalStateVia.OriginalUri); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/ArmRedisEnterpriseModelFactory.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/ArmRedisEnterpriseModelFactory.cs index c379cb6494ef..956598b7a59a 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/ArmRedisEnterpriseModelFactory.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/ArmRedisEnterpriseModelFactory.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using System.ComponentModel; using System.Linq; using Azure.Core; using Azure.ResourceManager.Models; @@ -47,17 +46,15 @@ public static RedisEnterpriseOperationStatus RedisEnterpriseOperationStatus(Reso /// The SKU to create, which affects price, performance, and features. /// The Availability Zones where this cluster will be deployed. /// The identity of the resource. - /// Enabled by default. If highAvailability is disabled, the data set is not replicated. This affects the availability SLA, and increases the risk of data loss. - /// The minimum TLS version for the cluster to support, e.g. '1.2'. Newer versions can be added in the future. Note that TLS 1.0 and TLS 1.1 are now completely obsolete -- you cannot use them. They are mentioned only for the sake of consistency with old API versions. + /// 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. - /// Explains the current redundancy strategy of the cluster, which affects the expected SLA. /// Current resource status of the cluster. /// Version of redis the cluster supports, e.g. '6'. - /// List of private endpoint connections associated with the specified Redis Enterprise cluster. + /// List of private endpoint connections associated with the specified RedisEnterprise cluster. /// A new instance for mocking. - public static RedisEnterpriseClusterData RedisEnterpriseClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, RedisEnterpriseSku sku = null, IEnumerable zones = null, ManagedServiceIdentity identity = null, RedisEnterpriseHighAvailability? highAvailability = null, RedisEnterpriseTlsVersion? minimumTlsVersion = null, RedisEnterpriseCustomerManagedKeyEncryption customerManagedKeyEncryption = null, string hostName = null, RedisEnterpriseProvisioningStatus? provisioningState = null, RedisEnterpriseRedundancyMode? redundancyMode = null, RedisEnterpriseClusterResourceState? resourceState = null, string redisVersion = null, IEnumerable privateEndpointConnections = null) + public static RedisEnterpriseClusterData RedisEnterpriseClusterData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, RedisEnterpriseSku sku = null, IEnumerable zones = null, ManagedServiceIdentity identity = null, RedisEnterpriseTlsVersion? minimumTlsVersion = null, RedisEnterpriseCustomerManagedKeyEncryption customerManagedKeyEncryption = null, string hostName = null, RedisEnterpriseProvisioningStatus? provisioningState = null, RedisEnterpriseClusterResourceState? resourceState = null, string redisVersion = null, IEnumerable privateEndpointConnections = null) { tags ??= new Dictionary(); zones ??= new List(); @@ -73,12 +70,10 @@ public static RedisEnterpriseClusterData RedisEnterpriseClusterData(ResourceIden sku, zones?.ToList(), identity, - highAvailability, minimumTlsVersion, customerManagedKeyEncryption != null ? new ClusterPropertiesEncryption(customerManagedKeyEncryption, serializedAdditionalRawData: null) : null, hostName, provisioningState, - redundancyMode, resourceState, redisVersion, privateEndpointConnections?.ToList(), @@ -111,17 +106,15 @@ public static RedisEnterprisePrivateEndpointConnectionData RedisEnterprisePrivat /// The SKU to create, which affects price, performance, and features. /// The identity of the resource. /// Resource tags. - /// Enabled by default. If highAvailability is disabled, the data set is not replicated. This affects the availability SLA, and increases the risk of data loss. - /// The minimum TLS version for the cluster to support, e.g. '1.2'. Newer versions can be added in the future. Note that TLS 1.0 and TLS 1.1 are now completely obsolete -- you cannot use them. They are mentioned only for the sake of consistency with old API versions. + /// 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. - /// Explains the current redundancy strategy of the cluster, which affects the expected SLA. /// Current resource status of the cluster. /// Version of redis the cluster supports, e.g. '6'. - /// List of private endpoint connections associated with the specified Redis Enterprise cluster. + /// List of private endpoint connections associated with the specified RedisEnterprise cluster. /// A new instance for mocking. - public static RedisEnterpriseClusterPatch RedisEnterpriseClusterPatch(RedisEnterpriseSku sku = null, ManagedServiceIdentity identity = null, IDictionary tags = null, RedisEnterpriseHighAvailability? highAvailability = null, RedisEnterpriseTlsVersion? minimumTlsVersion = null, RedisEnterpriseCustomerManagedKeyEncryption customerManagedKeyEncryption = null, string hostName = null, RedisEnterpriseProvisioningStatus? provisioningState = null, RedisEnterpriseRedundancyMode? redundancyMode = null, RedisEnterpriseClusterResourceState? resourceState = null, string redisVersion = null, IEnumerable privateEndpointConnections = null) + public static RedisEnterpriseClusterPatch RedisEnterpriseClusterPatch(RedisEnterpriseSku sku = null, ManagedServiceIdentity identity = null, IDictionary tags = null, RedisEnterpriseTlsVersion? minimumTlsVersion = null, RedisEnterpriseCustomerManagedKeyEncryption customerManagedKeyEncryption = null, string hostName = null, RedisEnterpriseProvisioningStatus? provisioningState = null, RedisEnterpriseClusterResourceState? resourceState = null, string redisVersion = null, IEnumerable privateEndpointConnections = null) { tags ??= new Dictionary(); privateEndpointConnections ??= new List(); @@ -130,12 +123,10 @@ public static RedisEnterpriseClusterPatch RedisEnterpriseClusterPatch(RedisEnter sku, identity, tags, - highAvailability, minimumTlsVersion, customerManagedKeyEncryption != null ? new ClusterPropertiesEncryption(customerManagedKeyEncryption, serializedAdditionalRawData: null) : null, hostName, provisioningState, - redundancyMode, resourceState, redisVersion, privateEndpointConnections?.ToList(), @@ -151,16 +142,13 @@ public static RedisEnterpriseClusterPatch RedisEnterpriseClusterPatch(RedisEnter /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. /// Current provisioning status of the database. /// Current resource status of the database. - /// Clustering policy - default is OSSCluster. This property must be chosen at create time, and cannot be changed without deleting the database. + /// Clustering policy - default is OSSCluster. Specified at create time. /// Redis eviction policy - default is VolatileLRU. /// Persistence settings. /// Optional set of redis modules to enable in this database - modules can only be added at creation time. /// Optional set of properties to configure geo replication for this database. - /// Version of Redis the database is running on, e.g. '6.0'. - /// Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade. - /// This property can be Enabled/Disabled to allow or deny access with the current access keys. Can be updated even after database is created. /// A new instance for mocking. - public static RedisEnterpriseDatabaseData RedisEnterpriseDatabaseData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, RedisEnterpriseClientProtocol? clientProtocol = null, int? port = null, RedisEnterpriseProvisioningStatus? provisioningState = null, RedisEnterpriseClusterResourceState? resourceState = null, RedisEnterpriseClusteringPolicy? clusteringPolicy = null, RedisEnterpriseEvictionPolicy? evictionPolicy = null, RedisPersistenceSettings persistence = null, IEnumerable modules = null, RedisEnterpriseDatabaseGeoReplication geoReplication = null, string redisVersion = null, DeferUpgradeSetting? deferUpgrade = null, AccessKeysAuthentication? accessKeysAuthentication = null) + public static RedisEnterpriseDatabaseData RedisEnterpriseDatabaseData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, RedisEnterpriseClientProtocol? clientProtocol = null, int? port = null, RedisEnterpriseProvisioningStatus? provisioningState = null, RedisEnterpriseClusterResourceState? resourceState = null, RedisEnterpriseClusteringPolicy? clusteringPolicy = null, RedisEnterpriseEvictionPolicy? evictionPolicy = null, RedisPersistenceSettings persistence = null, IEnumerable modules = null, RedisEnterpriseDatabaseGeoReplication geoReplication = null) { modules ??= new List(); @@ -178,9 +166,6 @@ public static RedisEnterpriseDatabaseData RedisEnterpriseDatabaseData(ResourceId persistence, modules?.ToList(), geoReplication, - redisVersion, - deferUpgrade, - accessKeysAuthentication, serializedAdditionalRawData: null); } @@ -208,16 +193,13 @@ public static RedisEnterpriseLinkedDatabase RedisEnterpriseLinkedDatabase(Resour /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. /// Current provisioning status of the database. /// Current resource status of the database. - /// Clustering policy - default is OSSCluster. This property must be chosen at create time, and cannot be changed without deleting the database. + /// Clustering policy - default is OSSCluster. Specified at create time. /// Redis eviction policy - default is VolatileLRU. /// Persistence settings. /// Optional set of redis modules to enable in this database - modules can only be added at creation time. /// Optional set of properties to configure geo replication for this database. - /// Version of Redis the database is running on, e.g. '6.0'. - /// Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade. - /// This property can be Enabled/Disabled to allow or deny access with the current access keys. Can be updated even after database is created. /// A new instance for mocking. - public static RedisEnterpriseDatabasePatch RedisEnterpriseDatabasePatch(RedisEnterpriseClientProtocol? clientProtocol = null, int? port = null, RedisEnterpriseProvisioningStatus? provisioningState = null, RedisEnterpriseClusterResourceState? resourceState = null, RedisEnterpriseClusteringPolicy? clusteringPolicy = null, RedisEnterpriseEvictionPolicy? evictionPolicy = null, RedisPersistenceSettings persistence = null, IEnumerable modules = null, RedisEnterpriseDatabaseGeoReplication geoReplication = null, string redisVersion = null, DeferUpgradeSetting? deferUpgrade = null, AccessKeysAuthentication? accessKeysAuthentication = null) + public static RedisEnterpriseDatabasePatch RedisEnterpriseDatabasePatch(RedisEnterpriseClientProtocol? clientProtocol = null, int? port = null, RedisEnterpriseProvisioningStatus? provisioningState = null, RedisEnterpriseClusterResourceState? resourceState = null, RedisEnterpriseClusteringPolicy? clusteringPolicy = null, RedisEnterpriseEvictionPolicy? evictionPolicy = null, RedisPersistenceSettings persistence = null, IEnumerable modules = null, RedisEnterpriseDatabaseGeoReplication geoReplication = null) { modules ??= new List(); @@ -231,9 +213,6 @@ public static RedisEnterpriseDatabasePatch RedisEnterpriseDatabasePatch(RedisEnt persistence, modules?.ToList(), geoReplication, - redisVersion, - deferUpgrade, - accessKeysAuthentication, serializedAdditionalRawData: null); } @@ -246,28 +225,6 @@ public static RedisEnterpriseDataAccessKeys RedisEnterpriseDataAccessKeys(string return new RedisEnterpriseDataAccessKeys(primaryKey, secondaryKey, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Current provisioning status of the access policy assignment. - /// Name of access policy under specific access policy assignment. Only "default" policy is supported for now. - /// The user associated with the access policy. - /// A new instance for mocking. - public static AccessPolicyAssignmentData AccessPolicyAssignmentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, RedisEnterpriseProvisioningStatus? provisioningState = null, string accessPolicyName = null, Guid? userObjectId = null) - { - return new AccessPolicyAssignmentData( - id, - name, - resourceType, - systemData, - provisioningState, - accessPolicyName, - userObjectId != null ? new AccessPolicyAssignmentPropertiesUser(userObjectId, serializedAdditionalRawData: null) : null, - serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The id. /// The name. @@ -292,85 +249,5 @@ public static RedisEnterprisePrivateLinkResource RedisEnterprisePrivateLinkResou requiredZoneNames?.ToList(), serializedAdditionalRawData: null); } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// The tags. - /// 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. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static RedisEnterpriseClusterData RedisEnterpriseClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, RedisEnterpriseSku sku, IEnumerable zones, ManagedServiceIdentity identity, RedisEnterpriseTlsVersion? minimumTlsVersion, RedisEnterpriseCustomerManagedKeyEncryption customerManagedKeyEncryption, string hostName, RedisEnterpriseProvisioningStatus? provisioningState, RedisEnterpriseClusterResourceState? resourceState, string redisVersion, IEnumerable privateEndpointConnections) - { - return RedisEnterpriseClusterData(id: id, name: name, resourceType: resourceType, systemData: systemData, tags: tags, location: location, sku: sku, zones: zones, identity: identity, highAvailability: default, minimumTlsVersion: minimumTlsVersion, customerManagedKeyEncryption: customerManagedKeyEncryption, hostName: hostName, provisioningState: provisioningState, redundancyMode: default, resourceState: resourceState, redisVersion: redisVersion, privateEndpointConnections: privateEndpointConnections); - } - - /// Initializes a new instance of . - /// The SKU to create, which affects price, performance, and features. - /// The identity of the resource. - /// Resource tags. - /// 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. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static RedisEnterpriseClusterPatch RedisEnterpriseClusterPatch(RedisEnterpriseSku sku, ManagedServiceIdentity identity, IDictionary tags, RedisEnterpriseTlsVersion? minimumTlsVersion, RedisEnterpriseCustomerManagedKeyEncryption customerManagedKeyEncryption, string hostName, RedisEnterpriseProvisioningStatus? provisioningState, RedisEnterpriseClusterResourceState? resourceState, string redisVersion, IEnumerable privateEndpointConnections) - { - return RedisEnterpriseClusterPatch(sku: sku, identity: identity, tags: tags, highAvailability: default, minimumTlsVersion: minimumTlsVersion, customerManagedKeyEncryption: customerManagedKeyEncryption, hostName: hostName, provisioningState: provisioningState, redundancyMode: default, resourceState: resourceState, redisVersion: redisVersion, privateEndpointConnections: privateEndpointConnections); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted. - /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. - /// Current provisioning status of the database. - /// Current resource status of the database. - /// Clustering policy - default is OSSCluster. Specified at create time. - /// Redis eviction policy - default is VolatileLRU. - /// Persistence settings. - /// Optional set of redis modules to enable in this database - modules can only be added at creation time. - /// Optional set of properties to configure geo replication for this database. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static RedisEnterpriseDatabaseData RedisEnterpriseDatabaseData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, RedisEnterpriseClientProtocol? clientProtocol, int? port, RedisEnterpriseProvisioningStatus? provisioningState, RedisEnterpriseClusterResourceState? resourceState, RedisEnterpriseClusteringPolicy? clusteringPolicy, RedisEnterpriseEvictionPolicy? evictionPolicy, RedisPersistenceSettings persistence, IEnumerable modules, RedisEnterpriseDatabaseGeoReplication geoReplication) - { - return RedisEnterpriseDatabaseData(id: id, name: name, resourceType: resourceType, systemData: systemData, clientProtocol: clientProtocol, port: port, provisioningState: provisioningState, resourceState: resourceState, clusteringPolicy: clusteringPolicy, evictionPolicy: evictionPolicy, persistence: persistence, modules: modules, geoReplication: geoReplication, redisVersion: default, deferUpgrade: default, accessKeysAuthentication: default); - } - - /// Initializes a new instance of . - /// Specifies whether redis clients can connect using TLS-encrypted or plaintext redis protocols. Default is TLS-encrypted. - /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. - /// Current provisioning status of the database. - /// Current resource status of the database. - /// Clustering policy - default is OSSCluster. Specified at create time. - /// Redis eviction policy - default is VolatileLRU. - /// Persistence settings. - /// Optional set of redis modules to enable in this database - modules can only be added at creation time. - /// Optional set of properties to configure geo replication for this database. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static RedisEnterpriseDatabasePatch RedisEnterpriseDatabasePatch(RedisEnterpriseClientProtocol? clientProtocol, int? port, RedisEnterpriseProvisioningStatus? provisioningState, RedisEnterpriseClusterResourceState? resourceState, RedisEnterpriseClusteringPolicy? clusteringPolicy, RedisEnterpriseEvictionPolicy? evictionPolicy, RedisPersistenceSettings persistence, IEnumerable modules, RedisEnterpriseDatabaseGeoReplication geoReplication) - { - return RedisEnterpriseDatabasePatch(clientProtocol: clientProtocol, port: port, provisioningState: provisioningState, resourceState: resourceState, clusteringPolicy: clusteringPolicy, evictionPolicy: evictionPolicy, persistence: persistence, modules: modules, geoReplication: geoReplication, redisVersion: default, deferUpgrade: default, accessKeysAuthentication: default); - } } } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/MockableRedisEnterpriseArmClient.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/MockableRedisEnterpriseArmClient.cs index 3b58a1e4d76d..c8046549d2e1 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/MockableRedisEnterpriseArmClient.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/MockableRedisEnterpriseArmClient.cs @@ -58,18 +58,6 @@ public virtual RedisEnterpriseDatabaseResource GetRedisEnterpriseDatabaseResourc return new RedisEnterpriseDatabaseResource(Client, id); } - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// The resource ID of the resource to get. - /// Returns a object. - public virtual AccessPolicyAssignmentResource GetAccessPolicyAssignmentResource(ResourceIdentifier id) - { - AccessPolicyAssignmentResource.ValidateResourceId(id); - return new AccessPolicyAssignmentResource(Client, id); - } - /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/MockableRedisEnterpriseResourceGroupResource.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/MockableRedisEnterpriseResourceGroupResource.cs index de42a8769455..ef2aa46eb9b9 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/MockableRedisEnterpriseResourceGroupResource.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/MockableRedisEnterpriseResourceGroupResource.cs @@ -41,7 +41,7 @@ public virtual RedisEnterpriseClusterCollection GetRedisEnterpriseClusters() } /// - /// Gets information about a Redis Enterprise cluster + /// Gets information about a RedisEnterprise cluster /// /// /// Request Path @@ -53,7 +53,7 @@ public virtual RedisEnterpriseClusterCollection GetRedisEnterpriseClusters() /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -61,7 +61,7 @@ public virtual RedisEnterpriseClusterCollection GetRedisEnterpriseClusters() /// /// /// - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. @@ -72,7 +72,7 @@ public virtual async Task> GetRedisEnte } /// - /// Gets information about a Redis Enterprise cluster + /// Gets information about a RedisEnterprise cluster /// /// /// Request Path @@ -84,7 +84,7 @@ public virtual async Task> GetRedisEnte /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -92,7 +92,7 @@ public virtual async Task> GetRedisEnte /// /// /// - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// is null. /// is an empty string, and was expected to be non-empty. diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/MockableRedisEnterpriseSubscriptionResource.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/MockableRedisEnterpriseSubscriptionResource.cs index 76fa42ad9eb5..c6ec89dedbfb 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/MockableRedisEnterpriseSubscriptionResource.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/MockableRedisEnterpriseSubscriptionResource.cs @@ -59,7 +59,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// @@ -99,7 +99,7 @@ public virtual async Task> GetRedisEnte /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// @@ -127,7 +127,7 @@ public virtual Response GetRedisEnterpriseOperat } /// - /// Lists all Redis Enterprise clusters in the specified subscription. + /// Gets all RedisEnterprise clusters in the specified subscription. /// /// /// Request Path @@ -139,7 +139,7 @@ public virtual Response GetRedisEnterpriseOperat /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -157,7 +157,7 @@ public virtual AsyncPageable GetRedisEnterpriseC } /// - /// Lists all Redis Enterprise clusters in the specified subscription. + /// Gets all RedisEnterprise clusters in the specified subscription. /// /// /// Request Path @@ -169,7 +169,7 @@ public virtual AsyncPageable GetRedisEnterpriseC /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource 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 92485e00357e..b5f679f96812 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/RedisEnterpriseExtensions.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Extensions/RedisEnterpriseExtensions.cs @@ -71,25 +71,6 @@ public static RedisEnterpriseDatabaseResource GetRedisEnterpriseDatabaseResource return GetMockableRedisEnterpriseArmClient(client).GetRedisEnterpriseDatabaseResource(id); } - /// - /// Gets an object representing an along with the instance operations that can be performed on it but with no data. - /// You can use to create an from its components. - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The resource ID of the resource to get. - /// is null. - /// Returns a object. - public static AccessPolicyAssignmentResource GetAccessPolicyAssignmentResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableRedisEnterpriseArmClient(client).GetAccessPolicyAssignmentResource(id); - } - /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. @@ -127,7 +108,7 @@ public static RedisEnterpriseClusterCollection GetRedisEnterpriseClusters(this R } /// - /// Gets information about a Redis Enterprise cluster + /// Gets information about a RedisEnterprise cluster /// /// /// Request Path @@ -139,7 +120,7 @@ public static RedisEnterpriseClusterCollection GetRedisEnterpriseClusters(this R /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -152,7 +133,7 @@ public static RedisEnterpriseClusterCollection GetRedisEnterpriseClusters(this R /// /// /// The instance the method will execute against. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -165,7 +146,7 @@ public static async Task> GetRedisEnter } /// - /// Gets information about a Redis Enterprise cluster + /// Gets information about a RedisEnterprise cluster /// /// /// Request Path @@ -177,7 +158,7 @@ public static async Task> GetRedisEnter /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -190,7 +171,7 @@ public static async Task> GetRedisEnter /// /// /// The instance the method will execute against. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// or is null. /// is an empty string, and was expected to be non-empty. @@ -215,7 +196,7 @@ public static Response GetRedisEnterpriseCluster /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// @@ -249,7 +230,7 @@ public static async Task> GetRedisEnter /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// @@ -271,7 +252,7 @@ public static Response GetRedisEnterpriseOperati } /// - /// Lists all Redis Enterprise clusters in the specified subscription. + /// Gets all RedisEnterprise clusters in the specified subscription. /// /// /// Request Path @@ -283,7 +264,7 @@ public static Response GetRedisEnterpriseOperati /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -307,7 +288,7 @@ public static AsyncPageable GetRedisEnterpriseCl } /// - /// Lists all Redis Enterprise clusters in the specified subscription. + /// Gets all RedisEnterprise clusters in the specified subscription. /// /// /// Request Path @@ -319,7 +300,7 @@ public static AsyncPageable GetRedisEnterpriseCl /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/LongRunningOperation/AccessPolicyAssignmentOperationSource.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/LongRunningOperation/AccessPolicyAssignmentOperationSource.cs deleted file mode 100644 index 884898dd92db..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/LongRunningOperation/AccessPolicyAssignmentOperationSource.cs +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Text.Json; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; - -namespace Azure.ResourceManager.RedisEnterprise -{ - internal class AccessPolicyAssignmentOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal AccessPolicyAssignmentOperationSource(ArmClient client) - { - _client = client; - } - - AccessPolicyAssignmentResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = AccessPolicyAssignmentData.DeserializeAccessPolicyAssignmentData(document.RootElement); - return new AccessPolicyAssignmentResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = AccessPolicyAssignmentData.DeserializeAccessPolicyAssignmentData(document.RootElement); - return new AccessPolicyAssignmentResource(_client, data); - } - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessKeysAuthentication.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessKeysAuthentication.cs deleted file mode 100644 index 1c834a1b7061..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessKeysAuthentication.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RedisEnterprise.Models -{ - /// This property can be Enabled/Disabled to allow or deny access with the current access keys. Can be updated even after database is created. - public readonly partial struct AccessKeysAuthentication : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public AccessKeysAuthentication(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string DisabledValue = "Disabled"; - private const string EnabledValue = "Enabled"; - - /// Disabled. - public static AccessKeysAuthentication Disabled { get; } = new AccessKeysAuthentication(DisabledValue); - /// Enabled. - public static AccessKeysAuthentication Enabled { get; } = new AccessKeysAuthentication(EnabledValue); - /// Determines if two values are the same. - public static bool operator ==(AccessKeysAuthentication left, AccessKeysAuthentication right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(AccessKeysAuthentication left, AccessKeysAuthentication right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator AccessKeysAuthentication(string value) => new AccessKeysAuthentication(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is AccessKeysAuthentication other && Equals(other); - /// - public bool Equals(AccessKeysAuthentication other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentList.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentList.Serialization.cs deleted file mode 100644 index b54aa8084cf1..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentList.Serialization.cs +++ /dev/null @@ -1,219 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RedisEnterprise.Models -{ - internal partial class AccessPolicyAssignmentList : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AccessPolicyAssignmentList)} does not support writing '{format}' format."); - } - - if (Optional.IsCollectionDefined(Value)) - { - writer.WritePropertyName("value"u8); - writer.WriteStartArray(); - foreach (var item in Value) - { - writer.WriteObjectValue(item, options); - } - writer.WriteEndArray(); - } - if (options.Format != "W" && Optional.IsDefined(NextLink)) - { - writer.WritePropertyName("nextLink"u8); - writer.WriteStringValue(NextLink); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - AccessPolicyAssignmentList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AccessPolicyAssignmentList)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAccessPolicyAssignmentList(document.RootElement, options); - } - - internal static AccessPolicyAssignmentList DeserializeAccessPolicyAssignmentList(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - IReadOnlyList value = default; - string nextLink = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(AccessPolicyAssignmentData.DeserializeAccessPolicyAssignmentData(item, options)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink"u8)) - { - nextLink = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new AccessPolicyAssignmentList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" value: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(Value)) - { - if (Value.Any()) - { - builder.Append(" value: "); - builder.AppendLine("["); - foreach (var item in Value) - { - BicepSerializationHelpers.AppendChildObject(builder, item, options, 4, true, " value: "); - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NextLink), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nextLink: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NextLink)) - { - builder.Append(" nextLink: "); - if (NextLink.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NextLink}'''"); - } - else - { - builder.AppendLine($"'{NextLink}'"); - } - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(AccessPolicyAssignmentList)} does not support writing '{options.Format}' format."); - } - } - - AccessPolicyAssignmentList IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeAccessPolicyAssignmentList(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(AccessPolicyAssignmentList)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentList.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentList.cs deleted file mode 100644 index d7d7c332c37c..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentList.cs +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.RedisEnterprise.Models -{ - /// The response of a list-all operation. - internal partial class AccessPolicyAssignmentList - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - internal AccessPolicyAssignmentList() - { - Value = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// List of access policy assignments. - /// The URI to fetch the next page of results. - /// Keeps track of any properties unknown to the library. - internal AccessPolicyAssignmentList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) - { - Value = value; - NextLink = nextLink; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// List of access policy assignments. - public IReadOnlyList Value { get; } - /// The URI to fetch the next page of results. - public string NextLink { get; } - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentPropertiesUser.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentPropertiesUser.Serialization.cs deleted file mode 100644 index 3ce19c3df7d3..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentPropertiesUser.Serialization.cs +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ClientModel.Primitives; -using System.Collections.Generic; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.RedisEnterprise.Models -{ - internal partial class AccessPolicyAssignmentPropertiesUser : IUtf8JsonSerializable, IJsonModel - { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AccessPolicyAssignmentPropertiesUser)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(ObjectId)) - { - writer.WritePropertyName("objectId"u8); - writer.WriteStringValue(ObjectId.Value); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } - } - - AccessPolicyAssignmentPropertiesUser IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - if (format != "J") - { - throw new FormatException($"The model {nameof(AccessPolicyAssignmentPropertiesUser)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeAccessPolicyAssignmentPropertiesUser(document.RootElement, options); - } - - internal static AccessPolicyAssignmentPropertiesUser DeserializeAccessPolicyAssignmentPropertiesUser(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - Guid? objectId = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("objectId"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - objectId = property.Value.GetGuid(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new AccessPolicyAssignmentPropertiesUser(objectId, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ObjectId), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" objectId: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ObjectId)) - { - builder.Append(" objectId: "); - builder.AppendLine($"'{ObjectId.Value.ToString()}'"); - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - return ModelReaderWriter.Write(this, options); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(AccessPolicyAssignmentPropertiesUser)} does not support writing '{options.Format}' format."); - } - } - - AccessPolicyAssignmentPropertiesUser IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) - { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; - - switch (format) - { - case "J": - { - using JsonDocument document = JsonDocument.Parse(data); - return DeserializeAccessPolicyAssignmentPropertiesUser(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(AccessPolicyAssignmentPropertiesUser)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentPropertiesUser.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentPropertiesUser.cs deleted file mode 100644 index 6495b3828528..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/AccessPolicyAssignmentPropertiesUser.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.RedisEnterprise.Models -{ - /// The user associated with the access policy. - internal partial class AccessPolicyAssignmentPropertiesUser - { - /// - /// Keeps track of any properties unknown to the library. - /// - /// To assign an object to the value of this property use . - /// - /// - /// To assign an already formatted json string to this property use . - /// - /// - /// Examples: - /// - /// - /// BinaryData.FromObjectAsJson("foo") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromString("\"foo\"") - /// Creates a payload of "foo". - /// - /// - /// BinaryData.FromObjectAsJson(new { key = "value" }) - /// Creates a payload of { "key": "value" }. - /// - /// - /// BinaryData.FromString("{\"key\": \"value\"}") - /// Creates a payload of { "key": "value" }. - /// - /// - /// - /// - private IDictionary _serializedAdditionalRawData; - - /// Initializes a new instance of . - public AccessPolicyAssignmentPropertiesUser() - { - } - - /// Initializes a new instance of . - /// The object ID of the user. - /// Keeps track of any properties unknown to the library. - internal AccessPolicyAssignmentPropertiesUser(Guid? objectId, IDictionary serializedAdditionalRawData) - { - ObjectId = objectId; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// The object ID of the user. - [WirePath("objectId")] - public Guid? ObjectId { get; set; } - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/DeferUpgradeSetting.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/DeferUpgradeSetting.cs deleted file mode 100644 index 2eb3f40cadb5..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/DeferUpgradeSetting.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RedisEnterprise.Models -{ - /// Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade. - public readonly partial struct DeferUpgradeSetting : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public DeferUpgradeSetting(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string DeferredValue = "Deferred"; - private const string NotDeferredValue = "NotDeferred"; - - /// Deferred. - public static DeferUpgradeSetting Deferred { get; } = new DeferUpgradeSetting(DeferredValue); - /// NotDeferred. - public static DeferUpgradeSetting NotDeferred { get; } = new DeferUpgradeSetting(NotDeferredValue); - /// Determines if two values are the same. - public static bool operator ==(DeferUpgradeSetting left, DeferUpgradeSetting right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(DeferUpgradeSetting left, DeferUpgradeSetting right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator DeferUpgradeSetting(string value) => new DeferUpgradeSetting(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is DeferUpgradeSetting other && Equals(other); - /// - public bool Equals(DeferUpgradeSetting other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ForceUnlinkRedisEnterpriseDatabaseContent.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ForceUnlinkRedisEnterpriseDatabaseContent.cs index 2a2416186f70..5f1385b837a8 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ForceUnlinkRedisEnterpriseDatabaseContent.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/ForceUnlinkRedisEnterpriseDatabaseContent.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.RedisEnterprise.Models { - /// Parameters for a redis enterprise active geo-replication force unlink operation. + /// Parameters for a Redis Enterprise Active Geo Replication Force Unlink operation. public partial class ForceUnlinkRedisEnterpriseDatabaseContent { /// diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/PersistenceSettingAofFrequency.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/PersistenceSettingAofFrequency.cs index ea251255ea55..f2157693799c 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/PersistenceSettingAofFrequency.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/PersistenceSettingAofFrequency.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RedisEnterprise.Models { - /// Sets the frequency at which data is written to disk. Defaults to '1s', meaning 'every second'. Note that the 'always' setting is deprecated, because of its performance impact. + /// Sets the frequency at which data is written to disk. public readonly partial struct PersistenceSettingAofFrequency : IEquatable { private readonly string _value; 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 4d85d69a89a4..27ee056f3165 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 @@ -58,11 +58,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); - if (Optional.IsDefined(HighAvailability)) - { - writer.WritePropertyName("highAvailability"u8); - writer.WriteStringValue(HighAvailability.Value.ToString()); - } if (Optional.IsDefined(MinimumTlsVersion)) { writer.WritePropertyName("minimumTlsVersion"u8); @@ -83,11 +78,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("provisioningState"u8); writer.WriteStringValue(ProvisioningState.Value.ToString()); } - if (options.Format != "W" && Optional.IsDefined(RedundancyMode)) - { - writer.WritePropertyName("redundancyMode"u8); - writer.WriteStringValue(RedundancyMode.Value.ToString()); - } if (options.Format != "W" && Optional.IsDefined(ResourceState)) { writer.WritePropertyName("resourceState"u8); @@ -149,12 +139,10 @@ internal static RedisEnterpriseClusterPatch DeserializeRedisEnterpriseClusterPat RedisEnterpriseSku sku = default; ManagedServiceIdentity identity = default; IDictionary tags = default; - RedisEnterpriseHighAvailability? highAvailability = default; RedisEnterpriseTlsVersion? minimumTlsVersion = default; ClusterPropertiesEncryption encryption = default; string hostName = default; RedisEnterpriseProvisioningStatus? provisioningState = default; - RedisEnterpriseRedundancyMode? redundancyMode = default; RedisEnterpriseClusterResourceState? resourceState = default; string redisVersion = default; IReadOnlyList privateEndpointConnections = default; @@ -203,15 +191,6 @@ internal static RedisEnterpriseClusterPatch DeserializeRedisEnterpriseClusterPat } foreach (var property0 in property.Value.EnumerateObject()) { - if (property0.NameEquals("highAvailability"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - highAvailability = new RedisEnterpriseHighAvailability(property0.Value.GetString()); - continue; - } if (property0.NameEquals("minimumTlsVersion"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -244,15 +223,6 @@ internal static RedisEnterpriseClusterPatch DeserializeRedisEnterpriseClusterPat provisioningState = new RedisEnterpriseProvisioningStatus(property0.Value.GetString()); continue; } - if (property0.NameEquals("redundancyMode"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - redundancyMode = new RedisEnterpriseRedundancyMode(property0.Value.GetString()); - continue; - } if (property0.NameEquals("resourceState"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -294,12 +264,10 @@ internal static RedisEnterpriseClusterPatch DeserializeRedisEnterpriseClusterPat sku, identity, tags ?? new ChangeTrackingDictionary(), - highAvailability, minimumTlsVersion, encryption, hostName, provisioningState, - redundancyMode, resourceState, redisVersion, privateEndpointConnections ?? new ChangeTrackingList(), 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 93b6c439dfd7..b58f77884948 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterPatch.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusterPatch.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.RedisEnterprise.Models { - /// A partial update to the Redis Enterprise cluster. + /// A partial update to the RedisEnterprise cluster. public partial class RedisEnterpriseClusterPatch { /// @@ -57,27 +57,23 @@ public RedisEnterpriseClusterPatch() /// The SKU to create, which affects price, performance, and features. /// The identity of the resource. /// Resource tags. - /// Enabled by default. If highAvailability is disabled, the data set is not replicated. This affects the availability SLA, and increases the risk of data loss. - /// The minimum TLS version for the cluster to support, e.g. '1.2'. Newer versions can be added in the future. Note that TLS 1.0 and TLS 1.1 are now completely obsolete -- you cannot use them. They are mentioned only for the sake of consistency with old API versions. + /// 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. - /// Explains the current redundancy strategy of the cluster, which affects the expected SLA. /// Current resource status of the cluster. /// Version of redis the cluster supports, e.g. '6'. - /// List of private endpoint connections associated with the specified Redis Enterprise cluster. + /// List of private endpoint connections associated with the specified RedisEnterprise cluster. /// Keeps track of any properties unknown to the library. - internal RedisEnterpriseClusterPatch(RedisEnterpriseSku sku, ManagedServiceIdentity identity, IDictionary tags, RedisEnterpriseHighAvailability? highAvailability, RedisEnterpriseTlsVersion? minimumTlsVersion, ClusterPropertiesEncryption encryption, string hostName, RedisEnterpriseProvisioningStatus? provisioningState, RedisEnterpriseRedundancyMode? redundancyMode, RedisEnterpriseClusterResourceState? resourceState, string redisVersion, IReadOnlyList privateEndpointConnections, IDictionary serializedAdditionalRawData) + internal RedisEnterpriseClusterPatch(RedisEnterpriseSku sku, ManagedServiceIdentity identity, IDictionary tags, RedisEnterpriseTlsVersion? minimumTlsVersion, ClusterPropertiesEncryption encryption, string hostName, RedisEnterpriseProvisioningStatus? provisioningState, RedisEnterpriseClusterResourceState? resourceState, string redisVersion, IReadOnlyList privateEndpointConnections, IDictionary serializedAdditionalRawData) { Sku = sku; Identity = identity; Tags = tags; - HighAvailability = highAvailability; MinimumTlsVersion = minimumTlsVersion; Encryption = encryption; HostName = hostName; ProvisioningState = provisioningState; - RedundancyMode = redundancyMode; ResourceState = resourceState; RedisVersion = redisVersion; PrivateEndpointConnections = privateEndpointConnections; @@ -93,10 +89,7 @@ internal RedisEnterpriseClusterPatch(RedisEnterpriseSku sku, ManagedServiceIdent /// Resource tags. [WirePath("tags")] public IDictionary Tags { get; } - /// Enabled by default. If highAvailability is disabled, the data set is not replicated. This affects the availability SLA, and increases the risk of data loss. - [WirePath("properties.highAvailability")] - public RedisEnterpriseHighAvailability? HighAvailability { get; set; } - /// The minimum TLS version for the cluster to support, e.g. '1.2'. Newer versions can be added in the future. Note that TLS 1.0 and TLS 1.1 are now completely obsolete -- you cannot use them. They are mentioned only for the sake of consistency with old API versions. + /// The minimum TLS version for the cluster to support, e.g. '1.2'. [WirePath("properties.minimumTlsVersion")] public RedisEnterpriseTlsVersion? MinimumTlsVersion { get; set; } /// Encryption-at-rest configuration for the cluster. @@ -120,16 +113,13 @@ public RedisEnterpriseCustomerManagedKeyEncryption CustomerManagedKeyEncryption /// Current provisioning status of the cluster. [WirePath("properties.provisioningState")] public RedisEnterpriseProvisioningStatus? ProvisioningState { get; } - /// Explains the current redundancy strategy of the cluster, which affects the expected SLA. - [WirePath("properties.redundancyMode")] - public RedisEnterpriseRedundancyMode? RedundancyMode { get; } /// Current resource status of the cluster. [WirePath("properties.resourceState")] public RedisEnterpriseClusterResourceState? ResourceState { get; } /// Version of redis the cluster supports, e.g. '6'. [WirePath("properties.redisVersion")] public string RedisVersion { get; } - /// List of private endpoint connections associated with the specified Redis Enterprise cluster. + /// List of private endpoint connections associated with the specified RedisEnterprise cluster. [WirePath("properties.privateEndpointConnections")] public IReadOnlyList PrivateEndpointConnections { get; } } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusteringPolicy.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusteringPolicy.cs index 744e243fdb81..28d99fba6951 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusteringPolicy.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseClusteringPolicy.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RedisEnterprise.Models { - /// Clustering policy - default is OSSCluster. This property must be chosen at create time, and cannot be changed without deleting the database. + /// Clustering policy - default is OSSCluster. Specified at create time. public readonly partial struct RedisEnterpriseClusteringPolicy : IEquatable { private readonly string _value; @@ -25,9 +25,9 @@ public RedisEnterpriseClusteringPolicy(string value) private const string EnterpriseClusterValue = "EnterpriseCluster"; private const string OssClusterValue = "OSSCluster"; - /// Enterprise clustering policy uses only the classic redis protocol, which does not support redis cluster commands. + /// EnterpriseCluster. public static RedisEnterpriseClusteringPolicy EnterpriseCluster { get; } = new RedisEnterpriseClusteringPolicy(EnterpriseClusterValue); - /// OSS clustering policy follows the redis cluster specification, and requires all clients to support redis clustering. + /// OSSCluster. public static RedisEnterpriseClusteringPolicy OssCluster { get; } = new RedisEnterpriseClusteringPolicy(OssClusterValue); /// Determines if two values are the same. public static bool operator ==(RedisEnterpriseClusteringPolicy left, RedisEnterpriseClusteringPolicy right) => left.Equals(right); diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabasePatch.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabasePatch.Serialization.cs index bd813434214b..a3e63d1358ff 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabasePatch.Serialization.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabasePatch.Serialization.cs @@ -86,21 +86,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("geoReplication"u8); writer.WriteObjectValue(GeoReplication, options); } - if (options.Format != "W" && Optional.IsDefined(RedisVersion)) - { - writer.WritePropertyName("redisVersion"u8); - writer.WriteStringValue(RedisVersion); - } - if (Optional.IsDefined(DeferUpgrade)) - { - writer.WritePropertyName("deferUpgrade"u8); - writer.WriteStringValue(DeferUpgrade.Value.ToString()); - } - if (Optional.IsDefined(AccessKeysAuthentication)) - { - writer.WritePropertyName("accessKeysAuthentication"u8); - writer.WriteStringValue(AccessKeysAuthentication.Value.ToString()); - } writer.WriteEndObject(); if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -148,9 +133,6 @@ internal static RedisEnterpriseDatabasePatch DeserializeRedisEnterpriseDatabaseP RedisPersistenceSettings persistence = default; IList modules = default; RedisEnterpriseDatabaseGeoReplication geoReplication = default; - string redisVersion = default; - DeferUpgradeSetting? deferUpgrade = default; - AccessKeysAuthentication? accessKeysAuthentication = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -250,29 +232,6 @@ internal static RedisEnterpriseDatabasePatch DeserializeRedisEnterpriseDatabaseP geoReplication = RedisEnterpriseDatabaseGeoReplication.DeserializeRedisEnterpriseDatabaseGeoReplication(property0.Value, options); continue; } - if (property0.NameEquals("redisVersion"u8)) - { - redisVersion = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("deferUpgrade"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - deferUpgrade = new DeferUpgradeSetting(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("accessKeysAuthentication"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - accessKeysAuthentication = new AccessKeysAuthentication(property0.Value.GetString()); - continue; - } } continue; } @@ -292,9 +251,6 @@ internal static RedisEnterpriseDatabasePatch DeserializeRedisEnterpriseDatabaseP persistence, modules ?? new ChangeTrackingList(), geoReplication, - redisVersion, - deferUpgrade, - accessKeysAuthentication, serializedAdditionalRawData); } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabasePatch.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabasePatch.cs index de783d270bcd..341f7a3831db 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabasePatch.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseDatabasePatch.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RedisEnterprise.Models { - /// A partial update to the Redis Enterprise database. + /// A partial update to the RedisEnterprise database. public partial class RedisEnterpriseDatabasePatch { /// @@ -56,16 +56,13 @@ public RedisEnterpriseDatabasePatch() /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. /// Current provisioning status of the database. /// Current resource status of the database. - /// Clustering policy - default is OSSCluster. This property must be chosen at create time, and cannot be changed without deleting the database. + /// Clustering policy - default is OSSCluster. Specified at create time. /// Redis eviction policy - default is VolatileLRU. /// Persistence settings. /// Optional set of redis modules to enable in this database - modules can only be added at creation time. /// Optional set of properties to configure geo replication for this database. - /// Version of Redis the database is running on, e.g. '6.0'. - /// Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade. - /// This property can be Enabled/Disabled to allow or deny access with the current access keys. Can be updated even after database is created. /// Keeps track of any properties unknown to the library. - internal RedisEnterpriseDatabasePatch(RedisEnterpriseClientProtocol? clientProtocol, int? port, RedisEnterpriseProvisioningStatus? provisioningState, RedisEnterpriseClusterResourceState? resourceState, RedisEnterpriseClusteringPolicy? clusteringPolicy, RedisEnterpriseEvictionPolicy? evictionPolicy, RedisPersistenceSettings persistence, IList modules, RedisEnterpriseDatabaseGeoReplication geoReplication, string redisVersion, DeferUpgradeSetting? deferUpgrade, AccessKeysAuthentication? accessKeysAuthentication, IDictionary serializedAdditionalRawData) + internal RedisEnterpriseDatabasePatch(RedisEnterpriseClientProtocol? clientProtocol, int? port, RedisEnterpriseProvisioningStatus? provisioningState, RedisEnterpriseClusterResourceState? resourceState, RedisEnterpriseClusteringPolicy? clusteringPolicy, RedisEnterpriseEvictionPolicy? evictionPolicy, RedisPersistenceSettings persistence, IList modules, RedisEnterpriseDatabaseGeoReplication geoReplication, IDictionary serializedAdditionalRawData) { ClientProtocol = clientProtocol; Port = port; @@ -76,9 +73,6 @@ internal RedisEnterpriseDatabasePatch(RedisEnterpriseClientProtocol? clientProto Persistence = persistence; Modules = modules; GeoReplication = geoReplication; - RedisVersion = redisVersion; - DeferUpgrade = deferUpgrade; - AccessKeysAuthentication = accessKeysAuthentication; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -94,7 +88,7 @@ internal RedisEnterpriseDatabasePatch(RedisEnterpriseClientProtocol? clientProto /// Current resource status of the database. [WirePath("properties.resourceState")] public RedisEnterpriseClusterResourceState? ResourceState { get; } - /// Clustering policy - default is OSSCluster. This property must be chosen at create time, and cannot be changed without deleting the database. + /// Clustering policy - default is OSSCluster. Specified at create time. [WirePath("properties.clusteringPolicy")] public RedisEnterpriseClusteringPolicy? ClusteringPolicy { get; set; } /// Redis eviction policy - default is VolatileLRU. @@ -109,14 +103,5 @@ internal RedisEnterpriseDatabasePatch(RedisEnterpriseClientProtocol? clientProto /// Optional set of properties to configure geo replication for this database. [WirePath("properties.geoReplication")] public RedisEnterpriseDatabaseGeoReplication GeoReplication { get; set; } - /// Version of Redis the database is running on, e.g. '6.0'. - [WirePath("properties.redisVersion")] - public string RedisVersion { get; } - /// Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade. - [WirePath("properties.deferUpgrade")] - public DeferUpgradeSetting? DeferUpgrade { get; set; } - /// This property can be Enabled/Disabled to allow or deny access with the current access keys. Can be updated even after database is created. - [WirePath("properties.accessKeysAuthentication")] - public AccessKeysAuthentication? AccessKeysAuthentication { get; set; } } } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseHighAvailability.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseHighAvailability.cs deleted file mode 100644 index b151479108c1..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseHighAvailability.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RedisEnterprise.Models -{ - /// Enabled by default. If highAvailability is disabled, the data set is not replicated. This affects the availability SLA, and increases the risk of data loss. - public readonly partial struct RedisEnterpriseHighAvailability : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public RedisEnterpriseHighAvailability(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - - /// Enabled. - public static RedisEnterpriseHighAvailability Enabled { get; } = new RedisEnterpriseHighAvailability(EnabledValue); - /// Disabled. - public static RedisEnterpriseHighAvailability Disabled { get; } = new RedisEnterpriseHighAvailability(DisabledValue); - /// Determines if two values are the same. - public static bool operator ==(RedisEnterpriseHighAvailability left, RedisEnterpriseHighAvailability right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(RedisEnterpriseHighAvailability left, RedisEnterpriseHighAvailability right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator RedisEnterpriseHighAvailability(string value) => new RedisEnterpriseHighAvailability(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is RedisEnterpriseHighAvailability other && Equals(other); - /// - public bool Equals(RedisEnterpriseHighAvailability other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseRedundancyMode.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseRedundancyMode.cs deleted file mode 100644 index 6083927226e3..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseRedundancyMode.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.RedisEnterprise.Models -{ - /// Explains the current redundancy strategy of the cluster, which affects the expected SLA. - public readonly partial struct RedisEnterpriseRedundancyMode : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public RedisEnterpriseRedundancyMode(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string NoneValue = "None"; - private const string LRValue = "LR"; - private const string ZRValue = "ZR"; - - /// No redundancy. Availability loss will occur. - public static RedisEnterpriseRedundancyMode None { get; } = new RedisEnterpriseRedundancyMode(NoneValue); - /// Local redundancy with high availability. - public static RedisEnterpriseRedundancyMode LR { get; } = new RedisEnterpriseRedundancyMode(LRValue); - /// Zone redundant. Higher availability. - public static RedisEnterpriseRedundancyMode ZR { get; } = new RedisEnterpriseRedundancyMode(ZRValue); - /// Determines if two values are the same. - public static bool operator ==(RedisEnterpriseRedundancyMode left, RedisEnterpriseRedundancyMode right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(RedisEnterpriseRedundancyMode left, RedisEnterpriseRedundancyMode right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator RedisEnterpriseRedundancyMode(string value) => new RedisEnterpriseRedundancyMode(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is RedisEnterpriseRedundancyMode other && Equals(other); - /// - public bool Equals(RedisEnterpriseRedundancyMode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseSku.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseSku.cs index 89fd4f424332..818ec8f6d6d7 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseSku.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseSku.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RedisEnterprise.Models { - /// SKU parameters supplied to the create Redis Enterprise cluster operation. + /// SKU parameters supplied to the create RedisEnterprise operation. public partial class RedisEnterpriseSku { /// @@ -46,15 +46,15 @@ public partial class RedisEnterpriseSku private IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . - /// The level of Redis Enterprise cluster to deploy. Possible values: ('Balanced_B5', 'MemoryOptimized_M10', 'ComputeOptimized_X5', etc.). For more information on SKUs see the latest pricing documentation. Note that additional SKUs may become supported in the future. + /// The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.). public RedisEnterpriseSku(RedisEnterpriseSkuName name) { Name = name; } /// Initializes a new instance of . - /// The level of Redis Enterprise cluster to deploy. Possible values: ('Balanced_B5', 'MemoryOptimized_M10', 'ComputeOptimized_X5', etc.). For more information on SKUs see the latest pricing documentation. Note that additional SKUs may become supported in the future. - /// This property is only used with Enterprise and EnterpriseFlash SKUs. Determines the size of the cluster. Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for EnterpriseFlash SKUs. + /// The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.). + /// The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. /// Keeps track of any properties unknown to the library. internal RedisEnterpriseSku(RedisEnterpriseSkuName name, int? capacity, IDictionary serializedAdditionalRawData) { @@ -68,10 +68,10 @@ internal RedisEnterpriseSku() { } - /// The level of Redis Enterprise cluster to deploy. Possible values: ('Balanced_B5', 'MemoryOptimized_M10', 'ComputeOptimized_X5', etc.). For more information on SKUs see the latest pricing documentation. Note that additional SKUs may become supported in the future. + /// The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.). [WirePath("name")] public RedisEnterpriseSkuName Name { get; set; } - /// This property is only used with Enterprise and EnterpriseFlash SKUs. Determines the size of the cluster. Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for EnterpriseFlash SKUs. + /// The size of the RedisEnterprise cluster. Defaults to 2 or 3 depending on SKU. Valid values are (2, 4, 6, ...) for Enterprise SKUs and (3, 9, 15, ...) for Flash SKUs. [WirePath("capacity")] public int? Capacity { get; set; } } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseSkuName.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseSkuName.cs index 5ac7888a8837..6e8b15ed215c 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseSkuName.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseSkuName.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RedisEnterprise.Models { - /// The level of Redis Enterprise cluster to deploy. Possible values: ('Balanced_B5', 'MemoryOptimized_M10', 'ComputeOptimized_X5', etc.). For more information on SKUs see the latest pricing documentation. Note that additional SKUs may become supported in the future. + /// The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.). public readonly partial struct RedisEnterpriseSkuName : IEquatable { private readonly string _value; @@ -33,50 +33,6 @@ public RedisEnterpriseSkuName(string value) private const string EnterpriseFlashF300Value = "EnterpriseFlash_F300"; private const string EnterpriseFlashF700Value = "EnterpriseFlash_F700"; private const string EnterpriseFlashF1500Value = "EnterpriseFlash_F1500"; - private const string BalancedB0Value = "Balanced_B0"; - private const string BalancedB1Value = "Balanced_B1"; - private const string BalancedB3Value = "Balanced_B3"; - private const string BalancedB5Value = "Balanced_B5"; - private const string BalancedB10Value = "Balanced_B10"; - private const string BalancedB20Value = "Balanced_B20"; - private const string BalancedB50Value = "Balanced_B50"; - private const string BalancedB100Value = "Balanced_B100"; - private const string BalancedB150Value = "Balanced_B150"; - private const string BalancedB250Value = "Balanced_B250"; - private const string BalancedB350Value = "Balanced_B350"; - private const string BalancedB500Value = "Balanced_B500"; - private const string BalancedB700Value = "Balanced_B700"; - private const string BalancedB1000Value = "Balanced_B1000"; - private const string MemoryOptimizedM10Value = "MemoryOptimized_M10"; - private const string MemoryOptimizedM20Value = "MemoryOptimized_M20"; - private const string MemoryOptimizedM50Value = "MemoryOptimized_M50"; - private const string MemoryOptimizedM100Value = "MemoryOptimized_M100"; - private const string MemoryOptimizedM150Value = "MemoryOptimized_M150"; - private const string MemoryOptimizedM250Value = "MemoryOptimized_M250"; - private const string MemoryOptimizedM350Value = "MemoryOptimized_M350"; - private const string MemoryOptimizedM500Value = "MemoryOptimized_M500"; - private const string MemoryOptimizedM700Value = "MemoryOptimized_M700"; - private const string MemoryOptimizedM1000Value = "MemoryOptimized_M1000"; - private const string MemoryOptimizedM1500Value = "MemoryOptimized_M1500"; - private const string MemoryOptimizedM2000Value = "MemoryOptimized_M2000"; - private const string ComputeOptimizedX3Value = "ComputeOptimized_X3"; - private const string ComputeOptimizedX5Value = "ComputeOptimized_X5"; - private const string ComputeOptimizedX10Value = "ComputeOptimized_X10"; - private const string ComputeOptimizedX20Value = "ComputeOptimized_X20"; - private const string ComputeOptimizedX50Value = "ComputeOptimized_X50"; - private const string ComputeOptimizedX100Value = "ComputeOptimized_X100"; - private const string ComputeOptimizedX150Value = "ComputeOptimized_X150"; - private const string ComputeOptimizedX250Value = "ComputeOptimized_X250"; - private const string ComputeOptimizedX350Value = "ComputeOptimized_X350"; - private const string ComputeOptimizedX500Value = "ComputeOptimized_X500"; - private const string ComputeOptimizedX700Value = "ComputeOptimized_X700"; - private const string FlashOptimizedA250Value = "FlashOptimized_A250"; - private const string FlashOptimizedA500Value = "FlashOptimized_A500"; - private const string FlashOptimizedA700Value = "FlashOptimized_A700"; - private const string FlashOptimizedA1000Value = "FlashOptimized_A1000"; - private const string FlashOptimizedA1500Value = "FlashOptimized_A1500"; - private const string FlashOptimizedA2000Value = "FlashOptimized_A2000"; - private const string FlashOptimizedA4500Value = "FlashOptimized_A4500"; /// Enterprise_E1. public static RedisEnterpriseSkuName EnterpriseE1 { get; } = new RedisEnterpriseSkuName(EnterpriseE1Value); @@ -100,94 +56,6 @@ public RedisEnterpriseSkuName(string value) public static RedisEnterpriseSkuName EnterpriseFlashF700 { get; } = new RedisEnterpriseSkuName(EnterpriseFlashF700Value); /// EnterpriseFlash_F1500. public static RedisEnterpriseSkuName EnterpriseFlashF1500 { get; } = new RedisEnterpriseSkuName(EnterpriseFlashF1500Value); - /// Balanced_B0. - public static RedisEnterpriseSkuName BalancedB0 { get; } = new RedisEnterpriseSkuName(BalancedB0Value); - /// Balanced_B1. - public static RedisEnterpriseSkuName BalancedB1 { get; } = new RedisEnterpriseSkuName(BalancedB1Value); - /// Balanced_B3. - public static RedisEnterpriseSkuName BalancedB3 { get; } = new RedisEnterpriseSkuName(BalancedB3Value); - /// Balanced_B5. - public static RedisEnterpriseSkuName BalancedB5 { get; } = new RedisEnterpriseSkuName(BalancedB5Value); - /// Balanced_B10. - public static RedisEnterpriseSkuName BalancedB10 { get; } = new RedisEnterpriseSkuName(BalancedB10Value); - /// Balanced_B20. - public static RedisEnterpriseSkuName BalancedB20 { get; } = new RedisEnterpriseSkuName(BalancedB20Value); - /// Balanced_B50. - public static RedisEnterpriseSkuName BalancedB50 { get; } = new RedisEnterpriseSkuName(BalancedB50Value); - /// Balanced_B100. - public static RedisEnterpriseSkuName BalancedB100 { get; } = new RedisEnterpriseSkuName(BalancedB100Value); - /// Balanced_B150. - public static RedisEnterpriseSkuName BalancedB150 { get; } = new RedisEnterpriseSkuName(BalancedB150Value); - /// Balanced_B250. - public static RedisEnterpriseSkuName BalancedB250 { get; } = new RedisEnterpriseSkuName(BalancedB250Value); - /// Balanced_B350. - public static RedisEnterpriseSkuName BalancedB350 { get; } = new RedisEnterpriseSkuName(BalancedB350Value); - /// Balanced_B500. - public static RedisEnterpriseSkuName BalancedB500 { get; } = new RedisEnterpriseSkuName(BalancedB500Value); - /// Balanced_B700. - public static RedisEnterpriseSkuName BalancedB700 { get; } = new RedisEnterpriseSkuName(BalancedB700Value); - /// Balanced_B1000. - public static RedisEnterpriseSkuName BalancedB1000 { get; } = new RedisEnterpriseSkuName(BalancedB1000Value); - /// MemoryOptimized_M10. - public static RedisEnterpriseSkuName MemoryOptimizedM10 { get; } = new RedisEnterpriseSkuName(MemoryOptimizedM10Value); - /// MemoryOptimized_M20. - public static RedisEnterpriseSkuName MemoryOptimizedM20 { get; } = new RedisEnterpriseSkuName(MemoryOptimizedM20Value); - /// MemoryOptimized_M50. - public static RedisEnterpriseSkuName MemoryOptimizedM50 { get; } = new RedisEnterpriseSkuName(MemoryOptimizedM50Value); - /// MemoryOptimized_M100. - public static RedisEnterpriseSkuName MemoryOptimizedM100 { get; } = new RedisEnterpriseSkuName(MemoryOptimizedM100Value); - /// MemoryOptimized_M150. - public static RedisEnterpriseSkuName MemoryOptimizedM150 { get; } = new RedisEnterpriseSkuName(MemoryOptimizedM150Value); - /// MemoryOptimized_M250. - public static RedisEnterpriseSkuName MemoryOptimizedM250 { get; } = new RedisEnterpriseSkuName(MemoryOptimizedM250Value); - /// MemoryOptimized_M350. - public static RedisEnterpriseSkuName MemoryOptimizedM350 { get; } = new RedisEnterpriseSkuName(MemoryOptimizedM350Value); - /// MemoryOptimized_M500. - public static RedisEnterpriseSkuName MemoryOptimizedM500 { get; } = new RedisEnterpriseSkuName(MemoryOptimizedM500Value); - /// MemoryOptimized_M700. - public static RedisEnterpriseSkuName MemoryOptimizedM700 { get; } = new RedisEnterpriseSkuName(MemoryOptimizedM700Value); - /// MemoryOptimized_M1000. - public static RedisEnterpriseSkuName MemoryOptimizedM1000 { get; } = new RedisEnterpriseSkuName(MemoryOptimizedM1000Value); - /// MemoryOptimized_M1500. - public static RedisEnterpriseSkuName MemoryOptimizedM1500 { get; } = new RedisEnterpriseSkuName(MemoryOptimizedM1500Value); - /// MemoryOptimized_M2000. - public static RedisEnterpriseSkuName MemoryOptimizedM2000 { get; } = new RedisEnterpriseSkuName(MemoryOptimizedM2000Value); - /// ComputeOptimized_X3. - public static RedisEnterpriseSkuName ComputeOptimizedX3 { get; } = new RedisEnterpriseSkuName(ComputeOptimizedX3Value); - /// ComputeOptimized_X5. - public static RedisEnterpriseSkuName ComputeOptimizedX5 { get; } = new RedisEnterpriseSkuName(ComputeOptimizedX5Value); - /// ComputeOptimized_X10. - public static RedisEnterpriseSkuName ComputeOptimizedX10 { get; } = new RedisEnterpriseSkuName(ComputeOptimizedX10Value); - /// ComputeOptimized_X20. - public static RedisEnterpriseSkuName ComputeOptimizedX20 { get; } = new RedisEnterpriseSkuName(ComputeOptimizedX20Value); - /// ComputeOptimized_X50. - public static RedisEnterpriseSkuName ComputeOptimizedX50 { get; } = new RedisEnterpriseSkuName(ComputeOptimizedX50Value); - /// ComputeOptimized_X100. - public static RedisEnterpriseSkuName ComputeOptimizedX100 { get; } = new RedisEnterpriseSkuName(ComputeOptimizedX100Value); - /// ComputeOptimized_X150. - public static RedisEnterpriseSkuName ComputeOptimizedX150 { get; } = new RedisEnterpriseSkuName(ComputeOptimizedX150Value); - /// ComputeOptimized_X250. - public static RedisEnterpriseSkuName ComputeOptimizedX250 { get; } = new RedisEnterpriseSkuName(ComputeOptimizedX250Value); - /// ComputeOptimized_X350. - public static RedisEnterpriseSkuName ComputeOptimizedX350 { get; } = new RedisEnterpriseSkuName(ComputeOptimizedX350Value); - /// ComputeOptimized_X500. - public static RedisEnterpriseSkuName ComputeOptimizedX500 { get; } = new RedisEnterpriseSkuName(ComputeOptimizedX500Value); - /// ComputeOptimized_X700. - public static RedisEnterpriseSkuName ComputeOptimizedX700 { get; } = new RedisEnterpriseSkuName(ComputeOptimizedX700Value); - /// FlashOptimized_A250. - public static RedisEnterpriseSkuName FlashOptimizedA250 { get; } = new RedisEnterpriseSkuName(FlashOptimizedA250Value); - /// FlashOptimized_A500. - public static RedisEnterpriseSkuName FlashOptimizedA500 { get; } = new RedisEnterpriseSkuName(FlashOptimizedA500Value); - /// FlashOptimized_A700. - public static RedisEnterpriseSkuName FlashOptimizedA700 { get; } = new RedisEnterpriseSkuName(FlashOptimizedA700Value); - /// FlashOptimized_A1000. - public static RedisEnterpriseSkuName FlashOptimizedA1000 { get; } = new RedisEnterpriseSkuName(FlashOptimizedA1000Value); - /// FlashOptimized_A1500. - public static RedisEnterpriseSkuName FlashOptimizedA1500 { get; } = new RedisEnterpriseSkuName(FlashOptimizedA1500Value); - /// FlashOptimized_A2000. - public static RedisEnterpriseSkuName FlashOptimizedA2000 { get; } = new RedisEnterpriseSkuName(FlashOptimizedA2000Value); - /// FlashOptimized_A4500. - public static RedisEnterpriseSkuName FlashOptimizedA4500 { get; } = new RedisEnterpriseSkuName(FlashOptimizedA4500Value); /// Determines if two values are the same. public static bool operator ==(RedisEnterpriseSkuName left, RedisEnterpriseSkuName right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseTlsVersion.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseTlsVersion.cs index 05335d16e2f4..0ca4792dc1d5 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseTlsVersion.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisEnterpriseTlsVersion.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RedisEnterprise.Models { - /// The minimum TLS version for the cluster to support, e.g. '1.2'. Newer versions can be added in the future. Note that TLS 1.0 and TLS 1.1 are now completely obsolete -- you cannot use them. They are mentioned only for the sake of consistency with old API versions. + /// The minimum TLS version for the cluster to support, e.g. '1.2'. public readonly partial struct RedisEnterpriseTlsVersion : IEquatable { private readonly string _value; diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisPersistenceSettings.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisPersistenceSettings.cs index db298bad5c44..66088b5388e7 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisPersistenceSettings.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/Models/RedisPersistenceSettings.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.RedisEnterprise.Models { - /// Persistence-related configuration for the Redis Enterprise database. + /// Persistence-related configuration for the RedisEnterprise database. public partial class RedisPersistenceSettings { /// @@ -51,9 +51,9 @@ public RedisPersistenceSettings() } /// Initializes a new instance of . - /// Sets whether AOF is enabled. Note that at most one of AOF or RDB persistence may be enabled. - /// Sets whether RDB is enabled. Note that at most one of AOF or RDB persistence may be enabled. - /// Sets the frequency at which data is written to disk. Defaults to '1s', meaning 'every second'. Note that the 'always' setting is deprecated, because of its performance impact. + /// Sets whether AOF is enabled. + /// Sets whether RDB is enabled. + /// Sets the frequency at which data is written to disk. /// Sets the frequency at which a snapshot of the database is created. /// Keeps track of any properties unknown to the library. internal RedisPersistenceSettings(bool? isAofEnabled, bool? isRdbEnabled, PersistenceSettingAofFrequency? aofFrequency, PersistenceSettingRdbFrequency? rdbFrequency, IDictionary serializedAdditionalRawData) @@ -65,13 +65,13 @@ internal RedisPersistenceSettings(bool? isAofEnabled, bool? isRdbEnabled, Persis _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Sets whether AOF is enabled. Note that at most one of AOF or RDB persistence may be enabled. + /// Sets whether AOF is enabled. [WirePath("aofEnabled")] public bool? IsAofEnabled { get; set; } - /// Sets whether RDB is enabled. Note that at most one of AOF or RDB persistence may be enabled. + /// Sets whether RDB is enabled. [WirePath("rdbEnabled")] public bool? IsRdbEnabled { get; set; } - /// Sets the frequency at which data is written to disk. Defaults to '1s', meaning 'every second'. Note that the 'always' setting is deprecated, because of its performance impact. + /// Sets the frequency at which data is written to disk. [WirePath("aofFrequency")] public PersistenceSettingAofFrequency? AofFrequency { get; set; } /// Sets the frequency at which a snapshot of the database is created. diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterCollection.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterCollection.cs index 2dd2610596ba..303e1d6c9246 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterCollection.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -74,8 +74,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// 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. - /// The name of the Redis Enterprise cluster. - /// Parameters supplied to the Create Redis Enterprise operation. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. + /// Parameters supplied to the Create RedisEnterprise operation. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -114,7 +114,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -123,8 +123,8 @@ public virtual async Task> CreateOr /// /// /// 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. - /// The name of the Redis Enterprise cluster. - /// Parameters supplied to the Create Redis Enterprise operation. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. + /// Parameters supplied to the Create RedisEnterprise operation. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. @@ -151,7 +151,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU } /// - /// Gets information about a Redis Enterprise cluster + /// Gets information about a RedisEnterprise cluster /// /// /// Request Path @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -196,7 +196,7 @@ public virtual async Task> GetAsync(str } /// - /// Gets information about a Redis Enterprise cluster + /// Gets information about a RedisEnterprise cluster /// /// /// Request Path @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -216,7 +216,7 @@ public virtual async Task> GetAsync(str /// /// /// - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -241,7 +241,7 @@ public virtual Response Get(string clusterName, } /// - /// Lists all Redis Enterprise clusters in a resource group. + /// Lists all RedisEnterprise clusters in a resource group. /// /// /// Request Path @@ -253,7 +253,7 @@ public virtual Response Get(string clusterName, /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual AsyncPageable GetAllAsync(Cancell } /// - /// Lists all Redis Enterprise clusters in a resource group. + /// Lists all RedisEnterprise clusters in a resource group. /// /// /// Request Path @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string clusterName, Cancel /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual async Task> ExistsAsync(string clusterName, Cancel /// /// /// - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -399,7 +399,7 @@ public virtual Response Exists(string clusterName, CancellationToken cance /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual Response Exists(string clusterName, CancellationToken cance /// /// /// - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. @@ -444,7 +444,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -452,7 +452,7 @@ public virtual async Task> GetI /// /// /// - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterData.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterData.Serialization.cs index 051541890733..c92ed4bd2c21 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterData.Serialization.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterData.Serialization.cs @@ -58,11 +58,6 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WritePropertyName("properties"u8); writer.WriteStartObject(); - if (Optional.IsDefined(HighAvailability)) - { - writer.WritePropertyName("highAvailability"u8); - writer.WriteStringValue(HighAvailability.Value.ToString()); - } if (Optional.IsDefined(MinimumTlsVersion)) { writer.WritePropertyName("minimumTlsVersion"u8); @@ -83,11 +78,6 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("provisioningState"u8); writer.WriteStringValue(ProvisioningState.Value.ToString()); } - if (options.Format != "W" && Optional.IsDefined(RedundancyMode)) - { - writer.WritePropertyName("redundancyMode"u8); - writer.WriteStringValue(RedundancyMode.Value.ToString()); - } if (options.Format != "W" && Optional.IsDefined(ResourceState)) { writer.WritePropertyName("resourceState"u8); @@ -140,12 +130,10 @@ internal static RedisEnterpriseClusterData DeserializeRedisEnterpriseClusterData string name = default; ResourceType type = default; SystemData systemData = default; - RedisEnterpriseHighAvailability? highAvailability = default; RedisEnterpriseTlsVersion? minimumTlsVersion = default; ClusterPropertiesEncryption encryption = default; string hostName = default; RedisEnterpriseProvisioningStatus? provisioningState = default; - RedisEnterpriseRedundancyMode? redundancyMode = default; RedisEnterpriseClusterResourceState? resourceState = default; string redisVersion = default; IReadOnlyList privateEndpointConnections = default; @@ -233,15 +221,6 @@ internal static RedisEnterpriseClusterData DeserializeRedisEnterpriseClusterData } foreach (var property0 in property.Value.EnumerateObject()) { - if (property0.NameEquals("highAvailability"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - highAvailability = new RedisEnterpriseHighAvailability(property0.Value.GetString()); - continue; - } if (property0.NameEquals("minimumTlsVersion"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -274,15 +253,6 @@ internal static RedisEnterpriseClusterData DeserializeRedisEnterpriseClusterData provisioningState = new RedisEnterpriseProvisioningStatus(property0.Value.GetString()); continue; } - if (property0.NameEquals("redundancyMode"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - redundancyMode = new RedisEnterpriseRedundancyMode(property0.Value.GetString()); - continue; - } if (property0.NameEquals("resourceState"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -330,12 +300,10 @@ internal static RedisEnterpriseClusterData DeserializeRedisEnterpriseClusterData sku, zones ?? new ChangeTrackingList(), identity, - highAvailability, minimumTlsVersion, encryption, hostName, provisioningState, - redundancyMode, resourceState, redisVersion, privateEndpointConnections ?? new ChangeTrackingList(), @@ -523,21 +491,6 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.Append(" properties:"); builder.AppendLine(" {"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(HighAvailability), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" highAvailability: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(HighAvailability)) - { - builder.Append(" highAvailability: "); - builder.AppendLine($"'{HighAvailability.Value.ToString()}'"); - } - } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(MinimumTlsVersion), out propertyOverride); if (hasPropertyOverride) { @@ -611,21 +564,6 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(RedundancyMode), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" redundancyMode: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(RedundancyMode)) - { - builder.Append(" redundancyMode: "); - builder.AppendLine($"'{RedundancyMode.Value.ToString()}'"); - } - } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ResourceState), out propertyOverride); if (hasPropertyOverride) { diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterData.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterData.cs index ee91c5ec444c..71e0a3f1b2df 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterData.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterData.cs @@ -15,7 +15,7 @@ namespace Azure.ResourceManager.RedisEnterprise { /// /// A class representing the RedisEnterpriseCluster data model. - /// Describes the Redis Enterprise cluster + /// Describes the RedisEnterprise cluster /// public partial class RedisEnterpriseClusterData : TrackedResourceData { @@ -74,27 +74,23 @@ public RedisEnterpriseClusterData(AzureLocation location, RedisEnterpriseSku sku /// The SKU to create, which affects price, performance, and features. /// The Availability Zones where this cluster will be deployed. /// The identity of the resource. - /// Enabled by default. If highAvailability is disabled, the data set is not replicated. This affects the availability SLA, and increases the risk of data loss. - /// The minimum TLS version for the cluster to support, e.g. '1.2'. Newer versions can be added in the future. Note that TLS 1.0 and TLS 1.1 are now completely obsolete -- you cannot use them. They are mentioned only for the sake of consistency with old API versions. + /// 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. - /// Explains the current redundancy strategy of the cluster, which affects the expected SLA. /// Current resource status of the cluster. /// Version of redis the cluster supports, e.g. '6'. - /// List of private endpoint connections associated with the specified Redis Enterprise cluster. + /// List of private endpoint connections associated with the specified RedisEnterprise cluster. /// Keeps track of any properties unknown to the library. - internal RedisEnterpriseClusterData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, RedisEnterpriseSku sku, IList zones, ManagedServiceIdentity identity, RedisEnterpriseHighAvailability? highAvailability, RedisEnterpriseTlsVersion? minimumTlsVersion, ClusterPropertiesEncryption encryption, string hostName, RedisEnterpriseProvisioningStatus? provisioningState, RedisEnterpriseRedundancyMode? redundancyMode, RedisEnterpriseClusterResourceState? resourceState, string redisVersion, IReadOnlyList privateEndpointConnections, IDictionary serializedAdditionalRawData) : 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, ManagedServiceIdentity identity, RedisEnterpriseTlsVersion? minimumTlsVersion, ClusterPropertiesEncryption encryption, string hostName, RedisEnterpriseProvisioningStatus? provisioningState, RedisEnterpriseClusterResourceState? resourceState, string redisVersion, IReadOnlyList privateEndpointConnections, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) { Sku = sku; Zones = zones; Identity = identity; - HighAvailability = highAvailability; MinimumTlsVersion = minimumTlsVersion; Encryption = encryption; HostName = hostName; ProvisioningState = provisioningState; - RedundancyMode = redundancyMode; ResourceState = resourceState; RedisVersion = redisVersion; PrivateEndpointConnections = privateEndpointConnections; @@ -115,10 +111,7 @@ internal RedisEnterpriseClusterData() /// The identity of the resource. [WirePath("identity")] public ManagedServiceIdentity Identity { get; set; } - /// Enabled by default. If highAvailability is disabled, the data set is not replicated. This affects the availability SLA, and increases the risk of data loss. - [WirePath("properties.highAvailability")] - public RedisEnterpriseHighAvailability? HighAvailability { get; set; } - /// The minimum TLS version for the cluster to support, e.g. '1.2'. Newer versions can be added in the future. Note that TLS 1.0 and TLS 1.1 are now completely obsolete -- you cannot use them. They are mentioned only for the sake of consistency with old API versions. + /// The minimum TLS version for the cluster to support, e.g. '1.2'. [WirePath("properties.minimumTlsVersion")] public RedisEnterpriseTlsVersion? MinimumTlsVersion { get; set; } /// Encryption-at-rest configuration for the cluster. @@ -142,16 +135,13 @@ public RedisEnterpriseCustomerManagedKeyEncryption CustomerManagedKeyEncryption /// Current provisioning status of the cluster. [WirePath("properties.provisioningState")] public RedisEnterpriseProvisioningStatus? ProvisioningState { get; } - /// Explains the current redundancy strategy of the cluster, which affects the expected SLA. - [WirePath("properties.redundancyMode")] - public RedisEnterpriseRedundancyMode? RedundancyMode { get; } /// Current resource status of the cluster. [WirePath("properties.resourceState")] public RedisEnterpriseClusterResourceState? ResourceState { get; } /// Version of redis the cluster supports, e.g. '6'. [WirePath("properties.redisVersion")] public string RedisVersion { get; } - /// List of private endpoint connections associated with the specified Redis Enterprise cluster. + /// List of private endpoint connections associated with the specified RedisEnterprise cluster. [WirePath("properties.privateEndpointConnections")] public IReadOnlyList PrivateEndpointConnections { get; } } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterResource.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterResource.cs index 0e9a8301e3ec..0ec07848d9fc 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterResource.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseClusterResource.cs @@ -103,7 +103,7 @@ public virtual RedisEnterpriseDatabaseCollection GetRedisEnterpriseDatabases() } /// - /// Gets information about a database in a Redis Enterprise cluster. + /// Gets information about a database in a RedisEnterprise cluster. /// /// /// Request Path @@ -115,7 +115,7 @@ public virtual RedisEnterpriseDatabaseCollection GetRedisEnterpriseDatabases() /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -134,7 +134,7 @@ public virtual async Task> GetRedisEnt } /// - /// Gets information about a database in a Redis Enterprise cluster. + /// Gets information about a database in a RedisEnterprise cluster. /// /// /// Request Path @@ -146,7 +146,7 @@ public virtual async Task> GetRedisEnt /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual RedisEnterprisePrivateEndpointConnectionCollection GetRedisEnterp } /// - /// Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Gets the specified private endpoint connection associated with the RedisEnterprise cluster. /// /// /// Request Path @@ -184,7 +184,7 @@ public virtual RedisEnterprisePrivateEndpointConnectionCollection GetRedisEnterp /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -203,7 +203,7 @@ public virtual async Task - /// Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Gets the specified private endpoint connection associated with the RedisEnterprise cluster. /// /// /// Request Path @@ -215,7 +215,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -234,7 +234,7 @@ public virtual Response GetRed } /// - /// Gets information about a Redis Enterprise cluster + /// Gets information about a RedisEnterprise cluster /// /// /// Request Path @@ -246,7 +246,7 @@ public virtual Response GetRed /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual async Task> GetAsync(Can } /// - /// Gets information about a Redis Enterprise cluster + /// Gets information about a RedisEnterprise cluster /// /// /// Request Path @@ -286,7 +286,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Response Get(CancellationToken ca } /// - /// Deletes a Redis Enterprise cache cluster. + /// Deletes a RedisEnterprise cache cluster. /// /// /// Request Path @@ -326,7 +326,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Deletes a Redis Enterprise cache cluster. + /// Deletes a RedisEnterprise cache cluster. /// /// /// Request Path @@ -368,7 +368,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Updates an existing Redis Enterprise cluster + /// Updates an existing RedisEnterprise cluster /// /// /// Request Path @@ -410,7 +410,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -419,7 +419,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// 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. - /// Parameters supplied to the Update Redis Enterprise operation. + /// Parameters supplied to the Update RedisEnterprise operation. /// The cancellation token to use. /// is null. public virtual async Task> UpdateAsync(WaitUntil waitUntil, RedisEnterpriseClusterPatch patch, CancellationToken cancellationToken = default) @@ -444,7 +444,7 @@ public virtual async Task> UpdateAs } /// - /// Updates an existing Redis Enterprise cluster + /// Updates an existing RedisEnterprise cluster /// /// /// Request Path @@ -456,7 +456,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -465,7 +465,7 @@ public virtual async Task> UpdateAs /// /// /// 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. - /// Parameters supplied to the Update Redis Enterprise operation. + /// Parameters supplied to the Update RedisEnterprise operation. /// The cancellation token to use. /// is null. public virtual ArmOperation Update(WaitUntil waitUntil, RedisEnterpriseClusterPatch patch, CancellationToken cancellationToken = default) @@ -490,7 +490,7 @@ public virtual ArmOperation Update(WaitUntil wai } /// - /// Gets the private link resources that need to be created for a Redis Enterprise cluster. + /// Gets the private link resources that need to be created for a RedisEnterprise cluster. /// /// /// Request Path @@ -502,7 +502,7 @@ public virtual ArmOperation Update(WaitUntil wai /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// @@ -515,7 +515,7 @@ public virtual AsyncPageable GetPrivateLinkR } /// - /// Gets the private link resources that need to be created for a Redis Enterprise cluster. + /// Gets the private link resources that need to be created for a RedisEnterprise cluster. /// /// /// Request Path @@ -527,7 +527,7 @@ public virtual AsyncPageable GetPrivateLinkR /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// @@ -552,7 +552,7 @@ public virtual Pageable GetPrivateLinkResour /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -614,7 +614,7 @@ public virtual async Task> AddTagAsync( /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -676,7 +676,7 @@ public virtual Response AddTag(string key, strin /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -733,7 +733,7 @@ public virtual async Task> SetTagsAsync /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -790,7 +790,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -850,7 +850,7 @@ public virtual async Task> RemoveTagAsy /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseCollection.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseCollection.cs index 47c5fb7ce31d..3184f47b9449 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseCollection.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -150,7 +150,7 @@ public virtual ArmOperation CreateOrUpdate(Wait } /// - /// Gets information about a database in a Redis Enterprise cluster. + /// Gets information about a database in a RedisEnterprise cluster. /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -195,7 +195,7 @@ public virtual async Task> GetAsync(st } /// - /// Gets information about a database in a Redis Enterprise cluster. + /// Gets information about a database in a RedisEnterprise cluster. /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -240,7 +240,7 @@ public virtual Response Get(string databaseName } /// - /// Gets all databases in the specified Redis Enterprise cluster. + /// Gets all databases in the specified RedisEnterprise cluster. /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(string databaseName /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual AsyncPageable GetAllAsync(Cancel } /// - /// Gets all databases in the specified Redis Enterprise cluster. + /// Gets all databases in the specified RedisEnterprise cluster. /// /// /// Request Path @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string databaseName, Cance /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string databaseName, CancellationToken canc /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseData.Serialization.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseData.Serialization.cs index 93dcc6e6e292..5dff5794fcd2 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseData.Serialization.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseData.Serialization.cs @@ -91,21 +91,6 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("geoReplication"u8); writer.WriteObjectValue(GeoReplication, options); } - if (options.Format != "W" && Optional.IsDefined(RedisVersion)) - { - writer.WritePropertyName("redisVersion"u8); - writer.WriteStringValue(RedisVersion); - } - if (Optional.IsDefined(DeferUpgrade)) - { - writer.WritePropertyName("deferUpgrade"u8); - writer.WriteStringValue(DeferUpgrade.Value.ToString()); - } - if (Optional.IsDefined(AccessKeysAuthentication)) - { - writer.WritePropertyName("accessKeysAuthentication"u8); - writer.WriteStringValue(AccessKeysAuthentication.Value.ToString()); - } writer.WriteEndObject(); } @@ -142,9 +127,6 @@ internal static RedisEnterpriseDatabaseData DeserializeRedisEnterpriseDatabaseDa RedisPersistenceSettings persistence = default; IList modules = default; RedisEnterpriseDatabaseGeoReplication geoReplication = default; - string redisVersion = default; - DeferUpgradeSetting? deferUpgrade = default; - AccessKeysAuthentication? accessKeysAuthentication = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -268,29 +250,6 @@ internal static RedisEnterpriseDatabaseData DeserializeRedisEnterpriseDatabaseDa geoReplication = RedisEnterpriseDatabaseGeoReplication.DeserializeRedisEnterpriseDatabaseGeoReplication(property0.Value, options); continue; } - if (property0.NameEquals("redisVersion"u8)) - { - redisVersion = property0.Value.GetString(); - continue; - } - if (property0.NameEquals("deferUpgrade"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - deferUpgrade = new DeferUpgradeSetting(property0.Value.GetString()); - continue; - } - if (property0.NameEquals("accessKeysAuthentication"u8)) - { - if (property0.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - accessKeysAuthentication = new AccessKeysAuthentication(property0.Value.GetString()); - continue; - } } continue; } @@ -314,9 +273,6 @@ internal static RedisEnterpriseDatabaseData DeserializeRedisEnterpriseDatabaseDa persistence, modules ?? new ChangeTrackingList(), geoReplication, - redisVersion, - deferUpgrade, - accessKeysAuthentication, serializedAdditionalRawData); } @@ -529,59 +485,6 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(RedisVersion), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" redisVersion: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(RedisVersion)) - { - builder.Append(" redisVersion: "); - if (RedisVersion.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{RedisVersion}'''"); - } - else - { - builder.AppendLine($"'{RedisVersion}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DeferUpgrade), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" deferUpgrade: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(DeferUpgrade)) - { - builder.Append(" deferUpgrade: "); - builder.AppendLine($"'{DeferUpgrade.Value.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AccessKeysAuthentication), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" accessKeysAuthentication: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(AccessKeysAuthentication)) - { - builder.Append(" accessKeysAuthentication: "); - builder.AppendLine($"'{AccessKeysAuthentication.Value.ToString()}'"); - } - } - builder.AppendLine(" }"); builder.AppendLine("}"); return BinaryData.FromString(builder.ToString()); diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseData.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseData.cs index b19f9eb8690e..5460d7dadaec 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseData.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseData.cs @@ -15,7 +15,7 @@ namespace Azure.ResourceManager.RedisEnterprise { /// /// A class representing the RedisEnterpriseDatabase data model. - /// Describes a database on the Redis Enterprise cluster + /// Describes a database on the RedisEnterprise cluster /// public partial class RedisEnterpriseDatabaseData : ResourceData { @@ -66,16 +66,13 @@ public RedisEnterpriseDatabaseData() /// TCP port of the database endpoint. Specified at create time. Defaults to an available port. /// Current provisioning status of the database. /// Current resource status of the database. - /// Clustering policy - default is OSSCluster. This property must be chosen at create time, and cannot be changed without deleting the database. + /// Clustering policy - default is OSSCluster. Specified at create time. /// Redis eviction policy - default is VolatileLRU. /// Persistence settings. /// Optional set of redis modules to enable in this database - modules can only be added at creation time. /// Optional set of properties to configure geo replication for this database. - /// Version of Redis the database is running on, e.g. '6.0'. - /// Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade. - /// This property can be Enabled/Disabled to allow or deny access with the current access keys. Can be updated even after database is created. /// Keeps track of any properties unknown to the library. - internal RedisEnterpriseDatabaseData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, RedisEnterpriseClientProtocol? clientProtocol, int? port, RedisEnterpriseProvisioningStatus? provisioningState, RedisEnterpriseClusterResourceState? resourceState, RedisEnterpriseClusteringPolicy? clusteringPolicy, RedisEnterpriseEvictionPolicy? evictionPolicy, RedisPersistenceSettings persistence, IList modules, RedisEnterpriseDatabaseGeoReplication geoReplication, string redisVersion, DeferUpgradeSetting? deferUpgrade, AccessKeysAuthentication? accessKeysAuthentication, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal RedisEnterpriseDatabaseData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, RedisEnterpriseClientProtocol? clientProtocol, int? port, RedisEnterpriseProvisioningStatus? provisioningState, RedisEnterpriseClusterResourceState? resourceState, RedisEnterpriseClusteringPolicy? clusteringPolicy, RedisEnterpriseEvictionPolicy? evictionPolicy, RedisPersistenceSettings persistence, IList modules, RedisEnterpriseDatabaseGeoReplication geoReplication, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { ClientProtocol = clientProtocol; Port = port; @@ -86,9 +83,6 @@ internal RedisEnterpriseDatabaseData(ResourceIdentifier id, string name, Resourc Persistence = persistence; Modules = modules; GeoReplication = geoReplication; - RedisVersion = redisVersion; - DeferUpgrade = deferUpgrade; - AccessKeysAuthentication = accessKeysAuthentication; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -104,7 +98,7 @@ internal RedisEnterpriseDatabaseData(ResourceIdentifier id, string name, Resourc /// Current resource status of the database. [WirePath("properties.resourceState")] public RedisEnterpriseClusterResourceState? ResourceState { get; } - /// Clustering policy - default is OSSCluster. This property must be chosen at create time, and cannot be changed without deleting the database. + /// Clustering policy - default is OSSCluster. Specified at create time. [WirePath("properties.clusteringPolicy")] public RedisEnterpriseClusteringPolicy? ClusteringPolicy { get; set; } /// Redis eviction policy - default is VolatileLRU. @@ -119,14 +113,5 @@ internal RedisEnterpriseDatabaseData(ResourceIdentifier id, string name, Resourc /// Optional set of properties to configure geo replication for this database. [WirePath("properties.geoReplication")] public RedisEnterpriseDatabaseGeoReplication GeoReplication { get; set; } - /// Version of Redis the database is running on, e.g. '6.0'. - [WirePath("properties.redisVersion")] - public string RedisVersion { get; } - /// Option to defer upgrade when newest version is released - default is NotDeferred. Learn more: https://aka.ms/redisversionupgrade. - [WirePath("properties.deferUpgrade")] - public DeferUpgradeSetting? DeferUpgrade { get; set; } - /// This property can be Enabled/Disabled to allow or deny access with the current access keys. Can be updated even after database is created. - [WirePath("properties.accessKeysAuthentication")] - public AccessKeysAuthentication? AccessKeysAuthentication { get; set; } } } diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseResource.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseResource.cs index af5ade33699c..b1a3da1bd3df 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseResource.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterpriseDatabaseResource.cs @@ -89,77 +89,8 @@ internal static void ValidateResourceId(ResourceIdentifier id) throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); } - /// Gets a collection of AccessPolicyAssignmentResources in the RedisEnterpriseDatabase. - /// An object representing collection of AccessPolicyAssignmentResources and their operations over a AccessPolicyAssignmentResource. - public virtual AccessPolicyAssignmentCollection GetAccessPolicyAssignments() - { - return GetCachedClient(client => new AccessPolicyAssignmentCollection(client, Id)); - } - - /// - /// Gets information about access policy assignment for database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_Get - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the Redis Enterprise database access policy assignment. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetAccessPolicyAssignmentAsync(string accessPolicyAssignmentName, CancellationToken cancellationToken = default) - { - return await GetAccessPolicyAssignments().GetAsync(accessPolicyAssignmentName, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets information about access policy assignment for database. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/accessPolicyAssignments/{accessPolicyAssignmentName} - /// - /// - /// Operation Id - /// AccessPolicyAssignment_Get - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the Redis Enterprise database access policy assignment. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetAccessPolicyAssignment(string accessPolicyAssignmentName, CancellationToken cancellationToken = default) - { - return GetAccessPolicyAssignments().Get(accessPolicyAssignmentName, cancellationToken); - } - /// - /// Gets information about a database in a Redis Enterprise cluster. + /// Gets information about a database in a RedisEnterprise cluster. /// /// /// Request Path @@ -171,7 +102,7 @@ public virtual Response GetAccessPolicyAssignmen /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -199,7 +130,7 @@ public virtual async Task> GetAsync(Ca } /// - /// Gets information about a database in a Redis Enterprise cluster. + /// Gets information about a database in a RedisEnterprise cluster. /// /// /// Request Path @@ -211,7 +142,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -251,7 +182,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -293,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -335,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -381,7 +312,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -415,7 +346,7 @@ public virtual ArmOperation Update(WaitUntil wa } /// - /// Retrieves the access keys for the Redis Enterprise database. + /// Retrieves the access keys for the RedisEnterprise database. /// /// /// Request Path @@ -427,7 +358,7 @@ public virtual ArmOperation Update(WaitUntil wa /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -453,7 +384,7 @@ public virtual async Task> GetKeysAsync( } /// - /// Retrieves the access keys for the Redis Enterprise database. + /// Retrieves the access keys for the RedisEnterprise database. /// /// /// Request Path @@ -465,7 +396,7 @@ public virtual async Task> GetKeysAsync( /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -491,7 +422,7 @@ public virtual Response GetKeys(CancellationToken } /// - /// Regenerates the Redis Enterprise database's access keys. + /// Regenerates the RedisEnterprise database's access keys. /// /// /// Request Path @@ -503,7 +434,7 @@ public virtual Response GetKeys(CancellationToken /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -537,7 +468,7 @@ public virtual async Task> Regenerat } /// - /// Regenerates the Redis Enterprise database's access keys. + /// Regenerates the RedisEnterprise database's access keys. /// /// /// Request Path @@ -549,7 +480,7 @@ public virtual async Task> Regenerat /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -595,7 +526,7 @@ public virtual ArmOperation RegenerateKey(WaitUnt /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -641,7 +572,7 @@ public virtual async Task ImportAsync(WaitUntil waitUntil, ImportR /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -687,7 +618,7 @@ public virtual ArmOperation Import(WaitUntil waitUntil, ImportRedisEnterpriseDat /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -733,7 +664,7 @@ public virtual async Task ExportAsync(WaitUntil waitUntil, ExportR /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -779,7 +710,7 @@ public virtual ArmOperation Export(WaitUntil waitUntil, ExportRedisEnterpriseDat /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -825,7 +756,7 @@ public virtual async Task ForceUnlinkAsync(WaitUntil waitUntil, Fo /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -871,7 +802,7 @@ public virtual ArmOperation ForceUnlink(WaitUntil waitUntil, ForceUnlinkRedisEnt /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -917,7 +848,7 @@ public virtual async Task ForceLinkToReplicationGroupAsync(WaitUnt /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -963,7 +894,7 @@ public virtual ArmOperation ForceLinkToReplicationGroup(WaitUntil waitUntil, For /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -1009,7 +940,7 @@ public virtual async Task FlushAsync(WaitUntil waitUntil, FlushRed /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -1041,89 +972,5 @@ public virtual ArmOperation Flush(WaitUntil waitUntil, FlushRedisEnterpriseDatab throw; } } - - /// - /// Upgrades the database Redis version to the latest available. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/upgradeDBRedisVersion - /// - /// - /// Operation Id - /// Databases_UpgradeDBRedisVersion - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// 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. - /// The cancellation token to use. - public virtual async Task UpgradeDBRedisVersionAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) - { - using var scope = _redisEnterpriseDatabaseDatabasesClientDiagnostics.CreateScope("RedisEnterpriseDatabaseResource.UpgradeDBRedisVersion"); - scope.Start(); - try - { - var response = await _redisEnterpriseDatabaseDatabasesRestClient.UpgradeDBRedisVersionAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new RedisEnterpriseArmOperation(_redisEnterpriseDatabaseDatabasesClientDiagnostics, Pipeline, _redisEnterpriseDatabaseDatabasesRestClient.CreateUpgradeDBRedisVersionRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Upgrades the database Redis version to the latest available. - /// - /// - /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Cache/redisEnterprise/{clusterName}/databases/{databaseName}/upgradeDBRedisVersion - /// - /// - /// Operation Id - /// Databases_UpgradeDBRedisVersion - /// - /// - /// Default Api Version - /// 2024-09-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// 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. - /// The cancellation token to use. - public virtual ArmOperation UpgradeDBRedisVersion(WaitUntil waitUntil, CancellationToken cancellationToken = default) - { - using var scope = _redisEnterpriseDatabaseDatabasesClientDiagnostics.CreateScope("RedisEnterpriseDatabaseResource.UpgradeDBRedisVersion"); - scope.Start(); - try - { - var response = _redisEnterpriseDatabaseDatabasesRestClient.UpgradeDBRedisVersion(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new RedisEnterpriseArmOperation(_redisEnterpriseDatabaseDatabasesClientDiagnostics, Pipeline, _redisEnterpriseDatabaseDatabasesRestClient.CreateUpgradeDBRedisVersionRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).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/RedisEnterprisePrivateEndpointConnectionCollection.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterprisePrivateEndpointConnectionCollection.cs index 5422b448979f..81fcfdb89441 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterprisePrivateEndpointConnectionCollection.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterprisePrivateEndpointConnectionCollection.cs @@ -52,7 +52,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Updates the state of the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Updates the state of the specified private endpoint connection associated with the RedisEnterprise cluster. /// /// /// Request Path @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -101,7 +101,7 @@ public virtual async Task - /// Updates the state of the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Updates the state of the specified private endpoint connection associated with the RedisEnterprise cluster. /// /// /// Request Path @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -150,7 +150,7 @@ public virtual ArmOperation Cr } /// - /// Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Gets the specified private endpoint connection associated with the RedisEnterprise cluster. /// /// /// Request Path @@ -162,7 +162,7 @@ public virtual ArmOperation Cr /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -195,7 +195,7 @@ public virtual async Task - /// Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Gets the specified private endpoint connection associated with the RedisEnterprise cluster. /// /// /// Request Path @@ -207,7 +207,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -240,7 +240,7 @@ public virtual Response Get(st } /// - /// Lists all the private endpoint connections associated with the Redis Enterprise cluster. + /// Lists all the private endpoint connections associated with the RedisEnterprise cluster. /// /// /// Request Path @@ -252,7 +252,7 @@ public virtual Response Get(st /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual AsyncPageable G } /// - /// Lists all the private endpoint connections associated with the Redis Enterprise cluster. + /// Lists all the private endpoint connections associated with the RedisEnterprise cluster. /// /// /// Request Path @@ -281,7 +281,7 @@ public virtual AsyncPageable G /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Pageable GetAll /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> ExistsAsync(string privateEndpointConn /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -396,7 +396,7 @@ public virtual Response Exists(string privateEndpointConnectionName, Cance /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -441,7 +441,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterprisePrivateEndpointConnectionResource.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterprisePrivateEndpointConnectionResource.cs index 725ce1bd6933..64d47dad745d 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterprisePrivateEndpointConnectionResource.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RedisEnterprisePrivateEndpointConnectionResource.cs @@ -89,7 +89,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Gets the specified private endpoint connection associated with the RedisEnterprise cluster. /// /// /// Request Path @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -129,7 +129,7 @@ public virtual async Task - /// Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Gets the specified private endpoint connection associated with the RedisEnterprise cluster. /// /// /// Request Path @@ -141,7 +141,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -169,7 +169,7 @@ public virtual Response Get(Ca } /// - /// Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. /// /// /// Request Path @@ -181,7 +181,7 @@ public virtual Response Get(Ca /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell } /// - /// Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. /// /// /// Request Path @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel } /// - /// Updates the state of the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Updates the state of the specified private endpoint connection associated with the RedisEnterprise cluster. /// /// /// Request Path @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource @@ -299,7 +299,7 @@ public virtual async Task - /// Updates the state of the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Updates the state of the specified private endpoint connection associated with the RedisEnterprise cluster. /// /// /// Request Path @@ -311,7 +311,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-09-01-preview + /// 2024-10-01 /// /// /// Resource diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/AccessPolicyAssignmentRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/AccessPolicyAssignmentRestOperations.cs deleted file mode 100644 index 4fb579f23e19..000000000000 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/AccessPolicyAssignmentRestOperations.cs +++ /dev/null @@ -1,549 +0,0 @@ -// 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.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.RedisEnterprise.Models; - -namespace Azure.ResourceManager.RedisEnterprise -{ - internal partial class AccessPolicyAssignmentRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of AccessPolicyAssignmentRestOperations. - /// 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 AccessPolicyAssignmentRestOperations(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 ?? "2024-09-01-preview"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal RequestUriBuilder CreateCreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string accessPolicyAssignmentName, AccessPolicyAssignmentData data) - { - 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("/accessPolicyAssignments/", false); - uri.AppendPath(accessPolicyAssignmentName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateCreateUpdateRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string accessPolicyAssignmentName, AccessPolicyAssignmentData data) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Put; - 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("/accessPolicyAssignments/", false); - uri.AppendPath(accessPolicyAssignmentName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; - _userAgent.Apply(message); - return message; - } - - /// Creates/Updates a particular access policy assignment for a database. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// The name of the Redis Enterprise database. - /// The name of the Redis Enterprise database access policy assignment. - /// Parameters supplied to the create access policy assignment for database. - /// The cancellation token to use. - /// , , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task CreateUpdateAsync(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string accessPolicyAssignmentName, AccessPolicyAssignmentData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - Argument.AssertNotNullOrEmpty(accessPolicyAssignmentName, nameof(accessPolicyAssignmentName)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateUpdateRequest(subscriptionId, resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, data); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 201: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Creates/Updates a particular access policy assignment for a database. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// The name of the Redis Enterprise database. - /// The name of the Redis Enterprise database access policy assignment. - /// Parameters supplied to the create access policy assignment for database. - /// The cancellation token to use. - /// , , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response CreateUpdate(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string accessPolicyAssignmentName, AccessPolicyAssignmentData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - Argument.AssertNotNullOrEmpty(accessPolicyAssignmentName, nameof(accessPolicyAssignmentName)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateUpdateRequest(subscriptionId, resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName, data); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 201: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string accessPolicyAssignmentName) - { - 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("/accessPolicyAssignments/", false); - uri.AppendPath(accessPolicyAssignmentName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string accessPolicyAssignmentName) - { - 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("/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("/accessPolicyAssignments/", false); - uri.AppendPath(accessPolicyAssignmentName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Gets information about access policy assignment for database. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// The name of the Redis Enterprise database. - /// The name of the Redis Enterprise database access policy assignment. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string accessPolicyAssignmentName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - Argument.AssertNotNullOrEmpty(accessPolicyAssignmentName, nameof(accessPolicyAssignmentName)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AccessPolicyAssignmentData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = AccessPolicyAssignmentData.DeserializeAccessPolicyAssignmentData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((AccessPolicyAssignmentData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - /// Gets information about access policy assignment for database. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// The name of the Redis Enterprise database. - /// The name of the Redis Enterprise database access policy assignment. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string accessPolicyAssignmentName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - Argument.AssertNotNullOrEmpty(accessPolicyAssignmentName, nameof(accessPolicyAssignmentName)); - - using var message = CreateGetRequest(subscriptionId, resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AccessPolicyAssignmentData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = AccessPolicyAssignmentData.DeserializeAccessPolicyAssignmentData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((AccessPolicyAssignmentData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string accessPolicyAssignmentName) - { - 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("/accessPolicyAssignments/", false); - uri.AppendPath(accessPolicyAssignmentName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string accessPolicyAssignmentName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Delete; - 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("/accessPolicyAssignments/", false); - uri.AppendPath(accessPolicyAssignmentName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Deletes a single access policy assignment. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// The name of the Redis Enterprise database. - /// The name of the Redis Enterprise database access policy assignment. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string accessPolicyAssignmentName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - Argument.AssertNotNullOrEmpty(accessPolicyAssignmentName, nameof(accessPolicyAssignmentName)); - - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 202: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Deletes a single access policy assignment. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// The name of the Redis Enterprise database. - /// The name of the Redis Enterprise database access policy assignment. - /// The cancellation token to use. - /// , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response Delete(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, string accessPolicyAssignmentName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - Argument.AssertNotNullOrEmpty(accessPolicyAssignmentName, nameof(accessPolicyAssignmentName)); - - using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, clusterName, databaseName, accessPolicyAssignmentName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 202: - case 204: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) - { - 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("/accessPolicyAssignments", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) - { - 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("/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("/accessPolicyAssignments", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Gets all access policy assignments.. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// The name of the Redis Enterprise database. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - - using var message = CreateListRequest(subscriptionId, resourceGroupName, clusterName, databaseName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AccessPolicyAssignmentList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = AccessPolicyAssignmentList.DeserializeAccessPolicyAssignmentList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Gets all access policy assignments.. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// The name of the Redis Enterprise database. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response List(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - - using var message = CreateListRequest(subscriptionId, resourceGroupName, clusterName, databaseName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AccessPolicyAssignmentList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = AccessPolicyAssignmentList.DeserializeAccessPolicyAssignmentList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string databaseName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string databaseName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Gets all access policy assignments.. - /// The URL to the next page of results. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// The name of the Redis Enterprise database. - /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string databaseName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName, databaseName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - AccessPolicyAssignmentList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = AccessPolicyAssignmentList.DeserializeAccessPolicyAssignmentList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Gets all access policy assignments.. - /// The URL to the next page of results. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// The name of the Redis Enterprise database. - /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string clusterName, string databaseName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - - using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, clusterName, databaseName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - AccessPolicyAssignmentList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = AccessPolicyAssignmentList.DeserializeAccessPolicyAssignmentList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} 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 b355e644672b..668fbab2b33b 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/DatabasesRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/DatabasesRestOperations.cs @@ -32,7 +32,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 ?? "2024-09-01-preview"; + _apiVersion = apiVersion ?? "2024-10-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -72,10 +72,10 @@ internal HttpMessage CreateListByClusterRequest(string subscriptionId, string re return message; } - /// Gets all databases in the specified Redis Enterprise cluster. + /// Gets all databases in the specified RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -101,10 +101,10 @@ public async Task> ListByClusterAsync(stri } } - /// Gets all databases in the specified Redis Enterprise cluster. + /// Gets all databases in the specified RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -175,7 +175,7 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG /// Creates a database. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Parameters supplied to the create or update database operation. /// The cancellation token to use. @@ -204,7 +204,7 @@ public async Task CreateAsync(string subscriptionId, string resourceGr /// Creates a database. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Parameters supplied to the create or update database operation. /// The cancellation token to use. @@ -275,7 +275,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// Updates a database. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Parameters supplied to the create or update database operation. /// The cancellation token to use. @@ -304,7 +304,7 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr /// Updates a database. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Parameters supplied to the create or update database operation. /// The cancellation token to use. @@ -368,10 +368,10 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Gets information about a database in a Redis Enterprise cluster. + /// Gets information about a database in a RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// The cancellation token to use. /// , , or is null. @@ -401,10 +401,10 @@ public async Task> GetAsync(string subscri } } - /// Gets information about a database in a Redis Enterprise cluster. + /// Gets information about a database in a RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// The cancellation token to use. /// , , or is null. @@ -475,7 +475,7 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG /// Deletes a single database. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// The cancellation token to use. /// , , or is null. @@ -503,7 +503,7 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr /// Deletes a single database. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// The cancellation token to use. /// , , or is null. @@ -568,10 +568,10 @@ internal HttpMessage CreateListKeysRequest(string subscriptionId, string resourc return message; } - /// Retrieves the access keys for the Redis Enterprise database. + /// Retrieves the access keys for the RedisEnterprise database. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// The cancellation token to use. /// , , or is null. @@ -599,10 +599,10 @@ public async Task> ListKeysAsync(string } } - /// Retrieves the access keys for the Redis Enterprise database. + /// Retrieves the access keys for the RedisEnterprise database. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// The cancellation token to use. /// , , or is null. @@ -674,10 +674,10 @@ internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string re return message; } - /// Regenerates the Redis Enterprise database's access keys. + /// Regenerates the RedisEnterprise database's access keys. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Specifies which key to regenerate. /// The cancellation token to use. @@ -703,10 +703,10 @@ public async Task RegenerateKeyAsync(string subscriptionId, string res } } - /// Regenerates the Redis Enterprise database's access keys. + /// Regenerates the RedisEnterprise database's access keys. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Specifies which key to regenerate. /// The cancellation token to use. @@ -779,7 +779,7 @@ internal HttpMessage CreateImportRequest(string subscriptionId, string resourceG /// Imports database files to target database. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Storage information for importing into the cluster. /// The cancellation token to use. @@ -808,7 +808,7 @@ public async Task ImportAsync(string subscriptionId, string resourceGr /// Imports database files to target database. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Storage information for importing into the cluster. /// The cancellation token to use. @@ -881,7 +881,7 @@ internal HttpMessage CreateExportRequest(string subscriptionId, string resourceG /// Exports a database file from target database. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Storage information for exporting into the cluster. /// The cancellation token to use. @@ -910,7 +910,7 @@ public async Task ExportAsync(string subscriptionId, string resourceGr /// Exports a database file from target database. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Storage information for exporting into the cluster. /// The cancellation token to use. @@ -983,7 +983,7 @@ internal HttpMessage CreateForceUnlinkRequest(string subscriptionId, string reso /// Forcibly removes the link to the specified database resource. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Information identifying the database to be unlinked. /// The cancellation token to use. @@ -1012,7 +1012,7 @@ public async Task ForceUnlinkAsync(string subscriptionId, string resou /// Forcibly removes the link to the specified database resource. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Information identifying the database to be unlinked. /// The cancellation token to use. @@ -1085,7 +1085,7 @@ internal HttpMessage CreateForceLinkToReplicationGroupRequest(string subscriptio /// Forcibly recreates an existing database on the specified cluster, and rejoins it to an existing replication group. **IMPORTANT NOTE:** All data in this database will be discarded, and the database will temporarily be unavailable while rejoining the replication group. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Information identifying the database to be unlinked. /// The cancellation token to use. @@ -1113,7 +1113,7 @@ public async Task ForceLinkToReplicationGroupAsync(string subscription /// Forcibly recreates an existing database on the specified cluster, and rejoins it to an existing replication group. **IMPORTANT NOTE:** All data in this database will be discarded, and the database will temporarily be unavailable while rejoining the replication group. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Information identifying the database to be unlinked. /// The cancellation token to use. @@ -1185,7 +1185,7 @@ internal HttpMessage CreateFlushRequest(string subscriptionId, string resourceGr /// 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 Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Information identifying the databases to be flushed. /// The cancellation token to use. @@ -1214,7 +1214,7 @@ public async Task FlushAsync(string subscriptionId, string resourceGro /// 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 Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the Redis Enterprise database. /// Information identifying the databases to be flushed. /// The cancellation token to use. @@ -1240,98 +1240,6 @@ public Response Flush(string subscriptionId, string resourceGroupName, string cl } } - internal RequestUriBuilder CreateUpgradeDBRedisVersionRequestUri(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) - { - 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("/upgradeDBRedisVersion", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateUpgradeDBRedisVersionRequest(string subscriptionId, string resourceGroupName, string clusterName, string databaseName) - { - 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("/upgradeDBRedisVersion", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Upgrades the database Redis version to the latest available. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// The name of the Redis Enterprise database. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task UpgradeDBRedisVersionAsync(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - - using var message = CreateUpgradeDBRedisVersionRequest(subscriptionId, resourceGroupName, clusterName, databaseName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// Upgrades the database Redis version to the latest available. - /// The ID of the target subscription. - /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// The name of the Redis Enterprise database. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response UpgradeDBRedisVersion(string subscriptionId, string resourceGroupName, string clusterName, string databaseName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); - Argument.AssertNotNullOrEmpty(clusterName, nameof(clusterName)); - Argument.AssertNotNullOrEmpty(databaseName, nameof(databaseName)); - - using var message = CreateUpgradeDBRedisVersionRequest(subscriptionId, resourceGroupName, clusterName, databaseName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - internal RequestUriBuilder CreateListByClusterNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string clusterName) { var uri = new RawRequestUriBuilder(); @@ -1354,11 +1262,11 @@ internal HttpMessage CreateListByClusterNextPageRequest(string nextLink, string return message; } - /// Gets all databases in the specified Redis Enterprise cluster. + /// Gets all databases in the specified RedisEnterprise cluster. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -1385,11 +1293,11 @@ public async Task> ListByClusterNextPageAs } } - /// Gets all databases in the specified Redis Enterprise cluster. + /// Gets all databases in the specified RedisEnterprise cluster. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// 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/OperationsStatusRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/OperationsStatusRestOperations.cs index c1807c6ef5aa..915c6d104c0a 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/OperationsStatusRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/OperationsStatusRestOperations.cs @@ -32,7 +32,7 @@ public OperationsStatusRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-09-01-preview"; + _apiVersion = apiVersion ?? "2024-10-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } 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 493bb73b6e2c..dd222b605a18 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateEndpointConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public PrivateEndpointConnectionsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-09-01-preview"; + _apiVersion = apiVersion ?? "2024-10-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -72,10 +72,10 @@ internal HttpMessage CreateListRequest(string subscriptionId, string resourceGro return message; } - /// Lists all the private endpoint connections associated with the Redis Enterprise cluster. + /// Lists all the private endpoint connections associated with the RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -101,10 +101,10 @@ public async Task> } } - /// Lists all the private endpoint connections associated with the Redis Enterprise cluster. + /// Lists all the private endpoint connections associated with the RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -168,10 +168,10 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Gets the specified private endpoint connection associated with the RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the private endpoint connection associated with the Azure resource. /// The cancellation token to use. /// , , or is null. @@ -201,10 +201,10 @@ public async Task> GetAsy } } - /// Gets the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Gets the specified private endpoint connection associated with the RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the private endpoint connection associated with the Azure resource. /// The cancellation token to use. /// , , or is null. @@ -276,10 +276,10 @@ internal HttpMessage CreatePutRequest(string subscriptionId, string resourceGrou return message; } - /// Updates the state of the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Updates the state of the specified private endpoint connection associated with the RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the private endpoint connection associated with the Azure resource. /// The private endpoint connection properties. /// The cancellation token to use. @@ -304,10 +304,10 @@ public async Task PutAsync(string subscriptionId, string resourceGroup } } - /// Updates the state of the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Updates the state of the specified private endpoint connection associated with the RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the private endpoint connection associated with the Azure resource. /// The private endpoint connection properties. /// The cancellation token to use. @@ -370,10 +370,10 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the private endpoint connection associated with the Azure resource. /// The cancellation token to use. /// , , or is null. @@ -398,10 +398,10 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Deletes the specified private endpoint connection associated with the Redis Enterprise cluster. + /// Deletes the specified private endpoint connection associated with the RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The name of the private endpoint connection associated with the Azure resource. /// The cancellation token to use. /// , , or is null. 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 2c43088b7f75..d8bedb28853e 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/PrivateLinkResourcesRestOperations.cs @@ -32,7 +32,7 @@ public PrivateLinkResourcesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-09-01-preview"; + _apiVersion = apiVersion ?? "2024-10-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -72,10 +72,10 @@ internal HttpMessage CreateListByClusterRequest(string subscriptionId, string re return message; } - /// Gets the private link resources that need to be created for a Redis Enterprise cluster. + /// Gets the private link resources that need to be created for a RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -101,10 +101,10 @@ public async Task> ListBy } } - /// Gets the private link resources that need to be created for a Redis Enterprise cluster. + /// Gets the private link resources that need to be created for a RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// 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/RedisEnterpriseRestOperations.cs b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/RedisEnterpriseRestOperations.cs index 919742449ed3..9832c3624570 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/RedisEnterpriseRestOperations.cs +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/Generated/RestOperations/RedisEnterpriseRestOperations.cs @@ -32,7 +32,7 @@ public RedisEnterpriseRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-09-01-preview"; + _apiVersion = apiVersion ?? "2024-10-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -77,8 +77,8 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG /// Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// Parameters supplied to the Create Redis Enterprise operation. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. + /// Parameters supplied to the Create RedisEnterprise operation. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -104,8 +104,8 @@ public async Task CreateAsync(string subscriptionId, string resourceGr /// Creates or updates an existing (overwrite/recreate, with potential downtime) cache cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// Parameters supplied to the Create Redis Enterprise operation. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. + /// Parameters supplied to the Create RedisEnterprise operation. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -166,11 +166,11 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG return message; } - /// Updates an existing Redis Enterprise cluster. + /// Updates an existing RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// Parameters supplied to the Update Redis Enterprise operation. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. + /// Parameters supplied to the Update RedisEnterprise operation. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -193,11 +193,11 @@ public async Task UpdateAsync(string subscriptionId, string resourceGr } } - /// Updates an existing Redis Enterprise cluster. + /// Updates an existing RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. - /// Parameters supplied to the Update Redis Enterprise operation. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. + /// Parameters supplied to the Update RedisEnterprise operation. /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -254,10 +254,10 @@ internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceG return message; } - /// Deletes a Redis Enterprise cache cluster. + /// Deletes a RedisEnterprise cache cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -280,10 +280,10 @@ public async Task DeleteAsync(string subscriptionId, string resourceGr } } - /// Deletes a Redis Enterprise cache cluster. + /// Deletes a RedisEnterprise cache cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -340,10 +340,10 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou return message; } - /// Gets information about a Redis Enterprise cluster. + /// Gets information about a RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -371,10 +371,10 @@ public async Task> GetAsync(string subscrip } } - /// Gets information about a Redis Enterprise cluster. + /// Gets information about a RedisEnterprise cluster. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. - /// The name of the Redis Enterprise cluster. + /// The name of the Redis Enterprise cluster. Name must be 1-60 characters long. Allowed characters(A-Z, a-z, 0-9) and hyphen(-). There can be no leading nor trailing nor consecutive hyphens. /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. @@ -434,7 +434,7 @@ internal HttpMessage CreateListByResourceGroupRequest(string subscriptionId, str return message; } - /// Lists all Redis Enterprise clusters in a resource group. + /// Lists all RedisEnterprise clusters in a resource group. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The cancellation token to use. @@ -461,7 +461,7 @@ public async Task> ListByResourceGroupAsync } } - /// Lists all Redis Enterprise clusters in a resource group. + /// Lists all RedisEnterprise clusters in a resource group. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. /// The cancellation token to use. @@ -516,7 +516,7 @@ internal HttpMessage CreateListRequest(string subscriptionId) return message; } - /// Lists all Redis Enterprise clusters in the specified subscription. + /// Gets all RedisEnterprise clusters in the specified subscription. /// The ID of the target subscription. /// The cancellation token to use. /// is null. @@ -541,7 +541,7 @@ public async Task> ListAsync(string subscri } } - /// Lists all Redis Enterprise clusters in the specified subscription. + /// Gets all RedisEnterprise clusters in the specified subscription. /// The ID of the target subscription. /// The cancellation token to use. /// is null. @@ -588,7 +588,7 @@ internal HttpMessage CreateListByResourceGroupNextPageRequest(string nextLink, s return message; } - /// Lists all Redis Enterprise clusters in a resource group. + /// Lists all RedisEnterprise clusters in a resource group. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -617,7 +617,7 @@ public async Task> ListByResourceGroupNextP } } - /// Lists all Redis Enterprise clusters in a resource group. + /// Lists all RedisEnterprise clusters in a resource group. /// The URL to the next page of results. /// The ID of the target subscription. /// The name of the resource group. The name is case insensitive. @@ -668,7 +668,7 @@ internal HttpMessage CreateListNextPageRequest(string nextLink, string subscript return message; } - /// Lists all Redis Enterprise clusters in the specified subscription. + /// Gets all RedisEnterprise clusters in the specified subscription. /// The URL to the next page of results. /// The ID of the target subscription. /// The cancellation token to use. @@ -695,7 +695,7 @@ public async Task> ListNextPageAsync(string } } - /// Lists all Redis Enterprise clusters in the specified subscription. + /// Gets all RedisEnterprise clusters in the specified subscription. /// The URL to the next page of results. /// The ID of the target subscription. /// The cancellation token to use. diff --git a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/autorest.md b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/autorest.md index 9c1d64082761..ece6c04b34c1 100644 --- a/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/autorest.md +++ b/sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: RedisEnterprise namespace: Azure.ResourceManager.RedisEnterprise -require: https://github.com/Azure/azure-rest-api-specs/blob/f5321f9b29083f9ea4c028e7484504875e04a758/specification/redisenterprise/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/redisenterprise/resource-manager/readme.md #tag: package-preview-2024-09 output-folder: $(this-folder)/Generated clear-output-folder: true